Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:59:03.625407
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16082025
  port_id : 26035038
  datou_current_id : 3548703
in upload_from_sqlite, uploading in 26035038
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250719 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250720 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250721 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250722 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250723 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250724 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250725 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250726 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250727 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250728 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250729 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250730 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250731 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250801 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250802 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250803 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250804 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250805 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250806 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250807 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250808 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250809 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250810 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250811 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250812 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250813 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250814 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250815 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250816 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_54_10649.jpg', 2), ('/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_34_9639.jpg', 2), ('/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_25_10655.jpg', 2), ('/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_14_9664.jpg', 2), ('/home/nano/Desktop/images/16082025/23/58/image_16082025_23_59_04_10658.jpg', 2), ('/home/nano/Desktop/images/16082025/23/58/image_16082025_23_58_54_9637.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_54_10649.jpg', '/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_34_9639.jpg', '/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_25_10655.jpg', '/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_14_9664.jpg', '/home/nano/Desktop/images/16082025/23/58/image_16082025_23_59_04_10658.jpg', '/home/nano/Desktop/images/16082025/23/58/image_16082025_23_58_54_9637.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3548703&datou=0
/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_54_10649.jpg
/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_34_9639.jpg
/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_25_10655.jpg
/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_14_9664.jpg
/home/nano/Desktop/images/16082025/23/58/image_16082025_23_59_04_10658.jpg
/home/nano/Desktop/images/16082025/23/58/image_16082025_23_58_54_9637.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 3.81610107421875 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3548703&datou=0 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa499be0>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:59:17.631966
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16082025
  port_id : 26035038
  datou_current_id : 3548703
in upload_from_sqlite, uploading in 26035038
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250719 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250720 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250721 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250722 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250723 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250724 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250725 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250726 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250727 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250728 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250729 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250730 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250731 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250801 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250802 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250803 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250804 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250805 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250806 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250807 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250808 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250809 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250810 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250811 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250812 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250813 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250814 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250815 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250816 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_54_10649.jpg', 2), ('/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_34_9639.jpg', 2), ('/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_25_10655.jpg', 2), ('/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_14_9664.jpg', 2), ('/home/nano/Desktop/images/16082025/23/58/image_16082025_23_59_04_10658.jpg', 2), ('/home/nano/Desktop/images/16082025/23/58/image_16082025_23_58_54_9637.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_54_10649.jpg', '/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_34_9639.jpg', '/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_25_10655.jpg', '/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_14_9664.jpg', '/home/nano/Desktop/images/16082025/23/58/image_16082025_23_59_04_10658.jpg', '/home/nano/Desktop/images/16082025/23/58/image_16082025_23_58_54_9637.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3548703&datou=0
/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_54_10649.jpg
/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_34_9639.jpg
/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_25_10655.jpg
/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_14_9664.jpg
/home/nano/Desktop/images/16082025/23/58/image_16082025_23_59_04_10658.jpg
/home/nano/Desktop/images/16082025/23/58/image_16082025_23_58_54_9637.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 2.4364969730377197 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3548703&datou=0 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89213be0>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:59:32.642873
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16082025
  port_id : 26035038
  datou_current_id : 3548703
in upload_from_sqlite, uploading in 26035038
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250719 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250720 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250721 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250722 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250723 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250724 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250725 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250726 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250727 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250728 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250729 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250730 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250731 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250801 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250802 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250803 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250804 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250805 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250806 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250807 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250808 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250809 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250810 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250811 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250812 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250813 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250814 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250815 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250816 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_54_10649.jpg', 2), ('/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_34_9639.jpg', 2), ('/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_25_10655.jpg', 2), ('/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_14_9664.jpg', 2), ('/home/nano/Desktop/images/16082025/23/58/image_16082025_23_59_04_10658.jpg', 2), ('/home/nano/Desktop/images/16082025/23/58/image_16082025_23_58_54_9637.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_54_10649.jpg', '/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_34_9639.jpg', '/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_25_10655.jpg', '/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_14_9664.jpg', '/home/nano/Desktop/images/16082025/23/58/image_16082025_23_59_04_10658.jpg', '/home/nano/Desktop/images/16082025/23/58/image_16082025_23_58_54_9637.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3548703&datou=0
/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_54_10649.jpg
/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_34_9639.jpg
/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_25_10655.jpg
/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_14_9664.jpg
/home/nano/Desktop/images/16082025/23/58/image_16082025_23_59_04_10658.jpg
/home/nano/Desktop/images/16082025/23/58/image_16082025_23_58_54_9637.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 3.2651209831237793 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3548703&datou=0 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94307f98>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-17 23:59:47.624611
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16082025
  port_id : 26035038
  datou_current_id : 3548703
in upload_from_sqlite, uploading in 26035038
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250719 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250720 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250721 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250722 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250723 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250724 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250725 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250726 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250727 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250728 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250729 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250730 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250731 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250801 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250802 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250803 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250804 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250805 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250806 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250807 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250808 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250809 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250810 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250811 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250812 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250813 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250814 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250815 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250816 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_54_10649.jpg', 2), ('/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_34_9639.jpg', 2), ('/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_25_10655.jpg', 2), ('/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_14_9664.jpg', 2), ('/home/nano/Desktop/images/16082025/23/58/image_16082025_23_59_04_10658.jpg', 2), ('/home/nano/Desktop/images/16082025/23/58/image_16082025_23_58_54_9637.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_54_10649.jpg', '/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_34_9639.jpg', '/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_25_10655.jpg', '/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_14_9664.jpg', '/home/nano/Desktop/images/16082025/23/58/image_16082025_23_59_04_10658.jpg', '/home/nano/Desktop/images/16082025/23/58/image_16082025_23_58_54_9637.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3548703&datou=0
/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_54_10649.jpg
/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_34_9639.jpg
/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_25_10655.jpg
/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_14_9664.jpg
/home/nano/Desktop/images/16082025/23/58/image_16082025_23_59_04_10658.jpg
/home/nano/Desktop/images/16082025/23/58/image_16082025_23_58_54_9637.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 4.853695631027222 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3548703&datou=0 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95fcabe0>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:00:03.145292
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 19072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 20072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 21072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 22072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 23072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 24072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 25072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 26072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 27072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 28072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 29072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 30072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 31072025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 01082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 02082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 03082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 04082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 05082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 06082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 07082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 08082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 09082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 10082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 11082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 12082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 13082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 14082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 15082025
we dont have photos to upload , we try to find old photos to upload, we are looking for photos on 16082025
  port_id : 26035038
  datou_current_id : 3548703
in upload_from_sqlite, uploading in 26035038
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250719 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250720 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250721 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250722 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250723 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250724 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250725 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250726 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250727 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250728 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250729 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250730 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250731 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250801 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250802 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250803 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250804 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250805 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250806 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250807 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250808 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250809 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250810 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250811 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250812 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250813 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250814 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250815 ORDER BY id_local DESC LIMIT 6;
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250816 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_54_10649.jpg', 2), ('/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_34_9639.jpg', 2), ('/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_25_10655.jpg', 2), ('/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_14_9664.jpg', 2), ('/home/nano/Desktop/images/16082025/23/58/image_16082025_23_59_04_10658.jpg', 2), ('/home/nano/Desktop/images/16082025/23/58/image_16082025_23_58_54_9637.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_54_10649.jpg', '/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_34_9639.jpg', '/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_25_10655.jpg', '/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_14_9664.jpg', '/home/nano/Desktop/images/16082025/23/58/image_16082025_23_59_04_10658.jpg', '/home/nano/Desktop/images/16082025/23/58/image_16082025_23_58_54_9637.jpg'] : url : https://www.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3548703&datou=0
/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_54_10649.jpg
/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_34_9639.jpg
/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_25_10655.jpg
/home/nano/Desktop/images/16082025/23/59/image_16082025_23_59_14_9664.jpg
/home/nano/Desktop/images/16082025/23/58/image_16082025_23_59_04_10658.jpg
/home/nano/Desktop/images/16082025/23/58/image_16082025_23_58_54_9637.jpg
after data_to_send, before sending request
'int' object is not iterable
time to upload: 1.9743659496307373 secondes ---
ERROR IN API l 184 HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3548703&datou=0 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78adabe0>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:00:17.752828
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/00/image_18082025_00_00_34_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/00/00/image_18082025_00_00_24_10672.jpg', 2), ('/home/nano/Desktop/images/18082025/00/00/image_18082025_00_00_14_9695.jpg', 2), ('/home/nano/Desktop/images/17082025/23/59/image_18082025_00_00_04_9652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f829eb518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f829eb518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f829eb518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:00:32.739405
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/00/image_18082025_00_00_34_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/00/00/image_18082025_00_00_24_10672.jpg', 2), ('/home/nano/Desktop/images/18082025/00/00/image_18082025_00_00_14_9695.jpg', 2), ('/home/nano/Desktop/images/17082025/23/59/image_18082025_00_00_04_9652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9964d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9964d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9964d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:00:47.718448
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/00/image_18082025_00_00_34_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/00/00/image_18082025_00_00_24_10672.jpg', 2), ('/home/nano/Desktop/images/18082025/00/00/image_18082025_00_00_14_9695.jpg', 2), ('/home/nano/Desktop/images/17082025/23/59/image_18082025_00_00_04_9652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa45a6550>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa45a6550>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa45a6550>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:01:02.220662
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/00/image_18082025_00_00_34_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/00/00/image_18082025_00_00_24_10672.jpg', 2), ('/home/nano/Desktop/images/18082025/00/00/image_18082025_00_00_14_9695.jpg', 2), ('/home/nano/Desktop/images/17082025/23/59/image_18082025_00_00_04_9652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b021518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b021518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b021518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:01:16.812887
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/01/image_18082025_00_01_44_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/00/01/image_18082025_00_01_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/01/image_18082025_00_01_24_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/00/01/image_18082025_00_01_14_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/00/00/image_18082025_00_01_04_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/00/00/image_18082025_00_00_44_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7666518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7666518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7666518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:01:31.821690
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/01/image_18082025_00_01_44_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/00/01/image_18082025_00_01_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/01/image_18082025_00_01_24_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/00/01/image_18082025_00_01_14_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/00/00/image_18082025_00_01_04_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/00/00/image_18082025_00_00_44_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8d7a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8d7a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8d7a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:01:46.852703
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/01/image_18082025_00_01_44_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/00/01/image_18082025_00_01_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/01/image_18082025_00_01_24_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/00/01/image_18082025_00_01_14_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/00/00/image_18082025_00_01_04_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/00/00/image_18082025_00_00_44_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f789484a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f789484a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f789484a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:02:02.381329
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/01/image_18082025_00_01_44_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/00/01/image_18082025_00_01_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/01/image_18082025_00_01_24_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/00/01/image_18082025_00_01_14_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/00/00/image_18082025_00_01_04_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/00/00/image_18082025_00_00_44_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a301518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a301518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a301518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:02:16.952731
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/02/image_18082025_00_02_44_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/02/image_18082025_00_02_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/02/image_18082025_00_02_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/00/02/image_18082025_00_02_15_10680.jpg', 2), ('/home/nano/Desktop/images/18082025/00/01/image_18082025_00_02_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/00/01/image_18082025_00_01_54_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f915fd518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f915fd518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f915fd518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:02:31.927145
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/02/image_18082025_00_02_44_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/02/image_18082025_00_02_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/02/image_18082025_00_02_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/00/02/image_18082025_00_02_15_10680.jpg', 2), ('/home/nano/Desktop/images/18082025/00/01/image_18082025_00_02_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/00/01/image_18082025_00_01_54_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf4d3518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf4d3518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf4d3518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:02:46.947969
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/02/image_18082025_00_02_44_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/02/image_18082025_00_02_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/02/image_18082025_00_02_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/00/02/image_18082025_00_02_15_10680.jpg', 2), ('/home/nano/Desktop/images/18082025/00/01/image_18082025_00_02_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/00/01/image_18082025_00_01_54_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4397518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4397518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4397518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:03:02.593942
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/02/image_18082025_00_02_44_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/02/image_18082025_00_02_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/02/image_18082025_00_02_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/00/02/image_18082025_00_02_15_10680.jpg', 2), ('/home/nano/Desktop/images/18082025/00/01/image_18082025_00_02_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/00/01/image_18082025_00_01_54_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa692d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa692d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa692d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:03:17.069246
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/03/image_18082025_00_03_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/03/image_18082025_00_03_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/03/image_18082025_00_03_14_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/00/02/image_18082025_00_03_04_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/00/02/image_18082025_00_02_54_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/02/image_18082025_00_02_44_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83a4f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83a4f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83a4f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:03:32.029023
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/03/image_18082025_00_03_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/03/image_18082025_00_03_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/03/image_18082025_00_03_14_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/00/02/image_18082025_00_03_04_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/00/02/image_18082025_00_02_54_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/02/image_18082025_00_02_44_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f854a9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f854a9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f854a9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:03:47.050316
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/03/image_18082025_00_03_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/03/image_18082025_00_03_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/03/image_18082025_00_03_14_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/00/02/image_18082025_00_03_04_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/00/02/image_18082025_00_02_54_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/02/image_18082025_00_02_44_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84a43518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84a43518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84a43518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:04:02.779440
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/03/image_18082025_00_03_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/03/image_18082025_00_03_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/03/image_18082025_00_03_14_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/00/02/image_18082025_00_03_04_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/00/02/image_18082025_00_02_54_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/02/image_18082025_00_02_44_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6f41518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6f41518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6f41518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:04:17.146072
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/04/image_18082025_00_04_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/04/image_18082025_00_04_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/04/image_18082025_00_04_14_10684.jpg', 2), ('/home/nano/Desktop/images/18082025/00/03/image_18082025_00_03_54_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/03/image_18082025_00_03_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/03/image_18082025_00_03_24_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6fe1518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6fe1518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6fe1518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:04:32.127555
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/04/image_18082025_00_04_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/04/image_18082025_00_04_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/04/image_18082025_00_04_14_10684.jpg', 2), ('/home/nano/Desktop/images/18082025/00/03/image_18082025_00_03_54_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/03/image_18082025_00_03_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/03/image_18082025_00_03_24_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c57c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c57c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c57c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:04:47.154776
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/04/image_18082025_00_04_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/04/image_18082025_00_04_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/04/image_18082025_00_04_14_10684.jpg', 2), ('/home/nano/Desktop/images/18082025/00/03/image_18082025_00_03_54_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/03/image_18082025_00_03_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/03/image_18082025_00_03_24_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa2134a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa2134a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa2134a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:05:02.704505
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/04/image_18082025_00_04_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/04/image_18082025_00_04_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/04/image_18082025_00_04_14_10684.jpg', 2), ('/home/nano/Desktop/images/18082025/00/03/image_18082025_00_03_54_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/03/image_18082025_00_03_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/03/image_18082025_00_03_24_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa246f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa246f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa246f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:05:17.241714
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/05/image_18082025_00_05_34_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/00/05/image_18082025_00_05_24_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/00/05/image_18082025_00_05_14_10670.jpg', 2), ('/home/nano/Desktop/images/18082025/00/04/image_18082025_00_05_04_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/00/04/image_18082025_00_04_54_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/04/image_18082025_00_04_34_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f828d54a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f828d54a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f828d54a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:05:32.265940
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/05/image_18082025_00_05_34_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/00/05/image_18082025_00_05_24_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/00/05/image_18082025_00_05_14_10670.jpg', 2), ('/home/nano/Desktop/images/18082025/00/04/image_18082025_00_05_04_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/00/04/image_18082025_00_04_54_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/04/image_18082025_00_04_34_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa9695518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9695518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9695518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:05:47.239116
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/05/image_18082025_00_05_34_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/00/05/image_18082025_00_05_24_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/00/05/image_18082025_00_05_14_10670.jpg', 2), ('/home/nano/Desktop/images/18082025/00/04/image_18082025_00_05_04_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/00/04/image_18082025_00_04_54_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/04/image_18082025_00_04_34_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98b52518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98b52518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98b52518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:06:02.788698
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/05/image_18082025_00_05_34_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/00/05/image_18082025_00_05_24_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/00/05/image_18082025_00_05_14_10670.jpg', 2), ('/home/nano/Desktop/images/18082025/00/04/image_18082025_00_05_04_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/00/04/image_18082025_00_04_54_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/04/image_18082025_00_04_34_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7dbc7518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7dbc7518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7dbc7518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:06:17.342923
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/06/image_18082025_00_06_35_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/00/06/image_18082025_00_06_14_9679.jpg', 2), ('/home/nano/Desktop/images/18082025/00/05/image_18082025_00_05_54_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/00/05/image_18082025_00_05_34_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/00/05/image_18082025_00_05_24_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/00/05/image_18082025_00_05_14_10670.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6d50518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6d50518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6d50518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:06:32.337292
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/06/image_18082025_00_06_35_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/00/06/image_18082025_00_06_14_9679.jpg', 2), ('/home/nano/Desktop/images/18082025/00/05/image_18082025_00_05_54_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/00/05/image_18082025_00_05_34_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/00/05/image_18082025_00_05_24_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/00/05/image_18082025_00_05_14_10670.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8ebc518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8ebc518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8ebc518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:06:47.373540
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/06/image_18082025_00_06_35_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/00/06/image_18082025_00_06_14_9679.jpg', 2), ('/home/nano/Desktop/images/18082025/00/05/image_18082025_00_05_54_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/00/05/image_18082025_00_05_34_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/00/05/image_18082025_00_05_24_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/00/05/image_18082025_00_05_14_10670.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8a1d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8a1d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8a1d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:07:02.875445
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/06/image_18082025_00_06_35_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/00/06/image_18082025_00_06_14_9679.jpg', 2), ('/home/nano/Desktop/images/18082025/00/05/image_18082025_00_05_54_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/00/05/image_18082025_00_05_34_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/00/05/image_18082025_00_05_24_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/00/05/image_18082025_00_05_14_10670.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f926f5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f926f5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f926f5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:07:17.477210
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/07/image_18082025_00_07_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/07/image_18082025_00_07_34_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/00/07/image_18082025_00_07_24_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/00/07/image_18082025_00_07_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/00/06/image_18082025_00_07_04_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/00/06/image_18082025_00_06_44_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7aa0e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7aa0e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7aa0e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:07:32.460325
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/07/image_18082025_00_07_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/07/image_18082025_00_07_34_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/00/07/image_18082025_00_07_24_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/00/07/image_18082025_00_07_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/00/06/image_18082025_00_07_04_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/00/06/image_18082025_00_06_44_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faaab9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faaab9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faaab9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:07:47.474082
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/07/image_18082025_00_07_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/07/image_18082025_00_07_34_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/00/07/image_18082025_00_07_24_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/00/07/image_18082025_00_07_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/00/06/image_18082025_00_07_04_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/00/06/image_18082025_00_06_44_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97eab518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97eab518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97eab518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:08:02.902770
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/07/image_18082025_00_07_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/07/image_18082025_00_07_34_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/00/07/image_18082025_00_07_24_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/00/07/image_18082025_00_07_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/00/06/image_18082025_00_07_04_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/00/06/image_18082025_00_06_44_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb289e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb289e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb289e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:08:17.570701
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/08/image_18082025_00_08_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/08/image_18082025_00_08_34_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/00/08/image_18082025_00_08_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/08/image_18082025_00_08_14_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/00/07/image_18082025_00_08_04_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/00/07/image_18082025_00_07_54_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d916518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d916518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d916518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:08:32.572628
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/08/image_18082025_00_08_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/08/image_18082025_00_08_34_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/00/08/image_18082025_00_08_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/08/image_18082025_00_08_14_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/00/07/image_18082025_00_08_04_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/00/07/image_18082025_00_07_54_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4eaa518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4eaa518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4eaa518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:08:47.572580
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/08/image_18082025_00_08_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/08/image_18082025_00_08_34_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/00/08/image_18082025_00_08_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/08/image_18082025_00_08_14_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/00/07/image_18082025_00_08_04_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/00/07/image_18082025_00_07_54_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89b484a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89b484a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89b484a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:09:03.486366
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/08/image_18082025_00_08_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/08/image_18082025_00_08_34_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/00/08/image_18082025_00_08_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/08/image_18082025_00_08_14_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/00/07/image_18082025_00_08_04_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/00/07/image_18082025_00_07_54_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5cd2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5cd2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5cd2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:09:17.687179
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/09/image_18082025_00_09_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/09/image_18082025_00_09_34_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/00/09/image_18082025_00_09_24_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/00/09/image_18082025_00_09_14_9666.jpg', 2), ('/home/nano/Desktop/images/18082025/00/08/image_18082025_00_09_04_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/00/08/image_18082025_00_08_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96896518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96896518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96896518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:09:32.727164
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/09/image_18082025_00_09_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/09/image_18082025_00_09_34_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/00/09/image_18082025_00_09_24_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/00/09/image_18082025_00_09_14_9666.jpg', 2), ('/home/nano/Desktop/images/18082025/00/08/image_18082025_00_09_04_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/00/08/image_18082025_00_08_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f829f4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f829f4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f829f4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:09:47.700223
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/09/image_18082025_00_09_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/09/image_18082025_00_09_34_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/00/09/image_18082025_00_09_24_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/00/09/image_18082025_00_09_14_9666.jpg', 2), ('/home/nano/Desktop/images/18082025/00/08/image_18082025_00_09_04_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/00/08/image_18082025_00_08_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9983e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9983e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9983e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:10:02.029870
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/09/image_18082025_00_09_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/09/image_18082025_00_09_34_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/00/09/image_18082025_00_09_24_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/00/09/image_18082025_00_09_14_9666.jpg', 2), ('/home/nano/Desktop/images/18082025/00/08/image_18082025_00_09_04_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/00/08/image_18082025_00_08_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8eaa518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8eaa518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8eaa518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:10:16.804343
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/10/image_18082025_00_10_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/00/10/image_18082025_00_10_34_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/00/10/image_18082025_00_10_25_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/00/10/image_18082025_00_10_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/00/09/image_18082025_00_10_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/00/09/image_18082025_00_09_55_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86004518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86004518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86004518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:10:31.779169
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/10/image_18082025_00_10_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/00/10/image_18082025_00_10_34_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/00/10/image_18082025_00_10_25_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/00/10/image_18082025_00_10_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/00/09/image_18082025_00_10_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/00/09/image_18082025_00_09_55_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7c01518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7c01518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7c01518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:10:46.791147
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/10/image_18082025_00_10_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/00/10/image_18082025_00_10_34_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/00/10/image_18082025_00_10_25_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/00/10/image_18082025_00_10_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/00/09/image_18082025_00_10_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/00/09/image_18082025_00_09_55_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b9dc518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b9dc518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b9dc518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:11:02.413732
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/10/image_18082025_00_10_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/00/10/image_18082025_00_10_34_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/00/10/image_18082025_00_10_25_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/00/10/image_18082025_00_10_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/00/09/image_18082025_00_10_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/00/09/image_18082025_00_09_55_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5b23518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5b23518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5b23518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:11:16.885660
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/11/image_18082025_00_11_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/11/image_18082025_00_11_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/11/image_18082025_00_11_14_9682.jpg', 2), ('/home/nano/Desktop/images/18082025/00/10/image_18082025_00_11_04_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/00/10/image_18082025_00_10_54_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/10/image_18082025_00_10_44_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86d8c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86d8c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86d8c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:11:31.925918
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/11/image_18082025_00_11_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/11/image_18082025_00_11_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/11/image_18082025_00_11_14_9682.jpg', 2), ('/home/nano/Desktop/images/18082025/00/10/image_18082025_00_11_04_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/00/10/image_18082025_00_10_54_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/10/image_18082025_00_10_44_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fabb804a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fabb804a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fabb804a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:11:46.932048
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/11/image_18082025_00_11_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/11/image_18082025_00_11_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/11/image_18082025_00_11_14_9682.jpg', 2), ('/home/nano/Desktop/images/18082025/00/10/image_18082025_00_11_04_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/00/10/image_18082025_00_10_54_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/10/image_18082025_00_10_44_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c24f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c24f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c24f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:12:02.324330
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/11/image_18082025_00_11_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/11/image_18082025_00_11_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/11/image_18082025_00_11_14_9682.jpg', 2), ('/home/nano/Desktop/images/18082025/00/10/image_18082025_00_11_04_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/00/10/image_18082025_00_10_54_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/10/image_18082025_00_10_44_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa65ae518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa65ae518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa65ae518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:12:17.034890
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/12/image_18082025_00_12_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/12/image_18082025_00_12_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/00/12/image_18082025_00_12_24_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/00/12/image_18082025_00_12_14_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/00/11/image_18082025_00_12_04_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/11/image_18082025_00_11_54_10652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97e0f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97e0f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97e0f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:12:32.010463
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/12/image_18082025_00_12_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/12/image_18082025_00_12_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/00/12/image_18082025_00_12_24_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/00/12/image_18082025_00_12_14_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/00/11/image_18082025_00_12_04_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/11/image_18082025_00_11_54_10652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c5b5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c5b5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c5b5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:12:47.008399
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/12/image_18082025_00_12_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/12/image_18082025_00_12_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/00/12/image_18082025_00_12_24_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/00/12/image_18082025_00_12_14_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/00/11/image_18082025_00_12_04_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/11/image_18082025_00_11_54_10652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d00e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d00e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d00e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:13:02.594299
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/12/image_18082025_00_12_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/12/image_18082025_00_12_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/00/12/image_18082025_00_12_24_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/00/12/image_18082025_00_12_14_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/00/11/image_18082025_00_12_04_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/11/image_18082025_00_11_54_10652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84f02518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84f02518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84f02518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:13:17.127428
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/13/image_18082025_00_13_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/13/image_18082025_00_13_34_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/00/13/image_18082025_00_13_14_9748.jpg', 2), ('/home/nano/Desktop/images/18082025/00/12/image_18082025_00_13_04_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/00/12/image_18082025_00_12_54_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/00/12/image_18082025_00_12_44_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb32754a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb32754a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb32754a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:13:32.156170
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/13/image_18082025_00_13_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/13/image_18082025_00_13_34_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/00/13/image_18082025_00_13_14_9748.jpg', 2), ('/home/nano/Desktop/images/18082025/00/12/image_18082025_00_13_04_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/00/12/image_18082025_00_12_54_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/00/12/image_18082025_00_12_44_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89ca14a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89ca14a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89ca14a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:13:47.117686
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/13/image_18082025_00_13_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/13/image_18082025_00_13_34_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/00/13/image_18082025_00_13_14_9748.jpg', 2), ('/home/nano/Desktop/images/18082025/00/12/image_18082025_00_13_04_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/00/12/image_18082025_00_12_54_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/00/12/image_18082025_00_12_44_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa663a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa663a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa663a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:14:02.857892
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/13/image_18082025_00_13_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/13/image_18082025_00_13_34_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/00/13/image_18082025_00_13_14_9748.jpg', 2), ('/home/nano/Desktop/images/18082025/00/12/image_18082025_00_13_04_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/00/12/image_18082025_00_12_54_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/00/12/image_18082025_00_12_44_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2d104a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2d104a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2d104a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:14:17.263394
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/14/image_18082025_00_14_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/14/image_18082025_00_14_24_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/00/14/image_18082025_00_14_14_9670.jpg', 2), ('/home/nano/Desktop/images/18082025/00/13/image_18082025_00_14_04_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/00/13/image_18082025_00_13_54_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/00/13/image_18082025_00_13_44_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78a96518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78a96518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78a96518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:14:32.216401
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/14/image_18082025_00_14_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/14/image_18082025_00_14_24_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/00/14/image_18082025_00_14_14_9670.jpg', 2), ('/home/nano/Desktop/images/18082025/00/13/image_18082025_00_14_04_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/00/13/image_18082025_00_13_54_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/00/13/image_18082025_00_13_44_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f505518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f505518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f505518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:14:47.229944
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/14/image_18082025_00_14_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/14/image_18082025_00_14_24_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/00/14/image_18082025_00_14_14_9670.jpg', 2), ('/home/nano/Desktop/images/18082025/00/13/image_18082025_00_14_04_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/00/13/image_18082025_00_13_54_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/00/13/image_18082025_00_13_44_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79647518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79647518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79647518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:15:02.732131
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/14/image_18082025_00_14_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/14/image_18082025_00_14_24_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/00/14/image_18082025_00_14_14_9670.jpg', 2), ('/home/nano/Desktop/images/18082025/00/13/image_18082025_00_14_04_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/00/13/image_18082025_00_13_54_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/00/13/image_18082025_00_13_44_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0a314a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0a314a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0a314a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:15:17.326966
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/15/image_18082025_00_15_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/00/15/image_18082025_00_15_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/15/image_18082025_00_15_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/15/image_18082025_00_15_15_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/00/14/image_18082025_00_15_04_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/00/14/image_18082025_00_14_54_10652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9cc2a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cc2a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cc2a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:15:32.329283
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/15/image_18082025_00_15_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/00/15/image_18082025_00_15_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/15/image_18082025_00_15_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/15/image_18082025_00_15_15_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/00/14/image_18082025_00_15_04_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/00/14/image_18082025_00_14_54_10652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78ee3518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78ee3518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78ee3518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:15:47.352651
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/15/image_18082025_00_15_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/00/15/image_18082025_00_15_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/15/image_18082025_00_15_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/15/image_18082025_00_15_15_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/00/14/image_18082025_00_15_04_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/00/14/image_18082025_00_14_54_10652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f097518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f097518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f097518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:16:02.826050
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/15/image_18082025_00_15_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/00/15/image_18082025_00_15_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/15/image_18082025_00_15_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/15/image_18082025_00_15_15_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/00/14/image_18082025_00_15_04_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/00/14/image_18082025_00_14_54_10652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8fc1a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fc1a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fc1a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:16:17.444745
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/16/image_18082025_00_16_44_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/00/16/image_18082025_00_16_34_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/00/16/image_18082025_00_16_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/16/image_18082025_00_16_14_10677.jpg', 2), ('/home/nano/Desktop/images/18082025/00/15/image_18082025_00_16_04_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/00/15/image_18082025_00_15_54_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa795b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa795b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa795b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:16:32.444882
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/16/image_18082025_00_16_44_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/00/16/image_18082025_00_16_34_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/00/16/image_18082025_00_16_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/16/image_18082025_00_16_14_10677.jpg', 2), ('/home/nano/Desktop/images/18082025/00/15/image_18082025_00_16_04_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/00/15/image_18082025_00_15_54_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a0d2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a0d2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a0d2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:16:47.468350
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/16/image_18082025_00_16_44_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/00/16/image_18082025_00_16_34_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/00/16/image_18082025_00_16_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/16/image_18082025_00_16_14_10677.jpg', 2), ('/home/nano/Desktop/images/18082025/00/15/image_18082025_00_16_04_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/00/15/image_18082025_00_15_54_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a391518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a391518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a391518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:17:03.086021
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/16/image_18082025_00_16_44_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/00/16/image_18082025_00_16_34_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/00/16/image_18082025_00_16_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/16/image_18082025_00_16_14_10677.jpg', 2), ('/home/nano/Desktop/images/18082025/00/15/image_18082025_00_16_04_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/00/15/image_18082025_00_15_54_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f19c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f19c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f19c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:17:17.552931
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/17/image_18082025_00_17_44_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/00/17/image_18082025_00_17_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/17/image_18082025_00_17_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/17/image_18082025_00_17_14_10671.jpg', 2), ('/home/nano/Desktop/images/18082025/00/16/image_18082025_00_17_04_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/00/16/image_18082025_00_16_54_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f965ab518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f965ab518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f965ab518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:17:32.587564
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/17/image_18082025_00_17_44_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/00/17/image_18082025_00_17_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/17/image_18082025_00_17_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/17/image_18082025_00_17_14_10671.jpg', 2), ('/home/nano/Desktop/images/18082025/00/16/image_18082025_00_17_04_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/00/16/image_18082025_00_16_54_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2dcb518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2dcb518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2dcb518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:17:47.568100
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/17/image_18082025_00_17_44_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/00/17/image_18082025_00_17_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/17/image_18082025_00_17_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/17/image_18082025_00_17_14_10671.jpg', 2), ('/home/nano/Desktop/images/18082025/00/16/image_18082025_00_17_04_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/00/16/image_18082025_00_16_54_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb1a42518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1a42518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1a42518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:18:02.979570
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/17/image_18082025_00_17_44_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/00/17/image_18082025_00_17_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/17/image_18082025_00_17_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/17/image_18082025_00_17_14_10671.jpg', 2), ('/home/nano/Desktop/images/18082025/00/16/image_18082025_00_17_04_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/00/16/image_18082025_00_16_54_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb50eb518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb50eb518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb50eb518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:18:17.666250
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/18/image_18082025_00_18_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/18/image_18082025_00_18_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/18/image_18082025_00_18_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/00/17/image_18082025_00_18_05_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/00/17/image_18082025_00_17_54_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/17/image_18082025_00_17_44_10665.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6122550>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6122550>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6122550>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:18:32.694997
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/18/image_18082025_00_18_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/18/image_18082025_00_18_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/18/image_18082025_00_18_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/00/17/image_18082025_00_18_05_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/00/17/image_18082025_00_17_54_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/17/image_18082025_00_17_44_10665.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d30b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d30b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d30b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:18:47.655296
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/18/image_18082025_00_18_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/18/image_18082025_00_18_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/18/image_18082025_00_18_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/00/17/image_18082025_00_18_05_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/00/17/image_18082025_00_17_54_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/17/image_18082025_00_17_44_10665.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0c90518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0c90518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0c90518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:19:03.577919
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/18/image_18082025_00_18_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/18/image_18082025_00_18_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/18/image_18082025_00_18_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/00/17/image_18082025_00_18_05_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/00/17/image_18082025_00_17_54_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/17/image_18082025_00_17_44_10665.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb498d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb498d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb498d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:19:17.761157
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/19/image_18082025_00_19_34_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/00/19/image_18082025_00_19_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/19/image_18082025_00_19_14_9674.jpg', 2), ('/home/nano/Desktop/images/18082025/00/18/image_18082025_00_19_04_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/00/18/image_18082025_00_18_54_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/18/image_18082025_00_18_44_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f0be518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f0be518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f0be518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:19:32.783322
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/19/image_18082025_00_19_34_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/00/19/image_18082025_00_19_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/19/image_18082025_00_19_14_9674.jpg', 2), ('/home/nano/Desktop/images/18082025/00/18/image_18082025_00_19_04_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/00/18/image_18082025_00_18_54_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/18/image_18082025_00_18_44_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88e1e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88e1e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88e1e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:19:47.772397
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/19/image_18082025_00_19_34_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/00/19/image_18082025_00_19_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/19/image_18082025_00_19_14_9674.jpg', 2), ('/home/nano/Desktop/images/18082025/00/18/image_18082025_00_19_04_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/00/18/image_18082025_00_18_54_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/18/image_18082025_00_18_44_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7debf4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7debf4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7debf4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:20:02.172339
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/19/image_18082025_00_19_34_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/00/19/image_18082025_00_19_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/19/image_18082025_00_19_14_9674.jpg', 2), ('/home/nano/Desktop/images/18082025/00/18/image_18082025_00_19_04_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/00/18/image_18082025_00_18_54_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/18/image_18082025_00_18_44_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa66c9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa66c9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa66c9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:20:16.888957
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/20/image_18082025_00_20_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/20/image_18082025_00_20_34_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/00/20/image_18082025_00_20_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/20/image_18082025_00_20_14_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/00/19/image_18082025_00_20_04_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/00/19/image_18082025_00_19_54_9660.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81a03518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81a03518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81a03518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:20:31.886923
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/20/image_18082025_00_20_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/20/image_18082025_00_20_34_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/00/20/image_18082025_00_20_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/20/image_18082025_00_20_14_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/00/19/image_18082025_00_20_04_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/00/19/image_18082025_00_19_54_9660.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3340518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3340518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3340518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:20:46.946122
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/20/image_18082025_00_20_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/20/image_18082025_00_20_34_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/00/20/image_18082025_00_20_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/20/image_18082025_00_20_14_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/00/19/image_18082025_00_20_04_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/00/19/image_18082025_00_19_54_9660.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f887f4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f887f4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f887f4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:21:02.460510
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/20/image_18082025_00_20_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/20/image_18082025_00_20_34_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/00/20/image_18082025_00_20_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/20/image_18082025_00_20_14_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/00/19/image_18082025_00_20_04_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/00/19/image_18082025_00_19_54_9660.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8529f4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8529f4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8529f4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:21:17.031676
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/21/image_18082025_00_21_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/21/image_18082025_00_21_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/21/image_18082025_00_21_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/00/20/image_18082025_00_21_04_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/00/20/image_18082025_00_20_54_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/20/image_18082025_00_20_44_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8aa14518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8aa14518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8aa14518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:21:32.031279
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/21/image_18082025_00_21_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/21/image_18082025_00_21_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/21/image_18082025_00_21_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/00/20/image_18082025_00_21_04_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/00/20/image_18082025_00_20_54_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/20/image_18082025_00_20_44_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81db4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81db4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81db4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:21:47.078990
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/21/image_18082025_00_21_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/21/image_18082025_00_21_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/21/image_18082025_00_21_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/00/20/image_18082025_00_21_04_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/00/20/image_18082025_00_20_54_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/20/image_18082025_00_20_44_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93921518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93921518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93921518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:22:02.511148
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/21/image_18082025_00_21_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/21/image_18082025_00_21_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/21/image_18082025_00_21_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/00/20/image_18082025_00_21_04_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/00/20/image_18082025_00_20_54_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/20/image_18082025_00_20_44_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad243518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad243518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad243518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:22:17.210274
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/22/image_18082025_00_22_44_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/00/22/image_18082025_00_22_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/22/image_18082025_00_22_24_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/00/22/image_18082025_00_22_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/00/21/image_18082025_00_22_04_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/00/21/image_18082025_00_21_55_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d7de518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d7de518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d7de518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:22:32.183247
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/22/image_18082025_00_22_44_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/00/22/image_18082025_00_22_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/22/image_18082025_00_22_24_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/00/22/image_18082025_00_22_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/00/21/image_18082025_00_22_04_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/00/21/image_18082025_00_21_55_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7db2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7db2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7db2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:22:47.181230
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/22/image_18082025_00_22_44_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/00/22/image_18082025_00_22_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/22/image_18082025_00_22_24_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/00/22/image_18082025_00_22_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/00/21/image_18082025_00_22_04_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/00/21/image_18082025_00_21_55_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa46af4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa46af4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa46af4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:23:02.762109
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/22/image_18082025_00_22_44_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/00/22/image_18082025_00_22_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/22/image_18082025_00_22_24_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/00/22/image_18082025_00_22_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/00/21/image_18082025_00_22_04_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/00/21/image_18082025_00_21_55_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84283518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84283518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84283518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:23:17.279495
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/23/image_18082025_00_23_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/23/image_18082025_00_23_24_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/00/23/image_18082025_00_23_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/00/22/image_18082025_00_23_04_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/00/22/image_18082025_00_22_54_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/00/22/image_18082025_00_22_44_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fae3ba518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae3ba518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae3ba518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:23:32.285303
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/23/image_18082025_00_23_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/23/image_18082025_00_23_24_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/00/23/image_18082025_00_23_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/00/22/image_18082025_00_23_04_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/00/22/image_18082025_00_22_54_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/00/22/image_18082025_00_22_44_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f856964a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f856964a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f856964a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:23:47.298721
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/23/image_18082025_00_23_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/23/image_18082025_00_23_24_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/00/23/image_18082025_00_23_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/00/22/image_18082025_00_23_04_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/00/22/image_18082025_00_22_54_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/00/22/image_18082025_00_22_44_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1985518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1985518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1985518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:24:02.887018
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/23/image_18082025_00_23_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/23/image_18082025_00_23_24_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/00/23/image_18082025_00_23_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/00/22/image_18082025_00_23_04_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/00/22/image_18082025_00_22_54_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/00/22/image_18082025_00_22_44_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa3ede518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3ede518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3ede518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:24:17.381610
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/24/image_18082025_00_24_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/24/image_18082025_00_24_34_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/00/24/image_18082025_00_24_24_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/00/24/image_18082025_00_24_14_9666.jpg', 2), ('/home/nano/Desktop/images/18082025/00/23/image_18082025_00_24_04_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/23/image_18082025_00_23_54_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8cbf7518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8cbf7518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8cbf7518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:24:32.398214
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/24/image_18082025_00_24_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/24/image_18082025_00_24_34_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/00/24/image_18082025_00_24_24_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/00/24/image_18082025_00_24_14_9666.jpg', 2), ('/home/nano/Desktop/images/18082025/00/23/image_18082025_00_24_04_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/23/image_18082025_00_23_54_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb46ed518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb46ed518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb46ed518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:24:47.394145
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/24/image_18082025_00_24_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/24/image_18082025_00_24_34_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/00/24/image_18082025_00_24_24_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/00/24/image_18082025_00_24_14_9666.jpg', 2), ('/home/nano/Desktop/images/18082025/00/23/image_18082025_00_24_04_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/23/image_18082025_00_23_54_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8dab34a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8dab34a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8dab34a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:25:03.036712
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/24/image_18082025_00_24_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/24/image_18082025_00_24_34_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/00/24/image_18082025_00_24_24_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/00/24/image_18082025_00_24_14_9666.jpg', 2), ('/home/nano/Desktop/images/18082025/00/23/image_18082025_00_24_04_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/23/image_18082025_00_23_54_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2048518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2048518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2048518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:25:17.509102
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/25/image_18082025_00_25_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/25/image_18082025_00_25_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/25/image_18082025_00_25_15_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/00/24/image_18082025_00_25_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/24/image_18082025_00_24_54_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/00/24/image_18082025_00_24_44_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa943518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa943518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa943518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:25:32.513511
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/25/image_18082025_00_25_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/25/image_18082025_00_25_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/25/image_18082025_00_25_15_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/00/24/image_18082025_00_25_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/24/image_18082025_00_24_54_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/00/24/image_18082025_00_24_44_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79197518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79197518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79197518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:25:47.527571
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/25/image_18082025_00_25_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/25/image_18082025_00_25_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/25/image_18082025_00_25_15_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/00/24/image_18082025_00_25_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/24/image_18082025_00_24_54_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/00/24/image_18082025_00_24_44_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94ff2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94ff2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94ff2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:26:02.862083
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/25/image_18082025_00_25_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/25/image_18082025_00_25_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/25/image_18082025_00_25_15_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/00/24/image_18082025_00_25_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/24/image_18082025_00_24_54_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/00/24/image_18082025_00_24_44_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8db46518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8db46518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8db46518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:26:17.645366
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/26/image_18082025_00_26_44_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/26/image_18082025_00_26_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/00/26/image_18082025_00_26_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/25/image_18082025_00_26_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/00/25/image_18082025_00_25_44_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/00/25/image_18082025_00_25_34_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c45f4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c45f4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c45f4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:26:32.641099
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/26/image_18082025_00_26_44_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/26/image_18082025_00_26_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/00/26/image_18082025_00_26_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/25/image_18082025_00_26_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/00/25/image_18082025_00_25_44_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/00/25/image_18082025_00_25_34_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7f4e4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7f4e4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7f4e4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:26:47.603985
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/26/image_18082025_00_26_44_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/26/image_18082025_00_26_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/00/26/image_18082025_00_26_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/25/image_18082025_00_26_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/00/25/image_18082025_00_25_44_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/00/25/image_18082025_00_25_34_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8dbf24a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8dbf24a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8dbf24a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:27:03.211101
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/26/image_18082025_00_26_44_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/26/image_18082025_00_26_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/00/26/image_18082025_00_26_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/25/image_18082025_00_26_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/00/25/image_18082025_00_25_44_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/00/25/image_18082025_00_25_34_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4a8c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4a8c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4a8c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:27:17.710615
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/27/image_18082025_00_27_24_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/00/27/image_18082025_00_27_14_10687.jpg', 2), ('/home/nano/Desktop/images/18082025/00/26/image_18082025_00_27_04_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/00/26/image_18082025_00_26_54_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/00/26/image_18082025_00_26_44_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/26/image_18082025_00_26_34_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88d36518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88d36518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88d36518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:27:32.695032
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/27/image_18082025_00_27_24_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/00/27/image_18082025_00_27_14_10687.jpg', 2), ('/home/nano/Desktop/images/18082025/00/26/image_18082025_00_27_04_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/00/26/image_18082025_00_26_54_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/00/26/image_18082025_00_26_44_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/26/image_18082025_00_26_34_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e9a4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e9a4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e9a4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:27:47.758343
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/27/image_18082025_00_27_24_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/00/27/image_18082025_00_27_14_10687.jpg', 2), ('/home/nano/Desktop/images/18082025/00/26/image_18082025_00_27_04_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/00/26/image_18082025_00_26_54_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/00/26/image_18082025_00_26_44_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/26/image_18082025_00_26_34_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a8a5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a8a5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a8a5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:28:02.234898
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/27/image_18082025_00_27_24_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/00/27/image_18082025_00_27_14_10687.jpg', 2), ('/home/nano/Desktop/images/18082025/00/26/image_18082025_00_27_04_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/00/26/image_18082025_00_26_54_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/00/26/image_18082025_00_26_44_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/26/image_18082025_00_26_34_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb57aa4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb57aa4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb57aa4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:28:16.870558
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/28/image_18082025_00_28_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/28/image_18082025_00_28_35_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/00/28/image_18082025_00_28_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/28/image_18082025_00_28_14_10671.jpg', 2), ('/home/nano/Desktop/images/18082025/00/27/image_18082025_00_28_04_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/00/27/image_18082025_00_27_44_10653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d488518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d488518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d488518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:28:31.862913
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/28/image_18082025_00_28_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/28/image_18082025_00_28_35_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/00/28/image_18082025_00_28_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/28/image_18082025_00_28_14_10671.jpg', 2), ('/home/nano/Desktop/images/18082025/00/27/image_18082025_00_28_04_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/00/27/image_18082025_00_27_44_10653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a500518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a500518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a500518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:28:46.878191
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/28/image_18082025_00_28_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/28/image_18082025_00_28_35_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/00/28/image_18082025_00_28_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/28/image_18082025_00_28_14_10671.jpg', 2), ('/home/nano/Desktop/images/18082025/00/27/image_18082025_00_28_04_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/00/27/image_18082025_00_27_44_10653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85d14518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85d14518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85d14518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:29:02.694544
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/28/image_18082025_00_28_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/28/image_18082025_00_28_35_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/00/28/image_18082025_00_28_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/28/image_18082025_00_28_14_10671.jpg', 2), ('/home/nano/Desktop/images/18082025/00/27/image_18082025_00_28_04_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/00/27/image_18082025_00_27_44_10653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78054518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78054518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78054518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:29:16.968977
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/29/image_18082025_00_29_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/29/image_18082025_00_29_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/00/29/image_18082025_00_29_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/29/image_18082025_00_29_14_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/00/28/image_18082025_00_29_04_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/00/28/image_18082025_00_28_54_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa434e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa434e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa434e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:29:32.001672
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/29/image_18082025_00_29_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/29/image_18082025_00_29_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/00/29/image_18082025_00_29_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/29/image_18082025_00_29_14_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/00/28/image_18082025_00_29_04_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/00/28/image_18082025_00_28_54_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2a94518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2a94518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2a94518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:29:46.972244
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/29/image_18082025_00_29_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/29/image_18082025_00_29_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/00/29/image_18082025_00_29_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/29/image_18082025_00_29_14_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/00/28/image_18082025_00_29_04_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/00/28/image_18082025_00_28_54_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8020f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8020f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8020f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:30:02.362625
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/29/image_18082025_00_29_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/29/image_18082025_00_29_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/00/29/image_18082025_00_29_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/29/image_18082025_00_29_14_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/00/28/image_18082025_00_29_04_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/00/28/image_18082025_00_28_54_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79daf518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79daf518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79daf518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:30:17.073982
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/30/image_18082025_00_30_44_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/00/30/image_18082025_00_30_24_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/00/30/image_18082025_00_30_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/00/29/image_18082025_00_30_04_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/00/29/image_18082025_00_29_54_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/29/image_18082025_00_29_44_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7fb79518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fb79518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fb79518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:30:32.080175
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/30/image_18082025_00_30_44_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/00/30/image_18082025_00_30_24_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/00/30/image_18082025_00_30_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/00/29/image_18082025_00_30_04_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/00/29/image_18082025_00_29_54_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/29/image_18082025_00_29_44_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8af03518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8af03518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8af03518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:30:47.090721
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/30/image_18082025_00_30_44_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/00/30/image_18082025_00_30_24_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/00/30/image_18082025_00_30_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/00/29/image_18082025_00_30_04_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/00/29/image_18082025_00_29_54_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/29/image_18082025_00_29_44_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f828c5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f828c5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f828c5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:31:02.678788
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/30/image_18082025_00_30_44_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/00/30/image_18082025_00_30_24_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/00/30/image_18082025_00_30_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/00/29/image_18082025_00_30_04_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/00/29/image_18082025_00_29_54_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/29/image_18082025_00_29_44_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d0e9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d0e9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d0e9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:31:17.165557
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/31/image_18082025_00_31_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/31/image_18082025_00_31_34_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/00/31/image_18082025_00_31_24_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/00/31/image_18082025_00_31_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/00/30/image_18082025_00_31_04_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/00/30/image_18082025_00_30_54_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f842bb518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f842bb518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f842bb518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:31:32.196384
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/31/image_18082025_00_31_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/31/image_18082025_00_31_34_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/00/31/image_18082025_00_31_24_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/00/31/image_18082025_00_31_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/00/30/image_18082025_00_31_04_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/00/30/image_18082025_00_30_54_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d3cf4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d3cf4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d3cf4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:31:47.173538
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/31/image_18082025_00_31_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/31/image_18082025_00_31_34_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/00/31/image_18082025_00_31_24_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/00/31/image_18082025_00_31_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/00/30/image_18082025_00_31_04_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/00/30/image_18082025_00_30_54_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f835a0518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f835a0518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f835a0518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:32:02.702075
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/31/image_18082025_00_31_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/31/image_18082025_00_31_34_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/00/31/image_18082025_00_31_24_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/00/31/image_18082025_00_31_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/00/30/image_18082025_00_31_04_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/00/30/image_18082025_00_30_54_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2489518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2489518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2489518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:32:17.307781
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/32/image_18082025_00_32_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/32/image_18082025_00_32_25_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/00/32/image_18082025_00_32_14_9682.jpg', 2), ('/home/nano/Desktop/images/18082025/00/31/image_18082025_00_32_04_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/00/31/image_18082025_00_31_55_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/31/image_18082025_00_31_44_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b049518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b049518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b049518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:32:32.296940
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/32/image_18082025_00_32_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/32/image_18082025_00_32_25_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/00/32/image_18082025_00_32_14_9682.jpg', 2), ('/home/nano/Desktop/images/18082025/00/31/image_18082025_00_32_04_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/00/31/image_18082025_00_31_55_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/31/image_18082025_00_31_44_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb568c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb568c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb568c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:32:47.284370
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/32/image_18082025_00_32_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/32/image_18082025_00_32_25_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/00/32/image_18082025_00_32_14_9682.jpg', 2), ('/home/nano/Desktop/images/18082025/00/31/image_18082025_00_32_04_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/00/31/image_18082025_00_31_55_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/31/image_18082025_00_31_44_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85a0e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85a0e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85a0e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:33:02.866319
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/32/image_18082025_00_32_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/32/image_18082025_00_32_25_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/00/32/image_18082025_00_32_14_9682.jpg', 2), ('/home/nano/Desktop/images/18082025/00/31/image_18082025_00_32_04_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/00/31/image_18082025_00_31_55_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/31/image_18082025_00_31_44_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b38e4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b38e4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b38e4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:33:17.408956
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/33/image_18082025_00_33_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/33/image_18082025_00_33_24_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/00/33/image_18082025_00_33_14_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/00/32/image_18082025_00_33_04_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/00/32/image_18082025_00_32_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/32/image_18082025_00_32_34_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f271518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f271518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f271518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:33:32.391341
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/33/image_18082025_00_33_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/33/image_18082025_00_33_24_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/00/33/image_18082025_00_33_14_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/00/32/image_18082025_00_33_04_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/00/32/image_18082025_00_32_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/32/image_18082025_00_32_34_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5d60518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5d60518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5d60518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:33:47.405837
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/33/image_18082025_00_33_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/33/image_18082025_00_33_24_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/00/33/image_18082025_00_33_14_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/00/32/image_18082025_00_33_04_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/00/32/image_18082025_00_32_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/32/image_18082025_00_32_34_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7755f4e0>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7755f4e0>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7755f4e0>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:34:03.157699
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/33/image_18082025_00_33_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/33/image_18082025_00_33_24_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/00/33/image_18082025_00_33_14_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/00/32/image_18082025_00_33_04_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/00/32/image_18082025_00_32_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/32/image_18082025_00_32_34_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f80f3e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80f3e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80f3e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:34:17.615466
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/34/image_18082025_00_34_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/34/image_18082025_00_34_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/34/image_18082025_00_34_24_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/00/34/image_18082025_00_34_14_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/00/33/image_18082025_00_34_04_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/00/33/image_18082025_00_33_54_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5ae2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5ae2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5ae2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:34:32.600866
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/34/image_18082025_00_34_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/34/image_18082025_00_34_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/34/image_18082025_00_34_24_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/00/34/image_18082025_00_34_14_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/00/33/image_18082025_00_34_04_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/00/33/image_18082025_00_33_54_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5c89518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5c89518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5c89518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:34:47.546965
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/34/image_18082025_00_34_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/34/image_18082025_00_34_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/34/image_18082025_00_34_24_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/00/34/image_18082025_00_34_14_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/00/33/image_18082025_00_34_04_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/00/33/image_18082025_00_33_54_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa33ae518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa33ae518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa33ae518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:35:03.089923
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/34/image_18082025_00_34_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/34/image_18082025_00_34_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/34/image_18082025_00_34_24_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/00/34/image_18082025_00_34_14_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/00/33/image_18082025_00_34_04_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/00/33/image_18082025_00_33_54_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4060518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4060518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4060518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:35:17.665523
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/35/image_18082025_00_35_44_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/00/35/image_18082025_00_35_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/35/image_18082025_00_35_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/35/image_18082025_00_35_15_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/00/34/image_18082025_00_35_04_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/00/34/image_18082025_00_34_54_10665.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8d4b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8d4b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8d4b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:35:32.635696
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/35/image_18082025_00_35_44_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/00/35/image_18082025_00_35_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/35/image_18082025_00_35_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/35/image_18082025_00_35_15_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/00/34/image_18082025_00_35_04_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/00/34/image_18082025_00_34_54_10665.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7dedf518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7dedf518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7dedf518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:35:47.639626
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/35/image_18082025_00_35_44_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/00/35/image_18082025_00_35_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/35/image_18082025_00_35_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/35/image_18082025_00_35_15_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/00/34/image_18082025_00_35_04_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/00/34/image_18082025_00_34_54_10665.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79d3a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79d3a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79d3a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:36:03.145463
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/35/image_18082025_00_35_44_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/00/35/image_18082025_00_35_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/35/image_18082025_00_35_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/35/image_18082025_00_35_15_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/00/34/image_18082025_00_35_04_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/00/34/image_18082025_00_34_54_10665.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9dd304a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9dd304a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9dd304a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:36:17.728739
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/36/image_18082025_00_36_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/00/36/image_18082025_00_36_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/36/image_18082025_00_36_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/36/image_18082025_00_36_14_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/00/35/image_18082025_00_36_04_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/35/image_18082025_00_35_54_9650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f417518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f417518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f417518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:36:32.728122
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/36/image_18082025_00_36_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/00/36/image_18082025_00_36_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/36/image_18082025_00_36_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/36/image_18082025_00_36_14_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/00/35/image_18082025_00_36_04_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/35/image_18082025_00_35_54_9650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95ba4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95ba4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95ba4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:36:47.750721
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/36/image_18082025_00_36_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/00/36/image_18082025_00_36_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/36/image_18082025_00_36_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/36/image_18082025_00_36_14_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/00/35/image_18082025_00_36_04_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/35/image_18082025_00_35_54_9650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa679518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa679518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa679518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:37:02.274950
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/36/image_18082025_00_36_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/00/36/image_18082025_00_36_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/36/image_18082025_00_36_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/36/image_18082025_00_36_14_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/00/35/image_18082025_00_36_04_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/35/image_18082025_00_35_54_9650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad5a0518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad5a0518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad5a0518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:37:16.824872
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/37/image_18082025_00_37_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/00/37/image_18082025_00_37_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/37/image_18082025_00_37_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/36/image_18082025_00_36_54_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/00/36/image_18082025_00_36_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/00/36/image_18082025_00_36_34_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb613f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb613f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb613f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:37:31.825627
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/37/image_18082025_00_37_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/00/37/image_18082025_00_37_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/37/image_18082025_00_37_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/36/image_18082025_00_36_54_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/00/36/image_18082025_00_36_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/00/36/image_18082025_00_36_34_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89138518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89138518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89138518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:37:46.844992
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/37/image_18082025_00_37_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/00/37/image_18082025_00_37_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/37/image_18082025_00_37_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/36/image_18082025_00_36_54_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/00/36/image_18082025_00_36_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/00/36/image_18082025_00_36_34_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb1c72518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1c72518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1c72518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:38:02.268492
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/37/image_18082025_00_37_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/00/37/image_18082025_00_37_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/37/image_18082025_00_37_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/36/image_18082025_00_36_54_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/00/36/image_18082025_00_36_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/00/36/image_18082025_00_36_34_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fafeb6518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafeb6518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafeb6518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:38:16.948694
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/38/image_18082025_00_38_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/00/38/image_18082025_00_38_34_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/00/38/image_18082025_00_38_14_9678.jpg', 2), ('/home/nano/Desktop/images/18082025/00/37/image_18082025_00_38_05_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/00/37/image_18082025_00_37_54_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/00/37/image_18082025_00_37_44_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ee22518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ee22518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ee22518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:38:31.955394
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/38/image_18082025_00_38_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/00/38/image_18082025_00_38_34_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/00/38/image_18082025_00_38_14_9678.jpg', 2), ('/home/nano/Desktop/images/18082025/00/37/image_18082025_00_38_05_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/00/37/image_18082025_00_37_54_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/00/37/image_18082025_00_37_44_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5849518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5849518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5849518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:38:46.945620
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/38/image_18082025_00_38_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/00/38/image_18082025_00_38_34_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/00/38/image_18082025_00_38_14_9678.jpg', 2), ('/home/nano/Desktop/images/18082025/00/37/image_18082025_00_38_05_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/00/37/image_18082025_00_37_54_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/00/37/image_18082025_00_37_44_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d0a9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d0a9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d0a9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:39:02.876835
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/38/image_18082025_00_38_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/00/38/image_18082025_00_38_34_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/00/38/image_18082025_00_38_14_9678.jpg', 2), ('/home/nano/Desktop/images/18082025/00/37/image_18082025_00_38_05_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/00/37/image_18082025_00_37_54_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/00/37/image_18082025_00_37_44_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f950164a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f950164a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f950164a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:39:17.163845
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/39/image_18082025_00_39_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/39/image_18082025_00_39_34_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/00/39/image_18082025_00_39_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/39/image_18082025_00_39_14_9678.jpg', 2), ('/home/nano/Desktop/images/18082025/00/38/image_18082025_00_39_04_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/00/38/image_18082025_00_38_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f856e3518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f856e3518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f856e3518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:39:32.069794
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/39/image_18082025_00_39_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/39/image_18082025_00_39_34_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/00/39/image_18082025_00_39_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/39/image_18082025_00_39_14_9678.jpg', 2), ('/home/nano/Desktop/images/18082025/00/38/image_18082025_00_39_04_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/00/38/image_18082025_00_38_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d5b9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d5b9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d5b9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:39:47.094702
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/39/image_18082025_00_39_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/39/image_18082025_00_39_34_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/00/39/image_18082025_00_39_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/39/image_18082025_00_39_14_9678.jpg', 2), ('/home/nano/Desktop/images/18082025/00/38/image_18082025_00_39_04_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/00/38/image_18082025_00_38_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94522518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94522518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94522518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:40:02.587441
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/39/image_18082025_00_39_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/39/image_18082025_00_39_34_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/00/39/image_18082025_00_39_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/39/image_18082025_00_39_14_9678.jpg', 2), ('/home/nano/Desktop/images/18082025/00/38/image_18082025_00_39_04_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/00/38/image_18082025_00_38_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa61be518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa61be518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa61be518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:40:17.184083
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/40/image_18082025_00_40_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/00/40/image_18082025_00_40_34_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/00/40/image_18082025_00_40_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/40/image_18082025_00_40_14_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/00/39/image_18082025_00_40_04_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/00/39/image_18082025_00_39_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85dae518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85dae518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85dae518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:40:32.219428
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/40/image_18082025_00_40_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/00/40/image_18082025_00_40_34_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/00/40/image_18082025_00_40_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/40/image_18082025_00_40_14_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/00/39/image_18082025_00_40_04_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/00/39/image_18082025_00_39_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa79e9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa79e9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa79e9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:40:47.218420
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/40/image_18082025_00_40_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/00/40/image_18082025_00_40_34_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/00/40/image_18082025_00_40_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/40/image_18082025_00_40_14_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/00/39/image_18082025_00_40_04_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/00/39/image_18082025_00_39_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99b05518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99b05518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99b05518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:41:02.856817
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/40/image_18082025_00_40_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/00/40/image_18082025_00_40_34_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/00/40/image_18082025_00_40_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/40/image_18082025_00_40_14_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/00/39/image_18082025_00_40_04_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/00/39/image_18082025_00_39_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e9de4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e9de4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e9de4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:41:17.295691
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/41/image_18082025_00_41_44_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/00/41/image_18082025_00_41_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/41/image_18082025_00_41_24_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/00/41/image_18082025_00_41_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/00/40/image_18082025_00_41_04_10681.jpg', 2), ('/home/nano/Desktop/images/18082025/00/40/image_18082025_00_40_54_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f911e5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f911e5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f911e5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:41:32.322256
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/41/image_18082025_00_41_44_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/00/41/image_18082025_00_41_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/41/image_18082025_00_41_24_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/00/41/image_18082025_00_41_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/00/40/image_18082025_00_41_04_10681.jpg', 2), ('/home/nano/Desktop/images/18082025/00/40/image_18082025_00_40_54_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4c00518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4c00518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4c00518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:41:47.313210
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/41/image_18082025_00_41_44_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/00/41/image_18082025_00_41_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/41/image_18082025_00_41_24_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/00/41/image_18082025_00_41_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/00/40/image_18082025_00_41_04_10681.jpg', 2), ('/home/nano/Desktop/images/18082025/00/40/image_18082025_00_40_54_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4a9e4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4a9e4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4a9e4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:42:02.645040
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/41/image_18082025_00_41_44_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/00/41/image_18082025_00_41_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/41/image_18082025_00_41_24_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/00/41/image_18082025_00_41_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/00/40/image_18082025_00_41_04_10681.jpg', 2), ('/home/nano/Desktop/images/18082025/00/40/image_18082025_00_40_54_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f972ed518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f972ed518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f972ed518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:42:17.445171
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/42/image_18082025_00_42_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/42/image_18082025_00_42_34_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/00/42/image_18082025_00_42_24_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/00/42/image_18082025_00_42_14_9666.jpg', 2), ('/home/nano/Desktop/images/18082025/00/41/image_18082025_00_42_04_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/00/41/image_18082025_00_41_55_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa02db518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa02db518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa02db518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:42:32.438564
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/42/image_18082025_00_42_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/42/image_18082025_00_42_34_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/00/42/image_18082025_00_42_24_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/00/42/image_18082025_00_42_14_9666.jpg', 2), ('/home/nano/Desktop/images/18082025/00/41/image_18082025_00_42_04_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/00/41/image_18082025_00_41_55_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fafe89518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafe89518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafe89518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:42:47.390615
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/42/image_18082025_00_42_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/42/image_18082025_00_42_34_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/00/42/image_18082025_00_42_24_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/00/42/image_18082025_00_42_14_9666.jpg', 2), ('/home/nano/Desktop/images/18082025/00/41/image_18082025_00_42_04_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/00/41/image_18082025_00_41_55_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa38ef518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa38ef518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa38ef518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:43:02.917355
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/42/image_18082025_00_42_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/42/image_18082025_00_42_34_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/00/42/image_18082025_00_42_24_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/00/42/image_18082025_00_42_14_9666.jpg', 2), ('/home/nano/Desktop/images/18082025/00/41/image_18082025_00_42_04_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/00/41/image_18082025_00_41_55_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb11c9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb11c9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb11c9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:43:17.508030
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/43/image_18082025_00_43_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/43/image_18082025_00_43_34_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/00/43/image_18082025_00_43_24_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/00/43/image_18082025_00_43_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/00/42/image_18082025_00_43_04_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/00/42/image_18082025_00_42_54_10668.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81b5f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81b5f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81b5f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:43:32.509959
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/43/image_18082025_00_43_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/43/image_18082025_00_43_34_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/00/43/image_18082025_00_43_24_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/00/43/image_18082025_00_43_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/00/42/image_18082025_00_43_04_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/00/42/image_18082025_00_42_54_10668.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f989644a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f989644a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f989644a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:43:47.537049
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/43/image_18082025_00_43_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/43/image_18082025_00_43_34_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/00/43/image_18082025_00_43_24_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/00/43/image_18082025_00_43_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/00/42/image_18082025_00_43_04_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/00/42/image_18082025_00_42_54_10668.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f92eb3518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92eb3518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92eb3518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:44:03.075075
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/43/image_18082025_00_43_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/43/image_18082025_00_43_34_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/00/43/image_18082025_00_43_24_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/00/43/image_18082025_00_43_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/00/42/image_18082025_00_43_04_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/00/42/image_18082025_00_42_54_10668.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97a22550>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97a22550>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97a22550>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:44:17.648864
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/44/image_18082025_00_44_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/44/image_18082025_00_44_24_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/44/image_18082025_00_44_14_9666.jpg', 2), ('/home/nano/Desktop/images/18082025/00/43/image_18082025_00_44_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/43/image_18082025_00_43_54_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/43/image_18082025_00_43_44_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c59e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c59e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c59e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:44:32.652345
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/44/image_18082025_00_44_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/44/image_18082025_00_44_24_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/44/image_18082025_00_44_14_9666.jpg', 2), ('/home/nano/Desktop/images/18082025/00/43/image_18082025_00_44_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/43/image_18082025_00_43_54_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/43/image_18082025_00_43_44_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b072518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b072518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b072518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:44:47.634450
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/44/image_18082025_00_44_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/44/image_18082025_00_44_24_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/44/image_18082025_00_44_14_9666.jpg', 2), ('/home/nano/Desktop/images/18082025/00/43/image_18082025_00_44_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/43/image_18082025_00_43_54_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/43/image_18082025_00_43_44_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f356518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f356518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f356518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:45:03.032544
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/44/image_18082025_00_44_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/44/image_18082025_00_44_24_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/44/image_18082025_00_44_14_9666.jpg', 2), ('/home/nano/Desktop/images/18082025/00/43/image_18082025_00_44_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/43/image_18082025_00_43_54_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/43/image_18082025_00_43_44_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa02684a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa02684a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa02684a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:45:17.730556
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/45/image_18082025_00_45_45_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/00/45/image_18082025_00_45_34_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/00/45/image_18082025_00_45_24_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/45/image_18082025_00_45_14_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/00/44/image_18082025_00_44_54_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/00/44/image_18082025_00_44_44_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb58f4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb58f4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb58f4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:45:32.732441
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/45/image_18082025_00_45_45_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/00/45/image_18082025_00_45_34_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/00/45/image_18082025_00_45_24_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/45/image_18082025_00_45_14_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/00/44/image_18082025_00_44_54_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/00/44/image_18082025_00_44_44_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98676518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98676518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98676518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:45:47.736004
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/45/image_18082025_00_45_45_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/00/45/image_18082025_00_45_34_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/00/45/image_18082025_00_45_24_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/45/image_18082025_00_45_14_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/00/44/image_18082025_00_44_54_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/00/44/image_18082025_00_44_44_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa299d4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa299d4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa299d4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:46:02.123447
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/45/image_18082025_00_45_45_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/00/45/image_18082025_00_45_34_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/00/45/image_18082025_00_45_24_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/45/image_18082025_00_45_14_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/00/44/image_18082025_00_44_54_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/00/44/image_18082025_00_44_44_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f825764a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f825764a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f825764a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:46:16.838094
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/46/image_18082025_00_46_44_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/46/image_18082025_00_46_34_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/00/46/image_18082025_00_46_24_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/00/46/image_18082025_00_46_14_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/00/45/image_18082025_00_46_04_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/00/45/image_18082025_00_45_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f793e8518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f793e8518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f793e8518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:46:31.848115
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/46/image_18082025_00_46_44_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/46/image_18082025_00_46_34_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/00/46/image_18082025_00_46_24_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/00/46/image_18082025_00_46_14_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/00/45/image_18082025_00_46_04_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/00/45/image_18082025_00_45_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8604d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8604d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8604d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:46:46.833269
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/46/image_18082025_00_46_44_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/46/image_18082025_00_46_34_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/00/46/image_18082025_00_46_24_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/00/46/image_18082025_00_46_14_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/00/45/image_18082025_00_46_04_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/00/45/image_18082025_00_45_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa3049518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3049518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3049518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:47:02.464875
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/46/image_18082025_00_46_44_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/46/image_18082025_00_46_34_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/00/46/image_18082025_00_46_24_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/00/46/image_18082025_00_46_14_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/00/45/image_18082025_00_46_04_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/00/45/image_18082025_00_45_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c022518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c022518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c022518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:47:16.979754
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/47/image_18082025_00_47_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/47/image_18082025_00_47_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/47/image_18082025_00_47_14_10672.jpg', 2), ('/home/nano/Desktop/images/18082025/00/46/image_18082025_00_47_04_9666.jpg', 2), ('/home/nano/Desktop/images/18082025/00/46/image_18082025_00_46_54_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/46/image_18082025_00_46_44_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ed15518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ed15518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ed15518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:47:31.936972
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/47/image_18082025_00_47_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/47/image_18082025_00_47_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/47/image_18082025_00_47_14_10672.jpg', 2), ('/home/nano/Desktop/images/18082025/00/46/image_18082025_00_47_04_9666.jpg', 2), ('/home/nano/Desktop/images/18082025/00/46/image_18082025_00_46_54_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/46/image_18082025_00_46_44_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a1bf518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a1bf518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a1bf518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:47:46.921467
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/47/image_18082025_00_47_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/47/image_18082025_00_47_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/47/image_18082025_00_47_14_10672.jpg', 2), ('/home/nano/Desktop/images/18082025/00/46/image_18082025_00_47_04_9666.jpg', 2), ('/home/nano/Desktop/images/18082025/00/46/image_18082025_00_46_54_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/46/image_18082025_00_46_44_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3961518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3961518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3961518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:48:02.406665
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/47/image_18082025_00_47_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/47/image_18082025_00_47_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/47/image_18082025_00_47_14_10672.jpg', 2), ('/home/nano/Desktop/images/18082025/00/46/image_18082025_00_47_04_9666.jpg', 2), ('/home/nano/Desktop/images/18082025/00/46/image_18082025_00_46_54_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/46/image_18082025_00_46_44_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f785924a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f785924a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f785924a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:48:17.044182
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/48/image_18082025_00_48_44_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/00/48/image_18082025_00_48_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/48/image_18082025_00_48_14_10664.jpg', 2), ('/home/nano/Desktop/images/18082025/00/47/image_18082025_00_48_04_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/00/47/image_18082025_00_47_44_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/47/image_18082025_00_47_34_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ae2d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ae2d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ae2d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:48:32.042121
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/48/image_18082025_00_48_44_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/00/48/image_18082025_00_48_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/48/image_18082025_00_48_14_10664.jpg', 2), ('/home/nano/Desktop/images/18082025/00/47/image_18082025_00_48_04_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/00/47/image_18082025_00_47_44_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/47/image_18082025_00_47_34_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf81a4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf81a4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf81a4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:48:47.017132
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/48/image_18082025_00_48_44_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/00/48/image_18082025_00_48_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/48/image_18082025_00_48_14_10664.jpg', 2), ('/home/nano/Desktop/images/18082025/00/47/image_18082025_00_48_04_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/00/47/image_18082025_00_47_44_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/47/image_18082025_00_47_34_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4de6518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4de6518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4de6518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:49:02.944945
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/48/image_18082025_00_48_44_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/00/48/image_18082025_00_48_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/48/image_18082025_00_48_14_10664.jpg', 2), ('/home/nano/Desktop/images/18082025/00/47/image_18082025_00_48_04_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/00/47/image_18082025_00_47_44_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/47/image_18082025_00_47_34_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c15a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c15a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c15a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:49:17.138716
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/49/image_18082025_00_49_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/00/49/image_18082025_00_49_35_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/00/49/image_18082025_00_49_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/49/image_18082025_00_49_14_10672.jpg', 2), ('/home/nano/Desktop/images/18082025/00/48/image_18082025_00_49_04_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/00/48/image_18082025_00_48_54_9663.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8dc7b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8dc7b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8dc7b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:49:32.163023
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/49/image_18082025_00_49_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/00/49/image_18082025_00_49_35_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/00/49/image_18082025_00_49_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/49/image_18082025_00_49_14_10672.jpg', 2), ('/home/nano/Desktop/images/18082025/00/48/image_18082025_00_49_04_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/00/48/image_18082025_00_48_54_9663.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f915e7518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f915e7518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f915e7518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:49:47.116242
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/49/image_18082025_00_49_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/00/49/image_18082025_00_49_35_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/00/49/image_18082025_00_49_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/49/image_18082025_00_49_14_10672.jpg', 2), ('/home/nano/Desktop/images/18082025/00/48/image_18082025_00_49_04_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/00/48/image_18082025_00_48_54_9663.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89040518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89040518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89040518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:50:02.559588
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/49/image_18082025_00_49_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/00/49/image_18082025_00_49_35_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/00/49/image_18082025_00_49_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/49/image_18082025_00_49_14_10672.jpg', 2), ('/home/nano/Desktop/images/18082025/00/48/image_18082025_00_49_04_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/00/48/image_18082025_00_48_54_9663.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9057a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9057a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9057a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:50:17.231645
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/50/image_18082025_00_50_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/50/image_18082025_00_50_34_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/00/50/image_18082025_00_50_24_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/00/50/image_18082025_00_50_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/00/49/image_18082025_00_50_04_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/00/49/image_18082025_00_49_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fae589518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae589518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae589518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:50:32.248362
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/50/image_18082025_00_50_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/50/image_18082025_00_50_34_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/00/50/image_18082025_00_50_24_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/00/50/image_18082025_00_50_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/00/49/image_18082025_00_50_04_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/00/49/image_18082025_00_49_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f640518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f640518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f640518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:50:47.200376
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/50/image_18082025_00_50_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/50/image_18082025_00_50_34_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/00/50/image_18082025_00_50_24_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/00/50/image_18082025_00_50_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/00/49/image_18082025_00_50_04_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/00/49/image_18082025_00_49_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c3ec518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c3ec518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c3ec518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:51:02.750058
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/50/image_18082025_00_50_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/50/image_18082025_00_50_34_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/00/50/image_18082025_00_50_24_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/00/50/image_18082025_00_50_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/00/49/image_18082025_00_50_04_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/00/49/image_18082025_00_49_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95da9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95da9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95da9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:51:17.321168
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/51/image_18082025_00_51_44_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/00/51/image_18082025_00_51_34_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/00/51/image_18082025_00_51_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/00/50/image_18082025_00_51_04_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/00/50/image_18082025_00_50_54_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/50/image_18082025_00_50_44_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f865604a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f865604a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f865604a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:51:32.319247
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/51/image_18082025_00_51_44_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/00/51/image_18082025_00_51_34_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/00/51/image_18082025_00_51_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/00/50/image_18082025_00_51_04_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/00/50/image_18082025_00_50_54_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/50/image_18082025_00_50_44_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a69a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a69a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a69a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:51:47.326224
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/51/image_18082025_00_51_44_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/00/51/image_18082025_00_51_34_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/00/51/image_18082025_00_51_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/00/50/image_18082025_00_51_04_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/00/50/image_18082025_00_50_54_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/50/image_18082025_00_50_44_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4893518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4893518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4893518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:52:02.737851
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/51/image_18082025_00_51_44_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/00/51/image_18082025_00_51_34_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/00/51/image_18082025_00_51_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/00/50/image_18082025_00_51_04_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/00/50/image_18082025_00_50_54_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/50/image_18082025_00_50_44_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f884c4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f884c4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f884c4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:52:17.391703
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/52/image_18082025_00_52_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/52/image_18082025_00_52_34_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/00/52/image_18082025_00_52_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/00/52/image_18082025_00_52_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/00/51/image_18082025_00_52_04_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/00/51/image_18082025_00_51_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e9f8518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e9f8518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e9f8518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:52:32.437931
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/52/image_18082025_00_52_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/52/image_18082025_00_52_34_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/00/52/image_18082025_00_52_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/00/52/image_18082025_00_52_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/00/51/image_18082025_00_52_04_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/00/51/image_18082025_00_51_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b8db518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b8db518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b8db518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:52:47.440913
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/52/image_18082025_00_52_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/52/image_18082025_00_52_34_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/00/52/image_18082025_00_52_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/00/52/image_18082025_00_52_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/00/51/image_18082025_00_52_04_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/00/51/image_18082025_00_51_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9305e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9305e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9305e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:53:03.114714
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/52/image_18082025_00_52_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/00/52/image_18082025_00_52_34_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/00/52/image_18082025_00_52_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/00/52/image_18082025_00_52_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/00/51/image_18082025_00_52_04_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/00/51/image_18082025_00_51_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa9606518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9606518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9606518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:53:17.565650
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/53/image_18082025_00_53_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/53/image_18082025_00_53_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/00/53/image_18082025_00_53_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/53/image_18082025_00_53_14_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/00/52/image_18082025_00_53_04_10681.jpg', 2), ('/home/nano/Desktop/images/18082025/00/52/image_18082025_00_52_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab4bd518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab4bd518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab4bd518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:53:32.524076
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/53/image_18082025_00_53_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/53/image_18082025_00_53_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/00/53/image_18082025_00_53_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/53/image_18082025_00_53_14_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/00/52/image_18082025_00_53_04_10681.jpg', 2), ('/home/nano/Desktop/images/18082025/00/52/image_18082025_00_52_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9769a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9769a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9769a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:53:47.518628
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/53/image_18082025_00_53_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/53/image_18082025_00_53_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/00/53/image_18082025_00_53_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/53/image_18082025_00_53_14_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/00/52/image_18082025_00_53_04_10681.jpg', 2), ('/home/nano/Desktop/images/18082025/00/52/image_18082025_00_52_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f818d6518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f818d6518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f818d6518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:54:03.256447
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/53/image_18082025_00_53_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/53/image_18082025_00_53_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/00/53/image_18082025_00_53_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/00/53/image_18082025_00_53_14_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/00/52/image_18082025_00_53_04_10681.jpg', 2), ('/home/nano/Desktop/images/18082025/00/52/image_18082025_00_52_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f9704a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f9704a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f9704a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:54:17.659850
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/54/image_18082025_00_54_44_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/00/54/image_18082025_00_54_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/54/image_18082025_00_54_24_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/00/54/image_18082025_00_54_14_9666.jpg', 2), ('/home/nano/Desktop/images/18082025/00/53/image_18082025_00_54_04_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/00/53/image_18082025_00_53_54_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3a0a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3a0a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3a0a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:54:32.649656
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/54/image_18082025_00_54_44_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/00/54/image_18082025_00_54_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/54/image_18082025_00_54_24_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/00/54/image_18082025_00_54_14_9666.jpg', 2), ('/home/nano/Desktop/images/18082025/00/53/image_18082025_00_54_04_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/00/53/image_18082025_00_53_54_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8dded518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8dded518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8dded518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:54:47.653731
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/54/image_18082025_00_54_44_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/00/54/image_18082025_00_54_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/54/image_18082025_00_54_24_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/00/54/image_18082025_00_54_14_9666.jpg', 2), ('/home/nano/Desktop/images/18082025/00/53/image_18082025_00_54_04_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/00/53/image_18082025_00_53_54_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88373518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88373518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88373518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:55:03.292840
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/54/image_18082025_00_54_44_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/00/54/image_18082025_00_54_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/00/54/image_18082025_00_54_24_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/00/54/image_18082025_00_54_14_9666.jpg', 2), ('/home/nano/Desktop/images/18082025/00/53/image_18082025_00_54_04_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/00/53/image_18082025_00_53_54_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f788c5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f788c5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f788c5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:55:17.745612
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/55/image_18082025_00_55_34_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/00/55/image_18082025_00_55_24_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/00/55/image_18082025_00_55_14_9681.jpg', 2), ('/home/nano/Desktop/images/18082025/00/54/image_18082025_00_55_04_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/00/54/image_18082025_00_54_54_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/00/54/image_18082025_00_54_44_9656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa000518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa000518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa000518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:55:32.733861
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/55/image_18082025_00_55_34_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/00/55/image_18082025_00_55_24_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/00/55/image_18082025_00_55_14_9681.jpg', 2), ('/home/nano/Desktop/images/18082025/00/54/image_18082025_00_55_04_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/00/54/image_18082025_00_54_54_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/00/54/image_18082025_00_54_44_9656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fadcef518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fadcef518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fadcef518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:55:47.746024
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/55/image_18082025_00_55_34_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/00/55/image_18082025_00_55_24_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/00/55/image_18082025_00_55_14_9681.jpg', 2), ('/home/nano/Desktop/images/18082025/00/54/image_18082025_00_55_04_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/00/54/image_18082025_00_54_54_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/00/54/image_18082025_00_54_44_9656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9791a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9791a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9791a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:56:02.168023
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/55/image_18082025_00_55_34_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/00/55/image_18082025_00_55_24_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/00/55/image_18082025_00_55_14_9681.jpg', 2), ('/home/nano/Desktop/images/18082025/00/54/image_18082025_00_55_04_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/00/54/image_18082025_00_54_54_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/00/54/image_18082025_00_54_44_9656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb1998518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1998518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1998518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:56:16.882493
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/56/image_18082025_00_56_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/56/image_18082025_00_56_34_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/00/56/image_18082025_00_56_24_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/00/56/image_18082025_00_56_14_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/00/55/image_18082025_00_56_04_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/00/55/image_18082025_00_55_54_10691.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5f41518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5f41518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5f41518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:56:31.868547
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/56/image_18082025_00_56_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/56/image_18082025_00_56_34_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/00/56/image_18082025_00_56_24_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/00/56/image_18082025_00_56_14_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/00/55/image_18082025_00_56_04_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/00/55/image_18082025_00_55_54_10691.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fae79f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae79f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae79f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:56:46.837943
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/56/image_18082025_00_56_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/56/image_18082025_00_56_34_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/00/56/image_18082025_00_56_24_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/00/56/image_18082025_00_56_14_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/00/55/image_18082025_00_56_04_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/00/55/image_18082025_00_55_54_10691.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f92f2b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92f2b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92f2b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:57:02.315611
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/56/image_18082025_00_56_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/56/image_18082025_00_56_34_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/00/56/image_18082025_00_56_24_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/00/56/image_18082025_00_56_14_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/00/55/image_18082025_00_56_04_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/00/55/image_18082025_00_55_54_10691.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85933518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85933518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85933518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:57:16.958285
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/57/image_18082025_00_57_34_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/00/57/image_18082025_00_57_24_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/00/57/image_18082025_00_57_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/00/56/image_18082025_00_57_04_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/56/image_18082025_00_56_54_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/56/image_18082025_00_56_44_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa74eb518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa74eb518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa74eb518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:57:31.957941
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/57/image_18082025_00_57_34_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/00/57/image_18082025_00_57_24_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/00/57/image_18082025_00_57_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/00/56/image_18082025_00_57_04_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/56/image_18082025_00_56_54_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/56/image_18082025_00_56_44_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f791f2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f791f2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f791f2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:57:46.932940
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/57/image_18082025_00_57_34_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/00/57/image_18082025_00_57_24_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/00/57/image_18082025_00_57_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/00/56/image_18082025_00_57_04_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/56/image_18082025_00_56_54_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/56/image_18082025_00_56_44_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5281518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5281518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5281518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:58:02.394762
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/57/image_18082025_00_57_34_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/00/57/image_18082025_00_57_24_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/00/57/image_18082025_00_57_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/00/56/image_18082025_00_57_04_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/56/image_18082025_00_56_54_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/56/image_18082025_00_56_44_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94cfa518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94cfa518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94cfa518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:59:02.883281
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/58/image_18082025_00_58_45_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/00/58/image_18082025_00_58_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/00/58/image_18082025_00_58_24_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/00/58/image_18082025_00_58_14_9665.jpg', 2), ('/home/nano/Desktop/images/18082025/00/57/image_18082025_00_58_04_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/00/57/image_18082025_00_57_54_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f850a64a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f850a64a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f850a64a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:59:17.131829
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/59/image_18082025_00_59_44_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/59/image_18082025_00_59_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/59/image_18082025_00_59_24_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/00/59/image_18082025_00_59_14_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/00/58/image_18082025_00_59_04_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/00/58/image_18082025_00_58_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94c89518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94c89518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94c89518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:59:32.088203
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/59/image_18082025_00_59_44_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/59/image_18082025_00_59_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/59/image_18082025_00_59_24_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/00/59/image_18082025_00_59_14_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/00/58/image_18082025_00_59_04_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/00/58/image_18082025_00_58_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88012518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88012518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88012518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 00:59:47.120479
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/00/59/image_18082025_00_59_44_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/59/image_18082025_00_59_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/59/image_18082025_00_59_24_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/00/59/image_18082025_00_59_14_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/00/58/image_18082025_00_59_04_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/00/58/image_18082025_00_58_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a823518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a823518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a823518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:00:02.659254
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/00/image_18082025_01_00_54_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/00/59/image_18082025_00_59_44_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/00/59/image_18082025_00_59_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/00/59/image_18082025_00_59_24_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/00/59/image_18082025_00_59_14_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/00/58/image_18082025_00_59_04_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d878518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d878518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d878518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:00:17.227736
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/00/image_18082025_01_00_54_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/01/00/image_18082025_01_00_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/01/00/image_18082025_01_00_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/00/image_18082025_01_00_14_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/00/59/image_18082025_01_00_04_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/00/59/image_18082025_00_59_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa37af518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa37af518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa37af518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:00:32.221000
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/00/image_18082025_01_00_54_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/01/00/image_18082025_01_00_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/01/00/image_18082025_01_00_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/00/image_18082025_01_00_14_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/00/59/image_18082025_01_00_04_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/00/59/image_18082025_00_59_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4065518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4065518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4065518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:00:47.210146
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/00/image_18082025_01_00_54_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/01/00/image_18082025_01_00_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/01/00/image_18082025_01_00_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/00/image_18082025_01_00_14_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/00/59/image_18082025_01_00_04_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/00/59/image_18082025_00_59_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb108f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb108f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb108f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:01:02.718456
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/00/image_18082025_01_00_54_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/01/00/image_18082025_01_00_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/01/00/image_18082025_01_00_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/00/image_18082025_01_00_14_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/00/59/image_18082025_01_00_04_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/00/59/image_18082025_00_59_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0947518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0947518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0947518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:01:17.293804
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/01/image_18082025_01_01_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/01/image_18082025_01_01_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/01/image_18082025_01_01_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/01/image_18082025_01_01_14_10685.jpg', 2), ('/home/nano/Desktop/images/18082025/01/00/image_18082025_01_01_04_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/00/image_18082025_01_00_54_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7db67518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7db67518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7db67518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:01:32.313135
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/01/image_18082025_01_01_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/01/image_18082025_01_01_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/01/image_18082025_01_01_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/01/image_18082025_01_01_14_10685.jpg', 2), ('/home/nano/Desktop/images/18082025/01/00/image_18082025_01_01_04_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/00/image_18082025_01_00_54_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb03f94a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb03f94a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb03f94a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:01:47.345191
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/01/image_18082025_01_01_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/01/image_18082025_01_01_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/01/image_18082025_01_01_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/01/image_18082025_01_01_14_10685.jpg', 2), ('/home/nano/Desktop/images/18082025/01/00/image_18082025_01_01_04_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/00/image_18082025_01_00_54_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f894e9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f894e9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f894e9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:02:02.756946
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/01/image_18082025_01_01_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/01/image_18082025_01_01_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/01/image_18082025_01_01_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/01/image_18082025_01_01_14_10685.jpg', 2), ('/home/nano/Desktop/images/18082025/01/00/image_18082025_01_01_04_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/00/image_18082025_01_00_54_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad3c3518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad3c3518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad3c3518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:02:17.450015
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/02/image_18082025_01_02_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/02/image_18082025_01_02_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/02/image_18082025_01_02_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/02/image_18082025_01_02_14_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/01/01/image_18082025_01_02_04_10657.jpg', 2), ('/home/nano/Desktop/images/18082025/01/01/image_18082025_01_01_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f855d4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f855d4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f855d4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:02:32.479841
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/02/image_18082025_01_02_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/02/image_18082025_01_02_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/02/image_18082025_01_02_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/02/image_18082025_01_02_14_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/01/01/image_18082025_01_02_04_10657.jpg', 2), ('/home/nano/Desktop/images/18082025/01/01/image_18082025_01_01_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d3ec4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d3ec4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d3ec4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:02:47.426230
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/02/image_18082025_01_02_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/02/image_18082025_01_02_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/02/image_18082025_01_02_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/02/image_18082025_01_02_14_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/01/01/image_18082025_01_02_04_10657.jpg', 2), ('/home/nano/Desktop/images/18082025/01/01/image_18082025_01_01_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87cf5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87cf5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87cf5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:03:03.048057
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/02/image_18082025_01_02_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/02/image_18082025_01_02_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/02/image_18082025_01_02_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/02/image_18082025_01_02_14_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/01/01/image_18082025_01_02_04_10657.jpg', 2), ('/home/nano/Desktop/images/18082025/01/01/image_18082025_01_01_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79bbb518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79bbb518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79bbb518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:03:17.549743
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/03/image_18082025_01_03_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/03/image_18082025_01_03_34_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/01/03/image_18082025_01_03_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/03/image_18082025_01_03_14_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/01/02/image_18082025_01_03_04_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/01/02/image_18082025_01_02_54_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f8a14a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f8a14a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f8a14a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:03:32.549087
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/03/image_18082025_01_03_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/03/image_18082025_01_03_34_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/01/03/image_18082025_01_03_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/03/image_18082025_01_03_14_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/01/02/image_18082025_01_03_04_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/01/02/image_18082025_01_02_54_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6e4d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6e4d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6e4d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:03:47.560289
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/03/image_18082025_01_03_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/03/image_18082025_01_03_34_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/01/03/image_18082025_01_03_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/03/image_18082025_01_03_14_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/01/02/image_18082025_01_03_04_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/01/02/image_18082025_01_02_54_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8047b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8047b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8047b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:04:03.160813
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/03/image_18082025_01_03_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/03/image_18082025_01_03_34_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/01/03/image_18082025_01_03_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/03/image_18082025_01_03_14_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/01/02/image_18082025_01_03_04_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/01/02/image_18082025_01_02_54_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fadde7518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fadde7518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fadde7518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:04:17.642018
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/04/image_18082025_01_04_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/04/image_18082025_01_04_34_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/01/04/image_18082025_01_04_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/01/04/image_18082025_01_04_14_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/01/03/image_18082025_01_04_04_10664.jpg', 2), ('/home/nano/Desktop/images/18082025/01/03/image_18082025_01_03_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa045e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa045e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa045e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:04:32.639830
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/04/image_18082025_01_04_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/04/image_18082025_01_04_34_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/01/04/image_18082025_01_04_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/01/04/image_18082025_01_04_14_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/01/03/image_18082025_01_04_04_10664.jpg', 2), ('/home/nano/Desktop/images/18082025/01/03/image_18082025_01_03_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c8814a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c8814a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c8814a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:04:47.657852
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/04/image_18082025_01_04_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/04/image_18082025_01_04_34_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/01/04/image_18082025_01_04_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/01/04/image_18082025_01_04_14_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/01/03/image_18082025_01_04_04_10664.jpg', 2), ('/home/nano/Desktop/images/18082025/01/03/image_18082025_01_03_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81d7a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81d7a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81d7a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:05:03.105654
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/04/image_18082025_01_04_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/04/image_18082025_01_04_34_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/01/04/image_18082025_01_04_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/01/04/image_18082025_01_04_14_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/01/03/image_18082025_01_04_04_10664.jpg', 2), ('/home/nano/Desktop/images/18082025/01/03/image_18082025_01_03_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e8fc518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e8fc518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e8fc518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:05:17.759662
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/05/image_18082025_01_05_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/05/image_18082025_01_05_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/05/image_18082025_01_05_25_10662.jpg', 2), ('/home/nano/Desktop/images/18082025/01/05/image_18082025_01_05_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/01/04/image_18082025_01_05_04_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/01/04/image_18082025_01_04_55_10669.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94894518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94894518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94894518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:05:32.778943
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/05/image_18082025_01_05_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/05/image_18082025_01_05_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/05/image_18082025_01_05_25_10662.jpg', 2), ('/home/nano/Desktop/images/18082025/01/05/image_18082025_01_05_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/01/04/image_18082025_01_05_04_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/01/04/image_18082025_01_04_55_10669.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f790e2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f790e2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f790e2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:05:47.735956
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/05/image_18082025_01_05_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/05/image_18082025_01_05_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/05/image_18082025_01_05_25_10662.jpg', 2), ('/home/nano/Desktop/images/18082025/01/05/image_18082025_01_05_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/01/04/image_18082025_01_05_04_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/01/04/image_18082025_01_04_55_10669.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f6024a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f6024a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f6024a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:06:02.217635
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/05/image_18082025_01_05_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/05/image_18082025_01_05_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/05/image_18082025_01_05_25_10662.jpg', 2), ('/home/nano/Desktop/images/18082025/01/05/image_18082025_01_05_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/01/04/image_18082025_01_05_04_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/01/04/image_18082025_01_04_55_10669.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb19c3518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb19c3518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb19c3518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:06:16.818903
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/06/image_18082025_01_06_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/06/image_18082025_01_06_34_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/01/06/image_18082025_01_06_24_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/06/image_18082025_01_06_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/01/05/image_18082025_01_06_04_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/05/image_18082025_01_05_54_10647.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf080518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf080518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf080518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:06:31.850426
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/06/image_18082025_01_06_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/06/image_18082025_01_06_34_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/01/06/image_18082025_01_06_24_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/06/image_18082025_01_06_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/01/05/image_18082025_01_06_04_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/05/image_18082025_01_05_54_10647.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97e174a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97e174a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97e174a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:06:46.826841
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/06/image_18082025_01_06_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/06/image_18082025_01_06_34_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/01/06/image_18082025_01_06_24_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/06/image_18082025_01_06_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/01/05/image_18082025_01_06_04_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/05/image_18082025_01_05_54_10647.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb33dc518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb33dc518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb33dc518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:07:02.361801
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/06/image_18082025_01_06_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/06/image_18082025_01_06_34_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/01/06/image_18082025_01_06_24_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/06/image_18082025_01_06_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/01/05/image_18082025_01_06_04_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/05/image_18082025_01_05_54_10647.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8155b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8155b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8155b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:07:16.958072
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/07/image_18082025_01_07_44_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/01/07/image_18082025_01_07_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/07/image_18082025_01_07_24_10657.jpg', 2), ('/home/nano/Desktop/images/18082025/01/07/image_18082025_01_07_14_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/01/06/image_18082025_01_07_04_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/01/06/image_18082025_01_06_54_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ddd6518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ddd6518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ddd6518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:07:31.939876
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/07/image_18082025_01_07_44_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/01/07/image_18082025_01_07_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/07/image_18082025_01_07_24_10657.jpg', 2), ('/home/nano/Desktop/images/18082025/01/07/image_18082025_01_07_14_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/01/06/image_18082025_01_07_04_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/01/06/image_18082025_01_06_54_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90250518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90250518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90250518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:07:46.951449
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/07/image_18082025_01_07_44_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/01/07/image_18082025_01_07_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/07/image_18082025_01_07_24_10657.jpg', 2), ('/home/nano/Desktop/images/18082025/01/07/image_18082025_01_07_14_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/01/06/image_18082025_01_07_04_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/01/06/image_18082025_01_06_54_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb594b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb594b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb594b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:08:02.318456
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/07/image_18082025_01_07_44_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/01/07/image_18082025_01_07_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/07/image_18082025_01_07_24_10657.jpg', 2), ('/home/nano/Desktop/images/18082025/01/07/image_18082025_01_07_14_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/01/06/image_18082025_01_07_04_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/01/06/image_18082025_01_06_54_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d4a1518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d4a1518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d4a1518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:08:17.023285
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/08/image_18082025_01_08_45_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/01/08/image_18082025_01_08_34_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/01/08/image_18082025_01_08_14_9681.jpg', 2), ('/home/nano/Desktop/images/18082025/01/07/image_18082025_01_08_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/01/07/image_18082025_01_07_54_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/07/image_18082025_01_07_44_9655.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88c3e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88c3e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88c3e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:08:32.080197
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/08/image_18082025_01_08_45_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/01/08/image_18082025_01_08_34_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/01/08/image_18082025_01_08_14_9681.jpg', 2), ('/home/nano/Desktop/images/18082025/01/07/image_18082025_01_08_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/01/07/image_18082025_01_07_54_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/07/image_18082025_01_07_44_9655.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b010518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b010518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b010518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:08:47.019458
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/08/image_18082025_01_08_45_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/01/08/image_18082025_01_08_34_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/01/08/image_18082025_01_08_14_9681.jpg', 2), ('/home/nano/Desktop/images/18082025/01/07/image_18082025_01_08_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/01/07/image_18082025_01_07_54_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/07/image_18082025_01_07_44_9655.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa210a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa210a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa210a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:09:02.988531
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/08/image_18082025_01_08_45_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/01/08/image_18082025_01_08_34_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/01/08/image_18082025_01_08_14_9681.jpg', 2), ('/home/nano/Desktop/images/18082025/01/07/image_18082025_01_08_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/01/07/image_18082025_01_07_54_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/07/image_18082025_01_07_44_9655.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb1a02518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1a02518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1a02518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:09:17.135462
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/09/image_18082025_01_09_34_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/01/09/image_18082025_01_09_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/08/image_18082025_01_09_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/08/image_18082025_01_08_54_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/08/image_18082025_01_08_45_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/01/08/image_18082025_01_08_34_9656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4d6e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4d6e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4d6e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:09:32.110679
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/09/image_18082025_01_09_34_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/01/09/image_18082025_01_09_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/08/image_18082025_01_09_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/08/image_18082025_01_08_54_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/08/image_18082025_01_08_45_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/01/08/image_18082025_01_08_34_9656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e193518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e193518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e193518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:09:47.143113
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/09/image_18082025_01_09_34_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/01/09/image_18082025_01_09_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/08/image_18082025_01_09_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/08/image_18082025_01_08_54_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/08/image_18082025_01_08_45_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/01/08/image_18082025_01_08_34_9656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f832cc518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f832cc518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f832cc518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:10:02.670617
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/09/image_18082025_01_09_34_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/01/09/image_18082025_01_09_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/08/image_18082025_01_09_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/08/image_18082025_01_08_54_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/08/image_18082025_01_08_45_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/01/08/image_18082025_01_08_34_9656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f0b74a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f0b74a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f0b74a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:10:17.221598
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/10/image_18082025_01_10_44_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/01/10/image_18082025_01_10_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/10/image_18082025_01_10_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/10/image_18082025_01_10_14_10672.jpg', 2), ('/home/nano/Desktop/images/18082025/01/09/image_18082025_01_10_04_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/01/09/image_18082025_01_09_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83e54518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83e54518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83e54518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:10:32.254569
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/10/image_18082025_01_10_44_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/01/10/image_18082025_01_10_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/10/image_18082025_01_10_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/10/image_18082025_01_10_14_10672.jpg', 2), ('/home/nano/Desktop/images/18082025/01/09/image_18082025_01_10_04_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/01/09/image_18082025_01_09_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90fce518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90fce518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90fce518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:10:47.221894
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/10/image_18082025_01_10_44_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/01/10/image_18082025_01_10_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/10/image_18082025_01_10_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/10/image_18082025_01_10_14_10672.jpg', 2), ('/home/nano/Desktop/images/18082025/01/09/image_18082025_01_10_04_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/01/09/image_18082025_01_09_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb04d14a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb04d14a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb04d14a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:11:02.833322
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/10/image_18082025_01_10_44_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/01/10/image_18082025_01_10_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/10/image_18082025_01_10_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/10/image_18082025_01_10_14_10672.jpg', 2), ('/home/nano/Desktop/images/18082025/01/09/image_18082025_01_10_04_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/01/09/image_18082025_01_09_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa3d13518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3d13518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3d13518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:11:17.343178
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/11/image_18082025_01_11_44_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/01/11/image_18082025_01_11_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/11/image_18082025_01_11_24_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/01/11/image_18082025_01_11_14_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/01/10/image_18082025_01_11_04_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/01/10/image_18082025_01_10_54_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8dba8518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8dba8518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8dba8518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:11:32.407751
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/11/image_18082025_01_11_44_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/01/11/image_18082025_01_11_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/11/image_18082025_01_11_24_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/01/11/image_18082025_01_11_14_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/01/10/image_18082025_01_11_04_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/01/10/image_18082025_01_10_54_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81166518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81166518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81166518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:11:47.335883
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/11/image_18082025_01_11_44_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/01/11/image_18082025_01_11_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/11/image_18082025_01_11_24_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/01/11/image_18082025_01_11_14_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/01/10/image_18082025_01_11_04_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/01/10/image_18082025_01_10_54_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f888b8518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f888b8518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f888b8518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:12:02.797867
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/11/image_18082025_01_11_44_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/01/11/image_18082025_01_11_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/11/image_18082025_01_11_24_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/01/11/image_18082025_01_11_14_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/01/10/image_18082025_01_11_04_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/01/10/image_18082025_01_10_54_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa88cb518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa88cb518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa88cb518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:12:17.455848
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/12/image_18082025_01_12_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/12/image_18082025_01_12_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/12/image_18082025_01_12_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/12/image_18082025_01_12_14_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/01/11/image_18082025_01_12_04_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/01/11/image_18082025_01_11_54_9655.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97f24518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97f24518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97f24518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:12:32.433930
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/12/image_18082025_01_12_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/12/image_18082025_01_12_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/12/image_18082025_01_12_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/12/image_18082025_01_12_14_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/01/11/image_18082025_01_12_04_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/01/11/image_18082025_01_11_54_9655.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb558c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb558c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb558c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:12:47.436705
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/12/image_18082025_01_12_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/12/image_18082025_01_12_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/12/image_18082025_01_12_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/12/image_18082025_01_12_14_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/01/11/image_18082025_01_12_04_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/01/11/image_18082025_01_11_54_9655.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa97d5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa97d5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa97d5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:13:03.022349
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/12/image_18082025_01_12_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/12/image_18082025_01_12_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/12/image_18082025_01_12_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/12/image_18082025_01_12_14_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/01/11/image_18082025_01_12_04_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/01/11/image_18082025_01_11_54_9655.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82426550>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82426550>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82426550>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:13:17.535112
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/13/image_18082025_01_13_34_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/01/13/image_18082025_01_13_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/13/image_18082025_01_13_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/01/12/image_18082025_01_13_04_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/01/12/image_18082025_01_12_54_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/12/image_18082025_01_12_44_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8629e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8629e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8629e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:13:32.520732
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/13/image_18082025_01_13_34_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/01/13/image_18082025_01_13_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/13/image_18082025_01_13_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/01/12/image_18082025_01_13_04_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/01/12/image_18082025_01_12_54_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/12/image_18082025_01_12_44_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b6f5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b6f5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b6f5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:13:47.542223
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/13/image_18082025_01_13_34_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/01/13/image_18082025_01_13_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/13/image_18082025_01_13_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/01/12/image_18082025_01_13_04_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/01/12/image_18082025_01_12_54_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/12/image_18082025_01_12_44_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88abf4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88abf4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88abf4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:14:03.271836
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/13/image_18082025_01_13_34_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/01/13/image_18082025_01_13_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/13/image_18082025_01_13_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/01/12/image_18082025_01_13_04_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/01/12/image_18082025_01_12_54_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/12/image_18082025_01_12_44_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa66df518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa66df518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa66df518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:14:17.643502
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/14/image_18082025_01_14_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/14/image_18082025_01_14_34_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/01/14/image_18082025_01_14_24_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/01/14/image_18082025_01_14_14_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/01/13/image_18082025_01_14_04_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/01/13/image_18082025_01_13_44_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f956e7518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f956e7518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f956e7518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:14:32.641772
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/14/image_18082025_01_14_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/14/image_18082025_01_14_34_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/01/14/image_18082025_01_14_24_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/01/14/image_18082025_01_14_14_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/01/13/image_18082025_01_14_04_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/01/13/image_18082025_01_13_44_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98549518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98549518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98549518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:14:47.642442
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/14/image_18082025_01_14_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/14/image_18082025_01_14_34_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/01/14/image_18082025_01_14_24_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/01/14/image_18082025_01_14_14_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/01/13/image_18082025_01_14_04_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/01/13/image_18082025_01_13_44_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b4bc518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b4bc518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b4bc518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:15:03.173983
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/14/image_18082025_01_14_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/14/image_18082025_01_14_34_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/01/14/image_18082025_01_14_24_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/01/14/image_18082025_01_14_14_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/01/13/image_18082025_01_14_04_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/01/13/image_18082025_01_13_44_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7cfa3518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7cfa3518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7cfa3518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:15:17.835962
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/15/image_18082025_01_15_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/15/image_18082025_01_15_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/15/image_18082025_01_15_25_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/15/image_18082025_01_15_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/01/14/image_18082025_01_15_04_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/01/14/image_18082025_01_14_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6a53518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6a53518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6a53518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:15:32.748056
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/15/image_18082025_01_15_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/15/image_18082025_01_15_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/15/image_18082025_01_15_25_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/15/image_18082025_01_15_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/01/14/image_18082025_01_15_04_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/01/14/image_18082025_01_14_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f92e26518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92e26518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92e26518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:15:47.748347
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/15/image_18082025_01_15_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/15/image_18082025_01_15_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/15/image_18082025_01_15_25_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/15/image_18082025_01_15_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/01/14/image_18082025_01_15_04_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/01/14/image_18082025_01_14_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c571518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c571518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c571518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:16:02.234482
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/15/image_18082025_01_15_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/15/image_18082025_01_15_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/15/image_18082025_01_15_25_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/15/image_18082025_01_15_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/01/14/image_18082025_01_15_04_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/01/14/image_18082025_01_14_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa71af518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa71af518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa71af518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:16:16.875344
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/16/image_18082025_01_16_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/01/16/image_18082025_01_16_34_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/01/16/image_18082025_01_16_24_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/01/16/image_18082025_01_16_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/01/15/image_18082025_01_16_04_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/01/15/image_18082025_01_15_54_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f957c2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f957c2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f957c2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:16:31.869465
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/16/image_18082025_01_16_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/01/16/image_18082025_01_16_34_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/01/16/image_18082025_01_16_24_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/01/16/image_18082025_01_16_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/01/15/image_18082025_01_16_04_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/01/15/image_18082025_01_15_54_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99bbd4e0>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99bbd4e0>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99bbd4e0>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:16:46.866502
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/16/image_18082025_01_16_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/01/16/image_18082025_01_16_34_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/01/16/image_18082025_01_16_24_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/01/16/image_18082025_01_16_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/01/15/image_18082025_01_16_04_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/01/15/image_18082025_01_15_54_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9323f4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9323f4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9323f4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:17:02.411694
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/16/image_18082025_01_16_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/01/16/image_18082025_01_16_34_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/01/16/image_18082025_01_16_24_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/01/16/image_18082025_01_16_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/01/15/image_18082025_01_16_04_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/01/15/image_18082025_01_15_54_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85a524a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85a524a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85a524a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:17:16.976423
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/17/image_18082025_01_17_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/17/image_18082025_01_17_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/17/image_18082025_01_17_24_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/17/image_18082025_01_17_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/01/16/image_18082025_01_17_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/16/image_18082025_01_16_54_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85ff0518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85ff0518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85ff0518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:17:31.992404
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/17/image_18082025_01_17_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/17/image_18082025_01_17_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/17/image_18082025_01_17_24_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/17/image_18082025_01_17_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/01/16/image_18082025_01_17_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/16/image_18082025_01_16_54_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ad7e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ad7e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ad7e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:17:46.969184
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/17/image_18082025_01_17_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/17/image_18082025_01_17_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/17/image_18082025_01_17_24_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/17/image_18082025_01_17_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/01/16/image_18082025_01_17_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/16/image_18082025_01_16_54_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7fcdc518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fcdc518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fcdc518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:18:02.445483
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/17/image_18082025_01_17_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/17/image_18082025_01_17_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/17/image_18082025_01_17_24_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/17/image_18082025_01_17_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/01/16/image_18082025_01_17_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/16/image_18082025_01_16_54_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b31b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b31b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b31b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:18:17.047692
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/18/image_18082025_01_18_45_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/18/image_18082025_01_18_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/18/image_18082025_01_18_24_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/18/image_18082025_01_18_14_9665.jpg', 2), ('/home/nano/Desktop/images/18082025/01/17/image_18082025_01_18_04_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/01/17/image_18082025_01_17_54_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d37d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d37d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d37d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:18:32.066315
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/18/image_18082025_01_18_45_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/18/image_18082025_01_18_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/18/image_18082025_01_18_24_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/18/image_18082025_01_18_14_9665.jpg', 2), ('/home/nano/Desktop/images/18082025/01/17/image_18082025_01_18_04_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/01/17/image_18082025_01_17_54_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb453b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb453b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb453b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:18:47.066590
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/18/image_18082025_01_18_45_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/18/image_18082025_01_18_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/18/image_18082025_01_18_24_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/18/image_18082025_01_18_14_9665.jpg', 2), ('/home/nano/Desktop/images/18082025/01/17/image_18082025_01_18_04_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/01/17/image_18082025_01_17_54_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad01e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad01e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad01e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:19:02.820804
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/18/image_18082025_01_18_45_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/18/image_18082025_01_18_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/18/image_18082025_01_18_24_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/18/image_18082025_01_18_14_9665.jpg', 2), ('/home/nano/Desktop/images/18082025/01/17/image_18082025_01_18_04_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/01/17/image_18082025_01_17_54_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84c1f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84c1f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84c1f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:19:17.166960
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/19/image_18082025_01_19_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/19/image_18082025_01_19_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/19/image_18082025_01_19_24_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/01/19/image_18082025_01_19_14_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/01/18/image_18082025_01_19_04_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/01/18/image_18082025_01_18_54_9656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f24b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f24b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f24b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:19:32.158024
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/19/image_18082025_01_19_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/19/image_18082025_01_19_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/19/image_18082025_01_19_24_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/01/19/image_18082025_01_19_14_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/01/18/image_18082025_01_19_04_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/01/18/image_18082025_01_18_54_9656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90c2e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90c2e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90c2e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:19:47.177784
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/19/image_18082025_01_19_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/19/image_18082025_01_19_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/19/image_18082025_01_19_24_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/01/19/image_18082025_01_19_14_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/01/18/image_18082025_01_19_04_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/01/18/image_18082025_01_18_54_9656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb12b6518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb12b6518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb12b6518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:20:02.617769
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/19/image_18082025_01_19_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/19/image_18082025_01_19_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/19/image_18082025_01_19_24_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/01/19/image_18082025_01_19_14_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/01/18/image_18082025_01_19_04_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/01/18/image_18082025_01_18_54_9656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98ec9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98ec9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98ec9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:20:17.257362
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/20/image_18082025_01_20_44_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/01/20/image_18082025_01_20_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/20/image_18082025_01_20_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/20/image_18082025_01_20_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/01/19/image_18082025_01_19_54_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/19/image_18082025_01_19_44_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac390518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac390518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac390518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:20:32.280867
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/20/image_18082025_01_20_44_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/01/20/image_18082025_01_20_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/20/image_18082025_01_20_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/20/image_18082025_01_20_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/01/19/image_18082025_01_19_54_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/19/image_18082025_01_19_44_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9fe08518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fe08518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fe08518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:20:47.258240
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/20/image_18082025_01_20_44_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/01/20/image_18082025_01_20_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/20/image_18082025_01_20_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/20/image_18082025_01_20_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/01/19/image_18082025_01_19_54_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/19/image_18082025_01_19_44_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f866d9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f866d9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f866d9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:21:02.860715
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/20/image_18082025_01_20_44_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/01/20/image_18082025_01_20_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/20/image_18082025_01_20_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/20/image_18082025_01_20_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/01/19/image_18082025_01_19_54_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/19/image_18082025_01_19_44_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb314b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb314b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb314b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:21:17.366162
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/21/image_18082025_01_21_44_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/01/21/image_18082025_01_21_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/21/image_18082025_01_21_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/21/image_18082025_01_21_14_10683.jpg', 2), ('/home/nano/Desktop/images/18082025/01/20/image_18082025_01_21_04_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/01/20/image_18082025_01_20_54_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5f9f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5f9f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5f9f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:21:32.354881
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/21/image_18082025_01_21_44_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/01/21/image_18082025_01_21_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/21/image_18082025_01_21_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/21/image_18082025_01_21_14_10683.jpg', 2), ('/home/nano/Desktop/images/18082025/01/20/image_18082025_01_21_04_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/01/20/image_18082025_01_20_54_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8afdb518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8afdb518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8afdb518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:21:47.347908
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/21/image_18082025_01_21_44_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/01/21/image_18082025_01_21_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/21/image_18082025_01_21_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/21/image_18082025_01_21_14_10683.jpg', 2), ('/home/nano/Desktop/images/18082025/01/20/image_18082025_01_21_04_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/01/20/image_18082025_01_20_54_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b5d9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b5d9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b5d9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:22:02.688963
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/21/image_18082025_01_21_44_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/01/21/image_18082025_01_21_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/21/image_18082025_01_21_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/21/image_18082025_01_21_14_10683.jpg', 2), ('/home/nano/Desktop/images/18082025/01/20/image_18082025_01_21_04_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/01/20/image_18082025_01_20_54_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b2294a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b2294a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b2294a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:22:17.442209
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/22/image_18082025_01_22_44_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/01/22/image_18082025_01_22_34_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/01/22/image_18082025_01_22_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/22/image_18082025_01_22_14_9679.jpg', 2), ('/home/nano/Desktop/images/18082025/01/21/image_18082025_01_22_05_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/01/21/image_18082025_01_21_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76cb1518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76cb1518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76cb1518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:22:32.465920
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/22/image_18082025_01_22_44_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/01/22/image_18082025_01_22_34_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/01/22/image_18082025_01_22_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/22/image_18082025_01_22_14_9679.jpg', 2), ('/home/nano/Desktop/images/18082025/01/21/image_18082025_01_22_05_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/01/21/image_18082025_01_21_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa41e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa41e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa41e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:22:47.472547
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/22/image_18082025_01_22_44_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/01/22/image_18082025_01_22_34_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/01/22/image_18082025_01_22_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/22/image_18082025_01_22_14_9679.jpg', 2), ('/home/nano/Desktop/images/18082025/01/21/image_18082025_01_22_05_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/01/21/image_18082025_01_21_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e9f3518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e9f3518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e9f3518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:23:02.926519
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/22/image_18082025_01_22_44_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/01/22/image_18082025_01_22_34_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/01/22/image_18082025_01_22_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/22/image_18082025_01_22_14_9679.jpg', 2), ('/home/nano/Desktop/images/18082025/01/21/image_18082025_01_22_05_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/01/21/image_18082025_01_21_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad541518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad541518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad541518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:23:17.583195
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/23/image_18082025_01_23_44_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/01/23/image_18082025_01_23_34_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/01/23/image_18082025_01_23_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/23/image_18082025_01_23_14_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/01/22/image_18082025_01_23_04_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/22/image_18082025_01_22_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94ffc518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94ffc518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94ffc518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:23:32.563132
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/23/image_18082025_01_23_44_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/01/23/image_18082025_01_23_34_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/01/23/image_18082025_01_23_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/23/image_18082025_01_23_14_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/01/22/image_18082025_01_23_04_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/22/image_18082025_01_22_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa21a8518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa21a8518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa21a8518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:23:47.592243
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/23/image_18082025_01_23_44_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/01/23/image_18082025_01_23_34_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/01/23/image_18082025_01_23_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/23/image_18082025_01_23_14_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/01/22/image_18082025_01_23_04_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/22/image_18082025_01_22_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78bfa518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78bfa518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78bfa518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:24:03.232001
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/23/image_18082025_01_23_44_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/01/23/image_18082025_01_23_34_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/01/23/image_18082025_01_23_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/23/image_18082025_01_23_14_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/01/22/image_18082025_01_23_04_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/22/image_18082025_01_22_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9621f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9621f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9621f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:24:17.695426
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/24/image_18082025_01_24_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/24/image_18082025_01_24_34_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/01/24/image_18082025_01_24_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/24/image_18082025_01_24_14_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/01/23/image_18082025_01_24_04_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/01/23/image_18082025_01_23_54_9656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d72b4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d72b4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d72b4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:24:32.710487
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/24/image_18082025_01_24_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/24/image_18082025_01_24_34_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/01/24/image_18082025_01_24_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/24/image_18082025_01_24_14_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/01/23/image_18082025_01_24_04_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/01/23/image_18082025_01_23_54_9656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b6af518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b6af518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b6af518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:24:47.673811
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/24/image_18082025_01_24_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/24/image_18082025_01_24_34_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/01/24/image_18082025_01_24_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/24/image_18082025_01_24_14_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/01/23/image_18082025_01_24_04_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/01/23/image_18082025_01_23_54_9656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d939518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d939518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d939518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:25:02.246555
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/24/image_18082025_01_24_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/24/image_18082025_01_24_34_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/01/24/image_18082025_01_24_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/24/image_18082025_01_24_14_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/01/23/image_18082025_01_24_04_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/01/23/image_18082025_01_23_54_9656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79444518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79444518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79444518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:25:16.775068
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/25/image_18082025_01_25_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/25/image_18082025_01_25_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/25/image_18082025_01_25_25_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/01/25/image_18082025_01_25_14_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/01/24/image_18082025_01_25_04_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/01/24/image_18082025_01_24_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f0cf518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f0cf518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f0cf518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:25:31.766404
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/25/image_18082025_01_25_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/25/image_18082025_01_25_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/25/image_18082025_01_25_25_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/01/25/image_18082025_01_25_14_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/01/24/image_18082025_01_25_04_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/01/24/image_18082025_01_24_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77b3c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77b3c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77b3c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:25:46.785212
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/25/image_18082025_01_25_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/25/image_18082025_01_25_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/25/image_18082025_01_25_25_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/01/25/image_18082025_01_25_14_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/01/24/image_18082025_01_25_04_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/01/24/image_18082025_01_24_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf225518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf225518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf225518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:26:02.319248
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/25/image_18082025_01_25_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/25/image_18082025_01_25_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/25/image_18082025_01_25_25_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/01/25/image_18082025_01_25_14_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/01/24/image_18082025_01_25_04_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/01/24/image_18082025_01_24_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb211b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb211b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb211b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:26:16.904187
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/26/image_18082025_01_26_44_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/01/26/image_18082025_01_26_34_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/01/26/image_18082025_01_26_24_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/01/26/image_18082025_01_26_14_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/01/25/image_18082025_01_26_04_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/01/25/image_18082025_01_25_54_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5b6e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5b6e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5b6e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:26:31.872689
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/26/image_18082025_01_26_44_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/01/26/image_18082025_01_26_34_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/01/26/image_18082025_01_26_24_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/01/26/image_18082025_01_26_14_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/01/25/image_18082025_01_26_04_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/01/25/image_18082025_01_25_54_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c9b4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c9b4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c9b4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:26:46.884296
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/26/image_18082025_01_26_44_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/01/26/image_18082025_01_26_34_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/01/26/image_18082025_01_26_24_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/01/26/image_18082025_01_26_14_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/01/25/image_18082025_01_26_04_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/01/25/image_18082025_01_25_54_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb45c1518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb45c1518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb45c1518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:27:02.508633
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/26/image_18082025_01_26_44_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/01/26/image_18082025_01_26_34_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/01/26/image_18082025_01_26_24_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/01/26/image_18082025_01_26_14_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/01/25/image_18082025_01_26_04_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/01/25/image_18082025_01_25_54_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c8fc518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c8fc518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c8fc518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:27:17.041452
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/27/image_18082025_01_27_44_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/01/27/image_18082025_01_27_34_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/01/27/image_18082025_01_27_24_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/27/image_18082025_01_27_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/01/26/image_18082025_01_27_04_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/01/26/image_18082025_01_26_54_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa382e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa382e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa382e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:27:31.997200
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/27/image_18082025_01_27_44_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/01/27/image_18082025_01_27_34_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/01/27/image_18082025_01_27_24_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/27/image_18082025_01_27_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/01/26/image_18082025_01_27_04_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/01/26/image_18082025_01_26_54_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8deb8518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8deb8518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8deb8518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:27:46.986453
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/27/image_18082025_01_27_44_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/01/27/image_18082025_01_27_34_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/01/27/image_18082025_01_27_24_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/27/image_18082025_01_27_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/01/26/image_18082025_01_27_04_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/01/26/image_18082025_01_26_54_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a30a4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a30a4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a30a4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:28:02.414889
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/27/image_18082025_01_27_44_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/01/27/image_18082025_01_27_34_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/01/27/image_18082025_01_27_24_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/27/image_18082025_01_27_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/01/26/image_18082025_01_27_04_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/01/26/image_18082025_01_26_54_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a46d4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a46d4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a46d4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:28:17.128209
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/28/image_18082025_01_28_45_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/01/28/image_18082025_01_28_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/28/image_18082025_01_28_24_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/28/image_18082025_01_28_14_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/01/27/image_18082025_01_28_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/01/27/image_18082025_01_27_54_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94bdd518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94bdd518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94bdd518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:28:32.102905
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/28/image_18082025_01_28_45_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/01/28/image_18082025_01_28_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/28/image_18082025_01_28_24_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/28/image_18082025_01_28_14_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/01/27/image_18082025_01_28_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/01/27/image_18082025_01_27_54_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99a42518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99a42518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99a42518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:28:47.057965
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/28/image_18082025_01_28_45_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/01/28/image_18082025_01_28_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/28/image_18082025_01_28_24_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/28/image_18082025_01_28_14_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/01/27/image_18082025_01_28_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/01/27/image_18082025_01_27_54_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7facfa6518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7facfa6518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7facfa6518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:29:02.914025
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/28/image_18082025_01_28_45_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/01/28/image_18082025_01_28_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/28/image_18082025_01_28_24_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/28/image_18082025_01_28_14_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/01/27/image_18082025_01_28_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/01/27/image_18082025_01_27_54_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f7954a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f7954a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f7954a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:29:17.179860
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/29/image_18082025_01_29_44_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/01/29/image_18082025_01_29_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/29/image_18082025_01_29_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/29/image_18082025_01_29_15_10683.jpg', 2), ('/home/nano/Desktop/images/18082025/01/28/image_18082025_01_29_04_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/01/28/image_18082025_01_28_54_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0ed2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0ed2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0ed2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:29:32.200652
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/29/image_18082025_01_29_44_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/01/29/image_18082025_01_29_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/29/image_18082025_01_29_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/29/image_18082025_01_29_15_10683.jpg', 2), ('/home/nano/Desktop/images/18082025/01/28/image_18082025_01_29_04_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/01/28/image_18082025_01_28_54_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f803ed518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f803ed518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f803ed518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:29:47.168414
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/29/image_18082025_01_29_44_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/01/29/image_18082025_01_29_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/29/image_18082025_01_29_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/29/image_18082025_01_29_15_10683.jpg', 2), ('/home/nano/Desktop/images/18082025/01/28/image_18082025_01_29_04_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/01/28/image_18082025_01_28_54_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab7e2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab7e2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab7e2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:30:02.687178
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/29/image_18082025_01_29_44_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/01/29/image_18082025_01_29_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/29/image_18082025_01_29_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/29/image_18082025_01_29_15_10683.jpg', 2), ('/home/nano/Desktop/images/18082025/01/28/image_18082025_01_29_04_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/01/28/image_18082025_01_28_54_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d978518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d978518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d978518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:30:17.276321
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/30/image_18082025_01_30_44_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/01/30/image_18082025_01_30_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/30/image_18082025_01_30_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/30/image_18082025_01_30_14_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/01/29/image_18082025_01_30_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/01/29/image_18082025_01_29_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87c67518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87c67518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87c67518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:30:32.279720
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/30/image_18082025_01_30_44_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/01/30/image_18082025_01_30_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/30/image_18082025_01_30_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/30/image_18082025_01_30_14_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/01/29/image_18082025_01_30_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/01/29/image_18082025_01_29_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f799d2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f799d2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f799d2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:30:47.288057
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/30/image_18082025_01_30_44_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/01/30/image_18082025_01_30_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/30/image_18082025_01_30_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/30/image_18082025_01_30_14_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/01/29/image_18082025_01_30_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/01/29/image_18082025_01_29_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f889e8518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f889e8518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f889e8518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:31:02.961901
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/30/image_18082025_01_30_44_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/01/30/image_18082025_01_30_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/30/image_18082025_01_30_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/30/image_18082025_01_30_14_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/01/29/image_18082025_01_30_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/01/29/image_18082025_01_29_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c519518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c519518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c519518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:31:17.383752
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/31/image_18082025_01_31_44_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/01/31/image_18082025_01_31_34_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/01/31/image_18082025_01_31_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/01/31/image_18082025_01_31_14_10681.jpg', 2), ('/home/nano/Desktop/images/18082025/01/30/image_18082025_01_31_04_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/01/30/image_18082025_01_30_54_9656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7e59518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7e59518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7e59518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:31:32.382389
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/31/image_18082025_01_31_44_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/01/31/image_18082025_01_31_34_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/01/31/image_18082025_01_31_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/01/31/image_18082025_01_31_14_10681.jpg', 2), ('/home/nano/Desktop/images/18082025/01/30/image_18082025_01_31_04_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/01/30/image_18082025_01_30_54_9656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c24c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c24c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c24c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:31:47.377524
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/31/image_18082025_01_31_44_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/01/31/image_18082025_01_31_34_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/01/31/image_18082025_01_31_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/01/31/image_18082025_01_31_14_10681.jpg', 2), ('/home/nano/Desktop/images/18082025/01/30/image_18082025_01_31_04_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/01/30/image_18082025_01_30_54_9656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8251b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8251b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8251b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:32:02.877737
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/31/image_18082025_01_31_44_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/01/31/image_18082025_01_31_34_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/01/31/image_18082025_01_31_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/01/31/image_18082025_01_31_14_10681.jpg', 2), ('/home/nano/Desktop/images/18082025/01/30/image_18082025_01_31_04_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/01/30/image_18082025_01_30_54_9656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb24cb518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb24cb518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb24cb518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:32:17.482159
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/32/image_18082025_01_32_44_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/01/32/image_18082025_01_32_35_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/01/32/image_18082025_01_32_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/32/image_18082025_01_32_14_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/01/31/image_18082025_01_32_04_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/31/image_18082025_01_31_54_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91d07518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91d07518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91d07518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:32:32.504787
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/32/image_18082025_01_32_44_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/01/32/image_18082025_01_32_35_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/01/32/image_18082025_01_32_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/32/image_18082025_01_32_14_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/01/31/image_18082025_01_32_04_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/31/image_18082025_01_31_54_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8b5d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8b5d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8b5d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:32:47.467292
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/32/image_18082025_01_32_44_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/01/32/image_18082025_01_32_35_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/01/32/image_18082025_01_32_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/32/image_18082025_01_32_14_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/01/31/image_18082025_01_32_04_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/31/image_18082025_01_31_54_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2f4a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2f4a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2f4a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:33:03.139280
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/32/image_18082025_01_32_44_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/01/32/image_18082025_01_32_35_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/01/32/image_18082025_01_32_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/32/image_18082025_01_32_14_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/01/31/image_18082025_01_32_04_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/31/image_18082025_01_31_54_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76950518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76950518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76950518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:33:17.588917
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/33/image_18082025_01_33_44_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/01/33/image_18082025_01_33_34_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/01/33/image_18082025_01_33_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/33/image_18082025_01_33_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/01/32/image_18082025_01_33_05_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/32/image_18082025_01_32_54_9661.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7bcd8518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bcd8518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bcd8518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:33:32.589654
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/33/image_18082025_01_33_44_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/01/33/image_18082025_01_33_34_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/01/33/image_18082025_01_33_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/33/image_18082025_01_33_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/01/32/image_18082025_01_33_05_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/32/image_18082025_01_32_54_9661.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78ec8518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78ec8518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78ec8518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:33:47.604047
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/33/image_18082025_01_33_44_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/01/33/image_18082025_01_33_34_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/01/33/image_18082025_01_33_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/33/image_18082025_01_33_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/01/32/image_18082025_01_33_05_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/32/image_18082025_01_32_54_9661.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82c31518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82c31518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82c31518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:34:03.205067
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/33/image_18082025_01_33_44_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/01/33/image_18082025_01_33_34_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/01/33/image_18082025_01_33_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/33/image_18082025_01_33_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/01/32/image_18082025_01_33_05_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/32/image_18082025_01_32_54_9661.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d7d6518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d7d6518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d7d6518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:34:17.745783
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/34/image_18082025_01_34_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/34/image_18082025_01_34_34_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/01/34/image_18082025_01_34_24_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/01/34/image_18082025_01_34_14_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/01/33/image_18082025_01_34_04_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/01/33/image_18082025_01_33_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b37a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b37a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b37a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:34:32.774001
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/34/image_18082025_01_34_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/34/image_18082025_01_34_34_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/01/34/image_18082025_01_34_24_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/01/34/image_18082025_01_34_14_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/01/33/image_18082025_01_34_04_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/01/33/image_18082025_01_33_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f919f0518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f919f0518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f919f0518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:34:47.690194
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/34/image_18082025_01_34_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/34/image_18082025_01_34_34_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/01/34/image_18082025_01_34_24_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/01/34/image_18082025_01_34_14_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/01/33/image_18082025_01_34_04_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/01/33/image_18082025_01_33_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0eeb518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0eeb518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0eeb518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:35:02.326827
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/34/image_18082025_01_34_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/34/image_18082025_01_34_34_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/01/34/image_18082025_01_34_24_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/01/34/image_18082025_01_34_14_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/01/33/image_18082025_01_34_04_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/01/33/image_18082025_01_33_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81316518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81316518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81316518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:35:16.805394
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/35/image_18082025_01_35_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/01/35/image_18082025_01_35_34_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/01/35/image_18082025_01_35_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/35/image_18082025_01_35_14_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/01/34/image_18082025_01_35_04_10682.jpg', 2), ('/home/nano/Desktop/images/18082025/01/34/image_18082025_01_34_54_9656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb20eb518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb20eb518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb20eb518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:35:31.774692
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/35/image_18082025_01_35_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/01/35/image_18082025_01_35_34_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/01/35/image_18082025_01_35_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/35/image_18082025_01_35_14_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/01/34/image_18082025_01_35_04_10682.jpg', 2), ('/home/nano/Desktop/images/18082025/01/34/image_18082025_01_34_54_9656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a2c2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a2c2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a2c2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:35:46.795764
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/35/image_18082025_01_35_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/01/35/image_18082025_01_35_34_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/01/35/image_18082025_01_35_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/35/image_18082025_01_35_14_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/01/34/image_18082025_01_35_04_10682.jpg', 2), ('/home/nano/Desktop/images/18082025/01/34/image_18082025_01_34_54_9656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fabe06518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fabe06518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fabe06518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:36:02.199326
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/35/image_18082025_01_35_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/01/35/image_18082025_01_35_34_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/01/35/image_18082025_01_35_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/35/image_18082025_01_35_14_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/01/34/image_18082025_01_35_04_10682.jpg', 2), ('/home/nano/Desktop/images/18082025/01/34/image_18082025_01_34_54_9656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a148518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a148518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a148518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:36:16.884765
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/36/image_18082025_01_36_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/36/image_18082025_01_36_25_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/01/36/image_18082025_01_36_14_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/01/35/image_18082025_01_36_04_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/35/image_18082025_01_35_54_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/35/image_18082025_01_35_44_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa90c2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa90c2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa90c2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:36:31.889553
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/36/image_18082025_01_36_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/36/image_18082025_01_36_25_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/01/36/image_18082025_01_36_14_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/01/35/image_18082025_01_36_04_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/35/image_18082025_01_35_54_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/35/image_18082025_01_35_44_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78be4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78be4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78be4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:36:46.896333
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/36/image_18082025_01_36_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/36/image_18082025_01_36_25_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/01/36/image_18082025_01_36_14_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/01/35/image_18082025_01_36_04_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/35/image_18082025_01_35_54_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/35/image_18082025_01_35_44_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a82c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a82c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a82c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:37:02.592335
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/36/image_18082025_01_36_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/36/image_18082025_01_36_25_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/01/36/image_18082025_01_36_14_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/01/35/image_18082025_01_36_04_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/35/image_18082025_01_35_54_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/35/image_18082025_01_35_44_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faaa094a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faaa094a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faaa094a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:37:17.005791
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/37/image_18082025_01_37_44_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/01/37/image_18082025_01_37_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/37/image_18082025_01_37_24_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/01/36/image_18082025_01_37_04_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/36/image_18082025_01_36_44_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/01/36/image_18082025_01_36_34_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b836518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b836518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b836518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:37:32.006098
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/37/image_18082025_01_37_44_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/01/37/image_18082025_01_37_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/37/image_18082025_01_37_24_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/01/36/image_18082025_01_37_04_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/36/image_18082025_01_36_44_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/01/36/image_18082025_01_36_34_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77ec6518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77ec6518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77ec6518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:37:47.002675
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/37/image_18082025_01_37_44_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/01/37/image_18082025_01_37_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/37/image_18082025_01_37_24_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/01/36/image_18082025_01_37_04_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/36/image_18082025_01_36_44_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/01/36/image_18082025_01_36_34_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7facfff4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7facfff4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7facfff4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:38:02.345268
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/37/image_18082025_01_37_44_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/01/37/image_18082025_01_37_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/37/image_18082025_01_37_24_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/01/36/image_18082025_01_37_04_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/36/image_18082025_01_36_44_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/01/36/image_18082025_01_36_34_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faabd0518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faabd0518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faabd0518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:38:17.092472
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/38/image_18082025_01_38_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/38/image_18082025_01_38_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/38/image_18082025_01_38_24_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/01/38/image_18082025_01_38_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/01/37/image_18082025_01_38_04_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/01/37/image_18082025_01_37_54_10647.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ac65518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ac65518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ac65518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:38:32.126665
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/38/image_18082025_01_38_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/38/image_18082025_01_38_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/38/image_18082025_01_38_24_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/01/38/image_18082025_01_38_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/01/37/image_18082025_01_38_04_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/01/37/image_18082025_01_37_54_10647.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf650518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf650518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf650518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:38:47.107249
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/38/image_18082025_01_38_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/38/image_18082025_01_38_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/38/image_18082025_01_38_24_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/01/38/image_18082025_01_38_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/01/37/image_18082025_01_38_04_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/01/37/image_18082025_01_37_54_10647.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0e1b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0e1b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0e1b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:39:03.044855
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/38/image_18082025_01_38_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/38/image_18082025_01_38_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/38/image_18082025_01_38_24_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/01/38/image_18082025_01_38_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/01/37/image_18082025_01_38_04_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/01/37/image_18082025_01_37_54_10647.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3eaf518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3eaf518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3eaf518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:39:17.216891
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/39/image_18082025_01_39_44_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/39/image_18082025_01_39_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/39/image_18082025_01_39_24_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/39/image_18082025_01_39_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/01/38/image_18082025_01_39_04_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/01/38/image_18082025_01_38_54_10646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb352c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb352c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb352c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:39:32.226447
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/39/image_18082025_01_39_44_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/39/image_18082025_01_39_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/39/image_18082025_01_39_24_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/39/image_18082025_01_39_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/01/38/image_18082025_01_39_04_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/01/38/image_18082025_01_38_54_10646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f803fe518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f803fe518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f803fe518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:39:47.234641
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/39/image_18082025_01_39_44_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/39/image_18082025_01_39_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/39/image_18082025_01_39_24_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/39/image_18082025_01_39_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/01/38/image_18082025_01_39_04_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/01/38/image_18082025_01_38_54_10646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87fff518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87fff518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87fff518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:40:02.719952
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/39/image_18082025_01_39_44_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/39/image_18082025_01_39_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/39/image_18082025_01_39_24_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/39/image_18082025_01_39_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/01/38/image_18082025_01_39_04_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/01/38/image_18082025_01_38_54_10646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e9d64a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e9d64a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e9d64a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:40:17.326701
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/40/image_18082025_01_40_34_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/01/40/image_18082025_01_40_24_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/01/40/image_18082025_01_40_14_10676.jpg', 2), ('/home/nano/Desktop/images/18082025/01/39/image_18082025_01_40_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/01/39/image_18082025_01_39_54_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/39/image_18082025_01_39_44_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4257518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4257518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4257518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:40:32.332830
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/40/image_18082025_01_40_34_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/01/40/image_18082025_01_40_24_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/01/40/image_18082025_01_40_14_10676.jpg', 2), ('/home/nano/Desktop/images/18082025/01/39/image_18082025_01_40_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/01/39/image_18082025_01_39_54_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/39/image_18082025_01_39_44_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad2f6518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad2f6518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad2f6518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:40:47.350315
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/40/image_18082025_01_40_34_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/01/40/image_18082025_01_40_24_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/01/40/image_18082025_01_40_14_10676.jpg', 2), ('/home/nano/Desktop/images/18082025/01/39/image_18082025_01_40_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/01/39/image_18082025_01_39_54_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/39/image_18082025_01_39_44_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d116518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d116518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d116518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:41:02.952058
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/40/image_18082025_01_40_34_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/01/40/image_18082025_01_40_24_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/01/40/image_18082025_01_40_14_10676.jpg', 2), ('/home/nano/Desktop/images/18082025/01/39/image_18082025_01_40_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/01/39/image_18082025_01_39_54_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/39/image_18082025_01_39_44_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86fe9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86fe9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86fe9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:41:17.459573
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/41/image_18082025_01_41_44_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/01/41/image_18082025_01_41_34_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/01/41/image_18082025_01_41_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/41/image_18082025_01_41_14_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/01/40/image_18082025_01_41_04_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/40/image_18082025_01_40_44_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91117518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91117518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91117518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:41:32.450775
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/41/image_18082025_01_41_44_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/01/41/image_18082025_01_41_34_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/01/41/image_18082025_01_41_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/41/image_18082025_01_41_14_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/01/40/image_18082025_01_41_04_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/40/image_18082025_01_40_44_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7df50518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7df50518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7df50518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:41:47.465279
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/41/image_18082025_01_41_44_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/01/41/image_18082025_01_41_34_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/01/41/image_18082025_01_41_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/41/image_18082025_01_41_14_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/01/40/image_18082025_01_41_04_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/40/image_18082025_01_40_44_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b997518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b997518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b997518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:42:02.892670
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/41/image_18082025_01_41_44_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/01/41/image_18082025_01_41_34_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/01/41/image_18082025_01_41_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/41/image_18082025_01_41_14_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/01/40/image_18082025_01_41_04_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/40/image_18082025_01_40_44_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90555518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90555518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90555518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:42:17.541056
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/42/image_18082025_01_42_44_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/42/image_18082025_01_42_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/42/image_18082025_01_42_24_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/01/42/image_18082025_01_42_14_10681.jpg', 2), ('/home/nano/Desktop/images/18082025/01/41/image_18082025_01_42_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/01/41/image_18082025_01_41_54_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac8ea518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac8ea518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac8ea518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:42:32.669609
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/42/image_18082025_01_42_44_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/42/image_18082025_01_42_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/42/image_18082025_01_42_24_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/01/42/image_18082025_01_42_14_10681.jpg', 2), ('/home/nano/Desktop/images/18082025/01/41/image_18082025_01_42_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/01/41/image_18082025_01_41_54_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b915518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b915518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b915518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:42:47.679835
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/42/image_18082025_01_42_44_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/42/image_18082025_01_42_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/42/image_18082025_01_42_24_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/01/42/image_18082025_01_42_14_10681.jpg', 2), ('/home/nano/Desktop/images/18082025/01/41/image_18082025_01_42_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/01/41/image_18082025_01_41_54_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fafe64518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafe64518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafe64518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:43:02.371548
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/42/image_18082025_01_42_44_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/42/image_18082025_01_42_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/42/image_18082025_01_42_24_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/01/42/image_18082025_01_42_14_10681.jpg', 2), ('/home/nano/Desktop/images/18082025/01/41/image_18082025_01_42_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/01/41/image_18082025_01_41_54_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0aee518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0aee518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0aee518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:43:16.776609
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/43/image_18082025_01_43_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/43/image_18082025_01_43_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/43/image_18082025_01_43_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/43/image_18082025_01_43_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/01/42/image_18082025_01_43_05_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/01/42/image_18082025_01_42_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f840944a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f840944a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f840944a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:43:31.770497
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/43/image_18082025_01_43_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/43/image_18082025_01_43_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/43/image_18082025_01_43_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/43/image_18082025_01_43_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/01/42/image_18082025_01_43_05_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/01/42/image_18082025_01_42_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76834518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76834518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76834518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:43:46.766158
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/43/image_18082025_01_43_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/43/image_18082025_01_43_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/43/image_18082025_01_43_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/43/image_18082025_01_43_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/01/42/image_18082025_01_43_05_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/01/42/image_18082025_01_42_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99245518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99245518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99245518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:44:02.474887
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/43/image_18082025_01_43_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/43/image_18082025_01_43_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/43/image_18082025_01_43_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/43/image_18082025_01_43_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/01/42/image_18082025_01_43_05_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/01/42/image_18082025_01_42_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99a39518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99a39518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99a39518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:44:16.887412
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/44/image_18082025_01_44_44_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/01/44/image_18082025_01_44_34_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/01/44/image_18082025_01_44_24_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/01/44/image_18082025_01_44_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/01/43/image_18082025_01_44_04_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/01/43/image_18082025_01_43_54_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8fc41518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fc41518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fc41518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:44:31.958573
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/44/image_18082025_01_44_44_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/01/44/image_18082025_01_44_34_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/01/44/image_18082025_01_44_24_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/01/44/image_18082025_01_44_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/01/43/image_18082025_01_44_04_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/01/43/image_18082025_01_43_54_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f821344a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f821344a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f821344a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:44:46.898864
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/44/image_18082025_01_44_44_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/01/44/image_18082025_01_44_34_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/01/44/image_18082025_01_44_24_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/01/44/image_18082025_01_44_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/01/43/image_18082025_01_44_04_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/01/43/image_18082025_01_43_54_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90e6e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90e6e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90e6e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:45:02.493400
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/44/image_18082025_01_44_44_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/01/44/image_18082025_01_44_34_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/01/44/image_18082025_01_44_24_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/01/44/image_18082025_01_44_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/01/43/image_18082025_01_44_04_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/01/43/image_18082025_01_43_54_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4de64a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4de64a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4de64a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:45:17.006141
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/45/image_18082025_01_45_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/45/image_18082025_01_45_24_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/01/45/image_18082025_01_45_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/01/44/image_18082025_01_45_04_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/01/44/image_18082025_01_44_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/01/44/image_18082025_01_44_44_9664.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89e0d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89e0d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89e0d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:45:32.017507
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/45/image_18082025_01_45_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/45/image_18082025_01_45_24_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/01/45/image_18082025_01_45_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/01/44/image_18082025_01_45_04_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/01/44/image_18082025_01_44_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/01/44/image_18082025_01_44_44_9664.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb10e3518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb10e3518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb10e3518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:45:47.000537
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/45/image_18082025_01_45_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/45/image_18082025_01_45_24_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/01/45/image_18082025_01_45_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/01/44/image_18082025_01_45_04_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/01/44/image_18082025_01_44_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/01/44/image_18082025_01_44_44_9664.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77115518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77115518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77115518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:46:02.471685
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/45/image_18082025_01_45_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/45/image_18082025_01_45_24_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/01/45/image_18082025_01_45_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/01/44/image_18082025_01_45_04_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/01/44/image_18082025_01_44_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/01/44/image_18082025_01_44_44_9664.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a630518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a630518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a630518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:46:17.124962
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/46/image_18082025_01_46_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/46/image_18082025_01_46_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/46/image_18082025_01_46_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/46/image_18082025_01_46_14_9673.jpg', 2), ('/home/nano/Desktop/images/18082025/01/45/image_18082025_01_45_54_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/45/image_18082025_01_45_44_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5f9e4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5f9e4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5f9e4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:46:32.092207
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/46/image_18082025_01_46_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/46/image_18082025_01_46_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/46/image_18082025_01_46_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/46/image_18082025_01_46_14_9673.jpg', 2), ('/home/nano/Desktop/images/18082025/01/45/image_18082025_01_45_54_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/45/image_18082025_01_45_44_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c588518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c588518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c588518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:46:47.100831
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/46/image_18082025_01_46_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/46/image_18082025_01_46_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/46/image_18082025_01_46_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/46/image_18082025_01_46_14_9673.jpg', 2), ('/home/nano/Desktop/images/18082025/01/45/image_18082025_01_45_54_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/45/image_18082025_01_45_44_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f829dd518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f829dd518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f829dd518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:47:02.538758
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/46/image_18082025_01_46_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/46/image_18082025_01_46_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/46/image_18082025_01_46_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/46/image_18082025_01_46_14_9673.jpg', 2), ('/home/nano/Desktop/images/18082025/01/45/image_18082025_01_45_54_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/45/image_18082025_01_45_44_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d2ab4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d2ab4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d2ab4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:47:17.194619
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/47/image_18082025_01_47_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/47/image_18082025_01_47_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/47/image_18082025_01_47_24_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/47/image_18082025_01_47_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/01/46/image_18082025_01_47_04_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/46/image_18082025_01_46_55_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7875f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7875f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7875f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:47:32.181412
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/47/image_18082025_01_47_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/47/image_18082025_01_47_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/47/image_18082025_01_47_24_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/47/image_18082025_01_47_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/01/46/image_18082025_01_47_04_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/46/image_18082025_01_46_55_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab7214a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab7214a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab7214a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:47:47.257397
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/47/image_18082025_01_47_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/47/image_18082025_01_47_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/47/image_18082025_01_47_24_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/47/image_18082025_01_47_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/01/46/image_18082025_01_47_04_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/46/image_18082025_01_46_55_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa15be518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa15be518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa15be518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:48:02.661865
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/47/image_18082025_01_47_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/47/image_18082025_01_47_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/47/image_18082025_01_47_24_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/47/image_18082025_01_47_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/01/46/image_18082025_01_47_04_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/46/image_18082025_01_46_55_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9165b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9165b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9165b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:48:17.356025
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/48/image_18082025_01_48_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/48/image_18082025_01_48_34_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/01/48/image_18082025_01_48_24_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/01/48/image_18082025_01_48_14_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/01/47/image_18082025_01_48_04_9673.jpg', 2), ('/home/nano/Desktop/images/18082025/01/47/image_18082025_01_47_54_10665.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e5f5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e5f5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e5f5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:48:32.346906
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/48/image_18082025_01_48_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/48/image_18082025_01_48_34_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/01/48/image_18082025_01_48_24_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/01/48/image_18082025_01_48_14_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/01/47/image_18082025_01_48_04_9673.jpg', 2), ('/home/nano/Desktop/images/18082025/01/47/image_18082025_01_47_54_10665.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84cd1518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84cd1518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84cd1518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:48:47.363428
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/48/image_18082025_01_48_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/48/image_18082025_01_48_34_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/01/48/image_18082025_01_48_24_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/01/48/image_18082025_01_48_14_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/01/47/image_18082025_01_48_04_9673.jpg', 2), ('/home/nano/Desktop/images/18082025/01/47/image_18082025_01_47_54_10665.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8ba6518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8ba6518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8ba6518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:49:03.281263
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/48/image_18082025_01_48_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/48/image_18082025_01_48_34_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/01/48/image_18082025_01_48_24_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/01/48/image_18082025_01_48_14_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/01/47/image_18082025_01_48_04_9673.jpg', 2), ('/home/nano/Desktop/images/18082025/01/47/image_18082025_01_47_54_10665.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93fdd518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93fdd518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93fdd518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:49:17.487466
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/49/image_18082025_01_49_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/49/image_18082025_01_49_24_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/49/image_18082025_01_49_14_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/01/48/image_18082025_01_48_54_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/48/image_18082025_01_48_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/48/image_18082025_01_48_34_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e933518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e933518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e933518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:49:32.488153
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/49/image_18082025_01_49_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/49/image_18082025_01_49_24_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/49/image_18082025_01_49_14_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/01/48/image_18082025_01_48_54_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/48/image_18082025_01_48_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/48/image_18082025_01_48_34_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f771cc518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f771cc518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f771cc518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:49:47.500229
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/49/image_18082025_01_49_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/49/image_18082025_01_49_24_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/49/image_18082025_01_49_14_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/01/48/image_18082025_01_48_54_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/48/image_18082025_01_48_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/48/image_18082025_01_48_34_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b4c6518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b4c6518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b4c6518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:50:03.001379
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/49/image_18082025_01_49_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/49/image_18082025_01_49_24_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/49/image_18082025_01_49_14_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/01/48/image_18082025_01_48_54_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/48/image_18082025_01_48_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/48/image_18082025_01_48_34_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c8fd518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c8fd518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c8fd518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:50:17.602358
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/50/image_18082025_01_50_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/50/image_18082025_01_50_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/50/image_18082025_01_50_24_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/01/50/image_18082025_01_50_15_10686.jpg', 2), ('/home/nano/Desktop/images/18082025/01/49/image_18082025_01_50_04_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/01/49/image_18082025_01_49_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5147518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5147518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5147518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:50:32.654294
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/50/image_18082025_01_50_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/50/image_18082025_01_50_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/50/image_18082025_01_50_24_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/01/50/image_18082025_01_50_15_10686.jpg', 2), ('/home/nano/Desktop/images/18082025/01/49/image_18082025_01_50_04_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/01/49/image_18082025_01_49_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d709518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d709518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d709518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:50:47.591231
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/50/image_18082025_01_50_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/50/image_18082025_01_50_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/50/image_18082025_01_50_24_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/01/50/image_18082025_01_50_15_10686.jpg', 2), ('/home/nano/Desktop/images/18082025/01/49/image_18082025_01_50_04_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/01/49/image_18082025_01_49_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8414d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8414d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8414d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:51:03.137334
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/50/image_18082025_01_50_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/50/image_18082025_01_50_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/50/image_18082025_01_50_24_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/01/50/image_18082025_01_50_15_10686.jpg', 2), ('/home/nano/Desktop/images/18082025/01/49/image_18082025_01_50_04_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/01/49/image_18082025_01_49_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7eb0c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7eb0c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7eb0c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:51:17.726277
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/51/image_18082025_01_51_44_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/01/51/image_18082025_01_51_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/51/image_18082025_01_51_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/51/image_18082025_01_51_14_10686.jpg', 2), ('/home/nano/Desktop/images/18082025/01/50/image_18082025_01_51_04_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/50/image_18082025_01_50_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f914e8518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f914e8518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f914e8518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:51:32.680857
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/51/image_18082025_01_51_44_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/01/51/image_18082025_01_51_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/51/image_18082025_01_51_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/51/image_18082025_01_51_14_10686.jpg', 2), ('/home/nano/Desktop/images/18082025/01/50/image_18082025_01_51_04_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/50/image_18082025_01_50_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91718518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91718518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91718518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:51:47.679635
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/51/image_18082025_01_51_44_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/01/51/image_18082025_01_51_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/51/image_18082025_01_51_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/51/image_18082025_01_51_14_10686.jpg', 2), ('/home/nano/Desktop/images/18082025/01/50/image_18082025_01_51_04_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/50/image_18082025_01_50_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7eb7f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7eb7f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7eb7f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:52:02.014434
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/51/image_18082025_01_51_44_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/01/51/image_18082025_01_51_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/01/51/image_18082025_01_51_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/51/image_18082025_01_51_14_10686.jpg', 2), ('/home/nano/Desktop/images/18082025/01/50/image_18082025_01_51_04_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/50/image_18082025_01_50_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f808b9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f808b9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f808b9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:52:16.777353
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/52/image_18082025_01_52_44_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/01/52/image_18082025_01_52_34_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/01/52/image_18082025_01_52_14_10686.jpg', 2), ('/home/nano/Desktop/images/18082025/01/51/image_18082025_01_52_04_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/01/51/image_18082025_01_51_54_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/51/image_18082025_01_51_44_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99014518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99014518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99014518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:52:31.814809
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/52/image_18082025_01_52_44_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/01/52/image_18082025_01_52_34_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/01/52/image_18082025_01_52_14_10686.jpg', 2), ('/home/nano/Desktop/images/18082025/01/51/image_18082025_01_52_04_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/01/51/image_18082025_01_51_54_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/51/image_18082025_01_51_44_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b399518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b399518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b399518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:52:46.832647
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/52/image_18082025_01_52_44_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/01/52/image_18082025_01_52_34_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/01/52/image_18082025_01_52_14_10686.jpg', 2), ('/home/nano/Desktop/images/18082025/01/51/image_18082025_01_52_04_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/01/51/image_18082025_01_51_54_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/51/image_18082025_01_51_44_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d566518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d566518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d566518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:53:02.423670
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/52/image_18082025_01_52_44_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/01/52/image_18082025_01_52_34_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/01/52/image_18082025_01_52_14_10686.jpg', 2), ('/home/nano/Desktop/images/18082025/01/51/image_18082025_01_52_04_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/01/51/image_18082025_01_51_54_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/01/51/image_18082025_01_51_44_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8a4d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8a4d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8a4d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:53:16.943751
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/53/image_18082025_01_53_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/53/image_18082025_01_53_34_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/01/53/image_18082025_01_53_24_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/01/53/image_18082025_01_53_14_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/01/52/image_18082025_01_52_54_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/01/52/image_18082025_01_52_44_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1cef4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1cef4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1cef4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:53:31.938630
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/53/image_18082025_01_53_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/53/image_18082025_01_53_34_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/01/53/image_18082025_01_53_24_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/01/53/image_18082025_01_53_14_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/01/52/image_18082025_01_52_54_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/01/52/image_18082025_01_52_44_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f930ef4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f930ef4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f930ef4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:53:46.952861
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/53/image_18082025_01_53_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/53/image_18082025_01_53_34_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/01/53/image_18082025_01_53_24_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/01/53/image_18082025_01_53_14_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/01/52/image_18082025_01_52_54_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/01/52/image_18082025_01_52_44_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ff66518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ff66518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ff66518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:54:02.662718
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/53/image_18082025_01_53_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/53/image_18082025_01_53_34_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/01/53/image_18082025_01_53_24_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/01/53/image_18082025_01_53_14_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/01/52/image_18082025_01_52_54_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/01/52/image_18082025_01_52_44_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f92473518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92473518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92473518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:54:17.048007
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/54/image_18082025_01_54_44_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/01/54/image_18082025_01_54_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/54/image_18082025_01_54_24_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/01/54/image_18082025_01_54_14_9677.jpg', 2), ('/home/nano/Desktop/images/18082025/01/53/image_18082025_01_54_05_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/01/53/image_18082025_01_53_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5d31518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5d31518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5d31518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:54:32.048147
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/54/image_18082025_01_54_44_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/01/54/image_18082025_01_54_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/54/image_18082025_01_54_24_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/01/54/image_18082025_01_54_14_9677.jpg', 2), ('/home/nano/Desktop/images/18082025/01/53/image_18082025_01_54_05_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/01/53/image_18082025_01_53_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f860e1518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f860e1518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f860e1518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:54:47.037590
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/54/image_18082025_01_54_44_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/01/54/image_18082025_01_54_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/54/image_18082025_01_54_24_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/01/54/image_18082025_01_54_14_9677.jpg', 2), ('/home/nano/Desktop/images/18082025/01/53/image_18082025_01_54_05_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/01/53/image_18082025_01_53_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f856bd518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f856bd518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f856bd518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:55:02.689548
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/54/image_18082025_01_55_04_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/01/54/image_18082025_01_54_44_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/01/54/image_18082025_01_54_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/54/image_18082025_01_54_24_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/01/54/image_18082025_01_54_14_9677.jpg', 2), ('/home/nano/Desktop/images/18082025/01/53/image_18082025_01_54_05_10660.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e005518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e005518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e005518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:55:17.169025
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/55/image_18082025_01_55_44_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/01/55/image_18082025_01_55_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/55/image_18082025_01_55_24_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/01/55/image_18082025_01_55_14_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/01/54/image_18082025_01_55_04_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/01/54/image_18082025_01_54_54_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f515518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f515518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f515518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:55:32.169011
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/55/image_18082025_01_55_44_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/01/55/image_18082025_01_55_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/55/image_18082025_01_55_24_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/01/55/image_18082025_01_55_14_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/01/54/image_18082025_01_55_04_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/01/54/image_18082025_01_54_54_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f899e5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f899e5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f899e5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:55:47.154564
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/55/image_18082025_01_55_44_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/01/55/image_18082025_01_55_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/55/image_18082025_01_55_24_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/01/55/image_18082025_01_55_14_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/01/54/image_18082025_01_55_04_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/01/54/image_18082025_01_54_54_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb1cae518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1cae518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1cae518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:56:02.540956
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/55/image_18082025_01_55_44_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/01/55/image_18082025_01_55_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/55/image_18082025_01_55_24_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/01/55/image_18082025_01_55_14_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/01/54/image_18082025_01_55_04_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/01/54/image_18082025_01_54_54_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa8d44a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa8d44a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa8d44a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:56:17.288852
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/56/image_18082025_01_56_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/56/image_18082025_01_56_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/55/image_18082025_01_56_04_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/01/55/image_18082025_01_55_54_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/01/55/image_18082025_01_55_44_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/01/55/image_18082025_01_55_34_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa9bdb518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9bdb518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9bdb518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:56:32.261725
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/56/image_18082025_01_56_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/56/image_18082025_01_56_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/55/image_18082025_01_56_04_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/01/55/image_18082025_01_55_54_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/01/55/image_18082025_01_55_44_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/01/55/image_18082025_01_55_34_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f3004a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f3004a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f3004a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:56:47.234574
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/56/image_18082025_01_56_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/56/image_18082025_01_56_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/55/image_18082025_01_56_04_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/01/55/image_18082025_01_55_54_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/01/55/image_18082025_01_55_44_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/01/55/image_18082025_01_55_34_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c689518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c689518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c689518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:57:02.933009
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/56/image_18082025_01_56_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/56/image_18082025_01_56_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/55/image_18082025_01_56_04_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/01/55/image_18082025_01_55_54_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/01/55/image_18082025_01_55_44_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/01/55/image_18082025_01_55_34_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0835518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0835518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0835518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:57:17.336870
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/57/image_18082025_01_57_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/57/image_18082025_01_57_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/57/image_18082025_01_57_24_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/01/57/image_18082025_01_57_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/01/56/image_18082025_01_57_04_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/01/56/image_18082025_01_56_44_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b2f4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b2f4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b2f4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:57:32.350922
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/57/image_18082025_01_57_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/57/image_18082025_01_57_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/57/image_18082025_01_57_24_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/01/57/image_18082025_01_57_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/01/56/image_18082025_01_57_04_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/01/56/image_18082025_01_56_44_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85a52518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85a52518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85a52518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:57:47.424051
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/57/image_18082025_01_57_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/57/image_18082025_01_57_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/57/image_18082025_01_57_24_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/01/57/image_18082025_01_57_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/01/56/image_18082025_01_57_04_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/01/56/image_18082025_01_56_44_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5a7e4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5a7e4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5a7e4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:58:02.900945
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/57/image_18082025_01_57_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/57/image_18082025_01_57_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/01/57/image_18082025_01_57_24_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/01/57/image_18082025_01_57_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/01/56/image_18082025_01_57_04_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/01/56/image_18082025_01_56_44_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9bf51518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bf51518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bf51518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:59:03.216056
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/58/image_18082025_01_58_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/58/image_18082025_01_58_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/01/58/image_18082025_01_58_24_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/58/image_18082025_01_58_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/01/57/image_18082025_01_58_04_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/01/57/image_18082025_01_57_54_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9641a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9641a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9641a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:59:17.383906
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/59/image_18082025_01_59_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/59/image_18082025_01_59_24_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/59/image_18082025_01_59_14_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/01/58/image_18082025_01_59_04_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/58/image_18082025_01_58_54_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/58/image_18082025_01_58_44_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82cb24a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82cb24a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82cb24a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:59:32.381134
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/59/image_18082025_01_59_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/59/image_18082025_01_59_24_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/59/image_18082025_01_59_14_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/01/58/image_18082025_01_59_04_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/58/image_18082025_01_58_54_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/58/image_18082025_01_58_44_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9cc6a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cc6a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cc6a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 01:59:47.377165
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/59/image_18082025_01_59_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/59/image_18082025_01_59_24_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/59/image_18082025_01_59_14_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/01/58/image_18082025_01_59_04_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/58/image_18082025_01_58_54_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/58/image_18082025_01_58_44_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c5644a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c5644a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c5644a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:00:02.853385
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/01/59/image_18082025_01_59_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/01/59/image_18082025_01_59_24_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/59/image_18082025_01_59_14_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/01/58/image_18082025_01_59_04_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/58/image_18082025_01_58_54_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/01/58/image_18082025_01_58_44_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f787a2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f787a2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f787a2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:00:17.469232
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/00/image_18082025_02_00_45_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/02/00/image_18082025_02_00_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/00/image_18082025_02_00_24_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/00/image_18082025_02_00_14_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/01/59/image_18082025_02_00_04_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/01/59/image_18082025_01_59_54_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f994e2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f994e2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f994e2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:00:32.466831
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/00/image_18082025_02_00_45_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/02/00/image_18082025_02_00_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/00/image_18082025_02_00_24_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/00/image_18082025_02_00_14_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/01/59/image_18082025_02_00_04_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/01/59/image_18082025_01_59_54_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e910518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e910518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e910518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:00:47.464958
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/00/image_18082025_02_00_45_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/02/00/image_18082025_02_00_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/00/image_18082025_02_00_24_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/00/image_18082025_02_00_14_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/01/59/image_18082025_02_00_04_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/01/59/image_18082025_01_59_54_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a6874a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a6874a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a6874a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:01:03.032541
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/00/image_18082025_02_00_45_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/02/00/image_18082025_02_00_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/00/image_18082025_02_00_24_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/00/image_18082025_02_00_14_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/01/59/image_18082025_02_00_04_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/01/59/image_18082025_01_59_54_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4956518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4956518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4956518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:01:17.579526
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/01/image_18082025_02_01_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/02/01/image_18082025_02_01_34_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/02/01/image_18082025_02_01_24_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/02/01/image_18082025_02_01_15_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/02/00/image_18082025_02_01_04_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/02/00/image_18082025_02_00_54_9655.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb003d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb003d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb003d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:01:32.582320
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/01/image_18082025_02_01_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/02/01/image_18082025_02_01_34_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/02/01/image_18082025_02_01_24_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/02/01/image_18082025_02_01_15_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/02/00/image_18082025_02_01_04_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/02/00/image_18082025_02_00_54_9655.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9af734a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9af734a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9af734a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:01:47.568816
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/01/image_18082025_02_01_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/02/01/image_18082025_02_01_34_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/02/01/image_18082025_02_01_24_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/02/01/image_18082025_02_01_15_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/02/00/image_18082025_02_01_04_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/02/00/image_18082025_02_00_54_9655.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a4cf518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a4cf518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a4cf518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:02:02.989373
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/01/image_18082025_02_01_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/02/01/image_18082025_02_01_34_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/02/01/image_18082025_02_01_24_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/02/01/image_18082025_02_01_15_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/02/00/image_18082025_02_01_04_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/02/00/image_18082025_02_00_54_9655.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa07a4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa07a4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa07a4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:02:17.689295
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/02/image_18082025_02_02_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/02/02/image_18082025_02_02_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/02/image_18082025_02_02_24_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/02/02/image_18082025_02_02_14_10672.jpg', 2), ('/home/nano/Desktop/images/18082025/02/01/image_18082025_02_02_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/02/01/image_18082025_02_01_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e845518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e845518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e845518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:02:32.676492
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/02/image_18082025_02_02_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/02/02/image_18082025_02_02_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/02/image_18082025_02_02_24_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/02/02/image_18082025_02_02_14_10672.jpg', 2), ('/home/nano/Desktop/images/18082025/02/01/image_18082025_02_02_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/02/01/image_18082025_02_01_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad883518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad883518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad883518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:02:47.679948
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/02/image_18082025_02_02_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/02/02/image_18082025_02_02_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/02/image_18082025_02_02_24_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/02/02/image_18082025_02_02_14_10672.jpg', 2), ('/home/nano/Desktop/images/18082025/02/01/image_18082025_02_02_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/02/01/image_18082025_02_01_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f991fd518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f991fd518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f991fd518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:03:02.126329
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/02/image_18082025_02_02_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/02/02/image_18082025_02_02_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/02/image_18082025_02_02_24_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/02/02/image_18082025_02_02_14_10672.jpg', 2), ('/home/nano/Desktop/images/18082025/02/01/image_18082025_02_02_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/02/01/image_18082025_02_01_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c1ae518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c1ae518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c1ae518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:03:16.786603
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/03/image_18082025_02_03_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/03/image_18082025_02_03_24_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/02/03/image_18082025_02_03_14_10685.jpg', 2), ('/home/nano/Desktop/images/18082025/02/02/image_18082025_02_02_54_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/02/image_18082025_02_02_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/02/02/image_18082025_02_02_34_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0ab0518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0ab0518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0ab0518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:03:31.802579
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/03/image_18082025_02_03_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/03/image_18082025_02_03_24_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/02/03/image_18082025_02_03_14_10685.jpg', 2), ('/home/nano/Desktop/images/18082025/02/02/image_18082025_02_02_54_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/02/image_18082025_02_02_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/02/02/image_18082025_02_02_34_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f960c9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f960c9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f960c9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:03:46.864241
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/03/image_18082025_02_03_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/03/image_18082025_02_03_24_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/02/03/image_18082025_02_03_14_10685.jpg', 2), ('/home/nano/Desktop/images/18082025/02/02/image_18082025_02_02_54_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/02/image_18082025_02_02_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/02/02/image_18082025_02_02_34_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c87b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c87b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c87b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:04:02.426074
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/03/image_18082025_02_03_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/03/image_18082025_02_03_24_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/02/03/image_18082025_02_03_14_10685.jpg', 2), ('/home/nano/Desktop/images/18082025/02/02/image_18082025_02_02_54_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/02/image_18082025_02_02_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/02/02/image_18082025_02_02_34_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c525518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c525518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c525518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:04:16.966786
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/04/image_18082025_02_04_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/02/04/image_18082025_02_04_35_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/02/04/image_18082025_02_04_24_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/02/04/image_18082025_02_04_14_10671.jpg', 2), ('/home/nano/Desktop/images/18082025/02/03/image_18082025_02_04_04_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/02/03/image_18082025_02_03_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa93b1518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa93b1518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa93b1518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:04:31.963828
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/04/image_18082025_02_04_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/02/04/image_18082025_02_04_35_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/02/04/image_18082025_02_04_24_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/02/04/image_18082025_02_04_14_10671.jpg', 2), ('/home/nano/Desktop/images/18082025/02/03/image_18082025_02_04_04_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/02/03/image_18082025_02_03_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8da12518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8da12518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8da12518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:04:46.964295
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/04/image_18082025_02_04_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/02/04/image_18082025_02_04_35_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/02/04/image_18082025_02_04_24_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/02/04/image_18082025_02_04_14_10671.jpg', 2), ('/home/nano/Desktop/images/18082025/02/03/image_18082025_02_04_04_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/02/03/image_18082025_02_03_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8aae4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8aae4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8aae4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:05:02.556004
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/04/image_18082025_02_04_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/02/04/image_18082025_02_04_35_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/02/04/image_18082025_02_04_24_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/02/04/image_18082025_02_04_14_10671.jpg', 2), ('/home/nano/Desktop/images/18082025/02/03/image_18082025_02_04_04_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/02/03/image_18082025_02_03_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa916a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa916a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa916a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:05:17.055968
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/05/image_18082025_02_05_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/05/image_18082025_02_05_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/02/05/image_18082025_02_05_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/05/image_18082025_02_05_14_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/02/04/image_18082025_02_05_04_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/02/04/image_18082025_02_04_54_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2b98518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2b98518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2b98518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:05:32.095604
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/05/image_18082025_02_05_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/05/image_18082025_02_05_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/02/05/image_18082025_02_05_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/05/image_18082025_02_05_14_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/02/04/image_18082025_02_05_04_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/02/04/image_18082025_02_04_54_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87faf518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87faf518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87faf518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:05:47.056839
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/05/image_18082025_02_05_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/05/image_18082025_02_05_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/02/05/image_18082025_02_05_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/05/image_18082025_02_05_14_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/02/04/image_18082025_02_05_04_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/02/04/image_18082025_02_04_54_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5cc0518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5cc0518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5cc0518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:06:02.498412
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/05/image_18082025_02_05_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/05/image_18082025_02_05_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/02/05/image_18082025_02_05_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/05/image_18082025_02_05_14_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/02/04/image_18082025_02_05_04_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/02/04/image_18082025_02_04_54_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8f5b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8f5b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8f5b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:06:17.183792
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/06/image_18082025_02_06_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/02/06/image_18082025_02_06_34_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/02/06/image_18082025_02_06_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/06/image_18082025_02_06_14_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/02/05/image_18082025_02_06_04_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/02/05/image_18082025_02_05_54_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d7c2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d7c2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d7c2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:06:32.158428
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/06/image_18082025_02_06_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/02/06/image_18082025_02_06_34_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/02/06/image_18082025_02_06_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/06/image_18082025_02_06_14_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/02/05/image_18082025_02_06_04_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/02/05/image_18082025_02_05_54_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b8bf518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b8bf518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b8bf518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:06:47.174536
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/06/image_18082025_02_06_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/02/06/image_18082025_02_06_34_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/02/06/image_18082025_02_06_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/06/image_18082025_02_06_14_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/02/05/image_18082025_02_06_04_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/02/05/image_18082025_02_05_54_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb546c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb546c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb546c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:07:02.809167
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/06/image_18082025_02_06_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/02/06/image_18082025_02_06_34_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/02/06/image_18082025_02_06_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/06/image_18082025_02_06_14_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/02/05/image_18082025_02_06_04_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/02/05/image_18082025_02_05_54_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0e40518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0e40518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0e40518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:07:17.272839
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/07/image_18082025_02_07_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/02/07/image_18082025_02_07_34_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/02/07/image_18082025_02_07_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/07/image_18082025_02_07_14_9665.jpg', 2), ('/home/nano/Desktop/images/18082025/02/06/image_18082025_02_07_04_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/02/06/image_18082025_02_06_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa143b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa143b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa143b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:07:32.280432
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/07/image_18082025_02_07_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/02/07/image_18082025_02_07_34_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/02/07/image_18082025_02_07_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/07/image_18082025_02_07_14_9665.jpg', 2), ('/home/nano/Desktop/images/18082025/02/06/image_18082025_02_07_04_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/02/06/image_18082025_02_06_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa3468518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3468518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3468518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:07:47.268434
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/07/image_18082025_02_07_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/02/07/image_18082025_02_07_34_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/02/07/image_18082025_02_07_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/07/image_18082025_02_07_14_9665.jpg', 2), ('/home/nano/Desktop/images/18082025/02/06/image_18082025_02_07_04_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/02/06/image_18082025_02_06_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ac0c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ac0c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ac0c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:08:02.749594
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/07/image_18082025_02_07_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/02/07/image_18082025_02_07_34_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/02/07/image_18082025_02_07_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/07/image_18082025_02_07_14_9665.jpg', 2), ('/home/nano/Desktop/images/18082025/02/06/image_18082025_02_07_04_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/02/06/image_18082025_02_06_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa46bb518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa46bb518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa46bb518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:08:17.341298
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/08/image_18082025_02_08_44_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/02/08/image_18082025_02_08_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/02/08/image_18082025_02_08_25_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/02/08/image_18082025_02_08_14_9677.jpg', 2), ('/home/nano/Desktop/images/18082025/02/07/image_18082025_02_08_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/02/07/image_18082025_02_07_55_10654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98225518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98225518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98225518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:08:32.360092
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/08/image_18082025_02_08_44_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/02/08/image_18082025_02_08_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/02/08/image_18082025_02_08_25_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/02/08/image_18082025_02_08_14_9677.jpg', 2), ('/home/nano/Desktop/images/18082025/02/07/image_18082025_02_08_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/02/07/image_18082025_02_07_55_10654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9521b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9521b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9521b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:08:47.334596
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/08/image_18082025_02_08_44_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/02/08/image_18082025_02_08_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/02/08/image_18082025_02_08_25_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/02/08/image_18082025_02_08_14_9677.jpg', 2), ('/home/nano/Desktop/images/18082025/02/07/image_18082025_02_08_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/02/07/image_18082025_02_07_55_10654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7bcf2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bcf2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bcf2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:09:03.037495
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/08/image_18082025_02_08_44_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/02/08/image_18082025_02_08_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/02/08/image_18082025_02_08_25_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/02/08/image_18082025_02_08_14_9677.jpg', 2), ('/home/nano/Desktop/images/18082025/02/07/image_18082025_02_08_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/02/07/image_18082025_02_07_55_10654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa8be518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa8be518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa8be518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:09:17.447517
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/09/image_18082025_02_09_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/02/09/image_18082025_02_09_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/09/image_18082025_02_09_24_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/02/09/image_18082025_02_09_14_9672.jpg', 2), ('/home/nano/Desktop/images/18082025/02/08/image_18082025_02_09_04_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/08/image_18082025_02_08_54_10652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e9854a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e9854a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e9854a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:09:32.502512
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/09/image_18082025_02_09_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/02/09/image_18082025_02_09_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/09/image_18082025_02_09_24_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/02/09/image_18082025_02_09_14_9672.jpg', 2), ('/home/nano/Desktop/images/18082025/02/08/image_18082025_02_09_04_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/08/image_18082025_02_08_54_10652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8800e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8800e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8800e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:09:47.489645
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/09/image_18082025_02_09_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/02/09/image_18082025_02_09_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/09/image_18082025_02_09_24_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/02/09/image_18082025_02_09_14_9672.jpg', 2), ('/home/nano/Desktop/images/18082025/02/08/image_18082025_02_09_04_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/08/image_18082025_02_08_54_10652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85599518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85599518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85599518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:10:03.010256
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/09/image_18082025_02_09_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/02/09/image_18082025_02_09_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/09/image_18082025_02_09_24_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/02/09/image_18082025_02_09_14_9672.jpg', 2), ('/home/nano/Desktop/images/18082025/02/08/image_18082025_02_09_04_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/08/image_18082025_02_08_54_10652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e886518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e886518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e886518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:10:17.600824
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/10/image_18082025_02_10_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/02/10/image_18082025_02_10_34_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/02/10/image_18082025_02_10_24_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/02/10/image_18082025_02_10_14_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/02/09/image_18082025_02_10_04_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/02/09/image_18082025_02_09_54_10671.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4ef9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4ef9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4ef9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:10:32.624835
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/10/image_18082025_02_10_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/02/10/image_18082025_02_10_34_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/02/10/image_18082025_02_10_24_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/02/10/image_18082025_02_10_14_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/02/09/image_18082025_02_10_04_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/02/09/image_18082025_02_09_54_10671.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84db0518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84db0518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84db0518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:10:47.578333
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/10/image_18082025_02_10_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/02/10/image_18082025_02_10_34_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/02/10/image_18082025_02_10_24_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/02/10/image_18082025_02_10_14_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/02/09/image_18082025_02_10_04_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/02/09/image_18082025_02_09_54_10671.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faeaf4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faeaf4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faeaf4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:11:03.134713
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/10/image_18082025_02_10_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/02/10/image_18082025_02_10_34_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/02/10/image_18082025_02_10_24_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/02/10/image_18082025_02_10_14_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/02/09/image_18082025_02_10_04_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/02/09/image_18082025_02_09_54_10671.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7946c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7946c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7946c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:11:17.702595
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/11/image_18082025_02_11_44_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/02/11/image_18082025_02_11_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/11/image_18082025_02_11_24_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/02/11/image_18082025_02_11_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/02/10/image_18082025_02_11_04_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/02/10/image_18082025_02_10_54_10652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f828c2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f828c2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f828c2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:11:32.677723
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/11/image_18082025_02_11_44_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/02/11/image_18082025_02_11_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/11/image_18082025_02_11_24_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/02/11/image_18082025_02_11_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/02/10/image_18082025_02_11_04_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/02/10/image_18082025_02_10_54_10652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76d224a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76d224a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76d224a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:11:47.689084
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/11/image_18082025_02_11_44_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/02/11/image_18082025_02_11_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/11/image_18082025_02_11_24_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/02/11/image_18082025_02_11_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/02/10/image_18082025_02_11_04_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/02/10/image_18082025_02_10_54_10652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2ed8518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2ed8518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2ed8518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:12:02.229825
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/11/image_18082025_02_11_44_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/02/11/image_18082025_02_11_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/11/image_18082025_02_11_24_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/02/11/image_18082025_02_11_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/02/10/image_18082025_02_11_04_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/02/10/image_18082025_02_10_54_10652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1f24518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1f24518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1f24518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:12:16.807168
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/12/image_18082025_02_12_45_10670.jpg', 2), ('/home/nano/Desktop/images/18082025/02/12/image_18082025_02_12_34_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/12/image_18082025_02_12_24_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/02/12/image_18082025_02_12_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/02/11/image_18082025_02_12_04_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/11/image_18082025_02_11_54_10667.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8124c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8124c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8124c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:12:31.793889
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/12/image_18082025_02_12_45_10670.jpg', 2), ('/home/nano/Desktop/images/18082025/02/12/image_18082025_02_12_34_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/12/image_18082025_02_12_24_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/02/12/image_18082025_02_12_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/02/11/image_18082025_02_12_04_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/11/image_18082025_02_11_54_10667.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83ee04a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83ee04a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83ee04a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:12:46.775924
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/12/image_18082025_02_12_45_10670.jpg', 2), ('/home/nano/Desktop/images/18082025/02/12/image_18082025_02_12_34_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/12/image_18082025_02_12_24_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/02/12/image_18082025_02_12_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/02/11/image_18082025_02_12_04_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/11/image_18082025_02_11_54_10667.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7669a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7669a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7669a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:13:02.326970
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/12/image_18082025_02_12_45_10670.jpg', 2), ('/home/nano/Desktop/images/18082025/02/12/image_18082025_02_12_34_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/12/image_18082025_02_12_24_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/02/12/image_18082025_02_12_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/02/11/image_18082025_02_12_04_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/11/image_18082025_02_11_54_10667.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad63f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad63f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad63f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:13:16.916376
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/13/image_18082025_02_13_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/02/13/image_18082025_02_13_34_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/02/13/image_18082025_02_13_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/02/12/image_18082025_02_13_04_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/02/12/image_18082025_02_12_54_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/12/image_18082025_02_12_45_10670.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2adf518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2adf518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2adf518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:13:31.880742
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/13/image_18082025_02_13_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/02/13/image_18082025_02_13_34_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/02/13/image_18082025_02_13_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/02/12/image_18082025_02_13_04_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/02/12/image_18082025_02_12_54_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/12/image_18082025_02_12_45_10670.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f775e5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f775e5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f775e5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:13:46.939650
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/13/image_18082025_02_13_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/02/13/image_18082025_02_13_34_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/02/13/image_18082025_02_13_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/02/12/image_18082025_02_13_04_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/02/12/image_18082025_02_12_54_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/12/image_18082025_02_12_45_10670.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f818a3518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f818a3518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f818a3518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:14:02.548787
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/13/image_18082025_02_13_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/02/13/image_18082025_02_13_34_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/02/13/image_18082025_02_13_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/02/12/image_18082025_02_13_04_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/02/12/image_18082025_02_12_54_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/12/image_18082025_02_12_45_10670.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f822e6518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f822e6518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f822e6518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:14:17.061069
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/14/image_18082025_02_14_34_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/02/14/image_18082025_02_14_24_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/02/14/image_18082025_02_14_14_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/02/13/image_18082025_02_14_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/02/13/image_18082025_02_13_54_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/02/13/image_18082025_02_13_44_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5d704a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5d704a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5d704a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:14:32.040721
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/14/image_18082025_02_14_34_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/02/14/image_18082025_02_14_24_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/02/14/image_18082025_02_14_14_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/02/13/image_18082025_02_14_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/02/13/image_18082025_02_13_54_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/02/13/image_18082025_02_13_44_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7794c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7794c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7794c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:14:47.068856
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/14/image_18082025_02_14_34_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/02/14/image_18082025_02_14_24_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/02/14/image_18082025_02_14_14_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/02/13/image_18082025_02_14_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/02/13/image_18082025_02_13_54_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/02/13/image_18082025_02_13_44_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96fd7518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96fd7518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96fd7518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:15:02.596498
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/14/image_18082025_02_14_34_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/02/14/image_18082025_02_14_24_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/02/14/image_18082025_02_14_14_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/02/13/image_18082025_02_14_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/02/13/image_18082025_02_13_54_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/02/13/image_18082025_02_13_44_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f92184518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92184518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92184518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:15:17.174356
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/15/image_18082025_02_15_44_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/02/15/image_18082025_02_15_34_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/02/15/image_18082025_02_15_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/15/image_18082025_02_15_14_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/02/14/image_18082025_02_15_04_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/02/14/image_18082025_02_14_54_9646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d488518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d488518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d488518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:15:32.181853
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/15/image_18082025_02_15_44_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/02/15/image_18082025_02_15_34_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/02/15/image_18082025_02_15_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/15/image_18082025_02_15_14_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/02/14/image_18082025_02_15_04_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/02/14/image_18082025_02_14_54_9646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a48e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a48e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a48e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:15:47.179728
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/15/image_18082025_02_15_44_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/02/15/image_18082025_02_15_34_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/02/15/image_18082025_02_15_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/15/image_18082025_02_15_14_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/02/14/image_18082025_02_15_04_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/02/14/image_18082025_02_14_54_9646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8fa03518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fa03518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fa03518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:16:02.594129
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/15/image_18082025_02_15_44_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/02/15/image_18082025_02_15_34_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/02/15/image_18082025_02_15_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/15/image_18082025_02_15_14_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/02/14/image_18082025_02_15_04_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/02/14/image_18082025_02_14_54_9646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95ceb518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95ceb518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95ceb518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:16:17.302857
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/16/image_18082025_02_16_44_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/02/16/image_18082025_02_16_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/02/16/image_18082025_02_16_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/16/image_18082025_02_16_14_10674.jpg', 2), ('/home/nano/Desktop/images/18082025/02/15/image_18082025_02_16_04_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/02/15/image_18082025_02_15_54_9658.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e008518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e008518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e008518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:16:32.289948
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/16/image_18082025_02_16_44_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/02/16/image_18082025_02_16_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/02/16/image_18082025_02_16_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/16/image_18082025_02_16_14_10674.jpg', 2), ('/home/nano/Desktop/images/18082025/02/15/image_18082025_02_16_04_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/02/15/image_18082025_02_15_54_9658.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6ca9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6ca9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6ca9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:16:47.321259
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/16/image_18082025_02_16_44_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/02/16/image_18082025_02_16_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/02/16/image_18082025_02_16_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/16/image_18082025_02_16_14_10674.jpg', 2), ('/home/nano/Desktop/images/18082025/02/15/image_18082025_02_16_04_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/02/15/image_18082025_02_15_54_9658.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2c15518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2c15518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2c15518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:17:02.869603
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/16/image_18082025_02_16_44_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/02/16/image_18082025_02_16_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/02/16/image_18082025_02_16_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/16/image_18082025_02_16_14_10674.jpg', 2), ('/home/nano/Desktop/images/18082025/02/15/image_18082025_02_16_04_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/02/15/image_18082025_02_15_54_9658.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8fa574a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fa574a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fa574a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:17:17.449602
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/17/image_18082025_02_17_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/17/image_18082025_02_17_35_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/02/17/image_18082025_02_17_24_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/02/17/image_18082025_02_17_14_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/02/16/image_18082025_02_17_04_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/02/16/image_18082025_02_16_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89d2b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89d2b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89d2b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:17:32.437449
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/17/image_18082025_02_17_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/17/image_18082025_02_17_35_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/02/17/image_18082025_02_17_24_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/02/17/image_18082025_02_17_14_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/02/16/image_18082025_02_17_04_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/02/16/image_18082025_02_16_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb49594a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb49594a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb49594a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:17:47.435139
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/17/image_18082025_02_17_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/17/image_18082025_02_17_35_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/02/17/image_18082025_02_17_24_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/02/17/image_18082025_02_17_14_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/02/16/image_18082025_02_17_04_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/02/16/image_18082025_02_16_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f80244518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80244518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80244518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:18:02.928871
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/17/image_18082025_02_17_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/17/image_18082025_02_17_35_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/02/17/image_18082025_02_17_24_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/02/17/image_18082025_02_17_14_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/02/16/image_18082025_02_17_04_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/02/16/image_18082025_02_16_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb468a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb468a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb468a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:18:17.517070
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/18/image_18082025_02_18_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/18/image_18082025_02_18_34_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/02/18/image_18082025_02_18_24_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/02/18/image_18082025_02_18_14_9666.jpg', 2), ('/home/nano/Desktop/images/18082025/02/17/image_18082025_02_18_04_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/02/17/image_18082025_02_17_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0cb7518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0cb7518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0cb7518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:18:32.503357
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/18/image_18082025_02_18_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/18/image_18082025_02_18_34_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/02/18/image_18082025_02_18_24_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/02/18/image_18082025_02_18_14_9666.jpg', 2), ('/home/nano/Desktop/images/18082025/02/17/image_18082025_02_18_04_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/02/17/image_18082025_02_17_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85332518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85332518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85332518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:18:47.528005
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/18/image_18082025_02_18_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/18/image_18082025_02_18_34_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/02/18/image_18082025_02_18_24_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/02/18/image_18082025_02_18_14_9666.jpg', 2), ('/home/nano/Desktop/images/18082025/02/17/image_18082025_02_18_04_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/02/17/image_18082025_02_17_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83235518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83235518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83235518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:19:03.318454
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/18/image_18082025_02_18_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/18/image_18082025_02_18_34_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/02/18/image_18082025_02_18_24_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/02/18/image_18082025_02_18_14_9666.jpg', 2), ('/home/nano/Desktop/images/18082025/02/17/image_18082025_02_18_04_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/02/17/image_18082025_02_17_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faff7c4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faff7c4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faff7c4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:19:17.611260
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/19/image_18082025_02_19_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/02/19/image_18082025_02_19_34_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/02/19/image_18082025_02_19_24_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/02/19/image_18082025_02_19_14_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/02/18/image_18082025_02_19_04_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/02/18/image_18082025_02_18_54_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa31d0518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa31d0518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa31d0518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:19:32.612035
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/19/image_18082025_02_19_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/02/19/image_18082025_02_19_34_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/02/19/image_18082025_02_19_24_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/02/19/image_18082025_02_19_14_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/02/18/image_18082025_02_19_04_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/02/18/image_18082025_02_18_54_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2ee1518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2ee1518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2ee1518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:19:47.654009
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/19/image_18082025_02_19_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/02/19/image_18082025_02_19_34_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/02/19/image_18082025_02_19_24_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/02/19/image_18082025_02_19_14_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/02/18/image_18082025_02_19_04_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/02/18/image_18082025_02_18_54_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8fcac518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fcac518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fcac518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:20:02.181414
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/19/image_18082025_02_19_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/02/19/image_18082025_02_19_34_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/02/19/image_18082025_02_19_24_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/02/19/image_18082025_02_19_14_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/02/18/image_18082025_02_19_04_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/02/18/image_18082025_02_18_54_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0ba9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0ba9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0ba9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:20:16.773152
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/20/image_18082025_02_20_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/20/image_18082025_02_20_34_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/02/20/image_18082025_02_20_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/02/20/image_18082025_02_20_14_9679.jpg', 2), ('/home/nano/Desktop/images/18082025/02/19/image_18082025_02_20_04_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/19/image_18082025_02_19_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb54374a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb54374a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb54374a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:20:31.774744
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/20/image_18082025_02_20_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/20/image_18082025_02_20_34_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/02/20/image_18082025_02_20_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/02/20/image_18082025_02_20_14_9679.jpg', 2), ('/home/nano/Desktop/images/18082025/02/19/image_18082025_02_20_04_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/19/image_18082025_02_19_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9aeb1518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9aeb1518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9aeb1518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:20:46.767887
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/20/image_18082025_02_20_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/20/image_18082025_02_20_34_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/02/20/image_18082025_02_20_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/02/20/image_18082025_02_20_14_9679.jpg', 2), ('/home/nano/Desktop/images/18082025/02/19/image_18082025_02_20_04_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/19/image_18082025_02_19_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ddf4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ddf4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ddf4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:21:02.386972
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/20/image_18082025_02_20_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/20/image_18082025_02_20_34_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/02/20/image_18082025_02_20_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/02/20/image_18082025_02_20_14_9679.jpg', 2), ('/home/nano/Desktop/images/18082025/02/19/image_18082025_02_20_04_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/19/image_18082025_02_19_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f866b7518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f866b7518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f866b7518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:21:16.887487
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/21/image_18082025_02_21_44_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/02/21/image_18082025_02_21_34_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/02/21/image_18082025_02_21_25_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/02/21/image_18082025_02_21_14_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/02/20/image_18082025_02_21_04_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/02/20/image_18082025_02_20_54_9656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa36664a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa36664a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa36664a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:21:31.863721
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/21/image_18082025_02_21_44_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/02/21/image_18082025_02_21_34_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/02/21/image_18082025_02_21_25_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/02/21/image_18082025_02_21_14_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/02/20/image_18082025_02_21_04_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/02/20/image_18082025_02_20_54_9656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7fc09518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fc09518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fc09518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:21:46.880980
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/21/image_18082025_02_21_44_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/02/21/image_18082025_02_21_34_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/02/21/image_18082025_02_21_25_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/02/21/image_18082025_02_21_14_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/02/20/image_18082025_02_21_04_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/02/20/image_18082025_02_20_54_9656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa17c2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa17c2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa17c2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:22:02.305667
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/21/image_18082025_02_21_44_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/02/21/image_18082025_02_21_34_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/02/21/image_18082025_02_21_25_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/02/21/image_18082025_02_21_14_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/02/20/image_18082025_02_21_04_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/02/20/image_18082025_02_20_54_9656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7916a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7916a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7916a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:22:16.967727
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/22/image_18082025_02_22_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/02/22/image_18082025_02_22_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/02/22/image_18082025_02_22_24_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/02/22/image_18082025_02_22_14_9672.jpg', 2), ('/home/nano/Desktop/images/18082025/02/21/image_18082025_02_22_04_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/02/21/image_18082025_02_21_54_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb35c9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb35c9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb35c9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:22:32.015321
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/22/image_18082025_02_22_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/02/22/image_18082025_02_22_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/02/22/image_18082025_02_22_24_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/02/22/image_18082025_02_22_14_9672.jpg', 2), ('/home/nano/Desktop/images/18082025/02/21/image_18082025_02_22_04_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/02/21/image_18082025_02_21_54_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90b60550>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90b60550>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90b60550>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:22:46.974162
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/22/image_18082025_02_22_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/02/22/image_18082025_02_22_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/02/22/image_18082025_02_22_24_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/02/22/image_18082025_02_22_14_9672.jpg', 2), ('/home/nano/Desktop/images/18082025/02/21/image_18082025_02_22_04_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/02/21/image_18082025_02_21_54_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa77c9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa77c9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa77c9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:23:02.698833
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/22/image_18082025_02_22_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/02/22/image_18082025_02_22_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/02/22/image_18082025_02_22_24_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/02/22/image_18082025_02_22_14_9672.jpg', 2), ('/home/nano/Desktop/images/18082025/02/21/image_18082025_02_22_04_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/02/21/image_18082025_02_21_54_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93801518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93801518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93801518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:23:17.074211
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/23/image_18082025_02_23_44_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/02/23/image_18082025_02_23_34_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/02/23/image_18082025_02_23_24_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/02/23/image_18082025_02_23_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/02/22/image_18082025_02_23_04_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/02/22/image_18082025_02_22_54_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f80c72518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80c72518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80c72518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:23:32.102887
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/23/image_18082025_02_23_44_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/02/23/image_18082025_02_23_34_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/02/23/image_18082025_02_23_24_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/02/23/image_18082025_02_23_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/02/22/image_18082025_02_23_04_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/02/22/image_18082025_02_22_54_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0bcd518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0bcd518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0bcd518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:23:47.074583
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/23/image_18082025_02_23_44_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/02/23/image_18082025_02_23_34_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/02/23/image_18082025_02_23_24_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/02/23/image_18082025_02_23_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/02/22/image_18082025_02_23_04_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/02/22/image_18082025_02_22_54_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89a46518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89a46518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89a46518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:24:02.718530
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/23/image_18082025_02_23_44_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/02/23/image_18082025_02_23_34_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/02/23/image_18082025_02_23_24_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/02/23/image_18082025_02_23_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/02/22/image_18082025_02_23_04_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/02/22/image_18082025_02_22_54_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa21214a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa21214a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa21214a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:24:17.189686
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/24/image_18082025_02_24_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/24/image_18082025_02_24_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/24/image_18082025_02_24_24_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/02/24/image_18082025_02_24_14_9666.jpg', 2), ('/home/nano/Desktop/images/18082025/02/23/image_18082025_02_24_04_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/02/23/image_18082025_02_23_54_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d344518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d344518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d344518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:24:32.199671
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/24/image_18082025_02_24_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/24/image_18082025_02_24_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/24/image_18082025_02_24_24_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/02/24/image_18082025_02_24_14_9666.jpg', 2), ('/home/nano/Desktop/images/18082025/02/23/image_18082025_02_24_04_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/02/23/image_18082025_02_23_54_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4451518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4451518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4451518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:24:47.200231
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/24/image_18082025_02_24_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/24/image_18082025_02_24_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/24/image_18082025_02_24_24_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/02/24/image_18082025_02_24_14_9666.jpg', 2), ('/home/nano/Desktop/images/18082025/02/23/image_18082025_02_24_04_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/02/23/image_18082025_02_23_54_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89d4b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89d4b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89d4b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:25:02.797248
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/24/image_18082025_02_24_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/24/image_18082025_02_24_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/24/image_18082025_02_24_24_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/02/24/image_18082025_02_24_14_9666.jpg', 2), ('/home/nano/Desktop/images/18082025/02/23/image_18082025_02_24_04_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/02/23/image_18082025_02_23_54_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f92c45518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92c45518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92c45518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:25:17.302223
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/25/image_18082025_02_25_44_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/02/25/image_18082025_02_25_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/25/image_18082025_02_25_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/02/25/image_18082025_02_25_15_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/02/24/image_18082025_02_25_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/24/image_18082025_02_24_54_10667.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9036a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9036a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9036a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:25:32.298112
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/25/image_18082025_02_25_44_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/02/25/image_18082025_02_25_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/25/image_18082025_02_25_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/02/25/image_18082025_02_25_15_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/02/24/image_18082025_02_25_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/24/image_18082025_02_24_54_10667.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89bb4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89bb4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89bb4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:25:47.318135
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/25/image_18082025_02_25_44_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/02/25/image_18082025_02_25_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/25/image_18082025_02_25_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/02/25/image_18082025_02_25_15_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/02/24/image_18082025_02_25_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/24/image_18082025_02_24_54_10667.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f883c4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f883c4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f883c4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:26:02.807539
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/25/image_18082025_02_25_44_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/02/25/image_18082025_02_25_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/25/image_18082025_02_25_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/02/25/image_18082025_02_25_15_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/02/24/image_18082025_02_25_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/24/image_18082025_02_24_54_10667.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87d4a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87d4a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87d4a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:26:17.434500
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/26/image_18082025_02_26_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/26/image_18082025_02_26_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/26/image_18082025_02_26_14_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/02/25/image_18082025_02_26_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/02/25/image_18082025_02_25_54_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/25/image_18082025_02_25_44_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f846654a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f846654a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f846654a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:26:32.413297
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/26/image_18082025_02_26_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/26/image_18082025_02_26_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/26/image_18082025_02_26_14_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/02/25/image_18082025_02_26_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/02/25/image_18082025_02_25_54_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/25/image_18082025_02_25_44_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fafa60518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafa60518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafa60518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:26:47.421396
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/26/image_18082025_02_26_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/26/image_18082025_02_26_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/26/image_18082025_02_26_14_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/02/25/image_18082025_02_26_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/02/25/image_18082025_02_25_54_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/25/image_18082025_02_25_44_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0a7e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0a7e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0a7e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:27:02.940003
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/26/image_18082025_02_26_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/26/image_18082025_02_26_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/26/image_18082025_02_26_14_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/02/25/image_18082025_02_26_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/02/25/image_18082025_02_25_54_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/25/image_18082025_02_25_44_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a178518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a178518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a178518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:27:17.522832
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/27/image_18082025_02_27_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/02/27/image_18082025_02_27_34_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/02/27/image_18082025_02_27_24_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/02/26/image_18082025_02_27_04_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/02/26/image_18082025_02_26_54_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/02/26/image_18082025_02_26_34_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7dc41518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7dc41518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7dc41518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:27:32.517888
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/27/image_18082025_02_27_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/02/27/image_18082025_02_27_34_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/02/27/image_18082025_02_27_24_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/02/26/image_18082025_02_27_04_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/02/26/image_18082025_02_26_54_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/02/26/image_18082025_02_26_34_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f0df4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f0df4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f0df4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:27:47.492613
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/27/image_18082025_02_27_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/02/27/image_18082025_02_27_34_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/02/27/image_18082025_02_27_24_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/02/26/image_18082025_02_27_04_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/02/26/image_18082025_02_26_54_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/02/26/image_18082025_02_26_34_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3eed518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3eed518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3eed518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:28:02.981795
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/27/image_18082025_02_27_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/02/27/image_18082025_02_27_34_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/02/27/image_18082025_02_27_24_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/02/26/image_18082025_02_27_04_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/02/26/image_18082025_02_26_54_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/02/26/image_18082025_02_26_34_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b2df518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b2df518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b2df518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:28:17.672903
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/28/image_18082025_02_28_44_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/02/28/image_18082025_02_28_34_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/02/28/image_18082025_02_28_24_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/02/28/image_18082025_02_28_14_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/02/27/image_18082025_02_28_04_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/02/27/image_18082025_02_27_54_9645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85cd0518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85cd0518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85cd0518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:28:32.604598
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/28/image_18082025_02_28_44_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/02/28/image_18082025_02_28_34_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/02/28/image_18082025_02_28_24_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/02/28/image_18082025_02_28_14_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/02/27/image_18082025_02_28_04_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/02/27/image_18082025_02_27_54_9645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faabfb518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faabfb518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faabfb518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:28:47.640367
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/28/image_18082025_02_28_44_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/02/28/image_18082025_02_28_34_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/02/28/image_18082025_02_28_24_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/02/28/image_18082025_02_28_14_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/02/27/image_18082025_02_28_04_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/02/27/image_18082025_02_27_54_9645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a3d0518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a3d0518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a3d0518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:29:03.442858
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/28/image_18082025_02_28_44_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/02/28/image_18082025_02_28_34_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/02/28/image_18082025_02_28_24_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/02/28/image_18082025_02_28_14_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/02/27/image_18082025_02_28_04_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/02/27/image_18082025_02_27_54_9645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f4814a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f4814a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f4814a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:29:17.765595
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/29/image_18082025_02_29_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/29/image_18082025_02_29_34_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/29/image_18082025_02_29_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/29/image_18082025_02_29_14_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/02/28/image_18082025_02_29_05_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/28/image_18082025_02_28_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8fd9c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fd9c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fd9c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:29:32.757129
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/29/image_18082025_02_29_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/29/image_18082025_02_29_34_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/29/image_18082025_02_29_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/29/image_18082025_02_29_14_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/02/28/image_18082025_02_29_05_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/28/image_18082025_02_28_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9fefe518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fefe518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fefe518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:29:47.773864
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/29/image_18082025_02_29_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/29/image_18082025_02_29_34_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/29/image_18082025_02_29_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/29/image_18082025_02_29_14_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/02/28/image_18082025_02_29_05_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/28/image_18082025_02_28_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa3212518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3212518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3212518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:30:02.193565
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/29/image_18082025_02_29_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/29/image_18082025_02_29_34_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/29/image_18082025_02_29_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/29/image_18082025_02_29_14_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/02/28/image_18082025_02_29_05_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/28/image_18082025_02_28_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78dd94a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78dd94a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78dd94a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:30:16.863316
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/30/image_18082025_02_30_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/30/image_18082025_02_30_34_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/02/30/image_18082025_02_30_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/30/image_18082025_02_30_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/02/29/image_18082025_02_30_04_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/02/29/image_18082025_02_29_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78754518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78754518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78754518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:30:31.885833
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/30/image_18082025_02_30_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/30/image_18082025_02_30_34_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/02/30/image_18082025_02_30_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/30/image_18082025_02_30_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/02/29/image_18082025_02_30_04_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/02/29/image_18082025_02_29_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ec0e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ec0e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ec0e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:30:46.861850
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/30/image_18082025_02_30_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/30/image_18082025_02_30_34_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/02/30/image_18082025_02_30_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/30/image_18082025_02_30_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/02/29/image_18082025_02_30_04_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/02/29/image_18082025_02_29_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b118518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b118518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b118518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:31:02.359671
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/30/image_18082025_02_30_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/30/image_18082025_02_30_34_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/02/30/image_18082025_02_30_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/30/image_18082025_02_30_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/02/29/image_18082025_02_30_04_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/02/29/image_18082025_02_29_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f938f1518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f938f1518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f938f1518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:31:16.939288
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/31/image_18082025_02_31_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/31/image_18082025_02_31_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/02/31/image_18082025_02_31_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/02/31/image_18082025_02_31_14_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/02/30/image_18082025_02_31_04_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/02/30/image_18082025_02_30_54_9645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8535c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8535c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8535c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:31:31.942446
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/31/image_18082025_02_31_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/31/image_18082025_02_31_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/02/31/image_18082025_02_31_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/02/31/image_18082025_02_31_14_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/02/30/image_18082025_02_31_04_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/02/30/image_18082025_02_30_54_9645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93301518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93301518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93301518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:31:46.962409
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/31/image_18082025_02_31_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/31/image_18082025_02_31_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/02/31/image_18082025_02_31_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/02/31/image_18082025_02_31_14_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/02/30/image_18082025_02_31_04_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/02/30/image_18082025_02_30_54_9645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7fa5d4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fa5d4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fa5d4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:32:02.469807
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/31/image_18082025_02_31_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/31/image_18082025_02_31_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/02/31/image_18082025_02_31_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/02/31/image_18082025_02_31_14_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/02/30/image_18082025_02_31_04_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/02/30/image_18082025_02_30_54_9645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa82e9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa82e9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa82e9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:32:17.076525
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/32/image_18082025_02_32_44_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/02/32/image_18082025_02_32_34_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/02/32/image_18082025_02_32_25_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/02/31/image_18082025_02_32_04_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/02/31/image_18082025_02_31_55_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/02/31/image_18082025_02_31_44_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8fa19518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fa19518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fa19518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:32:32.041027
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/32/image_18082025_02_32_44_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/02/32/image_18082025_02_32_34_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/02/32/image_18082025_02_32_25_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/02/31/image_18082025_02_32_04_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/02/31/image_18082025_02_31_55_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/02/31/image_18082025_02_31_44_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f767da518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f767da518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f767da518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:32:47.049694
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/32/image_18082025_02_32_44_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/02/32/image_18082025_02_32_34_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/02/32/image_18082025_02_32_25_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/02/31/image_18082025_02_32_04_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/02/31/image_18082025_02_31_55_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/02/31/image_18082025_02_31_44_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fafa45518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafa45518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafa45518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:33:02.686842
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/32/image_18082025_02_32_44_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/02/32/image_18082025_02_32_34_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/02/32/image_18082025_02_32_25_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/02/31/image_18082025_02_32_04_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/02/31/image_18082025_02_31_55_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/02/31/image_18082025_02_31_44_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76bac518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76bac518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76bac518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:33:17.169928
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/33/image_18082025_02_33_34_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/33/image_18082025_02_33_24_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/02/33/image_18082025_02_33_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/02/32/image_18082025_02_33_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/02/32/image_18082025_02_32_54_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/02/32/image_18082025_02_32_44_9657.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8bfb0518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8bfb0518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8bfb0518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:33:32.162752
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/33/image_18082025_02_33_34_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/33/image_18082025_02_33_24_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/02/33/image_18082025_02_33_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/02/32/image_18082025_02_33_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/02/32/image_18082025_02_32_54_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/02/32/image_18082025_02_32_44_9657.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c1004a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c1004a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c1004a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:33:47.143945
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/33/image_18082025_02_33_34_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/33/image_18082025_02_33_24_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/02/33/image_18082025_02_33_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/02/32/image_18082025_02_33_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/02/32/image_18082025_02_32_54_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/02/32/image_18082025_02_32_44_9657.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88025518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88025518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88025518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:34:02.932693
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/33/image_18082025_02_33_34_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/33/image_18082025_02_33_24_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/02/33/image_18082025_02_33_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/02/32/image_18082025_02_33_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/02/32/image_18082025_02_32_54_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/02/32/image_18082025_02_32_44_9657.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93c4a4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93c4a4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93c4a4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:34:17.271960
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/34/image_18082025_02_34_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/02/34/image_18082025_02_34_24_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/02/34/image_18082025_02_34_14_9666.jpg', 2), ('/home/nano/Desktop/images/18082025/02/33/image_18082025_02_34_04_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/02/33/image_18082025_02_33_54_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/02/33/image_18082025_02_33_34_9656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3b96550>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3b96550>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3b96550>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:34:32.252722
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/34/image_18082025_02_34_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/02/34/image_18082025_02_34_24_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/02/34/image_18082025_02_34_14_9666.jpg', 2), ('/home/nano/Desktop/images/18082025/02/33/image_18082025_02_34_04_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/02/33/image_18082025_02_33_54_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/02/33/image_18082025_02_33_34_9656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87d224a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87d224a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87d224a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:34:47.245915
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/34/image_18082025_02_34_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/02/34/image_18082025_02_34_24_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/02/34/image_18082025_02_34_14_9666.jpg', 2), ('/home/nano/Desktop/images/18082025/02/33/image_18082025_02_34_04_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/02/33/image_18082025_02_33_54_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/02/33/image_18082025_02_33_34_9656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e9ea4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e9ea4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e9ea4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:35:02.784871
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/34/image_18082025_02_34_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/02/34/image_18082025_02_34_24_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/02/34/image_18082025_02_34_14_9666.jpg', 2), ('/home/nano/Desktop/images/18082025/02/33/image_18082025_02_34_04_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/02/33/image_18082025_02_33_54_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/02/33/image_18082025_02_33_34_9656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a1674a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a1674a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a1674a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:35:17.356521
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/35/image_18082025_02_35_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/35/image_18082025_02_35_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/35/image_18082025_02_35_24_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/02/35/image_18082025_02_35_14_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/02/34/image_18082025_02_35_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/02/34/image_18082025_02_34_54_10654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99d07518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99d07518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99d07518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:35:32.342900
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/35/image_18082025_02_35_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/35/image_18082025_02_35_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/35/image_18082025_02_35_24_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/02/35/image_18082025_02_35_14_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/02/34/image_18082025_02_35_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/02/34/image_18082025_02_34_54_10654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fafb4f4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafb4f4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafb4f4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:35:47.350259
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/35/image_18082025_02_35_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/35/image_18082025_02_35_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/35/image_18082025_02_35_24_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/02/35/image_18082025_02_35_14_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/02/34/image_18082025_02_35_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/02/34/image_18082025_02_34_54_10654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7661a4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7661a4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7661a4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:36:02.815649
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/35/image_18082025_02_35_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/35/image_18082025_02_35_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/35/image_18082025_02_35_24_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/02/35/image_18082025_02_35_14_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/02/34/image_18082025_02_35_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/02/34/image_18082025_02_34_54_10654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ef90518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ef90518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ef90518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:36:17.502558
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/36/image_18082025_02_36_44_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/02/36/image_18082025_02_36_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/02/36/image_18082025_02_36_24_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/02/36/image_18082025_02_36_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/02/35/image_18082025_02_36_04_9674.jpg', 2), ('/home/nano/Desktop/images/18082025/02/35/image_18082025_02_35_54_10657.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb32d1518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb32d1518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb32d1518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:36:32.473864
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/36/image_18082025_02_36_44_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/02/36/image_18082025_02_36_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/02/36/image_18082025_02_36_24_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/02/36/image_18082025_02_36_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/02/35/image_18082025_02_36_04_9674.jpg', 2), ('/home/nano/Desktop/images/18082025/02/35/image_18082025_02_35_54_10657.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa549e550>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa549e550>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa549e550>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:36:47.457940
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/36/image_18082025_02_36_44_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/02/36/image_18082025_02_36_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/02/36/image_18082025_02_36_24_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/02/36/image_18082025_02_36_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/02/35/image_18082025_02_36_04_9674.jpg', 2), ('/home/nano/Desktop/images/18082025/02/35/image_18082025_02_35_54_10657.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9665f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9665f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9665f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:37:03.041342
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/36/image_18082025_02_36_44_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/02/36/image_18082025_02_36_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/02/36/image_18082025_02_36_24_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/02/36/image_18082025_02_36_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/02/35/image_18082025_02_36_04_9674.jpg', 2), ('/home/nano/Desktop/images/18082025/02/35/image_18082025_02_35_54_10657.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9575a4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9575a4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9575a4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:37:17.554243
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/37/image_18082025_02_37_44_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/02/37/image_18082025_02_37_34_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/02/37/image_18082025_02_37_24_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/02/37/image_18082025_02_37_14_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/02/36/image_18082025_02_37_04_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/36/image_18082025_02_36_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fadb7a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fadb7a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fadb7a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:37:32.573310
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/37/image_18082025_02_37_44_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/02/37/image_18082025_02_37_34_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/02/37/image_18082025_02_37_24_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/02/37/image_18082025_02_37_14_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/02/36/image_18082025_02_37_04_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/36/image_18082025_02_36_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9fe104a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fe104a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fe104a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:37:47.583054
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/37/image_18082025_02_37_44_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/02/37/image_18082025_02_37_34_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/02/37/image_18082025_02_37_24_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/02/37/image_18082025_02_37_14_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/02/36/image_18082025_02_37_04_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/36/image_18082025_02_36_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99ab84a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99ab84a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99ab84a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:38:03.039128
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/37/image_18082025_02_37_44_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/02/37/image_18082025_02_37_34_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/02/37/image_18082025_02_37_24_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/02/37/image_18082025_02_37_14_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/02/36/image_18082025_02_37_04_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/36/image_18082025_02_36_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96db0518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96db0518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96db0518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:38:17.670894
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/38/image_18082025_02_38_44_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/02/38/image_18082025_02_38_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/38/image_18082025_02_38_24_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/02/37/image_18082025_02_38_04_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/02/37/image_18082025_02_37_54_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/37/image_18082025_02_37_44_10666.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3787518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3787518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3787518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:38:32.728421
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/38/image_18082025_02_38_44_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/02/38/image_18082025_02_38_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/38/image_18082025_02_38_24_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/02/37/image_18082025_02_38_04_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/02/37/image_18082025_02_37_54_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/37/image_18082025_02_37_44_10666.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fafc474a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafc474a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafc474a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:38:47.698562
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/38/image_18082025_02_38_44_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/02/38/image_18082025_02_38_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/38/image_18082025_02_38_24_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/02/37/image_18082025_02_38_04_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/02/37/image_18082025_02_37_54_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/37/image_18082025_02_37_44_10666.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7facd21518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7facd21518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7facd21518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:39:02.618391
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/38/image_18082025_02_38_44_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/02/38/image_18082025_02_38_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/38/image_18082025_02_38_24_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/02/37/image_18082025_02_38_04_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/02/37/image_18082025_02_37_54_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/37/image_18082025_02_37_44_10666.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81947518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81947518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81947518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:39:16.797266
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/39/image_18082025_02_39_44_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/02/39/image_18082025_02_39_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/39/image_18082025_02_39_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/39/image_18082025_02_39_14_10671.jpg', 2), ('/home/nano/Desktop/images/18082025/02/38/image_18082025_02_39_04_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/38/image_18082025_02_38_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ced9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ced9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ced9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:39:31.817543
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/39/image_18082025_02_39_44_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/02/39/image_18082025_02_39_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/39/image_18082025_02_39_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/39/image_18082025_02_39_14_10671.jpg', 2), ('/home/nano/Desktop/images/18082025/02/38/image_18082025_02_39_04_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/38/image_18082025_02_38_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a60d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a60d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a60d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:39:46.837782
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/39/image_18082025_02_39_44_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/02/39/image_18082025_02_39_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/39/image_18082025_02_39_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/39/image_18082025_02_39_14_10671.jpg', 2), ('/home/nano/Desktop/images/18082025/02/38/image_18082025_02_39_04_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/38/image_18082025_02_38_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b23c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b23c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b23c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:40:02.303040
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/39/image_18082025_02_39_44_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/02/39/image_18082025_02_39_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/39/image_18082025_02_39_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/39/image_18082025_02_39_14_10671.jpg', 2), ('/home/nano/Desktop/images/18082025/02/38/image_18082025_02_39_04_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/38/image_18082025_02_38_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fafcfc518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafcfc518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafcfc518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:40:16.936195
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/40/image_18082025_02_40_54_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/40/image_18082025_02_40_35_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/02/40/image_18082025_02_40_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/40/image_18082025_02_40_14_9687.jpg', 2), ('/home/nano/Desktop/images/18082025/02/39/image_18082025_02_40_05_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/02/39/image_18082025_02_39_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faea05518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faea05518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faea05518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:40:31.942846
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/40/image_18082025_02_40_54_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/40/image_18082025_02_40_35_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/02/40/image_18082025_02_40_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/40/image_18082025_02_40_14_9687.jpg', 2), ('/home/nano/Desktop/images/18082025/02/39/image_18082025_02_40_05_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/02/39/image_18082025_02_39_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb205d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb205d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb205d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:40:46.919577
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/40/image_18082025_02_40_54_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/40/image_18082025_02_40_35_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/02/40/image_18082025_02_40_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/40/image_18082025_02_40_14_9687.jpg', 2), ('/home/nano/Desktop/images/18082025/02/39/image_18082025_02_40_05_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/02/39/image_18082025_02_39_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f788ae518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f788ae518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f788ae518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:41:02.521274
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/40/image_18082025_02_40_54_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/40/image_18082025_02_40_35_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/02/40/image_18082025_02_40_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/40/image_18082025_02_40_14_9687.jpg', 2), ('/home/nano/Desktop/images/18082025/02/39/image_18082025_02_40_05_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/02/39/image_18082025_02_39_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6ac34a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6ac34a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6ac34a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:41:17.082225
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/41/image_18082025_02_41_44_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/02/41/image_18082025_02_41_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/02/41/image_18082025_02_41_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/41/image_18082025_02_41_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/40/image_18082025_02_41_04_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/02/40/image_18082025_02_40_54_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0f8a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0f8a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0f8a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:41:32.038195
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/41/image_18082025_02_41_44_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/02/41/image_18082025_02_41_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/02/41/image_18082025_02_41_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/41/image_18082025_02_41_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/40/image_18082025_02_41_04_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/02/40/image_18082025_02_40_54_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fafcf2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafcf2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafcf2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:41:47.022885
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/41/image_18082025_02_41_44_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/02/41/image_18082025_02_41_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/02/41/image_18082025_02_41_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/41/image_18082025_02_41_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/40/image_18082025_02_41_04_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/02/40/image_18082025_02_40_54_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad67b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad67b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad67b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:42:02.418997
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/41/image_18082025_02_41_44_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/02/41/image_18082025_02_41_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/02/41/image_18082025_02_41_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/41/image_18082025_02_41_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/40/image_18082025_02_41_04_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/02/40/image_18082025_02_40_54_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99427518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99427518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99427518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:42:17.119020
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/42/image_18082025_02_42_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/42/image_18082025_02_42_34_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/02/42/image_18082025_02_42_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/02/42/image_18082025_02_42_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/02/41/image_18082025_02_42_04_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/41/image_18082025_02_41_54_9659.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78e22518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78e22518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78e22518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:42:32.133452
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/42/image_18082025_02_42_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/42/image_18082025_02_42_34_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/02/42/image_18082025_02_42_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/02/42/image_18082025_02_42_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/02/41/image_18082025_02_42_04_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/41/image_18082025_02_41_54_9659.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb32ec518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb32ec518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb32ec518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:42:47.147229
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/42/image_18082025_02_42_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/42/image_18082025_02_42_34_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/02/42/image_18082025_02_42_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/02/42/image_18082025_02_42_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/02/41/image_18082025_02_42_04_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/41/image_18082025_02_41_54_9659.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa34a3518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa34a3518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa34a3518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:43:02.657892
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/42/image_18082025_02_42_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/42/image_18082025_02_42_34_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/02/42/image_18082025_02_42_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/02/42/image_18082025_02_42_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/02/41/image_18082025_02_42_04_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/41/image_18082025_02_41_54_9659.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79c4f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79c4f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79c4f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:43:17.249403
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/43/image_18082025_02_43_44_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/02/43/image_18082025_02_43_34_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/02/43/image_18082025_02_43_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/02/43/image_18082025_02_43_14_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/02/42/image_18082025_02_43_04_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/02/42/image_18082025_02_42_54_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f822864e0>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f822864e0>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f822864e0>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:43:32.267523
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/43/image_18082025_02_43_44_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/02/43/image_18082025_02_43_34_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/02/43/image_18082025_02_43_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/02/43/image_18082025_02_43_14_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/02/42/image_18082025_02_43_04_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/02/42/image_18082025_02_42_54_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3558518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3558518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3558518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:43:47.274073
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/43/image_18082025_02_43_44_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/02/43/image_18082025_02_43_34_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/02/43/image_18082025_02_43_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/02/43/image_18082025_02_43_14_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/02/42/image_18082025_02_43_04_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/02/42/image_18082025_02_42_54_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa85f6518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa85f6518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa85f6518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:44:03.028052
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/43/image_18082025_02_43_44_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/02/43/image_18082025_02_43_34_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/02/43/image_18082025_02_43_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/02/43/image_18082025_02_43_14_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/02/42/image_18082025_02_43_04_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/02/42/image_18082025_02_42_54_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7eda9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7eda9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7eda9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:44:17.374692
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/44/image_18082025_02_44_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/44/image_18082025_02_44_34_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/02/44/image_18082025_02_44_25_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/02/44/image_18082025_02_44_14_9691.jpg', 2), ('/home/nano/Desktop/images/18082025/02/43/image_18082025_02_44_04_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/02/43/image_18082025_02_43_55_10666.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8078a4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8078a4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8078a4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:44:32.364202
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/44/image_18082025_02_44_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/44/image_18082025_02_44_34_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/02/44/image_18082025_02_44_25_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/02/44/image_18082025_02_44_14_9691.jpg', 2), ('/home/nano/Desktop/images/18082025/02/43/image_18082025_02_44_04_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/02/43/image_18082025_02_43_55_10666.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0046518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0046518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0046518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:44:47.376870
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/44/image_18082025_02_44_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/44/image_18082025_02_44_34_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/02/44/image_18082025_02_44_25_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/02/44/image_18082025_02_44_14_9691.jpg', 2), ('/home/nano/Desktop/images/18082025/02/43/image_18082025_02_44_04_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/02/43/image_18082025_02_43_55_10666.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5e0a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5e0a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5e0a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:45:02.829915
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/44/image_18082025_02_44_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/44/image_18082025_02_44_34_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/02/44/image_18082025_02_44_25_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/02/44/image_18082025_02_44_14_9691.jpg', 2), ('/home/nano/Desktop/images/18082025/02/43/image_18082025_02_44_04_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/02/43/image_18082025_02_43_55_10666.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa76ef518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa76ef518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa76ef518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:45:17.447461
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/45/image_18082025_02_45_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/45/image_18082025_02_45_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/45/image_18082025_02_45_24_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/02/45/image_18082025_02_45_14_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/02/44/image_18082025_02_45_04_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/02/44/image_18082025_02_44_54_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86fcd518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86fcd518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86fcd518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:45:32.491242
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/45/image_18082025_02_45_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/45/image_18082025_02_45_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/45/image_18082025_02_45_24_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/02/45/image_18082025_02_45_14_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/02/44/image_18082025_02_45_04_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/02/44/image_18082025_02_44_54_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa747a550>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa747a550>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa747a550>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:45:47.472360
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/45/image_18082025_02_45_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/45/image_18082025_02_45_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/45/image_18082025_02_45_24_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/02/45/image_18082025_02_45_14_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/02/44/image_18082025_02_45_04_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/02/44/image_18082025_02_44_54_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f862eb518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f862eb518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f862eb518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:46:02.950108
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/45/image_18082025_02_45_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/45/image_18082025_02_45_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/45/image_18082025_02_45_24_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/02/45/image_18082025_02_45_14_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/02/44/image_18082025_02_45_04_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/02/44/image_18082025_02_44_54_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa51b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa51b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa51b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:46:17.571324
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/46/image_18082025_02_46_44_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/02/46/image_18082025_02_46_34_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/02/46/image_18082025_02_46_24_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/02/46/image_18082025_02_46_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/02/45/image_18082025_02_45_54_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/02/45/image_18082025_02_45_44_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fabb054a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fabb054a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fabb054a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:46:32.596624
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/46/image_18082025_02_46_44_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/02/46/image_18082025_02_46_34_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/02/46/image_18082025_02_46_24_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/02/46/image_18082025_02_46_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/02/45/image_18082025_02_45_54_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/02/45/image_18082025_02_45_44_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ac11518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ac11518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ac11518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:46:47.588455
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/46/image_18082025_02_46_44_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/02/46/image_18082025_02_46_34_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/02/46/image_18082025_02_46_24_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/02/46/image_18082025_02_46_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/02/45/image_18082025_02_45_54_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/02/45/image_18082025_02_45_44_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f966aa518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f966aa518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f966aa518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:47:03.237591
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/46/image_18082025_02_46_44_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/02/46/image_18082025_02_46_34_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/02/46/image_18082025_02_46_24_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/02/46/image_18082025_02_46_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/02/45/image_18082025_02_45_54_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/02/45/image_18082025_02_45_44_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8e9f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8e9f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8e9f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:47:17.673092
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/47/image_18082025_02_47_44_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/02/47/image_18082025_02_47_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/47/image_18082025_02_47_24_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/02/47/image_18082025_02_47_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/46/image_18082025_02_47_04_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/02/46/image_18082025_02_46_54_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9184c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9184c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9184c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:47:32.706614
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/47/image_18082025_02_47_44_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/02/47/image_18082025_02_47_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/47/image_18082025_02_47_24_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/02/47/image_18082025_02_47_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/46/image_18082025_02_47_04_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/02/46/image_18082025_02_46_54_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c46d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c46d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c46d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:47:47.709642
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/47/image_18082025_02_47_44_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/02/47/image_18082025_02_47_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/47/image_18082025_02_47_24_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/02/47/image_18082025_02_47_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/46/image_18082025_02_47_04_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/02/46/image_18082025_02_46_54_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9305d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9305d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9305d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:48:02.213011
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/47/image_18082025_02_47_44_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/02/47/image_18082025_02_47_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/47/image_18082025_02_47_24_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/02/47/image_18082025_02_47_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/46/image_18082025_02_47_04_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/02/46/image_18082025_02_46_54_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f810a0518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f810a0518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f810a0518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:48:16.820259
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/48/image_18082025_02_48_45_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/02/48/image_18082025_02_48_34_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/48/image_18082025_02_48_24_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/02/48/image_18082025_02_48_14_9690.jpg', 2), ('/home/nano/Desktop/images/18082025/02/47/image_18082025_02_48_04_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/02/47/image_18082025_02_47_54_10666.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faed48518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faed48518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faed48518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:48:31.811688
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/48/image_18082025_02_48_45_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/02/48/image_18082025_02_48_34_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/48/image_18082025_02_48_24_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/02/48/image_18082025_02_48_14_9690.jpg', 2), ('/home/nano/Desktop/images/18082025/02/47/image_18082025_02_48_04_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/02/47/image_18082025_02_47_54_10666.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d5cb518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d5cb518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d5cb518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:48:46.816325
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/48/image_18082025_02_48_45_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/02/48/image_18082025_02_48_34_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/48/image_18082025_02_48_24_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/02/48/image_18082025_02_48_14_9690.jpg', 2), ('/home/nano/Desktop/images/18082025/02/47/image_18082025_02_48_04_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/02/47/image_18082025_02_47_54_10666.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8bf33518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8bf33518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8bf33518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:49:02.694304
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/48/image_18082025_02_48_45_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/02/48/image_18082025_02_48_34_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/48/image_18082025_02_48_24_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/02/48/image_18082025_02_48_14_9690.jpg', 2), ('/home/nano/Desktop/images/18082025/02/47/image_18082025_02_48_04_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/02/47/image_18082025_02_47_54_10666.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f0bf518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f0bf518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f0bf518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:49:16.956147
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/49/image_18082025_02_49_44_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/02/49/image_18082025_02_49_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/49/image_18082025_02_49_24_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/02/49/image_18082025_02_49_14_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/02/48/image_18082025_02_49_04_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/02/48/image_18082025_02_48_54_9655.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f864f7518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f864f7518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f864f7518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:49:31.933344
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/49/image_18082025_02_49_44_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/02/49/image_18082025_02_49_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/49/image_18082025_02_49_24_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/02/49/image_18082025_02_49_14_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/02/48/image_18082025_02_49_04_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/02/48/image_18082025_02_48_54_9655.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f963df518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f963df518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f963df518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:49:46.922179
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/49/image_18082025_02_49_44_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/02/49/image_18082025_02_49_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/49/image_18082025_02_49_24_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/02/49/image_18082025_02_49_14_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/02/48/image_18082025_02_49_04_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/02/48/image_18082025_02_48_54_9655.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf607518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf607518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf607518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:50:02.351472
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/49/image_18082025_02_49_44_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/02/49/image_18082025_02_49_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/49/image_18082025_02_49_24_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/02/49/image_18082025_02_49_14_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/02/48/image_18082025_02_49_04_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/02/48/image_18082025_02_48_54_9655.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa837c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa837c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa837c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:50:17.019196
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/50/image_18082025_02_50_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/50/image_18082025_02_50_14_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/02/49/image_18082025_02_50_04_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/02/49/image_18082025_02_49_54_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/49/image_18082025_02_49_44_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/02/49/image_18082025_02_49_34_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ac20518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ac20518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ac20518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:50:32.021512
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/50/image_18082025_02_50_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/50/image_18082025_02_50_14_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/02/49/image_18082025_02_50_04_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/02/49/image_18082025_02_49_54_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/49/image_18082025_02_49_44_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/02/49/image_18082025_02_49_34_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76e3f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76e3f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76e3f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:50:46.996489
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/50/image_18082025_02_50_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/50/image_18082025_02_50_14_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/02/49/image_18082025_02_50_04_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/02/49/image_18082025_02_49_54_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/49/image_18082025_02_49_44_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/02/49/image_18082025_02_49_34_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e7e2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e7e2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e7e2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:51:02.544483
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/50/image_18082025_02_50_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/50/image_18082025_02_50_14_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/02/49/image_18082025_02_50_04_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/02/49/image_18082025_02_49_54_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/49/image_18082025_02_49_44_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/02/49/image_18082025_02_49_34_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93543518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93543518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93543518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:51:17.079081
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/51/image_18082025_02_51_44_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/02/51/image_18082025_02_51_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/02/51/image_18082025_02_51_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/50/image_18082025_02_51_04_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/02/50/image_18082025_02_50_54_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/02/50/image_18082025_02_50_34_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0efe4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0efe4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0efe4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:51:32.124069
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/51/image_18082025_02_51_44_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/02/51/image_18082025_02_51_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/02/51/image_18082025_02_51_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/50/image_18082025_02_51_04_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/02/50/image_18082025_02_50_54_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/02/50/image_18082025_02_50_34_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78f4f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78f4f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78f4f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:51:47.077248
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/51/image_18082025_02_51_44_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/02/51/image_18082025_02_51_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/02/51/image_18082025_02_51_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/50/image_18082025_02_51_04_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/02/50/image_18082025_02_50_54_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/02/50/image_18082025_02_50_34_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4b27518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4b27518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4b27518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:52:02.546132
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/51/image_18082025_02_51_44_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/02/51/image_18082025_02_51_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/02/51/image_18082025_02_51_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/50/image_18082025_02_51_04_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/02/50/image_18082025_02_50_54_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/02/50/image_18082025_02_50_34_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f915264a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f915264a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f915264a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:52:17.188978
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/52/image_18082025_02_52_44_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/02/52/image_18082025_02_52_35_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/02/52/image_18082025_02_52_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/52/image_18082025_02_52_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/02/51/image_18082025_02_52_05_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/51/image_18082025_02_51_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99d09518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99d09518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99d09518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:52:32.211107
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/52/image_18082025_02_52_44_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/02/52/image_18082025_02_52_35_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/02/52/image_18082025_02_52_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/52/image_18082025_02_52_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/02/51/image_18082025_02_52_05_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/51/image_18082025_02_51_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2605518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2605518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2605518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:52:47.211790
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/52/image_18082025_02_52_44_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/02/52/image_18082025_02_52_35_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/02/52/image_18082025_02_52_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/52/image_18082025_02_52_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/02/51/image_18082025_02_52_05_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/51/image_18082025_02_51_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f871f7518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f871f7518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f871f7518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:53:02.825674
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/52/image_18082025_02_52_44_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/02/52/image_18082025_02_52_35_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/02/52/image_18082025_02_52_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/02/52/image_18082025_02_52_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/02/51/image_18082025_02_52_05_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/51/image_18082025_02_51_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1a7e4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1a7e4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1a7e4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:53:17.309422
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/53/image_18082025_02_53_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/02/53/image_18082025_02_53_34_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/02/53/image_18082025_02_53_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/02/53/image_18082025_02_53_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/02/52/image_18082025_02_53_04_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/02/52/image_18082025_02_52_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa424b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa424b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa424b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:53:32.331070
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/53/image_18082025_02_53_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/02/53/image_18082025_02_53_34_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/02/53/image_18082025_02_53_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/02/53/image_18082025_02_53_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/02/52/image_18082025_02_53_04_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/02/52/image_18082025_02_52_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faac8f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faac8f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faac8f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:53:47.310989
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/53/image_18082025_02_53_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/02/53/image_18082025_02_53_34_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/02/53/image_18082025_02_53_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/02/53/image_18082025_02_53_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/02/52/image_18082025_02_53_04_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/02/52/image_18082025_02_52_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e37a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e37a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e37a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:54:03.161791
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/53/image_18082025_02_53_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/02/53/image_18082025_02_53_34_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/02/53/image_18082025_02_53_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/02/53/image_18082025_02_53_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/02/52/image_18082025_02_53_04_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/02/52/image_18082025_02_52_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4b49518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4b49518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4b49518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:54:17.447529
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/54/image_18082025_02_54_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/54/image_18082025_02_54_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/02/54/image_18082025_02_54_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/02/54/image_18082025_02_54_14_9681.jpg', 2), ('/home/nano/Desktop/images/18082025/02/53/image_18082025_02_54_04_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/53/image_18082025_02_53_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa62d3518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa62d3518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa62d3518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:54:32.408560
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/54/image_18082025_02_54_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/54/image_18082025_02_54_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/02/54/image_18082025_02_54_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/02/54/image_18082025_02_54_14_9681.jpg', 2), ('/home/nano/Desktop/images/18082025/02/53/image_18082025_02_54_04_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/53/image_18082025_02_53_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa80db518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa80db518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa80db518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:54:47.396137
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/54/image_18082025_02_54_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/54/image_18082025_02_54_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/02/54/image_18082025_02_54_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/02/54/image_18082025_02_54_14_9681.jpg', 2), ('/home/nano/Desktop/images/18082025/02/53/image_18082025_02_54_04_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/53/image_18082025_02_53_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91957518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91957518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91957518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:55:03.053251
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/54/image_18082025_02_54_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/54/image_18082025_02_54_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/02/54/image_18082025_02_54_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/02/54/image_18082025_02_54_14_9681.jpg', 2), ('/home/nano/Desktop/images/18082025/02/53/image_18082025_02_54_04_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/53/image_18082025_02_53_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5960518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5960518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5960518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:55:17.493582
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/55/image_18082025_02_55_44_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/02/55/image_18082025_02_55_34_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/02/55/image_18082025_02_55_24_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/02/55/image_18082025_02_55_14_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/02/54/image_18082025_02_55_04_10670.jpg', 2), ('/home/nano/Desktop/images/18082025/02/54/image_18082025_02_54_54_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f8964a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f8964a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f8964a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:55:32.472735
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/55/image_18082025_02_55_44_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/02/55/image_18082025_02_55_34_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/02/55/image_18082025_02_55_24_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/02/55/image_18082025_02_55_14_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/02/54/image_18082025_02_55_04_10670.jpg', 2), ('/home/nano/Desktop/images/18082025/02/54/image_18082025_02_54_54_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faff0b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faff0b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faff0b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:55:47.468357
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/55/image_18082025_02_55_44_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/02/55/image_18082025_02_55_34_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/02/55/image_18082025_02_55_24_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/02/55/image_18082025_02_55_14_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/02/54/image_18082025_02_55_04_10670.jpg', 2), ('/home/nano/Desktop/images/18082025/02/54/image_18082025_02_54_54_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faadec518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faadec518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faadec518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:56:02.966005
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/55/image_18082025_02_55_44_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/02/55/image_18082025_02_55_34_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/02/55/image_18082025_02_55_24_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/02/55/image_18082025_02_55_14_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/02/54/image_18082025_02_55_04_10670.jpg', 2), ('/home/nano/Desktop/images/18082025/02/54/image_18082025_02_54_54_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f992144a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f992144a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f992144a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:56:17.596230
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/56/image_18082025_02_56_44_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/56/image_18082025_02_56_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/02/56/image_18082025_02_56_25_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/02/56/image_18082025_02_56_14_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/02/55/image_18082025_02_56_04_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/02/55/image_18082025_02_55_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77564518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77564518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77564518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:56:32.579465
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/56/image_18082025_02_56_44_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/56/image_18082025_02_56_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/02/56/image_18082025_02_56_25_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/02/56/image_18082025_02_56_14_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/02/55/image_18082025_02_56_04_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/02/55/image_18082025_02_55_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83919518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83919518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83919518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:56:47.575229
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/56/image_18082025_02_56_44_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/56/image_18082025_02_56_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/02/56/image_18082025_02_56_25_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/02/56/image_18082025_02_56_14_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/02/55/image_18082025_02_56_04_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/02/55/image_18082025_02_55_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2260518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2260518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2260518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:57:03.163616
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/56/image_18082025_02_56_44_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/56/image_18082025_02_56_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/02/56/image_18082025_02_56_25_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/02/56/image_18082025_02_56_14_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/02/55/image_18082025_02_56_04_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/02/55/image_18082025_02_55_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ed8a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ed8a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ed8a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:57:17.705931
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/57/image_18082025_02_57_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/57/image_18082025_02_57_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/57/image_18082025_02_57_24_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/02/57/image_18082025_02_57_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/02/56/image_18082025_02_57_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/56/image_18082025_02_56_54_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88b5d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88b5d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88b5d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:57:32.687199
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/57/image_18082025_02_57_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/57/image_18082025_02_57_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/57/image_18082025_02_57_24_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/02/57/image_18082025_02_57_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/02/56/image_18082025_02_57_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/56/image_18082025_02_56_54_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faaf624a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faaf624a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faaf624a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:57:47.673758
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/57/image_18082025_02_57_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/57/image_18082025_02_57_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/57/image_18082025_02_57_24_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/02/57/image_18082025_02_57_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/02/56/image_18082025_02_57_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/56/image_18082025_02_56_54_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c491518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c491518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c491518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:58:02.054864
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/57/image_18082025_02_57_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/57/image_18082025_02_57_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/57/image_18082025_02_57_24_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/02/57/image_18082025_02_57_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/02/56/image_18082025_02_57_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/56/image_18082025_02_56_54_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa9fe64a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9fe64a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9fe64a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:59:03.230997
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/57/image_18082025_02_57_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/57/image_18082025_02_57_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/02/57/image_18082025_02_57_24_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/02/57/image_18082025_02_57_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/02/56/image_18082025_02_57_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/02/56/image_18082025_02_56_54_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f04a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f04a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f04a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:59:17.447876
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/59/image_18082025_02_59_45_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/02/59/image_18082025_02_59_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/02/59/image_18082025_02_59_24_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/02/59/image_18082025_02_59_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/58/image_18082025_02_59_04_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/02/58/image_18082025_02_58_54_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa119e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa119e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa119e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:59:32.471145
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/59/image_18082025_02_59_45_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/02/59/image_18082025_02_59_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/02/59/image_18082025_02_59_24_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/02/59/image_18082025_02_59_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/58/image_18082025_02_59_04_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/02/58/image_18082025_02_58_54_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa15ca4e0>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa15ca4e0>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa15ca4e0>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 02:59:47.470340
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/59/image_18082025_02_59_45_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/02/59/image_18082025_02_59_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/02/59/image_18082025_02_59_24_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/02/59/image_18082025_02_59_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/58/image_18082025_02_59_04_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/02/58/image_18082025_02_58_54_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f848c74a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f848c74a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f848c74a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:00:02.859011
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/02/59/image_18082025_02_59_45_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/02/59/image_18082025_02_59_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/02/59/image_18082025_02_59_24_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/02/59/image_18082025_02_59_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/02/58/image_18082025_02_59_04_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/02/58/image_18082025_02_58_54_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0042518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0042518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0042518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:00:17.594138
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/00/image_18082025_03_00_44_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/03/00/image_18082025_03_00_34_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/03/00/image_18082025_03_00_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/00/image_18082025_03_00_14_10672.jpg', 2), ('/home/nano/Desktop/images/18082025/02/59/image_18082025_03_00_04_9670.jpg', 2), ('/home/nano/Desktop/images/18082025/02/59/image_18082025_02_59_54_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c2854a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c2854a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c2854a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:00:32.602862
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/00/image_18082025_03_00_44_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/03/00/image_18082025_03_00_34_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/03/00/image_18082025_03_00_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/00/image_18082025_03_00_14_10672.jpg', 2), ('/home/nano/Desktop/images/18082025/02/59/image_18082025_03_00_04_9670.jpg', 2), ('/home/nano/Desktop/images/18082025/02/59/image_18082025_02_59_54_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fafcb1518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafcb1518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafcb1518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:00:47.607498
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/00/image_18082025_03_00_44_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/03/00/image_18082025_03_00_34_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/03/00/image_18082025_03_00_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/00/image_18082025_03_00_14_10672.jpg', 2), ('/home/nano/Desktop/images/18082025/02/59/image_18082025_03_00_04_9670.jpg', 2), ('/home/nano/Desktop/images/18082025/02/59/image_18082025_02_59_54_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f788f3518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f788f3518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f788f3518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:01:03.213731
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/00/image_18082025_03_00_44_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/03/00/image_18082025_03_00_34_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/03/00/image_18082025_03_00_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/00/image_18082025_03_00_14_10672.jpg', 2), ('/home/nano/Desktop/images/18082025/02/59/image_18082025_03_00_04_9670.jpg', 2), ('/home/nano/Desktop/images/18082025/02/59/image_18082025_02_59_54_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97c90518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97c90518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97c90518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:01:17.758682
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/01/image_18082025_03_01_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/03/01/image_18082025_03_01_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/01/image_18082025_03_01_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/01/image_18082025_03_01_14_10664.jpg', 2), ('/home/nano/Desktop/images/18082025/03/00/image_18082025_03_01_04_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/00/image_18082025_03_00_54_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ed3f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ed3f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ed3f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:01:32.683516
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/01/image_18082025_03_01_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/03/01/image_18082025_03_01_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/01/image_18082025_03_01_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/01/image_18082025_03_01_14_10664.jpg', 2), ('/home/nano/Desktop/images/18082025/03/00/image_18082025_03_01_04_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/00/image_18082025_03_00_54_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5281518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5281518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5281518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:01:47.680636
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/01/image_18082025_03_01_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/03/01/image_18082025_03_01_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/01/image_18082025_03_01_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/01/image_18082025_03_01_14_10664.jpg', 2), ('/home/nano/Desktop/images/18082025/03/00/image_18082025_03_01_04_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/00/image_18082025_03_00_54_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ef2e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ef2e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ef2e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:02:02.077128
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/01/image_18082025_03_01_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/03/01/image_18082025_03_01_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/01/image_18082025_03_01_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/01/image_18082025_03_01_14_10664.jpg', 2), ('/home/nano/Desktop/images/18082025/03/00/image_18082025_03_01_04_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/00/image_18082025_03_00_54_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f813ab518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f813ab518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f813ab518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:02:16.779822
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/02/image_18082025_03_02_44_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/02/image_18082025_03_02_34_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/03/02/image_18082025_03_02_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/03/02/image_18082025_03_02_14_10674.jpg', 2), ('/home/nano/Desktop/images/18082025/03/01/image_18082025_03_02_04_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/03/01/image_18082025_03_01_54_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac9f2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac9f2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac9f2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:02:31.809931
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/02/image_18082025_03_02_44_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/02/image_18082025_03_02_34_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/03/02/image_18082025_03_02_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/03/02/image_18082025_03_02_14_10674.jpg', 2), ('/home/nano/Desktop/images/18082025/03/01/image_18082025_03_02_04_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/03/01/image_18082025_03_01_54_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7cf0c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7cf0c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7cf0c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:02:46.784291
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/02/image_18082025_03_02_44_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/02/image_18082025_03_02_34_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/03/02/image_18082025_03_02_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/03/02/image_18082025_03_02_14_10674.jpg', 2), ('/home/nano/Desktop/images/18082025/03/01/image_18082025_03_02_04_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/03/01/image_18082025_03_01_54_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4079518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4079518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4079518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:03:02.416108
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/02/image_18082025_03_02_44_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/02/image_18082025_03_02_34_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/03/02/image_18082025_03_02_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/03/02/image_18082025_03_02_14_10674.jpg', 2), ('/home/nano/Desktop/images/18082025/03/01/image_18082025_03_02_04_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/03/01/image_18082025_03_01_54_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7a2b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7a2b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7a2b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:03:16.892285
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/03/image_18082025_03_03_34_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/03/03/image_18082025_03_03_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/03/03/image_18082025_03_03_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/03/02/image_18082025_03_03_05_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/03/02/image_18082025_03_02_54_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/03/02/image_18082025_03_02_44_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa9144518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9144518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9144518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:03:31.884254
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/03/image_18082025_03_03_34_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/03/03/image_18082025_03_03_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/03/03/image_18082025_03_03_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/03/02/image_18082025_03_03_05_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/03/02/image_18082025_03_02_54_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/03/02/image_18082025_03_02_44_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9885c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9885c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9885c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:03:46.893620
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/03/image_18082025_03_03_34_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/03/03/image_18082025_03_03_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/03/03/image_18082025_03_03_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/03/02/image_18082025_03_03_05_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/03/02/image_18082025_03_02_54_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/03/02/image_18082025_03_02_44_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa922a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa922a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa922a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:04:02.681419
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/03/image_18082025_03_03_34_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/03/03/image_18082025_03_03_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/03/03/image_18082025_03_03_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/03/02/image_18082025_03_03_05_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/03/02/image_18082025_03_02_54_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/03/02/image_18082025_03_02_44_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b551518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b551518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b551518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:04:17.003715
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/04/image_18082025_03_04_34_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/03/04/image_18082025_03_04_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/04/image_18082025_03_04_14_9674.jpg', 2), ('/home/nano/Desktop/images/18082025/03/03/image_18082025_03_04_04_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/03/03/image_18082025_03_03_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/03/03/image_18082025_03_03_34_10647.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94b64518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94b64518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94b64518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:04:32.118123
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/04/image_18082025_03_04_34_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/03/04/image_18082025_03_04_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/04/image_18082025_03_04_14_9674.jpg', 2), ('/home/nano/Desktop/images/18082025/03/03/image_18082025_03_04_04_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/03/03/image_18082025_03_03_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/03/03/image_18082025_03_03_34_10647.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8e024a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8e024a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8e024a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:04:47.071194
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/04/image_18082025_03_04_34_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/03/04/image_18082025_03_04_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/04/image_18082025_03_04_14_9674.jpg', 2), ('/home/nano/Desktop/images/18082025/03/03/image_18082025_03_04_04_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/03/03/image_18082025_03_03_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/03/03/image_18082025_03_03_34_10647.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82427518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82427518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82427518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:05:02.653379
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/04/image_18082025_03_04_34_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/03/04/image_18082025_03_04_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/04/image_18082025_03_04_14_9674.jpg', 2), ('/home/nano/Desktop/images/18082025/03/03/image_18082025_03_04_04_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/03/03/image_18082025_03_03_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/03/03/image_18082025_03_03_34_10647.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa42b6518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa42b6518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa42b6518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:05:17.181026
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/05/image_18082025_03_05_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/05/image_18082025_03_05_34_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/03/05/image_18082025_03_05_24_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/03/05/image_18082025_03_05_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/03/04/image_18082025_03_05_04_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/03/04/image_18082025_03_04_54_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83ebc4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83ebc4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83ebc4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:05:32.208874
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/05/image_18082025_03_05_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/05/image_18082025_03_05_34_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/03/05/image_18082025_03_05_24_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/03/05/image_18082025_03_05_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/03/04/image_18082025_03_05_04_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/03/04/image_18082025_03_04_54_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c437518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c437518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c437518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:05:47.216954
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/05/image_18082025_03_05_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/05/image_18082025_03_05_34_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/03/05/image_18082025_03_05_24_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/03/05/image_18082025_03_05_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/03/04/image_18082025_03_05_04_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/03/04/image_18082025_03_04_54_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9108d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9108d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9108d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:06:02.516068
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/05/image_18082025_03_05_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/05/image_18082025_03_05_34_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/03/05/image_18082025_03_05_24_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/03/05/image_18082025_03_05_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/03/04/image_18082025_03_05_04_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/03/04/image_18082025_03_04_54_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faade4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faade4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faade4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:06:17.338688
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/06/image_18082025_03_06_44_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/03/06/image_18082025_03_06_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/06/image_18082025_03_06_25_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/03/06/image_18082025_03_06_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/03/05/image_18082025_03_06_04_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/03/05/image_18082025_03_05_54_9645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0464518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0464518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0464518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:06:32.310022
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/06/image_18082025_03_06_44_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/03/06/image_18082025_03_06_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/06/image_18082025_03_06_25_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/03/06/image_18082025_03_06_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/03/05/image_18082025_03_06_04_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/03/05/image_18082025_03_05_54_9645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b402518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b402518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b402518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:06:47.337823
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/06/image_18082025_03_06_44_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/03/06/image_18082025_03_06_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/06/image_18082025_03_06_25_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/03/06/image_18082025_03_06_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/03/05/image_18082025_03_06_04_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/03/05/image_18082025_03_05_54_9645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99bad4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99bad4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99bad4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:07:02.936102
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/06/image_18082025_03_06_44_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/03/06/image_18082025_03_06_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/06/image_18082025_03_06_25_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/03/06/image_18082025_03_06_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/03/05/image_18082025_03_06_04_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/03/05/image_18082025_03_05_54_9645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb16394a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb16394a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb16394a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:07:17.466012
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/07/image_18082025_03_07_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/07/image_18082025_03_07_24_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/03/07/image_18082025_03_07_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/03/06/image_18082025_03_07_04_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/03/06/image_18082025_03_06_54_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/03/06/image_18082025_03_06_44_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa74df518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa74df518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa74df518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:07:32.450364
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/07/image_18082025_03_07_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/07/image_18082025_03_07_24_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/03/07/image_18082025_03_07_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/03/06/image_18082025_03_07_04_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/03/06/image_18082025_03_06_54_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/03/06/image_18082025_03_06_44_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97c03518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97c03518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97c03518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:07:47.462486
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/07/image_18082025_03_07_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/07/image_18082025_03_07_24_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/03/07/image_18082025_03_07_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/03/06/image_18082025_03_07_04_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/03/06/image_18082025_03_06_54_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/03/06/image_18082025_03_06_44_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82997518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82997518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82997518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:08:02.941961
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/07/image_18082025_03_07_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/07/image_18082025_03_07_24_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/03/07/image_18082025_03_07_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/03/06/image_18082025_03_07_04_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/03/06/image_18082025_03_06_54_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/03/06/image_18082025_03_06_44_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f80d65518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80d65518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80d65518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:08:17.545049
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/08/image_18082025_03_08_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/08/image_18082025_03_08_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/08/image_18082025_03_08_24_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/03/08/image_18082025_03_08_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/03/07/image_18082025_03_08_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/03/07/image_18082025_03_07_44_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab3d1518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab3d1518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab3d1518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:08:32.544923
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/08/image_18082025_03_08_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/08/image_18082025_03_08_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/08/image_18082025_03_08_24_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/03/08/image_18082025_03_08_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/03/07/image_18082025_03_08_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/03/07/image_18082025_03_07_44_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84502518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84502518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84502518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:08:47.540857
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/08/image_18082025_03_08_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/08/image_18082025_03_08_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/08/image_18082025_03_08_24_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/03/08/image_18082025_03_08_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/03/07/image_18082025_03_08_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/03/07/image_18082025_03_07_44_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f965ec4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f965ec4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f965ec4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:09:03.409020
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/08/image_18082025_03_08_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/08/image_18082025_03_08_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/08/image_18082025_03_08_24_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/03/08/image_18082025_03_08_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/03/07/image_18082025_03_08_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/03/07/image_18082025_03_07_44_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99f134a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99f134a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99f134a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:09:17.680731
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/09/image_18082025_03_09_45_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/03/09/image_18082025_03_09_34_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/03/09/image_18082025_03_09_24_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/03/09/image_18082025_03_09_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/03/08/image_18082025_03_09_04_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/08/image_18082025_03_08_54_10647.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f804ec4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f804ec4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f804ec4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:09:32.645490
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/09/image_18082025_03_09_45_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/03/09/image_18082025_03_09_34_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/03/09/image_18082025_03_09_24_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/03/09/image_18082025_03_09_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/03/08/image_18082025_03_09_04_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/08/image_18082025_03_08_54_10647.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2042518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2042518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2042518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:09:47.654530
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/09/image_18082025_03_09_45_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/03/09/image_18082025_03_09_34_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/03/09/image_18082025_03_09_24_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/03/09/image_18082025_03_09_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/03/08/image_18082025_03_09_04_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/08/image_18082025_03_08_54_10647.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ec85518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ec85518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ec85518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:10:02.100488
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/09/image_18082025_03_09_45_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/03/09/image_18082025_03_09_34_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/03/09/image_18082025_03_09_24_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/03/09/image_18082025_03_09_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/03/08/image_18082025_03_09_04_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/08/image_18082025_03_08_54_10647.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb16fa518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb16fa518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb16fa518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:10:16.754872
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/10/image_18082025_03_10_44_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/03/10/image_18082025_03_10_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/10/image_18082025_03_10_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/10/image_18082025_03_10_14_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/03/09/image_18082025_03_10_04_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/03/09/image_18082025_03_09_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96e29518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96e29518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96e29518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:10:31.767278
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/10/image_18082025_03_10_44_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/03/10/image_18082025_03_10_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/10/image_18082025_03_10_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/10/image_18082025_03_10_14_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/03/09/image_18082025_03_10_04_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/03/09/image_18082025_03_09_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93cf7518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93cf7518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93cf7518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:10:46.739302
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/10/image_18082025_03_10_44_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/03/10/image_18082025_03_10_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/10/image_18082025_03_10_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/10/image_18082025_03_10_14_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/03/09/image_18082025_03_10_04_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/03/09/image_18082025_03_09_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2d6d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2d6d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2d6d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:11:02.454370
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/10/image_18082025_03_10_44_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/03/10/image_18082025_03_10_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/10/image_18082025_03_10_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/10/image_18082025_03_10_14_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/03/09/image_18082025_03_10_04_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/03/09/image_18082025_03_09_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3659518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3659518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3659518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:11:16.860783
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/11/image_18082025_03_11_44_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/03/11/image_18082025_03_11_24_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/03/11/image_18082025_03_11_14_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/03/10/image_18082025_03_11_04_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/03/10/image_18082025_03_10_54_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/03/10/image_18082025_03_10_44_10647.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98f84518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98f84518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98f84518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:11:31.833722
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/11/image_18082025_03_11_44_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/03/11/image_18082025_03_11_24_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/03/11/image_18082025_03_11_14_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/03/10/image_18082025_03_11_04_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/03/10/image_18082025_03_10_54_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/03/10/image_18082025_03_10_44_10647.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96eac518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96eac518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96eac518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:11:46.848301
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/11/image_18082025_03_11_44_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/03/11/image_18082025_03_11_24_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/03/11/image_18082025_03_11_14_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/03/10/image_18082025_03_11_04_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/03/10/image_18082025_03_10_54_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/03/10/image_18082025_03_10_44_10647.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa741a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa741a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa741a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:12:02.283418
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/11/image_18082025_03_11_44_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/03/11/image_18082025_03_11_24_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/03/11/image_18082025_03_11_14_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/03/10/image_18082025_03_11_04_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/03/10/image_18082025_03_10_54_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/03/10/image_18082025_03_10_44_10647.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e5f1518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e5f1518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e5f1518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:12:16.946572
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/12/image_18082025_03_12_44_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/03/12/image_18082025_03_12_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/03/12/image_18082025_03_12_24_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/03/12/image_18082025_03_12_14_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/03/11/image_18082025_03_12_04_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/03/11/image_18082025_03_11_54_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7cb97518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7cb97518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7cb97518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:12:31.974031
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/12/image_18082025_03_12_44_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/03/12/image_18082025_03_12_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/03/12/image_18082025_03_12_24_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/03/12/image_18082025_03_12_14_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/03/11/image_18082025_03_12_04_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/03/11/image_18082025_03_11_54_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f843b5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f843b5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f843b5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:12:46.929900
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/12/image_18082025_03_12_44_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/03/12/image_18082025_03_12_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/03/12/image_18082025_03_12_24_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/03/12/image_18082025_03_12_14_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/03/11/image_18082025_03_12_04_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/03/11/image_18082025_03_11_54_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ad7a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ad7a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ad7a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:13:02.436003
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/12/image_18082025_03_12_44_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/03/12/image_18082025_03_12_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/03/12/image_18082025_03_12_24_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/03/12/image_18082025_03_12_14_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/03/11/image_18082025_03_12_04_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/03/11/image_18082025_03_11_54_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa65c8518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa65c8518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa65c8518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:13:17.082693
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/13/image_18082025_03_13_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/13/image_18082025_03_13_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/03/13/image_18082025_03_13_24_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/03/13/image_18082025_03_13_14_9675.jpg', 2), ('/home/nano/Desktop/images/18082025/03/12/image_18082025_03_12_54_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/12/image_18082025_03_12_44_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8371b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8371b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8371b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:13:32.033277
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/13/image_18082025_03_13_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/13/image_18082025_03_13_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/03/13/image_18082025_03_13_24_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/03/13/image_18082025_03_13_14_9675.jpg', 2), ('/home/nano/Desktop/images/18082025/03/12/image_18082025_03_12_54_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/12/image_18082025_03_12_44_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa9dfd518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9dfd518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9dfd518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:13:47.027659
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/13/image_18082025_03_13_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/13/image_18082025_03_13_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/03/13/image_18082025_03_13_24_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/03/13/image_18082025_03_13_14_9675.jpg', 2), ('/home/nano/Desktop/images/18082025/03/12/image_18082025_03_12_54_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/12/image_18082025_03_12_44_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77bae518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77bae518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77bae518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:14:02.764148
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/13/image_18082025_03_13_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/13/image_18082025_03_13_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/03/13/image_18082025_03_13_24_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/03/13/image_18082025_03_13_14_9675.jpg', 2), ('/home/nano/Desktop/images/18082025/03/12/image_18082025_03_12_54_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/12/image_18082025_03_12_44_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f947db518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f947db518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f947db518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:14:17.155953
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/14/image_18082025_03_14_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/03/14/image_18082025_03_14_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/14/image_18082025_03_14_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/14/image_18082025_03_14_14_9676.jpg', 2), ('/home/nano/Desktop/images/18082025/03/13/image_18082025_03_14_04_10664.jpg', 2), ('/home/nano/Desktop/images/18082025/03/13/image_18082025_03_13_54_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8db784a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8db784a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8db784a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:14:32.181408
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/14/image_18082025_03_14_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/03/14/image_18082025_03_14_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/14/image_18082025_03_14_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/14/image_18082025_03_14_14_9676.jpg', 2), ('/home/nano/Desktop/images/18082025/03/13/image_18082025_03_14_04_10664.jpg', 2), ('/home/nano/Desktop/images/18082025/03/13/image_18082025_03_13_54_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb41de518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb41de518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb41de518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:14:47.123219
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/14/image_18082025_03_14_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/03/14/image_18082025_03_14_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/14/image_18082025_03_14_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/14/image_18082025_03_14_14_9676.jpg', 2), ('/home/nano/Desktop/images/18082025/03/13/image_18082025_03_14_04_10664.jpg', 2), ('/home/nano/Desktop/images/18082025/03/13/image_18082025_03_13_54_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9afdc518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9afdc518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9afdc518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:15:02.775882
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/14/image_18082025_03_14_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/03/14/image_18082025_03_14_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/14/image_18082025_03_14_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/14/image_18082025_03_14_14_9676.jpg', 2), ('/home/nano/Desktop/images/18082025/03/13/image_18082025_03_14_04_10664.jpg', 2), ('/home/nano/Desktop/images/18082025/03/13/image_18082025_03_13_54_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81372518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81372518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81372518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:15:17.244736
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/15/image_18082025_03_15_44_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/03/15/image_18082025_03_15_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/03/15/image_18082025_03_15_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/03/15/image_18082025_03_15_14_9678.jpg', 2), ('/home/nano/Desktop/images/18082025/03/14/image_18082025_03_15_04_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/03/14/image_18082025_03_14_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fae364518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae364518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae364518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:15:32.223286
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/15/image_18082025_03_15_44_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/03/15/image_18082025_03_15_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/03/15/image_18082025_03_15_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/03/15/image_18082025_03_15_14_9678.jpg', 2), ('/home/nano/Desktop/images/18082025/03/14/image_18082025_03_15_04_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/03/14/image_18082025_03_14_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98c70518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98c70518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98c70518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:15:47.412270
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/15/image_18082025_03_15_44_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/03/15/image_18082025_03_15_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/03/15/image_18082025_03_15_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/03/15/image_18082025_03_15_14_9678.jpg', 2), ('/home/nano/Desktop/images/18082025/03/14/image_18082025_03_15_04_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/03/14/image_18082025_03_14_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2643518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2643518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2643518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:16:02.919779
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/15/image_18082025_03_15_44_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/03/15/image_18082025_03_15_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/03/15/image_18082025_03_15_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/03/15/image_18082025_03_15_14_9678.jpg', 2), ('/home/nano/Desktop/images/18082025/03/14/image_18082025_03_15_04_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/03/14/image_18082025_03_14_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f900b9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f900b9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f900b9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:16:17.514334
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/16/image_18082025_03_16_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/16/image_18082025_03_16_14_9671.jpg', 2), ('/home/nano/Desktop/images/18082025/03/15/image_18082025_03_16_04_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/03/15/image_18082025_03_15_54_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/03/15/image_18082025_03_15_44_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/03/15/image_18082025_03_15_34_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa1c5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa1c5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa1c5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:16:32.533543
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/16/image_18082025_03_16_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/16/image_18082025_03_16_14_9671.jpg', 2), ('/home/nano/Desktop/images/18082025/03/15/image_18082025_03_16_04_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/03/15/image_18082025_03_15_54_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/03/15/image_18082025_03_15_44_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/03/15/image_18082025_03_15_34_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fadce74a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fadce74a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fadce74a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:16:47.495781
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/16/image_18082025_03_16_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/16/image_18082025_03_16_14_9671.jpg', 2), ('/home/nano/Desktop/images/18082025/03/15/image_18082025_03_16_04_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/03/15/image_18082025_03_15_54_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/03/15/image_18082025_03_15_44_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/03/15/image_18082025_03_15_34_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79f7d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79f7d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79f7d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:17:03.108515
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/16/image_18082025_03_16_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/16/image_18082025_03_16_14_9671.jpg', 2), ('/home/nano/Desktop/images/18082025/03/15/image_18082025_03_16_04_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/03/15/image_18082025_03_15_54_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/03/15/image_18082025_03_15_44_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/03/15/image_18082025_03_15_34_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76ace4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76ace4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76ace4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:17:17.591401
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/17/image_18082025_03_17_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/17/image_18082025_03_17_24_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/03/17/image_18082025_03_17_14_9677.jpg', 2), ('/home/nano/Desktop/images/18082025/03/16/image_18082025_03_17_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/16/image_18082025_03_16_54_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/03/16/image_18082025_03_16_44_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb54af518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb54af518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb54af518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:17:32.611684
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/17/image_18082025_03_17_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/17/image_18082025_03_17_24_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/03/17/image_18082025_03_17_14_9677.jpg', 2), ('/home/nano/Desktop/images/18082025/03/16/image_18082025_03_17_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/16/image_18082025_03_16_54_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/03/16/image_18082025_03_16_44_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa711518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa711518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa711518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:17:47.598939
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/17/image_18082025_03_17_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/17/image_18082025_03_17_24_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/03/17/image_18082025_03_17_14_9677.jpg', 2), ('/home/nano/Desktop/images/18082025/03/16/image_18082025_03_17_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/16/image_18082025_03_16_54_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/03/16/image_18082025_03_16_44_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a3e4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a3e4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a3e4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:18:02.991799
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/17/image_18082025_03_17_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/17/image_18082025_03_17_24_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/03/17/image_18082025_03_17_14_9677.jpg', 2), ('/home/nano/Desktop/images/18082025/03/16/image_18082025_03_17_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/16/image_18082025_03_16_54_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/03/16/image_18082025_03_16_44_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8db8a4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8db8a4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8db8a4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:18:17.725942
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/18/image_18082025_03_18_44_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/03/18/image_18082025_03_18_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/18/image_18082025_03_18_24_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/03/18/image_18082025_03_18_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/03/17/image_18082025_03_18_04_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/03/17/image_18082025_03_17_44_9657.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7fa36518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fa36518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fa36518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:18:32.695195
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/18/image_18082025_03_18_44_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/03/18/image_18082025_03_18_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/18/image_18082025_03_18_24_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/03/18/image_18082025_03_18_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/03/17/image_18082025_03_18_04_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/03/17/image_18082025_03_17_44_9657.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad1e64a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad1e64a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad1e64a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:18:47.718565
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/18/image_18082025_03_18_44_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/03/18/image_18082025_03_18_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/18/image_18082025_03_18_24_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/03/18/image_18082025_03_18_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/03/17/image_18082025_03_18_04_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/03/17/image_18082025_03_17_44_9657.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf15e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf15e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf15e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:19:02.689320
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/18/image_18082025_03_18_44_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/03/18/image_18082025_03_18_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/18/image_18082025_03_18_24_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/03/18/image_18082025_03_18_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/03/17/image_18082025_03_18_04_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/03/17/image_18082025_03_17_44_9657.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0321518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0321518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0321518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:19:16.801754
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/19/image_18082025_03_19_45_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/03/19/image_18082025_03_19_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/19/image_18082025_03_19_24_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/19/image_18082025_03_19_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/03/18/image_18082025_03_19_04_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/18/image_18082025_03_18_54_10664.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a46f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a46f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a46f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:19:31.838059
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/19/image_18082025_03_19_45_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/03/19/image_18082025_03_19_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/19/image_18082025_03_19_24_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/19/image_18082025_03_19_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/03/18/image_18082025_03_19_04_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/18/image_18082025_03_18_54_10664.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa04ee518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa04ee518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa04ee518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:19:46.811046
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/19/image_18082025_03_19_45_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/03/19/image_18082025_03_19_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/19/image_18082025_03_19_24_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/19/image_18082025_03_19_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/03/18/image_18082025_03_19_04_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/18/image_18082025_03_18_54_10664.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6351518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6351518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6351518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:20:02.252995
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/19/image_18082025_03_19_45_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/03/19/image_18082025_03_19_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/19/image_18082025_03_19_24_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/19/image_18082025_03_19_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/03/18/image_18082025_03_19_04_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/18/image_18082025_03_18_54_10664.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99974518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99974518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99974518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:20:16.919945
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/20/image_18082025_03_20_44_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/03/20/image_18082025_03_20_34_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/03/20/image_18082025_03_20_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/20/image_18082025_03_20_15_10671.jpg', 2), ('/home/nano/Desktop/images/18082025/03/19/image_18082025_03_20_04_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/03/19/image_18082025_03_19_54_9659.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa610d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa610d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa610d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:20:31.916871
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/20/image_18082025_03_20_44_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/03/20/image_18082025_03_20_34_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/03/20/image_18082025_03_20_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/20/image_18082025_03_20_15_10671.jpg', 2), ('/home/nano/Desktop/images/18082025/03/19/image_18082025_03_20_04_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/03/19/image_18082025_03_19_54_9659.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ae38518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ae38518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ae38518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:20:46.931513
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/20/image_18082025_03_20_44_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/03/20/image_18082025_03_20_34_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/03/20/image_18082025_03_20_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/20/image_18082025_03_20_15_10671.jpg', 2), ('/home/nano/Desktop/images/18082025/03/19/image_18082025_03_20_04_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/03/19/image_18082025_03_19_54_9659.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f807ec518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f807ec518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f807ec518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:21:02.549669
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/20/image_18082025_03_20_44_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/03/20/image_18082025_03_20_34_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/03/20/image_18082025_03_20_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/20/image_18082025_03_20_15_10671.jpg', 2), ('/home/nano/Desktop/images/18082025/03/19/image_18082025_03_20_04_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/03/19/image_18082025_03_19_54_9659.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a77a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a77a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a77a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:21:17.042778
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/21/image_18082025_03_21_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/21/image_18082025_03_21_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/21/image_18082025_03_21_14_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/03/20/image_18082025_03_21_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/03/20/image_18082025_03_20_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/03/20/image_18082025_03_20_44_10652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9077d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9077d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9077d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:21:32.041939
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/21/image_18082025_03_21_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/21/image_18082025_03_21_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/21/image_18082025_03_21_14_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/03/20/image_18082025_03_21_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/03/20/image_18082025_03_20_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/03/20/image_18082025_03_20_44_10652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a575518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a575518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a575518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:21:47.015569
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/21/image_18082025_03_21_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/21/image_18082025_03_21_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/21/image_18082025_03_21_14_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/03/20/image_18082025_03_21_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/03/20/image_18082025_03_20_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/03/20/image_18082025_03_20_44_10652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c75b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c75b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c75b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:22:02.443623
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/21/image_18082025_03_21_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/21/image_18082025_03_21_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/21/image_18082025_03_21_14_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/03/20/image_18082025_03_21_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/03/20/image_18082025_03_20_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/03/20/image_18082025_03_20_44_10652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8b6c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8b6c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8b6c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:22:17.130577
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/22/image_18082025_03_22_44_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/03/22/image_18082025_03_22_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/22/image_18082025_03_22_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/22/image_18082025_03_22_14_10677.jpg', 2), ('/home/nano/Desktop/images/18082025/03/21/image_18082025_03_22_04_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/03/21/image_18082025_03_21_44_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac0b4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac0b4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac0b4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:22:32.130930
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/22/image_18082025_03_22_44_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/03/22/image_18082025_03_22_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/22/image_18082025_03_22_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/22/image_18082025_03_22_14_10677.jpg', 2), ('/home/nano/Desktop/images/18082025/03/21/image_18082025_03_22_04_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/03/21/image_18082025_03_21_44_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8003d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8003d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8003d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:22:47.107839
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/22/image_18082025_03_22_44_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/03/22/image_18082025_03_22_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/22/image_18082025_03_22_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/22/image_18082025_03_22_14_10677.jpg', 2), ('/home/nano/Desktop/images/18082025/03/21/image_18082025_03_22_04_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/03/21/image_18082025_03_21_44_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98ac1518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98ac1518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98ac1518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:23:02.674887
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/22/image_18082025_03_22_44_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/03/22/image_18082025_03_22_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/22/image_18082025_03_22_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/22/image_18082025_03_22_14_10677.jpg', 2), ('/home/nano/Desktop/images/18082025/03/21/image_18082025_03_22_04_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/03/21/image_18082025_03_21_44_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3d79518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3d79518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3d79518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:23:17.213335
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/23/image_18082025_03_23_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/23/image_18082025_03_23_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/23/image_18082025_03_23_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/23/image_18082025_03_23_14_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/03/22/image_18082025_03_23_05_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/03/22/image_18082025_03_22_54_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c6c9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c6c9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c6c9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:23:32.240393
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/23/image_18082025_03_23_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/23/image_18082025_03_23_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/23/image_18082025_03_23_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/23/image_18082025_03_23_14_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/03/22/image_18082025_03_23_05_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/03/22/image_18082025_03_22_54_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84dff518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84dff518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84dff518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:23:47.244814
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/23/image_18082025_03_23_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/23/image_18082025_03_23_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/23/image_18082025_03_23_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/23/image_18082025_03_23_14_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/03/22/image_18082025_03_23_05_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/03/22/image_18082025_03_22_54_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a504518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a504518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a504518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:24:02.841890
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/23/image_18082025_03_23_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/23/image_18082025_03_23_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/23/image_18082025_03_23_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/23/image_18082025_03_23_14_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/03/22/image_18082025_03_23_05_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/03/22/image_18082025_03_22_54_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa897a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa897a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa897a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:24:17.345925
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/24/image_18082025_03_24_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/24/image_18082025_03_24_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/24/image_18082025_03_24_14_9676.jpg', 2), ('/home/nano/Desktop/images/18082025/03/23/image_18082025_03_24_04_10662.jpg', 2), ('/home/nano/Desktop/images/18082025/03/23/image_18082025_03_23_54_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/23/image_18082025_03_23_44_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa74c2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa74c2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa74c2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:24:32.335975
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/24/image_18082025_03_24_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/24/image_18082025_03_24_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/24/image_18082025_03_24_14_9676.jpg', 2), ('/home/nano/Desktop/images/18082025/03/23/image_18082025_03_24_04_10662.jpg', 2), ('/home/nano/Desktop/images/18082025/03/23/image_18082025_03_23_54_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/23/image_18082025_03_23_44_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa20c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa20c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa20c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:24:47.343152
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/24/image_18082025_03_24_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/24/image_18082025_03_24_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/24/image_18082025_03_24_14_9676.jpg', 2), ('/home/nano/Desktop/images/18082025/03/23/image_18082025_03_24_04_10662.jpg', 2), ('/home/nano/Desktop/images/18082025/03/23/image_18082025_03_23_54_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/23/image_18082025_03_23_44_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99cbb518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99cbb518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99cbb518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:25:02.842503
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/24/image_18082025_03_24_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/24/image_18082025_03_24_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/24/image_18082025_03_24_14_9676.jpg', 2), ('/home/nano/Desktop/images/18082025/03/23/image_18082025_03_24_04_10662.jpg', 2), ('/home/nano/Desktop/images/18082025/03/23/image_18082025_03_23_54_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/23/image_18082025_03_23_44_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f149518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f149518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f149518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:25:17.460626
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/25/image_18082025_03_25_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/25/image_18082025_03_25_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/25/image_18082025_03_25_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/25/image_18082025_03_25_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/03/24/image_18082025_03_25_04_10675.jpg', 2), ('/home/nano/Desktop/images/18082025/03/24/image_18082025_03_24_54_9646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ab37518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ab37518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ab37518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:25:32.477287
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/25/image_18082025_03_25_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/25/image_18082025_03_25_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/25/image_18082025_03_25_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/25/image_18082025_03_25_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/03/24/image_18082025_03_25_04_10675.jpg', 2), ('/home/nano/Desktop/images/18082025/03/24/image_18082025_03_24_54_9646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8434f4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8434f4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8434f4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:25:47.457244
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/25/image_18082025_03_25_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/25/image_18082025_03_25_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/25/image_18082025_03_25_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/25/image_18082025_03_25_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/03/24/image_18082025_03_25_04_10675.jpg', 2), ('/home/nano/Desktop/images/18082025/03/24/image_18082025_03_24_54_9646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fae951518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae951518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae951518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:26:02.879233
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/25/image_18082025_03_25_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/25/image_18082025_03_25_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/25/image_18082025_03_25_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/25/image_18082025_03_25_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/03/24/image_18082025_03_25_04_10675.jpg', 2), ('/home/nano/Desktop/images/18082025/03/24/image_18082025_03_24_54_9646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c3d84a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c3d84a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c3d84a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:26:17.546738
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/26/image_18082025_03_26_44_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/03/26/image_18082025_03_26_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/26/image_18082025_03_26_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/03/26/image_18082025_03_26_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/03/25/image_18082025_03_26_04_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/03/25/image_18082025_03_25_54_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa183a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa183a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa183a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:26:32.547551
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/26/image_18082025_03_26_44_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/03/26/image_18082025_03_26_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/26/image_18082025_03_26_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/03/26/image_18082025_03_26_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/03/25/image_18082025_03_26_04_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/03/25/image_18082025_03_25_54_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb17c3518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb17c3518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb17c3518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:26:47.544102
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/26/image_18082025_03_26_44_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/03/26/image_18082025_03_26_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/26/image_18082025_03_26_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/03/26/image_18082025_03_26_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/03/25/image_18082025_03_26_04_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/03/25/image_18082025_03_25_54_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fabfe8518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fabfe8518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fabfe8518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:27:03.063892
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/26/image_18082025_03_26_44_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/03/26/image_18082025_03_26_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/26/image_18082025_03_26_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/03/26/image_18082025_03_26_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/03/25/image_18082025_03_26_04_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/03/25/image_18082025_03_25_54_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86a01518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86a01518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86a01518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:27:17.622615
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/27/image_18082025_03_27_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/27/image_18082025_03_27_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/27/image_18082025_03_27_24_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/03/27/image_18082025_03_27_14_9673.jpg', 2), ('/home/nano/Desktop/images/18082025/03/26/image_18082025_03_27_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/03/26/image_18082025_03_26_54_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d347518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d347518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d347518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:27:32.636942
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/27/image_18082025_03_27_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/27/image_18082025_03_27_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/27/image_18082025_03_27_24_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/03/27/image_18082025_03_27_14_9673.jpg', 2), ('/home/nano/Desktop/images/18082025/03/26/image_18082025_03_27_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/03/26/image_18082025_03_26_54_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ae3a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ae3a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ae3a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:27:47.643816
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/27/image_18082025_03_27_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/27/image_18082025_03_27_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/27/image_18082025_03_27_24_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/03/27/image_18082025_03_27_14_9673.jpg', 2), ('/home/nano/Desktop/images/18082025/03/26/image_18082025_03_27_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/03/26/image_18082025_03_26_54_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3546518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3546518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3546518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:28:03.051164
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/27/image_18082025_03_27_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/27/image_18082025_03_27_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/27/image_18082025_03_27_24_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/03/27/image_18082025_03_27_14_9673.jpg', 2), ('/home/nano/Desktop/images/18082025/03/26/image_18082025_03_27_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/03/26/image_18082025_03_26_54_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93d1e4e0>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93d1e4e0>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93d1e4e0>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:28:17.746628
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/28/image_18082025_03_28_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/28/image_18082025_03_28_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/28/image_18082025_03_28_24_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/03/28/image_18082025_03_28_14_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/03/27/image_18082025_03_28_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/27/image_18082025_03_27_54_10652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faeda8518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faeda8518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faeda8518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:28:32.734323
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/28/image_18082025_03_28_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/28/image_18082025_03_28_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/28/image_18082025_03_28_24_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/03/28/image_18082025_03_28_14_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/03/27/image_18082025_03_28_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/27/image_18082025_03_27_54_10652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0e64518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0e64518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0e64518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:28:47.730527
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/28/image_18082025_03_28_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/28/image_18082025_03_28_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/28/image_18082025_03_28_24_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/03/28/image_18082025_03_28_14_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/03/27/image_18082025_03_28_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/27/image_18082025_03_27_54_10652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7bcd6518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bcd6518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bcd6518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:29:02.724584
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/28/image_18082025_03_28_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/28/image_18082025_03_28_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/28/image_18082025_03_28_24_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/03/28/image_18082025_03_28_14_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/03/27/image_18082025_03_28_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/27/image_18082025_03_27_54_10652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa9b4b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9b4b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9b4b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:29:16.847353
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/29/image_18082025_03_29_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/29/image_18082025_03_29_34_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/03/29/image_18082025_03_29_24_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/03/29/image_18082025_03_29_14_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/03/28/image_18082025_03_29_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/28/image_18082025_03_28_54_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86d08518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86d08518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86d08518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:29:31.835947
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/29/image_18082025_03_29_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/29/image_18082025_03_29_34_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/03/29/image_18082025_03_29_24_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/03/29/image_18082025_03_29_14_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/03/28/image_18082025_03_29_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/28/image_18082025_03_28_54_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b3ed518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b3ed518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b3ed518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:29:46.861127
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/29/image_18082025_03_29_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/29/image_18082025_03_29_34_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/03/29/image_18082025_03_29_24_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/03/29/image_18082025_03_29_14_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/03/28/image_18082025_03_29_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/28/image_18082025_03_28_54_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0d90518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0d90518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0d90518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:30:02.337286
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/29/image_18082025_03_29_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/29/image_18082025_03_29_34_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/03/29/image_18082025_03_29_24_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/03/29/image_18082025_03_29_14_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/03/28/image_18082025_03_29_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/28/image_18082025_03_28_54_10648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8524f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8524f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8524f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:30:16.966116
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/30/image_18082025_03_30_44_10664.jpg', 2), ('/home/nano/Desktop/images/18082025/03/30/image_18082025_03_30_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/30/image_18082025_03_30_15_10672.jpg', 2), ('/home/nano/Desktop/images/18082025/03/29/image_18082025_03_30_04_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/03/29/image_18082025_03_29_54_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/29/image_18082025_03_29_44_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f975ba518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f975ba518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f975ba518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:30:31.946990
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/30/image_18082025_03_30_44_10664.jpg', 2), ('/home/nano/Desktop/images/18082025/03/30/image_18082025_03_30_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/30/image_18082025_03_30_15_10672.jpg', 2), ('/home/nano/Desktop/images/18082025/03/29/image_18082025_03_30_04_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/03/29/image_18082025_03_29_54_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/29/image_18082025_03_29_44_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa29ad518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa29ad518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa29ad518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:30:46.955835
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/30/image_18082025_03_30_44_10664.jpg', 2), ('/home/nano/Desktop/images/18082025/03/30/image_18082025_03_30_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/30/image_18082025_03_30_15_10672.jpg', 2), ('/home/nano/Desktop/images/18082025/03/29/image_18082025_03_30_04_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/03/29/image_18082025_03_29_54_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/29/image_18082025_03_29_44_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad627518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad627518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad627518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:31:02.518556
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/30/image_18082025_03_30_44_10664.jpg', 2), ('/home/nano/Desktop/images/18082025/03/30/image_18082025_03_30_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/30/image_18082025_03_30_15_10672.jpg', 2), ('/home/nano/Desktop/images/18082025/03/29/image_18082025_03_30_04_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/03/29/image_18082025_03_29_54_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/29/image_18082025_03_29_44_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82ef54a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82ef54a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82ef54a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:31:17.090000
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/31/image_18082025_03_31_24_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/03/31/image_18082025_03_31_14_10674.jpg', 2), ('/home/nano/Desktop/images/18082025/03/30/image_18082025_03_31_04_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/03/30/image_18082025_03_30_54_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/30/image_18082025_03_30_44_10664.jpg', 2), ('/home/nano/Desktop/images/18082025/03/30/image_18082025_03_30_34_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8871518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8871518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8871518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:31:32.052338
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/31/image_18082025_03_31_24_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/03/31/image_18082025_03_31_14_10674.jpg', 2), ('/home/nano/Desktop/images/18082025/03/30/image_18082025_03_31_04_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/03/30/image_18082025_03_30_54_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/30/image_18082025_03_30_44_10664.jpg', 2), ('/home/nano/Desktop/images/18082025/03/30/image_18082025_03_30_34_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9af0a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9af0a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9af0a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:31:47.074409
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/31/image_18082025_03_31_24_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/03/31/image_18082025_03_31_14_10674.jpg', 2), ('/home/nano/Desktop/images/18082025/03/30/image_18082025_03_31_04_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/03/30/image_18082025_03_30_54_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/30/image_18082025_03_30_44_10664.jpg', 2), ('/home/nano/Desktop/images/18082025/03/30/image_18082025_03_30_34_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d89b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d89b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d89b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:32:02.582952
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/31/image_18082025_03_31_24_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/03/31/image_18082025_03_31_14_10674.jpg', 2), ('/home/nano/Desktop/images/18082025/03/30/image_18082025_03_31_04_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/03/30/image_18082025_03_30_54_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/30/image_18082025_03_30_44_10664.jpg', 2), ('/home/nano/Desktop/images/18082025/03/30/image_18082025_03_30_34_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99842518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99842518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99842518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:32:17.171222
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/32/image_18082025_03_32_44_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/03/32/image_18082025_03_32_34_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/03/32/image_18082025_03_32_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/32/image_18082025_03_32_14_10685.jpg', 2), ('/home/nano/Desktop/images/18082025/03/31/image_18082025_03_32_04_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/31/image_18082025_03_31_34_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81e9d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81e9d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81e9d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:32:32.206598
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/32/image_18082025_03_32_44_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/03/32/image_18082025_03_32_34_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/03/32/image_18082025_03_32_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/32/image_18082025_03_32_14_10685.jpg', 2), ('/home/nano/Desktop/images/18082025/03/31/image_18082025_03_32_04_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/31/image_18082025_03_31_34_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f92a9d4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92a9d4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92a9d4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:32:47.160783
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/32/image_18082025_03_32_44_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/03/32/image_18082025_03_32_34_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/03/32/image_18082025_03_32_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/32/image_18082025_03_32_14_10685.jpg', 2), ('/home/nano/Desktop/images/18082025/03/31/image_18082025_03_32_04_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/31/image_18082025_03_31_34_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa41e0518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa41e0518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa41e0518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:33:02.674657
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/32/image_18082025_03_32_44_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/03/32/image_18082025_03_32_34_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/03/32/image_18082025_03_32_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/32/image_18082025_03_32_14_10685.jpg', 2), ('/home/nano/Desktop/images/18082025/03/31/image_18082025_03_32_04_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/31/image_18082025_03_31_34_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f5d5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f5d5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f5d5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:33:17.300566
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/33/image_18082025_03_33_44_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/03/33/image_18082025_03_33_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/33/image_18082025_03_33_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/33/image_18082025_03_33_14_10671.jpg', 2), ('/home/nano/Desktop/images/18082025/03/32/image_18082025_03_33_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/03/32/image_18082025_03_32_54_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4442518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4442518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4442518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:33:32.261668
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/33/image_18082025_03_33_44_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/03/33/image_18082025_03_33_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/33/image_18082025_03_33_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/33/image_18082025_03_33_14_10671.jpg', 2), ('/home/nano/Desktop/images/18082025/03/32/image_18082025_03_33_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/03/32/image_18082025_03_32_54_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2955518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2955518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2955518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:33:47.305463
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/33/image_18082025_03_33_44_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/03/33/image_18082025_03_33_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/33/image_18082025_03_33_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/33/image_18082025_03_33_14_10671.jpg', 2), ('/home/nano/Desktop/images/18082025/03/32/image_18082025_03_33_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/03/32/image_18082025_03_32_54_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77764518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77764518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77764518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:34:03.071468
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/33/image_18082025_03_33_44_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/03/33/image_18082025_03_33_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/33/image_18082025_03_33_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/33/image_18082025_03_33_14_10671.jpg', 2), ('/home/nano/Desktop/images/18082025/03/32/image_18082025_03_33_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/03/32/image_18082025_03_32_54_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa29ef518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa29ef518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa29ef518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:34:17.407725
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/34/image_18082025_03_34_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/34/image_18082025_03_34_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/34/image_18082025_03_34_14_9665.jpg', 2), ('/home/nano/Desktop/images/18082025/03/33/image_18082025_03_34_05_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/03/33/image_18082025_03_33_54_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/33/image_18082025_03_33_44_10667.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95c38518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95c38518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95c38518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:34:32.430928
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/34/image_18082025_03_34_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/34/image_18082025_03_34_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/34/image_18082025_03_34_14_9665.jpg', 2), ('/home/nano/Desktop/images/18082025/03/33/image_18082025_03_34_05_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/03/33/image_18082025_03_33_54_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/33/image_18082025_03_33_44_10667.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89555518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89555518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89555518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:34:47.431116
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/34/image_18082025_03_34_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/34/image_18082025_03_34_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/34/image_18082025_03_34_14_9665.jpg', 2), ('/home/nano/Desktop/images/18082025/03/33/image_18082025_03_34_05_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/03/33/image_18082025_03_33_54_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/33/image_18082025_03_33_44_10667.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f778f4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f778f4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f778f4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:35:02.867425
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/34/image_18082025_03_34_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/34/image_18082025_03_34_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/34/image_18082025_03_34_14_9665.jpg', 2), ('/home/nano/Desktop/images/18082025/03/33/image_18082025_03_34_05_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/03/33/image_18082025_03_33_54_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/33/image_18082025_03_33_44_10667.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9428e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9428e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9428e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:35:17.509635
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/35/image_18082025_03_35_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/35/image_18082025_03_35_34_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/03/35/image_18082025_03_35_24_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/03/35/image_18082025_03_35_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/03/34/image_18082025_03_35_04_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/03/34/image_18082025_03_34_54_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fae732518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae732518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae732518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:35:32.500051
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/35/image_18082025_03_35_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/35/image_18082025_03_35_34_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/03/35/image_18082025_03_35_24_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/03/35/image_18082025_03_35_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/03/34/image_18082025_03_35_04_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/03/34/image_18082025_03_34_54_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa46ed518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa46ed518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa46ed518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:35:47.509844
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/35/image_18082025_03_35_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/35/image_18082025_03_35_34_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/03/35/image_18082025_03_35_24_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/03/35/image_18082025_03_35_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/03/34/image_18082025_03_35_04_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/03/34/image_18082025_03_34_54_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98aac518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98aac518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98aac518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:36:02.994491
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/35/image_18082025_03_35_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/35/image_18082025_03_35_34_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/03/35/image_18082025_03_35_24_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/03/35/image_18082025_03_35_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/03/34/image_18082025_03_35_04_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/03/34/image_18082025_03_34_54_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e2c5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e2c5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e2c5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:36:17.605538
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/36/image_18082025_03_36_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/03/36/image_18082025_03_36_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/03/36/image_18082025_03_36_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/36/image_18082025_03_36_14_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/03/35/image_18082025_03_36_04_10662.jpg', 2), ('/home/nano/Desktop/images/18082025/03/35/image_18082025_03_35_54_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4239518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4239518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4239518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:36:32.628330
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/36/image_18082025_03_36_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/03/36/image_18082025_03_36_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/03/36/image_18082025_03_36_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/36/image_18082025_03_36_14_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/03/35/image_18082025_03_36_04_10662.jpg', 2), ('/home/nano/Desktop/images/18082025/03/35/image_18082025_03_35_54_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8d4e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8d4e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8d4e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:36:47.613844
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/36/image_18082025_03_36_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/03/36/image_18082025_03_36_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/03/36/image_18082025_03_36_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/36/image_18082025_03_36_14_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/03/35/image_18082025_03_36_04_10662.jpg', 2), ('/home/nano/Desktop/images/18082025/03/35/image_18082025_03_35_54_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a0f1518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a0f1518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a0f1518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:37:03.234688
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/36/image_18082025_03_36_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/03/36/image_18082025_03_36_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/03/36/image_18082025_03_36_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/36/image_18082025_03_36_14_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/03/35/image_18082025_03_36_04_10662.jpg', 2), ('/home/nano/Desktop/images/18082025/03/35/image_18082025_03_35_54_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9fa184a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fa184a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fa184a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:37:17.707287
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/37/image_18082025_03_37_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/37/image_18082025_03_37_34_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/03/37/image_18082025_03_37_14_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/03/36/image_18082025_03_37_04_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/03/36/image_18082025_03_36_54_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/36/image_18082025_03_36_44_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9514b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9514b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9514b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:37:32.761699
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/37/image_18082025_03_37_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/37/image_18082025_03_37_34_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/03/37/image_18082025_03_37_14_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/03/36/image_18082025_03_37_04_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/03/36/image_18082025_03_36_54_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/36/image_18082025_03_36_44_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d88d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d88d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d88d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:37:47.704326
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/37/image_18082025_03_37_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/37/image_18082025_03_37_34_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/03/37/image_18082025_03_37_14_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/03/36/image_18082025_03_37_04_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/03/36/image_18082025_03_36_54_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/36/image_18082025_03_36_44_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98034518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98034518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98034518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:38:02.140156
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/37/image_18082025_03_37_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/37/image_18082025_03_37_34_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/03/37/image_18082025_03_37_14_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/03/36/image_18082025_03_37_04_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/03/36/image_18082025_03_36_54_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/36/image_18082025_03_36_44_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4e40518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4e40518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4e40518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:38:16.838116
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/38/image_18082025_03_38_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/38/image_18082025_03_38_24_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/03/38/image_18082025_03_38_14_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/03/37/image_18082025_03_38_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/03/37/image_18082025_03_37_54_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/37/image_18082025_03_37_44_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5102518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5102518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5102518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:38:31.802244
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/38/image_18082025_03_38_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/38/image_18082025_03_38_24_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/03/38/image_18082025_03_38_14_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/03/37/image_18082025_03_38_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/03/37/image_18082025_03_37_54_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/37/image_18082025_03_37_44_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6b1f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6b1f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6b1f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:38:46.833721
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/38/image_18082025_03_38_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/38/image_18082025_03_38_24_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/03/38/image_18082025_03_38_14_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/03/37/image_18082025_03_38_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/03/37/image_18082025_03_37_54_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/37/image_18082025_03_37_44_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb52c84a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb52c84a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb52c84a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:39:02.693285
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/38/image_18082025_03_38_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/38/image_18082025_03_38_24_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/03/38/image_18082025_03_38_14_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/03/37/image_18082025_03_38_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/03/37/image_18082025_03_37_54_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/37/image_18082025_03_37_44_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ac1d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ac1d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ac1d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:39:16.941716
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/39/image_18082025_03_39_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/39/image_18082025_03_39_24_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/38/image_18082025_03_39_04_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/03/38/image_18082025_03_38_54_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/03/38/image_18082025_03_38_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/38/image_18082025_03_38_24_10646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8a92518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8a92518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8a92518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:39:31.930400
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/39/image_18082025_03_39_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/39/image_18082025_03_39_24_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/38/image_18082025_03_39_04_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/03/38/image_18082025_03_38_54_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/03/38/image_18082025_03_38_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/38/image_18082025_03_38_24_10646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa99a2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa99a2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa99a2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:39:46.934230
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/39/image_18082025_03_39_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/39/image_18082025_03_39_24_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/38/image_18082025_03_39_04_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/03/38/image_18082025_03_38_54_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/03/38/image_18082025_03_38_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/38/image_18082025_03_38_24_10646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e4c0518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e4c0518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e4c0518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:40:02.357208
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/39/image_18082025_03_39_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/39/image_18082025_03_39_24_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/38/image_18082025_03_39_04_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/03/38/image_18082025_03_38_54_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/03/38/image_18082025_03_38_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/38/image_18082025_03_38_24_10646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77bc4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77bc4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77bc4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:40:17.022950
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/40/image_18082025_03_40_44_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/03/40/image_18082025_03_40_34_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/03/40/image_18082025_03_40_24_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/03/40/image_18082025_03_40_14_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/03/39/image_18082025_03_40_04_9673.jpg', 2), ('/home/nano/Desktop/images/18082025/03/39/image_18082025_03_39_44_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a374518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a374518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a374518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:40:32.011913
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/40/image_18082025_03_40_44_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/03/40/image_18082025_03_40_34_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/03/40/image_18082025_03_40_24_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/03/40/image_18082025_03_40_14_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/03/39/image_18082025_03_40_04_9673.jpg', 2), ('/home/nano/Desktop/images/18082025/03/39/image_18082025_03_39_44_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f847ca518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f847ca518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f847ca518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:40:47.008627
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/40/image_18082025_03_40_44_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/03/40/image_18082025_03_40_34_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/03/40/image_18082025_03_40_24_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/03/40/image_18082025_03_40_14_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/03/39/image_18082025_03_40_04_9673.jpg', 2), ('/home/nano/Desktop/images/18082025/03/39/image_18082025_03_39_44_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb1152518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1152518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1152518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:41:02.594502
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/40/image_18082025_03_40_44_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/03/40/image_18082025_03_40_34_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/03/40/image_18082025_03_40_24_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/03/40/image_18082025_03_40_14_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/03/39/image_18082025_03_40_04_9673.jpg', 2), ('/home/nano/Desktop/images/18082025/03/39/image_18082025_03_39_44_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa3054518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3054518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3054518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:41:17.138865
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/41/image_18082025_03_41_45_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/03/41/image_18082025_03_41_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/41/image_18082025_03_41_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/03/40/image_18082025_03_41_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/03/40/image_18082025_03_40_54_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/40/image_18082025_03_40_44_9645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fae3ca518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae3ca518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae3ca518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:41:32.094218
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/41/image_18082025_03_41_45_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/03/41/image_18082025_03_41_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/41/image_18082025_03_41_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/03/40/image_18082025_03_41_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/03/40/image_18082025_03_40_54_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/40/image_18082025_03_40_44_9645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85e224a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85e224a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85e224a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:41:47.130761
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/41/image_18082025_03_41_45_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/03/41/image_18082025_03_41_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/41/image_18082025_03_41_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/03/40/image_18082025_03_41_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/03/40/image_18082025_03_40_54_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/40/image_18082025_03_40_44_9645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa362d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa362d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa362d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:42:02.543756
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/41/image_18082025_03_41_45_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/03/41/image_18082025_03_41_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/41/image_18082025_03_41_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/03/40/image_18082025_03_41_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/03/40/image_18082025_03_40_54_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/40/image_18082025_03_40_44_9645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f728518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f728518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f728518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:42:17.210724
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/42/image_18082025_03_42_44_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/03/42/image_18082025_03_42_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/42/image_18082025_03_42_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/03/42/image_18082025_03_42_14_10686.jpg', 2), ('/home/nano/Desktop/images/18082025/03/41/image_18082025_03_42_04_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/41/image_18082025_03_41_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab142518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab142518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab142518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:42:32.197901
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/42/image_18082025_03_42_44_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/03/42/image_18082025_03_42_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/42/image_18082025_03_42_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/03/42/image_18082025_03_42_14_10686.jpg', 2), ('/home/nano/Desktop/images/18082025/03/41/image_18082025_03_42_04_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/41/image_18082025_03_41_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f797d94a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f797d94a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f797d94a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:42:47.206783
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/42/image_18082025_03_42_44_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/03/42/image_18082025_03_42_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/42/image_18082025_03_42_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/03/42/image_18082025_03_42_14_10686.jpg', 2), ('/home/nano/Desktop/images/18082025/03/41/image_18082025_03_42_04_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/41/image_18082025_03_41_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f946014a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f946014a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f946014a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:43:02.801106
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/42/image_18082025_03_42_44_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/03/42/image_18082025_03_42_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/42/image_18082025_03_42_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/03/42/image_18082025_03_42_14_10686.jpg', 2), ('/home/nano/Desktop/images/18082025/03/41/image_18082025_03_42_04_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/41/image_18082025_03_41_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f857ee518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f857ee518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f857ee518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:43:17.297852
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/43/image_18082025_03_43_44_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/03/43/image_18082025_03_43_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/43/image_18082025_03_43_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/43/image_18082025_03_43_14_10671.jpg', 2), ('/home/nano/Desktop/images/18082025/03/42/image_18082025_03_43_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/03/42/image_18082025_03_42_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fadbdb518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fadbdb518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fadbdb518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:43:32.299775
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/43/image_18082025_03_43_44_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/03/43/image_18082025_03_43_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/43/image_18082025_03_43_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/43/image_18082025_03_43_14_10671.jpg', 2), ('/home/nano/Desktop/images/18082025/03/42/image_18082025_03_43_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/03/42/image_18082025_03_42_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a633518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a633518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a633518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:43:47.306140
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/43/image_18082025_03_43_44_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/03/43/image_18082025_03_43_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/43/image_18082025_03_43_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/43/image_18082025_03_43_14_10671.jpg', 2), ('/home/nano/Desktop/images/18082025/03/42/image_18082025_03_43_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/03/42/image_18082025_03_42_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78041518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78041518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78041518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:44:02.979185
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/43/image_18082025_03_43_44_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/03/43/image_18082025_03_43_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/43/image_18082025_03_43_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/43/image_18082025_03_43_14_10671.jpg', 2), ('/home/nano/Desktop/images/18082025/03/42/image_18082025_03_43_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/03/42/image_18082025_03_42_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb33bb518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb33bb518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb33bb518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:44:17.463531
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/44/image_18082025_03_44_34_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/03/44/image_18082025_03_44_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/03/44/image_18082025_03_44_14_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/03/43/image_18082025_03_44_04_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/03/43/image_18082025_03_43_54_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/03/43/image_18082025_03_43_44_10652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4db6518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4db6518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4db6518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:44:32.436302
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/44/image_18082025_03_44_34_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/03/44/image_18082025_03_44_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/03/44/image_18082025_03_44_14_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/03/43/image_18082025_03_44_04_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/03/43/image_18082025_03_43_54_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/03/43/image_18082025_03_43_44_10652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91ec9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91ec9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91ec9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:44:47.492031
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/44/image_18082025_03_44_34_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/03/44/image_18082025_03_44_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/03/44/image_18082025_03_44_14_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/03/43/image_18082025_03_44_04_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/03/43/image_18082025_03_43_54_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/03/43/image_18082025_03_43_44_10652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78b18518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78b18518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78b18518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:45:02.920267
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/44/image_18082025_03_44_34_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/03/44/image_18082025_03_44_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/03/44/image_18082025_03_44_14_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/03/43/image_18082025_03_44_04_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/03/43/image_18082025_03_43_54_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/03/43/image_18082025_03_43_44_10652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96b5e4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96b5e4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96b5e4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:45:17.604744
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/45/image_18082025_03_45_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/45/image_18082025_03_45_34_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/03/45/image_18082025_03_45_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/45/image_18082025_03_45_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/03/44/image_18082025_03_45_05_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/03/44/image_18082025_03_44_44_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ffa3518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ffa3518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ffa3518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:45:32.579170
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/45/image_18082025_03_45_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/45/image_18082025_03_45_34_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/03/45/image_18082025_03_45_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/45/image_18082025_03_45_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/03/44/image_18082025_03_45_05_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/03/44/image_18082025_03_44_44_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac328518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac328518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac328518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:45:47.589724
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/45/image_18082025_03_45_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/45/image_18082025_03_45_34_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/03/45/image_18082025_03_45_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/45/image_18082025_03_45_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/03/44/image_18082025_03_45_05_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/03/44/image_18082025_03_44_44_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8445d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8445d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8445d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:46:03.018658
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/45/image_18082025_03_45_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/45/image_18082025_03_45_34_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/03/45/image_18082025_03_45_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/45/image_18082025_03_45_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/03/44/image_18082025_03_45_05_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/03/44/image_18082025_03_44_44_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91a65518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91a65518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91a65518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:46:17.730593
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/46/image_18082025_03_46_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/46/image_18082025_03_46_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/46/image_18082025_03_46_14_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/03/45/image_18082025_03_46_04_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/03/45/image_18082025_03_45_54_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/45/image_18082025_03_45_44_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7eb5d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7eb5d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7eb5d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:46:32.687202
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/46/image_18082025_03_46_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/46/image_18082025_03_46_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/46/image_18082025_03_46_14_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/03/45/image_18082025_03_46_04_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/03/45/image_18082025_03_45_54_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/45/image_18082025_03_45_44_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fabdab4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fabdab4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fabdab4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:46:47.670316
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/46/image_18082025_03_46_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/46/image_18082025_03_46_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/46/image_18082025_03_46_14_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/03/45/image_18082025_03_46_04_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/03/45/image_18082025_03_45_54_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/45/image_18082025_03_45_44_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf7874a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf7874a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf7874a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:47:02.316840
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/46/image_18082025_03_46_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/46/image_18082025_03_46_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/46/image_18082025_03_46_14_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/03/45/image_18082025_03_46_04_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/03/45/image_18082025_03_45_54_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/45/image_18082025_03_45_44_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f981304a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f981304a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f981304a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:47:16.775606
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/47/image_18082025_03_47_44_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/03/47/image_18082025_03_47_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/47/image_18082025_03_47_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/47/image_18082025_03_47_14_9672.jpg', 2), ('/home/nano/Desktop/images/18082025/03/46/image_18082025_03_47_04_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/03/46/image_18082025_03_46_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b872518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b872518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b872518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:47:31.785478
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/47/image_18082025_03_47_44_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/03/47/image_18082025_03_47_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/47/image_18082025_03_47_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/47/image_18082025_03_47_14_9672.jpg', 2), ('/home/nano/Desktop/images/18082025/03/46/image_18082025_03_47_04_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/03/46/image_18082025_03_46_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b1c94a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b1c94a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b1c94a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:47:46.768852
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/47/image_18082025_03_47_44_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/03/47/image_18082025_03_47_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/47/image_18082025_03_47_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/47/image_18082025_03_47_14_9672.jpg', 2), ('/home/nano/Desktop/images/18082025/03/46/image_18082025_03_47_04_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/03/46/image_18082025_03_46_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f881eb518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f881eb518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f881eb518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:48:02.236889
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/47/image_18082025_03_47_44_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/03/47/image_18082025_03_47_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/47/image_18082025_03_47_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/47/image_18082025_03_47_14_9672.jpg', 2), ('/home/nano/Desktop/images/18082025/03/46/image_18082025_03_47_04_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/03/46/image_18082025_03_46_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fae79d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae79d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae79d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:48:16.874266
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/48/image_18082025_03_48_44_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/03/48/image_18082025_03_48_34_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/03/48/image_18082025_03_48_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/48/image_18082025_03_48_14_9676.jpg', 2), ('/home/nano/Desktop/images/18082025/03/47/image_18082025_03_48_04_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/47/image_18082025_03_47_54_9657.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa717518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa717518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa717518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:48:31.934094
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/48/image_18082025_03_48_44_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/03/48/image_18082025_03_48_34_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/03/48/image_18082025_03_48_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/48/image_18082025_03_48_14_9676.jpg', 2), ('/home/nano/Desktop/images/18082025/03/47/image_18082025_03_48_04_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/47/image_18082025_03_47_54_9657.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fabf5a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fabf5a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fabf5a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:48:46.922605
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/48/image_18082025_03_48_44_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/03/48/image_18082025_03_48_34_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/03/48/image_18082025_03_48_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/48/image_18082025_03_48_14_9676.jpg', 2), ('/home/nano/Desktop/images/18082025/03/47/image_18082025_03_48_04_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/47/image_18082025_03_47_54_9657.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f777d74a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f777d74a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f777d74a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:49:02.706765
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/48/image_18082025_03_48_44_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/03/48/image_18082025_03_48_34_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/03/48/image_18082025_03_48_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/48/image_18082025_03_48_14_9676.jpg', 2), ('/home/nano/Desktop/images/18082025/03/47/image_18082025_03_48_04_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/47/image_18082025_03_47_54_9657.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f9c5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f9c5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f9c5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:49:17.022075
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/49/image_18082025_03_49_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/49/image_18082025_03_49_24_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/03/49/image_18082025_03_49_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/03/48/image_18082025_03_49_04_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/03/48/image_18082025_03_48_55_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/03/48/image_18082025_03_48_44_9658.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f972ce4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f972ce4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f972ce4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:49:32.094475
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/49/image_18082025_03_49_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/49/image_18082025_03_49_24_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/03/49/image_18082025_03_49_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/03/48/image_18082025_03_49_04_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/03/48/image_18082025_03_48_55_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/03/48/image_18082025_03_48_44_9658.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c29a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c29a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c29a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:49:46.983053
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/49/image_18082025_03_49_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/49/image_18082025_03_49_24_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/03/49/image_18082025_03_49_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/03/48/image_18082025_03_49_04_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/03/48/image_18082025_03_48_55_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/03/48/image_18082025_03_48_44_9658.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2903518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2903518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2903518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:50:02.337775
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/49/image_18082025_03_49_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/03/49/image_18082025_03_49_24_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/03/49/image_18082025_03_49_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/03/48/image_18082025_03_49_04_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/03/48/image_18082025_03_48_55_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/03/48/image_18082025_03_48_44_9658.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2654518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2654518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2654518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:50:17.094330
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/50/image_18082025_03_50_44_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/03/50/image_18082025_03_50_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/50/image_18082025_03_50_24_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/03/50/image_18082025_03_50_14_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/03/49/image_18082025_03_50_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/03/49/image_18082025_03_49_44_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa8ab550>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa8ab550>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa8ab550>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:50:32.093272
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/50/image_18082025_03_50_44_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/03/50/image_18082025_03_50_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/50/image_18082025_03_50_24_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/03/50/image_18082025_03_50_14_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/03/49/image_18082025_03_50_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/03/49/image_18082025_03_49_44_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90802518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90802518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90802518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:50:47.098662
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/50/image_18082025_03_50_44_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/03/50/image_18082025_03_50_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/50/image_18082025_03_50_24_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/03/50/image_18082025_03_50_14_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/03/49/image_18082025_03_50_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/03/49/image_18082025_03_49_44_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99785518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99785518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99785518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:51:02.682270
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/50/image_18082025_03_50_44_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/03/50/image_18082025_03_50_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/50/image_18082025_03_50_24_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/03/50/image_18082025_03_50_14_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/03/49/image_18082025_03_50_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/03/49/image_18082025_03_49_44_9637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95d12518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95d12518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95d12518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:51:17.215834
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/51/image_18082025_03_51_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/51/image_18082025_03_51_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/51/image_18082025_03_51_24_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/03/51/image_18082025_03_51_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/03/50/image_18082025_03_51_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/03/50/image_18082025_03_50_54_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79d8e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79d8e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79d8e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:51:32.193045
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/51/image_18082025_03_51_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/51/image_18082025_03_51_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/51/image_18082025_03_51_24_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/03/51/image_18082025_03_51_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/03/50/image_18082025_03_51_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/03/50/image_18082025_03_50_54_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb10a1518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb10a1518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb10a1518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:51:47.201757
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/51/image_18082025_03_51_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/51/image_18082025_03_51_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/51/image_18082025_03_51_24_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/03/51/image_18082025_03_51_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/03/50/image_18082025_03_51_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/03/50/image_18082025_03_50_54_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a9ee518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a9ee518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a9ee518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:52:02.638291
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/51/image_18082025_03_51_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/51/image_18082025_03_51_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/51/image_18082025_03_51_24_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/03/51/image_18082025_03_51_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/03/50/image_18082025_03_51_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/03/50/image_18082025_03_50_54_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa82b3518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa82b3518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa82b3518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:52:17.302264
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/52/image_18082025_03_52_44_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/52/image_18082025_03_52_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/52/image_18082025_03_52_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/52/image_18082025_03_52_15_10671.jpg', 2), ('/home/nano/Desktop/images/18082025/03/51/image_18082025_03_52_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/03/51/image_18082025_03_51_54_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91a094a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91a094a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91a094a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:52:32.285778
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/52/image_18082025_03_52_44_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/52/image_18082025_03_52_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/52/image_18082025_03_52_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/52/image_18082025_03_52_15_10671.jpg', 2), ('/home/nano/Desktop/images/18082025/03/51/image_18082025_03_52_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/03/51/image_18082025_03_51_54_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5592518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5592518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5592518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:52:47.278648
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/52/image_18082025_03_52_44_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/52/image_18082025_03_52_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/52/image_18082025_03_52_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/52/image_18082025_03_52_15_10671.jpg', 2), ('/home/nano/Desktop/images/18082025/03/51/image_18082025_03_52_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/03/51/image_18082025_03_51_54_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e145518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e145518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e145518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:53:02.814330
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/52/image_18082025_03_52_44_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/52/image_18082025_03_52_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/52/image_18082025_03_52_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/52/image_18082025_03_52_15_10671.jpg', 2), ('/home/nano/Desktop/images/18082025/03/51/image_18082025_03_52_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/03/51/image_18082025_03_51_54_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91eee518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91eee518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91eee518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:53:17.385769
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/53/image_18082025_03_53_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/03/53/image_18082025_03_53_34_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/03/53/image_18082025_03_53_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/53/image_18082025_03_53_14_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/03/52/image_18082025_03_53_04_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/03/52/image_18082025_03_52_54_9655.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f80891518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80891518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80891518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:53:32.401273
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/53/image_18082025_03_53_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/03/53/image_18082025_03_53_34_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/03/53/image_18082025_03_53_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/53/image_18082025_03_53_14_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/03/52/image_18082025_03_53_04_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/03/52/image_18082025_03_52_54_9655.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faea63518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faea63518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faea63518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:53:47.405676
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/53/image_18082025_03_53_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/03/53/image_18082025_03_53_34_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/03/53/image_18082025_03_53_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/53/image_18082025_03_53_14_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/03/52/image_18082025_03_53_04_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/03/52/image_18082025_03_52_54_9655.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa50f94a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa50f94a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa50f94a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:54:03.260785
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/53/image_18082025_03_53_44_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/03/53/image_18082025_03_53_34_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/03/53/image_18082025_03_53_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/53/image_18082025_03_53_14_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/03/52/image_18082025_03_53_04_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/03/52/image_18082025_03_52_54_9655.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99725518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99725518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99725518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:54:17.546374
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/54/image_18082025_03_54_44_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/03/54/image_18082025_03_54_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/54/image_18082025_03_54_24_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/03/54/image_18082025_03_54_14_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/03/53/image_18082025_03_54_04_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/03/53/image_18082025_03_53_54_9654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb062b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb062b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb062b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:54:32.528974
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/54/image_18082025_03_54_44_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/03/54/image_18082025_03_54_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/54/image_18082025_03_54_24_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/03/54/image_18082025_03_54_14_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/03/53/image_18082025_03_54_04_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/03/53/image_18082025_03_53_54_9654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c6a1518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c6a1518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c6a1518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:54:47.505452
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/54/image_18082025_03_54_44_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/03/54/image_18082025_03_54_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/54/image_18082025_03_54_24_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/03/54/image_18082025_03_54_14_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/03/53/image_18082025_03_54_04_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/03/53/image_18082025_03_53_54_9654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d29c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d29c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d29c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:55:03.033370
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/54/image_18082025_03_54_44_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/03/54/image_18082025_03_54_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/54/image_18082025_03_54_24_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/03/54/image_18082025_03_54_14_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/03/53/image_18082025_03_54_04_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/03/53/image_18082025_03_53_54_9654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9767b4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9767b4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9767b4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:55:17.616253
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/55/image_18082025_03_55_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/55/image_18082025_03_55_35_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/03/55/image_18082025_03_55_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/55/image_18082025_03_55_14_10671.jpg', 2), ('/home/nano/Desktop/images/18082025/03/54/image_18082025_03_55_04_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/03/54/image_18082025_03_54_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2260518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2260518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2260518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:55:32.611780
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/55/image_18082025_03_55_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/55/image_18082025_03_55_35_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/03/55/image_18082025_03_55_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/55/image_18082025_03_55_14_10671.jpg', 2), ('/home/nano/Desktop/images/18082025/03/54/image_18082025_03_55_04_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/03/54/image_18082025_03_54_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c1d5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c1d5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c1d5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:55:47.644897
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/55/image_18082025_03_55_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/55/image_18082025_03_55_35_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/03/55/image_18082025_03_55_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/55/image_18082025_03_55_14_10671.jpg', 2), ('/home/nano/Desktop/images/18082025/03/54/image_18082025_03_55_04_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/03/54/image_18082025_03_54_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa1e74a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa1e74a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa1e74a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:56:03.145106
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/55/image_18082025_03_55_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/55/image_18082025_03_55_35_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/03/55/image_18082025_03_55_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/03/55/image_18082025_03_55_14_10671.jpg', 2), ('/home/nano/Desktop/images/18082025/03/54/image_18082025_03_55_04_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/03/54/image_18082025_03_54_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa95bc518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa95bc518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa95bc518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:56:17.723499
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/56/image_18082025_03_56_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/56/image_18082025_03_56_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/56/image_18082025_03_56_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/56/image_18082025_03_56_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/03/55/image_18082025_03_56_04_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/03/55/image_18082025_03_55_54_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7296518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7296518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7296518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:56:32.709558
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/56/image_18082025_03_56_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/56/image_18082025_03_56_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/56/image_18082025_03_56_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/56/image_18082025_03_56_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/03/55/image_18082025_03_56_04_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/03/55/image_18082025_03_55_54_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ac14518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ac14518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ac14518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:56:47.705394
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/56/image_18082025_03_56_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/56/image_18082025_03_56_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/56/image_18082025_03_56_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/56/image_18082025_03_56_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/03/55/image_18082025_03_56_04_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/03/55/image_18082025_03_55_54_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86ff7518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86ff7518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86ff7518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:57:02.264611
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/56/image_18082025_03_56_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/03/56/image_18082025_03_56_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/56/image_18082025_03_56_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/56/image_18082025_03_56_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/03/55/image_18082025_03_56_04_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/03/55/image_18082025_03_55_54_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f886e3518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f886e3518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f886e3518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:57:16.821942
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/57/image_18082025_03_57_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/57/image_18082025_03_57_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/57/image_18082025_03_57_24_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/03/57/image_18082025_03_57_14_9671.jpg', 2), ('/home/nano/Desktop/images/18082025/03/56/image_18082025_03_57_04_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/03/56/image_18082025_03_56_54_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79cd04a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79cd04a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79cd04a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:57:31.797473
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/57/image_18082025_03_57_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/57/image_18082025_03_57_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/57/image_18082025_03_57_24_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/03/57/image_18082025_03_57_14_9671.jpg', 2), ('/home/nano/Desktop/images/18082025/03/56/image_18082025_03_57_04_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/03/56/image_18082025_03_56_54_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f781db518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f781db518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f781db518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:57:46.814185
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/57/image_18082025_03_57_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/57/image_18082025_03_57_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/57/image_18082025_03_57_24_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/03/57/image_18082025_03_57_14_9671.jpg', 2), ('/home/nano/Desktop/images/18082025/03/56/image_18082025_03_57_04_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/03/56/image_18082025_03_56_54_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb340d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb340d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb340d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:59:02.880828
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/57/image_18082025_03_57_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/57/image_18082025_03_57_34_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/03/57/image_18082025_03_57_24_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/03/57/image_18082025_03_57_14_9671.jpg', 2), ('/home/nano/Desktop/images/18082025/03/56/image_18082025_03_57_04_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/03/56/image_18082025_03_56_54_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f861cf518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f861cf518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f861cf518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:59:17.099546
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/59/image_18082025_03_59_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/59/image_18082025_03_59_34_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/03/59/image_18082025_03_59_24_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/03/59/image_18082025_03_59_14_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/03/58/image_18082025_03_59_04_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/03/58/image_18082025_03_58_44_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91780518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91780518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91780518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:59:32.046467
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/59/image_18082025_03_59_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/59/image_18082025_03_59_34_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/03/59/image_18082025_03_59_24_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/03/59/image_18082025_03_59_14_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/03/58/image_18082025_03_59_04_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/03/58/image_18082025_03_58_44_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90bdc518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90bdc518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90bdc518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 03:59:47.061429
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/59/image_18082025_03_59_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/59/image_18082025_03_59_34_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/03/59/image_18082025_03_59_24_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/03/59/image_18082025_03_59_14_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/03/58/image_18082025_03_59_04_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/03/58/image_18082025_03_58_44_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0dcf518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0dcf518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0dcf518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:00:02.498198
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/03/59/image_18082025_03_59_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/03/59/image_18082025_03_59_34_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/03/59/image_18082025_03_59_24_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/03/59/image_18082025_03_59_14_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/03/58/image_18082025_03_59_04_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/03/58/image_18082025_03_58_44_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9946b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9946b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9946b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:00:17.185181
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/00/image_18082025_04_00_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/04/00/image_18082025_04_00_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/00/image_18082025_04_00_24_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/04/00/image_18082025_04_00_14_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/03/59/image_18082025_04_00_04_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/03/59/image_18082025_03_59_54_10652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f80f8f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80f8f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80f8f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:00:32.158554
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/00/image_18082025_04_00_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/04/00/image_18082025_04_00_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/00/image_18082025_04_00_24_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/04/00/image_18082025_04_00_14_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/03/59/image_18082025_04_00_04_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/03/59/image_18082025_03_59_54_10652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa303a4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa303a4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa303a4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:00:47.182144
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/00/image_18082025_04_00_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/04/00/image_18082025_04_00_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/00/image_18082025_04_00_24_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/04/00/image_18082025_04_00_14_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/03/59/image_18082025_04_00_04_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/03/59/image_18082025_03_59_54_10652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa3f7a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3f7a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3f7a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:01:02.848156
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/00/image_18082025_04_00_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/04/00/image_18082025_04_00_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/00/image_18082025_04_00_24_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/04/00/image_18082025_04_00_14_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/03/59/image_18082025_04_00_04_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/03/59/image_18082025_03_59_54_10652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa3fd518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa3fd518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa3fd518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:01:17.279469
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/01/image_18082025_04_01_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/04/01/image_18082025_04_01_34_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/04/01/image_18082025_04_01_24_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/04/00/image_18082025_04_01_04_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/04/00/image_18082025_04_00_54_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/04/00/image_18082025_04_00_44_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f999f7518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f999f7518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f999f7518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:01:32.280953
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/01/image_18082025_04_01_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/04/01/image_18082025_04_01_34_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/04/01/image_18082025_04_01_24_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/04/00/image_18082025_04_01_04_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/04/00/image_18082025_04_00_54_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/04/00/image_18082025_04_00_44_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2f69518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2f69518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2f69518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:01:47.281689
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/01/image_18082025_04_01_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/04/01/image_18082025_04_01_34_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/04/01/image_18082025_04_01_24_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/04/00/image_18082025_04_01_04_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/04/00/image_18082025_04_00_54_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/04/00/image_18082025_04_00_44_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c3ae518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c3ae518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c3ae518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:02:02.749329
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/01/image_18082025_04_01_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/04/01/image_18082025_04_01_34_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/04/01/image_18082025_04_01_24_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/04/00/image_18082025_04_01_04_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/04/00/image_18082025_04_00_54_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/04/00/image_18082025_04_00_44_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e3a2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e3a2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e3a2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:02:17.386751
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/02/image_18082025_04_02_45_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/04/02/image_18082025_04_02_34_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/04/02/image_18082025_04_02_24_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/04/01/image_18082025_04_02_04_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/04/01/image_18082025_04_01_54_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/04/01/image_18082025_04_01_44_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91145518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91145518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91145518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:02:32.401347
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/02/image_18082025_04_02_45_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/04/02/image_18082025_04_02_34_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/04/02/image_18082025_04_02_24_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/04/01/image_18082025_04_02_04_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/04/01/image_18082025_04_01_54_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/04/01/image_18082025_04_01_44_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa185c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa185c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa185c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:02:47.370508
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/02/image_18082025_04_02_45_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/04/02/image_18082025_04_02_34_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/04/02/image_18082025_04_02_24_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/04/01/image_18082025_04_02_04_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/04/01/image_18082025_04_01_54_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/04/01/image_18082025_04_01_44_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5df04a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5df04a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5df04a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:03:03.001795
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/02/image_18082025_04_02_45_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/04/02/image_18082025_04_02_34_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/04/02/image_18082025_04_02_24_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/04/01/image_18082025_04_02_04_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/04/01/image_18082025_04_01_54_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/04/01/image_18082025_04_01_44_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a232518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a232518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a232518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:03:17.506607
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/03/image_18082025_04_03_44_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/04/03/image_18082025_04_03_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/03/image_18082025_04_03_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/04/03/image_18082025_04_03_14_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/04/02/image_18082025_04_03_04_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/04/02/image_18082025_04_02_54_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f7dd518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f7dd518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f7dd518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:03:32.483811
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/03/image_18082025_04_03_44_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/04/03/image_18082025_04_03_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/03/image_18082025_04_03_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/04/03/image_18082025_04_03_14_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/04/02/image_18082025_04_03_04_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/04/02/image_18082025_04_02_54_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f80b4e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80b4e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80b4e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:03:47.497708
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/03/image_18082025_04_03_44_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/04/03/image_18082025_04_03_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/03/image_18082025_04_03_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/04/03/image_18082025_04_03_14_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/04/02/image_18082025_04_03_04_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/04/02/image_18082025_04_02_54_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb10b9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb10b9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb10b9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:04:03.152637
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/03/image_18082025_04_03_44_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/04/03/image_18082025_04_03_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/03/image_18082025_04_03_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/04/03/image_18082025_04_03_14_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/04/02/image_18082025_04_03_04_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/04/02/image_18082025_04_02_54_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f886f0518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f886f0518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f886f0518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:04:17.598139
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/04/image_18082025_04_04_44_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/04/04/image_18082025_04_04_34_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/04/04/image_18082025_04_04_24_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/04/04/image_18082025_04_04_14_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/04/03/image_18082025_04_04_04_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/03/image_18082025_04_03_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9800a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9800a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9800a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:04:32.593988
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/04/image_18082025_04_04_44_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/04/04/image_18082025_04_04_34_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/04/04/image_18082025_04_04_24_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/04/04/image_18082025_04_04_14_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/04/03/image_18082025_04_04_04_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/03/image_18082025_04_03_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98c164a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98c164a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98c164a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:04:47.620357
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/04/image_18082025_04_04_44_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/04/04/image_18082025_04_04_34_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/04/04/image_18082025_04_04_24_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/04/04/image_18082025_04_04_14_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/04/03/image_18082025_04_04_04_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/03/image_18082025_04_03_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88ce9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88ce9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88ce9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:05:03.151460
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/04/image_18082025_04_04_44_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/04/04/image_18082025_04_04_34_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/04/04/image_18082025_04_04_24_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/04/04/image_18082025_04_04_14_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/04/03/image_18082025_04_04_04_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/03/image_18082025_04_03_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a43d4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a43d4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a43d4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:05:17.711163
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/05/image_18082025_04_05_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/04/05/image_18082025_04_05_35_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/04/05/image_18082025_04_05_24_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/04/05/image_18082025_04_05_14_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/04/04/image_18082025_04_05_04_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/04/04/image_18082025_04_04_54_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b6f7518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b6f7518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b6f7518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:05:32.714426
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/05/image_18082025_04_05_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/04/05/image_18082025_04_05_35_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/04/05/image_18082025_04_05_24_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/04/05/image_18082025_04_05_14_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/04/04/image_18082025_04_05_04_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/04/04/image_18082025_04_04_54_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fafa7e4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafa7e4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafa7e4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:05:47.770461
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/05/image_18082025_04_05_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/04/05/image_18082025_04_05_35_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/04/05/image_18082025_04_05_24_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/04/05/image_18082025_04_05_14_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/04/04/image_18082025_04_05_04_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/04/04/image_18082025_04_04_54_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0f63518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0f63518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0f63518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:06:02.098215
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/05/image_18082025_04_05_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/04/05/image_18082025_04_05_35_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/04/05/image_18082025_04_05_24_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/04/05/image_18082025_04_05_14_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/04/04/image_18082025_04_05_04_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/04/04/image_18082025_04_04_54_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96991518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96991518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96991518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:06:16.885939
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/06/image_18082025_04_06_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/06/image_18082025_04_06_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/04/06/image_18082025_04_06_24_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/04/06/image_18082025_04_06_14_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/04/05/image_18082025_04_06_04_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/04/05/image_18082025_04_05_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93d3e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93d3e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93d3e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:06:31.922987
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/06/image_18082025_04_06_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/06/image_18082025_04_06_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/04/06/image_18082025_04_06_24_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/04/06/image_18082025_04_06_14_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/04/05/image_18082025_04_06_04_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/04/05/image_18082025_04_05_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab761518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab761518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab761518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:06:46.860949
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/06/image_18082025_04_06_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/06/image_18082025_04_06_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/04/06/image_18082025_04_06_24_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/04/06/image_18082025_04_06_14_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/04/05/image_18082025_04_06_04_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/04/05/image_18082025_04_05_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa90b24a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa90b24a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa90b24a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:07:02.457999
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/06/image_18082025_04_06_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/06/image_18082025_04_06_34_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/04/06/image_18082025_04_06_24_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/04/06/image_18082025_04_06_14_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/04/05/image_18082025_04_06_04_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/04/05/image_18082025_04_05_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa59eb518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa59eb518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa59eb518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:07:17.055139
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/07/image_18082025_04_07_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/07/image_18082025_04_07_34_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/04/07/image_18082025_04_07_24_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/04/07/image_18082025_04_07_14_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/04/06/image_18082025_04_07_04_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/04/06/image_18082025_04_06_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90e01518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90e01518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90e01518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:07:31.984050
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/07/image_18082025_04_07_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/07/image_18082025_04_07_34_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/04/07/image_18082025_04_07_24_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/04/07/image_18082025_04_07_14_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/04/06/image_18082025_04_07_04_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/04/06/image_18082025_04_06_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fafc51518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafc51518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafc51518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:07:46.956838
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/07/image_18082025_04_07_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/07/image_18082025_04_07_34_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/04/07/image_18082025_04_07_24_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/04/07/image_18082025_04_07_14_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/04/06/image_18082025_04_07_04_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/04/06/image_18082025_04_06_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c4a64a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c4a64a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c4a64a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:08:02.465637
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/07/image_18082025_04_07_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/07/image_18082025_04_07_34_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/04/07/image_18082025_04_07_24_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/04/07/image_18082025_04_07_14_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/04/06/image_18082025_04_07_04_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/04/06/image_18082025_04_06_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f784c3518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f784c3518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f784c3518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:08:17.064625
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/08/image_18082025_04_08_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/08/image_18082025_04_08_24_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/04/08/image_18082025_04_08_14_9666.jpg', 2), ('/home/nano/Desktop/images/18082025/04/07/image_18082025_04_08_04_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/07/image_18082025_04_07_54_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/04/07/image_18082025_04_07_44_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb37a1518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb37a1518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb37a1518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:08:32.066422
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/08/image_18082025_04_08_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/08/image_18082025_04_08_24_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/04/08/image_18082025_04_08_14_9666.jpg', 2), ('/home/nano/Desktop/images/18082025/04/07/image_18082025_04_08_04_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/07/image_18082025_04_07_54_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/04/07/image_18082025_04_07_44_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab87e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab87e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab87e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:08:47.050218
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/08/image_18082025_04_08_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/08/image_18082025_04_08_24_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/04/08/image_18082025_04_08_14_9666.jpg', 2), ('/home/nano/Desktop/images/18082025/04/07/image_18082025_04_08_04_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/07/image_18082025_04_07_54_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/04/07/image_18082025_04_07_44_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4997518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4997518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4997518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:09:02.957572
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/08/image_18082025_04_08_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/08/image_18082025_04_08_24_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/04/08/image_18082025_04_08_14_9666.jpg', 2), ('/home/nano/Desktop/images/18082025/04/07/image_18082025_04_08_04_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/07/image_18082025_04_07_54_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/04/07/image_18082025_04_07_44_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d906518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d906518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d906518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:09:17.173246
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/09/image_18082025_04_09_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/04/09/image_18082025_04_09_34_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/04/09/image_18082025_04_09_24_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/04/09/image_18082025_04_09_14_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/04/08/image_18082025_04_09_04_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/04/08/image_18082025_04_08_54_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2e51518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2e51518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2e51518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:09:32.232118
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/09/image_18082025_04_09_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/04/09/image_18082025_04_09_34_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/04/09/image_18082025_04_09_24_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/04/09/image_18082025_04_09_14_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/04/08/image_18082025_04_09_04_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/04/08/image_18082025_04_08_54_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d7b4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d7b4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d7b4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:09:47.182543
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/09/image_18082025_04_09_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/04/09/image_18082025_04_09_34_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/04/09/image_18082025_04_09_24_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/04/09/image_18082025_04_09_14_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/04/08/image_18082025_04_09_04_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/04/08/image_18082025_04_08_54_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2606518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2606518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2606518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:10:02.674093
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/09/image_18082025_04_09_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/04/09/image_18082025_04_09_34_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/04/09/image_18082025_04_09_24_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/04/09/image_18082025_04_09_14_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/04/08/image_18082025_04_09_04_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/04/08/image_18082025_04_08_54_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b0ca518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b0ca518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b0ca518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:10:17.310460
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/10/image_18082025_04_10_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/10/image_18082025_04_10_34_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/10/image_18082025_04_10_25_10671.jpg', 2), ('/home/nano/Desktop/images/18082025/04/10/image_18082025_04_10_14_9674.jpg', 2), ('/home/nano/Desktop/images/18082025/04/09/image_18082025_04_10_04_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/04/09/image_18082025_04_09_54_10652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa92f0518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa92f0518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa92f0518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:10:32.327834
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/10/image_18082025_04_10_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/10/image_18082025_04_10_34_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/10/image_18082025_04_10_25_10671.jpg', 2), ('/home/nano/Desktop/images/18082025/04/10/image_18082025_04_10_14_9674.jpg', 2), ('/home/nano/Desktop/images/18082025/04/09/image_18082025_04_10_04_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/04/09/image_18082025_04_09_54_10652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3d05518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3d05518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3d05518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:10:47.286014
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/10/image_18082025_04_10_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/10/image_18082025_04_10_34_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/10/image_18082025_04_10_25_10671.jpg', 2), ('/home/nano/Desktop/images/18082025/04/10/image_18082025_04_10_14_9674.jpg', 2), ('/home/nano/Desktop/images/18082025/04/09/image_18082025_04_10_04_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/04/09/image_18082025_04_09_54_10652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf6c0518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf6c0518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf6c0518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:11:02.928643
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/11/image_18082025_04_11_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/10/image_18082025_04_10_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/10/image_18082025_04_10_34_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/10/image_18082025_04_10_25_10671.jpg', 2), ('/home/nano/Desktop/images/18082025/04/10/image_18082025_04_10_14_9674.jpg', 2), ('/home/nano/Desktop/images/18082025/04/09/image_18082025_04_10_04_9664.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f871fb518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f871fb518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f871fb518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:11:17.388890
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/11/image_18082025_04_11_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/11/image_18082025_04_11_24_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/04/11/image_18082025_04_11_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/04/10/image_18082025_04_11_04_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/04/10/image_18082025_04_10_54_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/04/10/image_18082025_04_10_44_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87ed3518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87ed3518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87ed3518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:11:32.385751
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/11/image_18082025_04_11_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/11/image_18082025_04_11_24_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/04/11/image_18082025_04_11_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/04/10/image_18082025_04_11_04_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/04/10/image_18082025_04_10_54_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/04/10/image_18082025_04_10_44_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ec90518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ec90518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ec90518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:11:47.370244
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/11/image_18082025_04_11_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/11/image_18082025_04_11_24_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/04/11/image_18082025_04_11_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/04/10/image_18082025_04_11_04_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/04/10/image_18082025_04_10_54_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/04/10/image_18082025_04_10_44_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa058a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa058a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa058a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:12:02.803639
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/11/image_18082025_04_11_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/11/image_18082025_04_11_24_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/04/11/image_18082025_04_11_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/04/10/image_18082025_04_11_04_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/04/10/image_18082025_04_10_54_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/04/10/image_18082025_04_10_44_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88815518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88815518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88815518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:12:17.488028
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/12/image_18082025_04_12_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/12/image_18082025_04_12_34_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/04/12/image_18082025_04_12_24_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/04/12/image_18082025_04_12_14_9684.jpg', 2), ('/home/nano/Desktop/images/18082025/04/11/image_18082025_04_12_04_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/04/11/image_18082025_04_11_54_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8a41518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8a41518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8a41518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:12:32.464370
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/12/image_18082025_04_12_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/12/image_18082025_04_12_34_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/04/12/image_18082025_04_12_24_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/04/12/image_18082025_04_12_14_9684.jpg', 2), ('/home/nano/Desktop/images/18082025/04/11/image_18082025_04_12_04_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/04/11/image_18082025_04_11_54_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa12c1518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa12c1518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa12c1518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:12:47.471032
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/12/image_18082025_04_12_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/12/image_18082025_04_12_34_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/04/12/image_18082025_04_12_24_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/04/12/image_18082025_04_12_14_9684.jpg', 2), ('/home/nano/Desktop/images/18082025/04/11/image_18082025_04_12_04_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/04/11/image_18082025_04_11_54_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8bd3e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8bd3e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8bd3e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:13:02.949832
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/12/image_18082025_04_12_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/12/image_18082025_04_12_34_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/04/12/image_18082025_04_12_24_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/04/12/image_18082025_04_12_14_9684.jpg', 2), ('/home/nano/Desktop/images/18082025/04/11/image_18082025_04_12_04_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/04/11/image_18082025_04_11_54_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7bffe518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bffe518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bffe518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:13:17.593595
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/13/image_18082025_04_13_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/04/13/image_18082025_04_13_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/04/13/image_18082025_04_13_24_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/04/13/image_18082025_04_13_14_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/04/12/image_18082025_04_13_04_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/12/image_18082025_04_12_54_10652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0f1e4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0f1e4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0f1e4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:13:32.550622
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/13/image_18082025_04_13_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/04/13/image_18082025_04_13_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/04/13/image_18082025_04_13_24_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/04/13/image_18082025_04_13_14_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/04/12/image_18082025_04_13_04_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/12/image_18082025_04_12_54_10652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88a97518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88a97518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88a97518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:13:47.582639
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/13/image_18082025_04_13_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/04/13/image_18082025_04_13_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/04/13/image_18082025_04_13_24_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/04/13/image_18082025_04_13_14_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/04/12/image_18082025_04_13_04_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/12/image_18082025_04_12_54_10652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e1cd518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e1cd518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e1cd518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:14:03.259198
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/13/image_18082025_04_13_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/04/13/image_18082025_04_13_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/04/13/image_18082025_04_13_24_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/04/13/image_18082025_04_13_14_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/04/12/image_18082025_04_13_04_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/12/image_18082025_04_12_54_10652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f92049518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92049518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92049518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:14:17.671769
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/14/image_18082025_04_14_44_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/04/14/image_18082025_04_14_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/14/image_18082025_04_14_15_10677.jpg', 2), ('/home/nano/Desktop/images/18082025/04/13/image_18082025_04_14_04_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/04/13/image_18082025_04_13_54_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/04/13/image_18082025_04_13_44_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fae087518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae087518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae087518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:14:32.661875
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/14/image_18082025_04_14_44_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/04/14/image_18082025_04_14_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/14/image_18082025_04_14_15_10677.jpg', 2), ('/home/nano/Desktop/images/18082025/04/13/image_18082025_04_14_04_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/04/13/image_18082025_04_13_54_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/04/13/image_18082025_04_13_44_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f928074a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f928074a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f928074a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:14:47.689949
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/14/image_18082025_04_14_44_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/04/14/image_18082025_04_14_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/14/image_18082025_04_14_15_10677.jpg', 2), ('/home/nano/Desktop/images/18082025/04/13/image_18082025_04_14_04_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/04/13/image_18082025_04_13_54_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/04/13/image_18082025_04_13_44_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9cfd2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cfd2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cfd2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:15:02.171636
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/14/image_18082025_04_14_44_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/04/14/image_18082025_04_14_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/14/image_18082025_04_14_15_10677.jpg', 2), ('/home/nano/Desktop/images/18082025/04/13/image_18082025_04_14_04_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/04/13/image_18082025_04_13_54_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/04/13/image_18082025_04_13_44_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f955fc518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f955fc518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f955fc518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:15:16.776379
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/15/image_18082025_04_15_44_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/04/15/image_18082025_04_15_34_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/15/image_18082025_04_15_24_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/04/15/image_18082025_04_15_14_10670.jpg', 2), ('/home/nano/Desktop/images/18082025/04/14/image_18082025_04_15_04_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/04/14/image_18082025_04_14_54_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f92474518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92474518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92474518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:15:31.804351
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/15/image_18082025_04_15_44_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/04/15/image_18082025_04_15_34_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/15/image_18082025_04_15_24_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/04/15/image_18082025_04_15_14_10670.jpg', 2), ('/home/nano/Desktop/images/18082025/04/14/image_18082025_04_15_04_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/04/14/image_18082025_04_14_54_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f4bb518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f4bb518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f4bb518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:15:46.797134
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/15/image_18082025_04_15_44_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/04/15/image_18082025_04_15_34_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/15/image_18082025_04_15_24_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/04/15/image_18082025_04_15_14_10670.jpg', 2), ('/home/nano/Desktop/images/18082025/04/14/image_18082025_04_15_04_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/04/14/image_18082025_04_14_54_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7eba3550>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7eba3550>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7eba3550>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:16:02.178924
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/15/image_18082025_04_15_44_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/04/15/image_18082025_04_15_34_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/15/image_18082025_04_15_24_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/04/15/image_18082025_04_15_14_10670.jpg', 2), ('/home/nano/Desktop/images/18082025/04/14/image_18082025_04_15_04_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/04/14/image_18082025_04_14_54_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b1fe518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b1fe518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b1fe518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:16:16.886745
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/16/image_18082025_04_16_44_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/04/16/image_18082025_04_16_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/16/image_18082025_04_16_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/16/image_18082025_04_16_14_10675.jpg', 2), ('/home/nano/Desktop/images/18082025/04/15/image_18082025_04_16_04_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/04/15/image_18082025_04_15_54_9645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa7d0518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa7d0518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa7d0518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:16:31.876989
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/16/image_18082025_04_16_44_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/04/16/image_18082025_04_16_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/16/image_18082025_04_16_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/16/image_18082025_04_16_14_10675.jpg', 2), ('/home/nano/Desktop/images/18082025/04/15/image_18082025_04_16_04_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/04/15/image_18082025_04_15_54_9645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d76b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d76b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d76b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:16:46.885175
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/16/image_18082025_04_16_44_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/04/16/image_18082025_04_16_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/16/image_18082025_04_16_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/16/image_18082025_04_16_14_10675.jpg', 2), ('/home/nano/Desktop/images/18082025/04/15/image_18082025_04_16_04_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/04/15/image_18082025_04_15_54_9645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88af0518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88af0518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88af0518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:17:02.338866
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/16/image_18082025_04_16_44_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/04/16/image_18082025_04_16_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/16/image_18082025_04_16_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/16/image_18082025_04_16_14_10675.jpg', 2), ('/home/nano/Desktop/images/18082025/04/15/image_18082025_04_16_04_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/04/15/image_18082025_04_15_54_9645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2f9f4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2f9f4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2f9f4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:17:16.983290
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/17/image_18082025_04_17_44_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/04/17/image_18082025_04_17_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/04/17/image_18082025_04_17_24_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/17/image_18082025_04_17_14_10680.jpg', 2), ('/home/nano/Desktop/images/18082025/04/16/image_18082025_04_16_54_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/04/16/image_18082025_04_16_44_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c6d04a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c6d04a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c6d04a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:17:31.975640
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/17/image_18082025_04_17_44_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/04/17/image_18082025_04_17_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/04/17/image_18082025_04_17_24_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/17/image_18082025_04_17_14_10680.jpg', 2), ('/home/nano/Desktop/images/18082025/04/16/image_18082025_04_16_54_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/04/16/image_18082025_04_16_44_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d01d4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d01d4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d01d4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:17:46.984703
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/17/image_18082025_04_17_44_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/04/17/image_18082025_04_17_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/04/17/image_18082025_04_17_24_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/17/image_18082025_04_17_14_10680.jpg', 2), ('/home/nano/Desktop/images/18082025/04/16/image_18082025_04_16_54_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/04/16/image_18082025_04_16_44_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83c6e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83c6e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83c6e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:18:02.501759
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/17/image_18082025_04_17_44_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/04/17/image_18082025_04_17_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/04/17/image_18082025_04_17_24_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/17/image_18082025_04_17_14_10680.jpg', 2), ('/home/nano/Desktop/images/18082025/04/16/image_18082025_04_16_54_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/04/16/image_18082025_04_16_44_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb598c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb598c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb598c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:18:17.076835
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/18/image_18082025_04_18_34_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/04/18/image_18082025_04_18_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/04/18/image_18082025_04_18_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/04/17/image_18082025_04_18_05_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/17/image_18082025_04_17_54_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/17/image_18082025_04_17_44_10653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7d934a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7d934a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7d934a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:18:32.112949
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/18/image_18082025_04_18_34_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/04/18/image_18082025_04_18_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/04/18/image_18082025_04_18_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/04/17/image_18082025_04_18_05_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/17/image_18082025_04_17_54_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/17/image_18082025_04_17_44_10653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f934b5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f934b5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f934b5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:18:47.070810
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/18/image_18082025_04_18_34_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/04/18/image_18082025_04_18_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/04/18/image_18082025_04_18_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/04/17/image_18082025_04_18_05_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/17/image_18082025_04_17_54_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/17/image_18082025_04_17_44_10653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fadac24a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fadac24a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fadac24a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:19:02.720080
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/18/image_18082025_04_18_34_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/04/18/image_18082025_04_18_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/04/18/image_18082025_04_18_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/04/17/image_18082025_04_18_05_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/17/image_18082025_04_17_54_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/17/image_18082025_04_17_44_10653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a05a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a05a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a05a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:19:17.180843
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/19/image_18082025_04_19_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/19/image_18082025_04_19_34_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/04/19/image_18082025_04_19_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/04/19/image_18082025_04_19_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/04/18/image_18082025_04_19_04_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/04/18/image_18082025_04_18_54_9656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7cfab518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7cfab518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7cfab518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:19:32.251639
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/19/image_18082025_04_19_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/19/image_18082025_04_19_34_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/04/19/image_18082025_04_19_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/04/19/image_18082025_04_19_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/04/18/image_18082025_04_19_04_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/04/18/image_18082025_04_18_54_9656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b8d9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b8d9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b8d9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:19:47.167966
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/19/image_18082025_04_19_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/19/image_18082025_04_19_34_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/04/19/image_18082025_04_19_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/04/19/image_18082025_04_19_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/04/18/image_18082025_04_19_04_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/04/18/image_18082025_04_18_54_9656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0ba9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0ba9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0ba9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:20:02.705082
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/20/image_18082025_04_20_54_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/04/19/image_18082025_04_19_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/19/image_18082025_04_19_34_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/04/19/image_18082025_04_19_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/04/19/image_18082025_04_19_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/04/18/image_18082025_04_19_04_10663.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7bbf3518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bbf3518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bbf3518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:20:17.272134
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/20/image_18082025_04_20_54_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/04/20/image_18082025_04_20_34_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/20/image_18082025_04_20_24_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/19/image_18082025_04_20_04_10681.jpg', 2), ('/home/nano/Desktop/images/18082025/04/19/image_18082025_04_19_54_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/04/19/image_18082025_04_19_44_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fabc0d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fabc0d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fabc0d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:20:32.287554
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/20/image_18082025_04_20_54_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/04/20/image_18082025_04_20_34_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/20/image_18082025_04_20_24_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/19/image_18082025_04_20_04_10681.jpg', 2), ('/home/nano/Desktop/images/18082025/04/19/image_18082025_04_19_54_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/04/19/image_18082025_04_19_44_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f92b47518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92b47518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92b47518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:20:47.276822
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/20/image_18082025_04_20_54_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/04/20/image_18082025_04_20_34_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/20/image_18082025_04_20_24_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/19/image_18082025_04_20_04_10681.jpg', 2), ('/home/nano/Desktop/images/18082025/04/19/image_18082025_04_19_54_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/04/19/image_18082025_04_19_44_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fafbaa4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafbaa4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafbaa4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:21:02.952159
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/20/image_18082025_04_20_54_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/04/20/image_18082025_04_20_34_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/20/image_18082025_04_20_24_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/19/image_18082025_04_20_04_10681.jpg', 2), ('/home/nano/Desktop/images/18082025/04/19/image_18082025_04_19_54_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/04/19/image_18082025_04_19_44_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad9d64a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad9d64a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad9d64a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:21:17.368250
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/21/image_18082025_04_21_44_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/04/21/image_18082025_04_21_34_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/04/21/image_18082025_04_21_24_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/04/21/image_18082025_04_21_14_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/04/20/image_18082025_04_21_04_10678.jpg', 2), ('/home/nano/Desktop/images/18082025/04/20/image_18082025_04_20_54_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac5414a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac5414a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac5414a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:21:32.375935
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/21/image_18082025_04_21_44_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/04/21/image_18082025_04_21_34_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/04/21/image_18082025_04_21_24_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/04/21/image_18082025_04_21_14_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/04/20/image_18082025_04_21_04_10678.jpg', 2), ('/home/nano/Desktop/images/18082025/04/20/image_18082025_04_20_54_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f782e1518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f782e1518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f782e1518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:21:47.411233
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/21/image_18082025_04_21_44_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/04/21/image_18082025_04_21_34_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/04/21/image_18082025_04_21_24_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/04/21/image_18082025_04_21_14_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/04/20/image_18082025_04_21_04_10678.jpg', 2), ('/home/nano/Desktop/images/18082025/04/20/image_18082025_04_20_54_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3ff04a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3ff04a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3ff04a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:22:02.858658
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/21/image_18082025_04_21_44_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/04/21/image_18082025_04_21_34_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/04/21/image_18082025_04_21_24_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/04/21/image_18082025_04_21_14_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/04/20/image_18082025_04_21_04_10678.jpg', 2), ('/home/nano/Desktop/images/18082025/04/20/image_18082025_04_20_54_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9fbde518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fbde518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fbde518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:22:17.534826
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/22/image_18082025_04_22_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/22/image_18082025_04_22_34_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/04/22/image_18082025_04_22_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/22/image_18082025_04_22_14_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/04/21/image_18082025_04_22_04_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/04/21/image_18082025_04_21_54_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8b7d4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8b7d4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8b7d4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:22:32.517430
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/22/image_18082025_04_22_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/22/image_18082025_04_22_34_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/04/22/image_18082025_04_22_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/22/image_18082025_04_22_14_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/04/21/image_18082025_04_22_04_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/04/21/image_18082025_04_21_54_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa37b6518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa37b6518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa37b6518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:22:47.506568
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/22/image_18082025_04_22_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/22/image_18082025_04_22_34_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/04/22/image_18082025_04_22_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/22/image_18082025_04_22_14_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/04/21/image_18082025_04_22_04_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/04/21/image_18082025_04_21_54_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d619518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d619518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d619518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:23:03.116281
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/22/image_18082025_04_22_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/22/image_18082025_04_22_34_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/04/22/image_18082025_04_22_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/22/image_18082025_04_22_14_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/04/21/image_18082025_04_22_04_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/04/21/image_18082025_04_21_54_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78b3c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78b3c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78b3c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:23:17.649950
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/23/image_18082025_04_23_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/23/image_18082025_04_23_25_10657.jpg', 2), ('/home/nano/Desktop/images/18082025/04/23/image_18082025_04_23_14_9682.jpg', 2), ('/home/nano/Desktop/images/18082025/04/22/image_18082025_04_23_04_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/04/22/image_18082025_04_22_55_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/04/22/image_18082025_04_22_44_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99f24518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99f24518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99f24518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:23:32.614777
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/23/image_18082025_04_23_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/23/image_18082025_04_23_25_10657.jpg', 2), ('/home/nano/Desktop/images/18082025/04/23/image_18082025_04_23_14_9682.jpg', 2), ('/home/nano/Desktop/images/18082025/04/22/image_18082025_04_23_04_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/04/22/image_18082025_04_22_55_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/04/22/image_18082025_04_22_44_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f827634a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f827634a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f827634a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:23:47.603836
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/23/image_18082025_04_23_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/23/image_18082025_04_23_25_10657.jpg', 2), ('/home/nano/Desktop/images/18082025/04/23/image_18082025_04_23_14_9682.jpg', 2), ('/home/nano/Desktop/images/18082025/04/22/image_18082025_04_23_04_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/04/22/image_18082025_04_22_55_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/04/22/image_18082025_04_22_44_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f838e9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f838e9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f838e9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:24:03.440225
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/23/image_18082025_04_23_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/23/image_18082025_04_23_25_10657.jpg', 2), ('/home/nano/Desktop/images/18082025/04/23/image_18082025_04_23_14_9682.jpg', 2), ('/home/nano/Desktop/images/18082025/04/22/image_18082025_04_23_04_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/04/22/image_18082025_04_22_55_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/04/22/image_18082025_04_22_44_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8447d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8447d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8447d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:24:17.783977
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/24/image_18082025_04_24_44_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/04/24/image_18082025_04_24_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/24/image_18082025_04_24_24_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/04/24/image_18082025_04_24_14_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/04/23/image_18082025_04_24_04_9665.jpg', 2), ('/home/nano/Desktop/images/18082025/04/23/image_18082025_04_23_54_10653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84d51518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84d51518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84d51518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:24:32.719067
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/24/image_18082025_04_24_44_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/04/24/image_18082025_04_24_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/24/image_18082025_04_24_24_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/04/24/image_18082025_04_24_14_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/04/23/image_18082025_04_24_04_9665.jpg', 2), ('/home/nano/Desktop/images/18082025/04/23/image_18082025_04_23_54_10653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d1b5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d1b5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d1b5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:24:47.742407
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/24/image_18082025_04_24_44_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/04/24/image_18082025_04_24_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/24/image_18082025_04_24_24_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/04/24/image_18082025_04_24_14_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/04/23/image_18082025_04_24_04_9665.jpg', 2), ('/home/nano/Desktop/images/18082025/04/23/image_18082025_04_23_54_10653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f888c2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f888c2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f888c2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:25:02.302719
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/24/image_18082025_04_24_44_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/04/24/image_18082025_04_24_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/24/image_18082025_04_24_24_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/04/24/image_18082025_04_24_14_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/04/23/image_18082025_04_24_04_9665.jpg', 2), ('/home/nano/Desktop/images/18082025/04/23/image_18082025_04_23_54_10653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97d3d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97d3d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97d3d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:25:16.856674
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/25/image_18082025_04_25_44_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/04/25/image_18082025_04_25_34_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/25/image_18082025_04_25_24_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/04/25/image_18082025_04_25_14_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/04/24/image_18082025_04_25_04_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/04/24/image_18082025_04_24_54_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa990518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa990518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa990518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:25:31.833692
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/25/image_18082025_04_25_44_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/04/25/image_18082025_04_25_34_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/25/image_18082025_04_25_24_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/04/25/image_18082025_04_25_14_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/04/24/image_18082025_04_25_04_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/04/24/image_18082025_04_24_54_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81456518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81456518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81456518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:25:46.873935
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/25/image_18082025_04_25_44_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/04/25/image_18082025_04_25_34_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/25/image_18082025_04_25_24_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/04/25/image_18082025_04_25_14_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/04/24/image_18082025_04_25_04_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/04/24/image_18082025_04_24_54_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ea71518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ea71518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ea71518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:26:02.169373
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/25/image_18082025_04_25_44_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/04/25/image_18082025_04_25_34_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/25/image_18082025_04_25_24_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/04/25/image_18082025_04_25_14_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/04/24/image_18082025_04_25_04_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/04/24/image_18082025_04_24_54_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95706550>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95706550>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95706550>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:26:16.962071
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/26/image_18082025_04_26_34_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/04/26/image_18082025_04_26_24_10657.jpg', 2), ('/home/nano/Desktop/images/18082025/04/25/image_18082025_04_26_04_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/04/25/image_18082025_04_25_54_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/04/25/image_18082025_04_25_44_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/04/25/image_18082025_04_25_34_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa86c9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa86c9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa86c9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:26:31.960778
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/26/image_18082025_04_26_34_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/04/26/image_18082025_04_26_24_10657.jpg', 2), ('/home/nano/Desktop/images/18082025/04/25/image_18082025_04_26_04_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/04/25/image_18082025_04_25_54_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/04/25/image_18082025_04_25_44_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/04/25/image_18082025_04_25_34_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a8bb518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a8bb518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a8bb518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:26:46.952288
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/26/image_18082025_04_26_34_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/04/26/image_18082025_04_26_24_10657.jpg', 2), ('/home/nano/Desktop/images/18082025/04/25/image_18082025_04_26_04_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/04/25/image_18082025_04_25_54_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/04/25/image_18082025_04_25_44_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/04/25/image_18082025_04_25_34_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83932518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83932518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83932518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:27:02.440447
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/26/image_18082025_04_26_34_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/04/26/image_18082025_04_26_24_10657.jpg', 2), ('/home/nano/Desktop/images/18082025/04/25/image_18082025_04_26_04_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/04/25/image_18082025_04_25_54_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/04/25/image_18082025_04_25_44_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/04/25/image_18082025_04_25_34_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86d2e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86d2e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86d2e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:27:17.059691
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/27/image_18082025_04_27_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/27/image_18082025_04_27_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/27/image_18082025_04_27_24_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/27/image_18082025_04_27_14_9676.jpg', 2), ('/home/nano/Desktop/images/18082025/04/26/image_18082025_04_26_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/26/image_18082025_04_26_34_9647.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7902518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7902518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7902518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:27:32.071808
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/27/image_18082025_04_27_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/27/image_18082025_04_27_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/27/image_18082025_04_27_24_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/27/image_18082025_04_27_14_9676.jpg', 2), ('/home/nano/Desktop/images/18082025/04/26/image_18082025_04_26_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/26/image_18082025_04_26_34_9647.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99074518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99074518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99074518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:27:47.080407
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/27/image_18082025_04_27_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/27/image_18082025_04_27_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/27/image_18082025_04_27_24_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/27/image_18082025_04_27_14_9676.jpg', 2), ('/home/nano/Desktop/images/18082025/04/26/image_18082025_04_26_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/26/image_18082025_04_26_34_9647.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac20f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac20f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac20f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:28:02.490603
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/27/image_18082025_04_27_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/27/image_18082025_04_27_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/27/image_18082025_04_27_24_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/27/image_18082025_04_27_14_9676.jpg', 2), ('/home/nano/Desktop/images/18082025/04/26/image_18082025_04_26_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/26/image_18082025_04_26_34_9647.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f983518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f983518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f983518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:28:17.155847
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_44_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_34_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_15_10678.jpg', 2), ('/home/nano/Desktop/images/18082025/04/27/image_18082025_04_28_04_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/04/27/image_18082025_04_27_54_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa71c4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa71c4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa71c4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:28:32.173702
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_44_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_34_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_15_10678.jpg', 2), ('/home/nano/Desktop/images/18082025/04/27/image_18082025_04_28_04_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/04/27/image_18082025_04_27_54_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d0f4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d0f4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d0f4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:28:47.157154
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_44_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_34_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_15_10678.jpg', 2), ('/home/nano/Desktop/images/18082025/04/27/image_18082025_04_28_04_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/04/27/image_18082025_04_27_54_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ecac518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ecac518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ecac518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:29:03.714178
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_44_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_34_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_15_10678.jpg', 2), ('/home/nano/Desktop/images/18082025/04/27/image_18082025_04_28_04_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/04/27/image_18082025_04_27_54_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f791518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f791518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f791518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:31:06.515532
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_44_10654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8157518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8157518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8157518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:31:17.429079
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9bae5550>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bae5550>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bae5550>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:31:32.413906
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8768c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8768c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8768c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:31:47.544886
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76a86518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76a86518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76a86518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:32:03.048505
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79b05518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79b05518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79b05518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:32:17.692485
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86f1d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86f1d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86f1d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:32:32.694136
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9af9f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9af9f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9af9f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:32:47.686818
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83d9d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83d9d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83d9d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:33:02.225672
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f999ce518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f999ce518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f999ce518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:33:16.824717
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac7ba518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac7ba518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac7ba518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:33:31.840224
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2958518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2958518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2958518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:33:46.823030
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7669a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7669a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7669a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:34:02.552428
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fabd95518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fabd95518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fabd95518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:34:16.981897
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fada34518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fada34518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fada34518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:34:31.969103
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88c624a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88c624a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88c624a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:34:47.070700
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa595a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa595a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa595a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:35:02.577164
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab1f0518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab1f0518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab1f0518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:35:17.209254
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7830518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7830518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7830518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:35:32.205040
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9bf394a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bf394a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bf394a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:35:47.228593
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f92500518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92500518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92500518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:36:02.661703
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5dab518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5dab518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5dab518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:36:17.370228
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac895518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac895518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac895518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:36:32.346616
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8554e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8554e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8554e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:36:47.361201
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2d7d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2d7d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2d7d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:37:02.939276
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2b8f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2b8f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2b8f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:37:17.464877
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa01a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa01a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa01a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:37:32.509972
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa57604a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa57604a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa57604a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:37:47.527459
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa15384a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa15384a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa15384a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:38:02.965648
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9433d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9433d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9433d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:38:17.672756
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8cf4d4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8cf4d4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8cf4d4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:38:32.665221
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7facb25518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7facb25518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7facb25518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:38:47.683606
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f79e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f79e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f79e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:39:02.507315
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac3be518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac3be518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac3be518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:39:16.892983
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb47eb4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb47eb4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb47eb4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:39:31.850898
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8cd10518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8cd10518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8cd10518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:39:46.856171
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad5f1518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad5f1518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad5f1518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:40:02.292466
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b08a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b08a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b08a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:40:17.001071
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7e20518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7e20518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7e20518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:40:32.045563
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b3574a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b3574a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b3574a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:40:47.021383
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5570518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5570518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5570518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:41:02.692042
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e7c5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e7c5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e7c5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:41:17.200459
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87516518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87516518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87516518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:41:32.178495
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7bb13518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bb13518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bb13518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:41:47.193348
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87b9a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87b9a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87b9a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:42:02.612762
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96291518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96291518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96291518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:42:17.330146
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa53f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa53f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa53f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:42:32.352661
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9388e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9388e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9388e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:42:47.350384
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f925c3518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f925c3518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f925c3518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:43:02.928206
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f947bb518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f947bb518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f947bb518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:43:17.482596
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb43a3518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb43a3518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb43a3518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:43:32.487385
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa7c6518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa7c6518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa7c6518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:43:47.486974
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96afa518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96afa518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96afa518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:44:03.222785
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8281b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8281b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8281b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:44:17.646840
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83df8518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83df8518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83df8518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:44:32.646461
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa056a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa056a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa056a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:44:47.652759
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c4004a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c4004a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c4004a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:45:02.348679
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94cfc518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94cfc518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94cfc518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:45:16.806666
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85fd8518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85fd8518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85fd8518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:45:31.800651
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa3928518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3928518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3928518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:45:46.790887
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e9fc518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e9fc518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e9fc518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:46:02.270944
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f893ae4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f893ae4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f893ae4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:46:16.934409
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faff13518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faff13518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faff13518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:46:31.931916
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b4cc518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b4cc518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b4cc518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:46:46.931460
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89fd1518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89fd1518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89fd1518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:47:02.577453
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fafd17518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafd17518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafd17518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:47:17.075799
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83546518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83546518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83546518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:47:32.078922
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8bba4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8bba4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8bba4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:47:47.085686
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f936c5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f936c5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f936c5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:48:02.608501
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93276518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93276518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93276518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:48:17.235663
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1ed3518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1ed3518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1ed3518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:48:32.287459
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab120518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab120518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab120518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:48:47.253521
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ba5a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ba5a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ba5a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:49:03.198473
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9133e4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9133e4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9133e4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:49:17.367862
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c197518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c197518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c197518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:49:32.382201
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78171518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78171518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78171518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:49:47.369436
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f881d14a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f881d14a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f881d14a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:50:02.705396
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f787c0518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f787c0518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f787c0518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:50:17.499449
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f957fb518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f957fb518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f957fb518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:50:32.520866
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c212518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c212518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c212518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:50:47.509407
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fae2c0518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae2c0518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae2c0518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:51:03.100286
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81af9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81af9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81af9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:51:17.733319
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78ccb518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78ccb518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78ccb518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:51:32.641392
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2e4f4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2e4f4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2e4f4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:51:47.646264
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2110518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2110518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2110518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:52:03.073365
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8020518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8020518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8020518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:52:17.798608
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3789518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3789518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3789518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:52:32.788804
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0678518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0678518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0678518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:52:47.802882
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b5b4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b5b4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b5b4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:53:02.187108
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c118518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c118518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c118518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:53:16.955102
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97a48518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97a48518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97a48518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:53:31.962487
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d13c550>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d13c550>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d13c550>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:53:46.965205
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90dda518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90dda518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90dda518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:54:02.803577
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c2a0518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c2a0518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c2a0518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:54:17.103131
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f127518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f127518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f127518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:54:32.124457
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1d14518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1d14518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1d14518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:54:47.103129
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8eeda518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8eeda518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8eeda518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:55:02.660979
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3f2d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3f2d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3f2d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:55:17.270043
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f92e84518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92e84518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92e84518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:55:32.237567
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa512c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa512c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa512c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:55:47.256976
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0905518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0905518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0905518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:56:02.679360
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa75c4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa75c4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa75c4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:56:17.387440
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3878518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3878518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3878518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:56:32.409016
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f582518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f582518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f582518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:56:47.411709
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97940518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97940518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97940518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:57:02.935692
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9367c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9367c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9367c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:57:17.561366
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a948518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a948518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a948518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:57:32.562668
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4d594a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4d594a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4d594a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:57:47.573412
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78d7b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78d7b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78d7b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:58:03.069916
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa3bc2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3bc2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3bc2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:59:02.451245
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f782444a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f782444a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f782444a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:59:16.851766
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99ee0518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99ee0518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99ee0518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:59:31.828308
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89ad9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89ad9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89ad9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 04:59:46.813561
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86792518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86792518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86792518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:00:02.350952
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac15e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac15e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac15e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:00:16.969474
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5102518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5102518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5102518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:00:32.046315
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82881518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82881518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82881518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:00:46.965604
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83ea34a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83ea34a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83ea34a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:01:02.596719
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa13bc4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa13bc4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa13bc4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:01:17.133307
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f963ee4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f963ee4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f963ee4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:01:32.141686
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c342518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c342518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c342518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:01:47.117667
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa28d9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa28d9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa28d9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:02:02.853071
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88d2f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88d2f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88d2f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:02:17.252055
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f832ff518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f832ff518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f832ff518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:02:32.271730
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa85d94a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa85d94a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa85d94a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:02:47.259234
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7dde6518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7dde6518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7dde6518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:03:02.807459
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2245518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2245518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2245518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:03:17.417813
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa88bf518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa88bf518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa88bf518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:03:32.439061
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac768518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac768518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac768518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:03:47.400558
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6e22518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6e22518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6e22518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:04:03.096439
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f947f3518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f947f3518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f947f3518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:04:17.537500
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5cd4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5cd4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5cd4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:04:32.545230
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f888b5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f888b5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f888b5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:04:47.569259
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f003518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f003518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f003518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:05:03.164249
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac9d2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac9d2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac9d2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:05:17.714315
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c97b4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c97b4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c97b4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:05:32.711215
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9eaf74a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9eaf74a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9eaf74a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:05:47.793408
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa38bd518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa38bd518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa38bd518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:06:02.169497
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa09ee518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa09ee518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa09ee518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:06:16.929069
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f991fe518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f991fe518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f991fe518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:06:31.956989
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f91a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f91a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f91a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:06:46.941728
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa84e9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa84e9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa84e9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:07:02.555763
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95b79518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95b79518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95b79518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:07:17.094259
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0bae518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0bae518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0bae518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:07:32.089822
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e981518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e981518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e981518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:07:47.098867
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f953b5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f953b5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f953b5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:08:02.537071
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83b07518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83b07518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83b07518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:08:17.260858
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b0fc518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b0fc518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b0fc518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:08:32.316394
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f3bb518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f3bb518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f3bb518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:08:47.267090
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f5954a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f5954a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f5954a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:09:03.089869
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99171518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99171518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99171518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:09:17.414179
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ef25518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ef25518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ef25518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:09:32.411955
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2d954a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2d954a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2d954a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:09:47.455352
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1f964a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1f964a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1f964a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:10:02.779629
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95d534a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95d534a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95d534a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:10:17.592395
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8bff0550>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8bff0550>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8bff0550>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:10:32.599193
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb05f4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb05f4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb05f4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:10:47.602030
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2e8b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2e8b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2e8b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:11:03.103111
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f866bd518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f866bd518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f866bd518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:11:17.781635
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8647a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8647a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8647a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:11:32.751925
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ab3b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ab3b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ab3b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:11:47.742109
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa46ff518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa46ff518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa46ff518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:12:02.064824
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa02ea518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa02ea518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa02ea518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:12:16.902211
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81a05518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81a05518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81a05518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:12:31.902464
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8af9c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8af9c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8af9c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:12:46.892765
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1340550>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1340550>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1340550>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:13:02.407241
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82157518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82157518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82157518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:13:17.041044
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85488518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85488518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85488518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:13:32.054546
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9303c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9303c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9303c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:13:47.042207
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f916a5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f916a5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f916a5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:14:02.842315
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f902d8518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f902d8518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f902d8518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:14:17.221326
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f842054a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f842054a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f842054a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:14:32.319640
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d0ab518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d0ab518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d0ab518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:14:47.213830
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0cb6518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0cb6518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0cb6518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:15:02.768782
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad51c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad51c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad51c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:15:17.344008
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f795da518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f795da518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f795da518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:15:32.358958
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6e85518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6e85518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6e85518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:15:47.376026
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a5ed518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a5ed518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a5ed518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:16:02.826613
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faaf3b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faaf3b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faaf3b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:16:17.532192
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f930e4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f930e4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f930e4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:16:32.503359
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e504518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e504518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e504518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:16:47.530739
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89368518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89368518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89368518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:17:03.235721
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a04e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a04e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a04e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:17:17.663696
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87787518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87787518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87787518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:17:32.686469
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa3925518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3925518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3925518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:17:47.658605
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ef66518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ef66518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ef66518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:18:02.099800
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8dc42518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8dc42518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8dc42518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:18:16.840867
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f80849518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80849518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80849518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:18:31.853533
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa87c3518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa87c3518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa87c3518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:18:46.801815
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e49d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e49d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e49d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:19:02.649678
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5593518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5593518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5593518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:19:17.020753
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82bb5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82bb5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82bb5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:19:32.070957
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99755518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99755518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99755518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:19:46.956632
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa78e1518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa78e1518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa78e1518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:20:02.344614
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9cd59550>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cd59550>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cd59550>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:20:17.175617
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82ef8518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82ef8518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82ef8518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:20:32.113021
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93a714a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93a714a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93a714a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:20:47.104557
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb133f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb133f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb133f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:21:02.658294
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77f21518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77f21518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77f21518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:21:17.252667
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85f15518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85f15518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85f15518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:21:32.317471
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90fb54a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90fb54a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90fb54a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:21:47.238134
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa66d2550>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa66d2550>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa66d2550>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:22:02.690646
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7807e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7807e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7807e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:22:17.424426
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84ebf518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84ebf518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84ebf518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:22:32.385370
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e989518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e989518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e989518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:22:47.401107
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d2ae518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d2ae518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d2ae518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:23:02.900994
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb454c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb454c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb454c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:23:17.538751
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99e47518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99e47518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99e47518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:23:32.555159
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f823b8518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f823b8518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f823b8518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:23:47.537928
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa3aae518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3aae518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3aae518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:24:03.343514
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f856cc518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f856cc518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f856cc518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:24:17.685755
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa30d8518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa30d8518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa30d8518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:24:32.681610
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d518518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d518518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d518518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:24:47.702729
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79582518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79582518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79582518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:25:02.252609
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ca9e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ca9e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ca9e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:25:16.860741
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91c7c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91c7c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91c7c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:25:31.857450
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0370518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0370518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0370518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:25:46.852768
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83aa3518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83aa3518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83aa3518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:26:02.142529
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f3c4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f3c4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f3c4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:26:17.009319
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb137c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb137c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb137c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:26:32.007952
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81368518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81368518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81368518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:26:46.980982
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9fee9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fee9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fee9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:27:02.563690
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d284518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d284518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d284518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:27:17.128068
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa246e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa246e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa246e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:27:32.125480
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94cee4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94cee4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94cee4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:27:47.107783
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f982b3518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f982b3518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f982b3518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:28:02.601158
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f810b1518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f810b1518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f810b1518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:28:17.259081
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8674c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8674c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8674c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:28:32.248518
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e24d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e24d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e24d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:28:47.240310
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79227518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79227518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79227518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:29:03.047056
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98b944a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98b944a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98b944a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:29:17.408993
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88b0a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88b0a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88b0a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:29:32.379081
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b2fe518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b2fe518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b2fe518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:29:47.404845
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f828c1518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f828c1518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f828c1518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:30:02.901574
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f950a44e0>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f950a44e0>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f950a44e0>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:30:17.574652
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e6404a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e6404a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e6404a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:30:32.554951
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94c5b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94c5b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94c5b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:30:47.541551
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b1a8518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b1a8518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b1a8518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:31:03.004816
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79667518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79667518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79667518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:31:17.676140
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f982f1518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f982f1518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f982f1518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:31:32.682716
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f779be518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f779be518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f779be518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:31:47.707042
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c253518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c253518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c253518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:32:02.115334
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa59334a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa59334a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa59334a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:32:16.848030
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7863e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7863e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7863e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:32:31.826226
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa3d12518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3d12518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3d12518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:32:46.854323
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7994b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7994b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7994b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:33:02.381587
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9bc91518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bc91518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bc91518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:33:17.001436
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8658518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8658518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8658518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:33:32.048079
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94973518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94973518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94973518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:33:46.996355
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c341518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c341518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c341518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:34:02.637245
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9349c4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9349c4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9349c4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:34:17.198674
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f662518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f662518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f662518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:34:32.142196
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d16f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d16f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d16f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:34:47.152026
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f92651518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92651518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92651518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:35:02.900535
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ee14518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ee14518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ee14518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:35:17.282087
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78d37518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78d37518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78d37518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:35:32.316095
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5c524a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5c524a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5c524a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:35:47.300920
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d52a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d52a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d52a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:36:02.702299
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c934518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c934518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c934518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:36:17.454455
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2b71518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2b71518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2b71518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:36:32.442086
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa34e9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa34e9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa34e9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:36:47.444656
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94d43518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94d43518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94d43518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:37:03.042490
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa5dc518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa5dc518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa5dc518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:37:17.587701
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b408518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b408518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b408518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:37:32.626096
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7cdfb518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7cdfb518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7cdfb518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:37:47.630040
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f985a3518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f985a3518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f985a3518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:38:03.177213
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7facf33518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7facf33518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7facf33518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:38:17.763848
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7cb4e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7cb4e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7cb4e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:38:32.790880
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77d3e550>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77d3e550>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77d3e550>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:38:47.774724
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0811518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0811518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0811518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:39:02.556616
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8cb49518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8cb49518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8cb49518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:39:16.943048
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5318518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5318518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5318518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:39:31.920829
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb59c4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb59c4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb59c4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:39:46.931216
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0822518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0822518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0822518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:40:02.277113
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4209518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4209518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4209518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:40:17.082516
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e5984a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e5984a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e5984a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:40:32.098616
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac405518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac405518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac405518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:40:47.088335
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1159518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1159518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1159518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:41:02.472927
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99c55518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99c55518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99c55518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:41:17.229185
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2e5d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2e5d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2e5d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:41:32.208933
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f955c2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f955c2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f955c2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:41:47.233974
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8aa874a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8aa874a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8aa874a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:42:02.636974
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e160518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e160518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e160518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:42:17.385128
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77293518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77293518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77293518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:42:32.388987
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6529518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6529518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6529518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:42:47.391994
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9bdc6518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bdc6518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bdc6518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:43:02.857924
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85465518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85465518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85465518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:43:17.603160
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81060518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81060518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81060518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:43:32.532846
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7dbf518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7dbf518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7dbf518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:43:47.541283
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f80c37518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80c37518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80c37518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:44:03.287993
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3346550>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3346550>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3346550>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:44:17.690169
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78923518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78923518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78923518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:44:32.697061
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7de9e4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7de9e4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7de9e4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:44:47.669329
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa3755518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3755518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3755518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:45:02.372824
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa636f4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa636f4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa636f4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:45:16.834108
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d8e7518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d8e7518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d8e7518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:45:31.801898
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f951a5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f951a5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f951a5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:45:46.820738
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f911b4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f911b4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f911b4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:46:02.328840
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa03154a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa03154a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa03154a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:46:16.974169
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86a57518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86a57518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86a57518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:46:31.962277
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94cdb4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94cdb4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94cdb4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:46:47.004150
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96712518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96712518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96712518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:47:02.502124
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f914ee518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f914ee518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f914ee518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:47:17.131436
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f982d54a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f982d54a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f982d54a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:47:32.143120
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf84b4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf84b4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf84b4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:47:47.146735
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79c41518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79c41518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79c41518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:48:02.669920
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f960c5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f960c5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f960c5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:48:17.279762
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3a86518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3a86518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3a86518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:48:32.293905
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b91a4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b91a4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b91a4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:48:47.290435
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f777f24a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f777f24a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f777f24a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:49:03.059438
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab09f4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab09f4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab09f4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:49:17.461543
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e5e5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e5e5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e5e5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:49:32.461093
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83da4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83da4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83da4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:49:47.453755
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96f64518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96f64518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96f64518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:50:02.949775
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6d5b4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6d5b4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6d5b4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:50:17.601543
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ce50518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ce50518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ce50518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:50:32.594064
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96fed518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96fed518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96fed518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:50:47.602369
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88f654a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88f654a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88f654a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:51:03.114281
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f858fc4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f858fc4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f858fc4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:51:17.719419
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5bed518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5bed518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5bed518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:51:32.727158
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6332518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6332518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6332518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:51:47.764994
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa3bf4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3bf4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3bf4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:52:02.134457
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8469f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8469f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8469f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:52:16.922511
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ee52518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ee52518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ee52518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:52:31.902128
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb6041518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb6041518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb6041518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:52:46.920827
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8bffb518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8bffb518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8bffb518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:53:02.474640
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f882314a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f882314a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f882314a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:53:17.075783
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4e70518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4e70518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4e70518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:53:32.059332
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b840518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b840518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b840518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:53:47.129448
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f497518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f497518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f497518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:54:02.810761
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c1b8518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c1b8518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c1b8518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:54:17.286028
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8235d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8235d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8235d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:54:32.273568
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f0f2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f0f2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f0f2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:54:47.277003
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4bea518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4bea518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4bea518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:55:02.790348
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb1ca6518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1ca6518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1ca6518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:55:17.413582
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83ff9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83ff9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83ff9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:55:32.440042
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77c83518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77c83518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77c83518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:55:47.438593
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e079518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e079518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e079518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:56:02.696842
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a1e8518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a1e8518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a1e8518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:56:17.581906
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9fe75518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fe75518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fe75518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:56:32.582698
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ba20518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ba20518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ba20518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:56:47.567975
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f776c9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f776c9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f776c9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:57:03.189558
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f913ec4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f913ec4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f913ec4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:57:17.713665
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b8ab518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b8ab518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b8ab518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:57:32.715973
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f925ce518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f925ce518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f925ce518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:57:47.713552
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8834a4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8834a4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8834a4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:59:03.319805
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f815cf518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f815cf518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f815cf518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:59:17.699381
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e3fd4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e3fd4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e3fd4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:59:32.660076
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a5fa518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a5fa518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a5fa518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 05:59:47.654858
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9bff6518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bff6518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bff6518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:00:02.182427
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c1af4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c1af4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c1af4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:00:16.794201
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e71c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e71c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e71c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:00:31.815183
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7944518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7944518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7944518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:00:46.814525
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a2e8518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a2e8518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a2e8518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:01:02.400363
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb1551518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1551518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1551518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:01:16.981190
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93b93518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93b93518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93b93518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:01:31.965810
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f869204a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f869204a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f869204a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:01:46.953343
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76b29518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76b29518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76b29518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:02:02.327986
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b02d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b02d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b02d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:02:17.113416
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a5e14a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a5e14a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a5e14a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:02:32.081709
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa80264a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa80264a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa80264a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:02:47.116772
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6c91518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6c91518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6c91518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:03:02.647535
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f979db518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f979db518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f979db518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:03:17.253655
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa88a14a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa88a14a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa88a14a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:03:32.265934
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6da74a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6da74a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6da74a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:03:47.271736
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa861d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa861d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa861d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:04:03.028036
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ef4c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ef4c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ef4c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:04:17.407656
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7fcec518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fcec518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fcec518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:04:32.411386
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78c23518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78c23518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78c23518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:04:47.398706
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a10b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a10b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a10b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:05:03.018901
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b946518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b946518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b946518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:05:17.536081
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c507518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c507518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c507518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:05:32.552147
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9af984a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9af984a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9af984a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:05:47.533148
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa30fa4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa30fa4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa30fa4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:06:02.945165
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac900518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac900518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac900518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:06:17.661626
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa3e24518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3e24518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3e24518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:06:32.700336
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d29b4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d29b4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d29b4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:06:47.718325
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8135550>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8135550>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8135550>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:07:02.427107
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ffa2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ffa2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ffa2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:07:16.881343
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89cf1518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89cf1518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89cf1518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:07:31.879124
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa95e8518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa95e8518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa95e8518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:07:46.857184
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f92c18518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92c18518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92c18518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:08:02.298049
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9cc96518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cc96518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cc96518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:08:17.002235
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84cb7518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84cb7518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84cb7518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:08:32.006890
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa109c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa109c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa109c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:08:46.998739
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab236518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab236518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab236518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:09:02.935414
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e4be518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e4be518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e4be518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:09:17.148959
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2e114a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2e114a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2e114a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:09:32.146127
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa55a5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa55a5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa55a5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:09:47.142012
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6af9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6af9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6af9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:10:02.498212
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b562518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b562518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b562518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:10:17.293827
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f96b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f96b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f96b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:10:32.305310
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa11c4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa11c4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa11c4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:10:47.294705
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c802518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c802518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c802518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:11:02.946132
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8c5e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8c5e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8c5e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:11:17.417094
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf42f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf42f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf42f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:11:32.416219
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77327518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77327518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77327518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:11:47.423506
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa88374a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa88374a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa88374a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:12:02.811740
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2905518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2905518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2905518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:12:17.562978
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f948f8518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f948f8518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f948f8518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:12:32.557264
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa371d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa371d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa371d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:12:47.570994
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f787b0518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f787b0518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f787b0518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:13:03.177663
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf69b550>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf69b550>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf69b550>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:13:17.709418
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96e75518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96e75518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96e75518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:13:32.725411
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa350a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa350a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa350a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:13:47.717733
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c7db518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c7db518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c7db518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:14:02.472411
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b0cd518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b0cd518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b0cd518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:14:16.881593
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f92c99518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92c99518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92c99518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:14:31.877059
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2252518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2252518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2252518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:14:46.851073
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2d7a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2d7a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2d7a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:15:02.428367
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9488f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9488f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9488f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:15:16.996039
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d7354a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d7354a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d7354a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:15:31.975729
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1a1b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1a1b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1a1b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:15:47.033727
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84f78518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84f78518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84f78518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:16:02.524354
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77f07550>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77f07550>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77f07550>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:16:17.217644
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb51d7518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb51d7518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb51d7518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:16:32.191746
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91945518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91945518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91945518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:16:47.187777
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5a50518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5a50518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5a50518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:17:02.742444
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f899bf518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f899bf518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f899bf518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:17:17.350865
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf0d3518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf0d3518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf0d3518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:17:32.362944
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f770ae4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f770ae4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f770ae4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:17:47.377617
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa16aa518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa16aa518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa16aa518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:18:02.664873
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d637518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d637518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d637518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:18:17.530258
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9efc5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9efc5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9efc5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:18:32.496513
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5719518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5719518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5719518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:18:47.526175
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e2cf518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e2cf518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e2cf518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:19:03.260256
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b35f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b35f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b35f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:19:17.695586
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c3b7518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c3b7518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c3b7518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:19:32.772806
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76da0518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76da0518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76da0518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:19:47.672486
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa672a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa672a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa672a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:20:02.091552
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79839518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79839518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79839518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:20:16.844659
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85727518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85727518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85727518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:20:31.822742
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8046e4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8046e4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8046e4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:20:46.845240
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa721a4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa721a4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa721a4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:21:02.504254
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab0f7518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab0f7518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab0f7518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:21:17.008263
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6d65518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6d65518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6d65518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:21:32.002646
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95424518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95424518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95424518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:21:47.005124
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99412518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99412518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99412518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:22:02.385340
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8996f4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8996f4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8996f4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:22:17.144640
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fae819518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae819518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae819518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:22:32.163020
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77d0e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77d0e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77d0e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:22:47.178667
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f819bc518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f819bc518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f819bc518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:23:02.764636
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa088b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa088b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa088b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:23:17.316869
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a3cf518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a3cf518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a3cf518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:23:32.318639
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb446d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb446d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb446d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:23:47.319478
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f790ac518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f790ac518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f790ac518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:24:02.862234
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa53cd518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa53cd518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa53cd518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:24:17.470636
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e883518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e883518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e883518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:24:32.498172
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b6674a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b6674a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b6674a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:24:47.486561
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb39c4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb39c4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb39c4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:25:03.094584
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88de94a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88de94a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88de94a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:25:17.650140
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fae903518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae903518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae903518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:25:32.632542
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6659518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6659518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6659518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:25:47.630125
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91678518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91678518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91678518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:26:03.169280
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9fd54518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fd54518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fd54518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:26:17.798379
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c903518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c903518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c903518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:26:32.789793
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a34c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a34c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a34c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:26:47.788417
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82c744a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82c744a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82c744a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:27:02.354781
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7ef8518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7ef8518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7ef8518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:27:16.942691
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf88b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf88b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf88b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:27:32.028255
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9fa66518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fa66518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fa66518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:27:46.948838
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9639a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9639a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9639a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:28:02.357605
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f807794a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f807794a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f807794a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:28:17.086142
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85f02518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85f02518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85f02518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:28:32.095484
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb17f6518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb17f6518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb17f6518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:28:47.132731
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f805cd518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f805cd518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f805cd518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:29:03.134862
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91c28518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91c28518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91c28518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:29:17.282256
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7242518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7242518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7242518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:29:32.303872
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99f0a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99f0a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99f0a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:29:47.281628
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e914518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e914518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e914518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:30:02.999211
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_14_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_29_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/04/28/image_18082025_04_28_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb097e4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb097e4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb097e4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:30:17.353935
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/30/image_18082025_06_30_44_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/06/30/image_18082025_06_30_34_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/06/30/image_18082025_06_30_25_10746.jpg', 2), ('/home/nano/Desktop/images/18082025/06/30/image_18082025_06_30_14_10052.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_30_04_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1b29518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1b29518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1b29518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:30:32.361257
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/30/image_18082025_06_30_44_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/06/30/image_18082025_06_30_34_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/06/30/image_18082025_06_30_25_10746.jpg', 2), ('/home/nano/Desktop/images/18082025/06/30/image_18082025_06_30_14_10052.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_30_04_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ad02518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ad02518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ad02518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:30:47.366208
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/30/image_18082025_06_30_44_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/06/30/image_18082025_06_30_34_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/06/30/image_18082025_06_30_25_10746.jpg', 2), ('/home/nano/Desktop/images/18082025/06/30/image_18082025_06_30_14_10052.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_30_04_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8266b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8266b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8266b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:31:03.274817
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/30/image_18082025_06_30_44_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/06/30/image_18082025_06_30_34_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/06/30/image_18082025_06_30_25_10746.jpg', 2), ('/home/nano/Desktop/images/18082025/06/30/image_18082025_06_30_14_10052.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_30_04_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/04/29/image_18082025_04_29_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa9dd7518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9dd7518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9dd7518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:31:17.502006
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_45_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_34_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_25_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_15_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/06/30/image_18082025_06_31_04_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/06/30/image_18082025_06_30_55_10628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86389518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86389518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86389518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:31:32.485590
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_45_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_34_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_25_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_15_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/06/30/image_18082025_06_31_04_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/06/30/image_18082025_06_30_55_10628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0cd5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0cd5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0cd5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:31:47.490707
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_45_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_34_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_25_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_15_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/06/30/image_18082025_06_31_04_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/06/30/image_18082025_06_30_55_10628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87b48518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87b48518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87b48518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:32:03.061794
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_45_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_34_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_25_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_15_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/06/30/image_18082025_06_31_04_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/06/30/image_18082025_06_30_55_10628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76f82518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76f82518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76f82518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:32:17.562011
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_32_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_55_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_45_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_34_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_25_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_15_10653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa15f2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa15f2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa15f2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:32:32.579103
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_32_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_55_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_45_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_34_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_25_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_15_10653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf93c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf93c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf93c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:32:47.557481
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_32_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_55_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_45_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_34_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_25_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_15_10653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f9c94a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f9c94a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f9c94a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:33:03.514875
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_32_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_55_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_45_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_34_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_25_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_15_10653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8104f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8104f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8104f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:33:17.731455
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/32/image_18082025_06_32_15_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_32_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_55_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_45_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_34_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_25_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c756518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c756518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c756518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:33:32.688531
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/32/image_18082025_06_32_15_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_32_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_55_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_45_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_34_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_25_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8997f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8997f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8997f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:33:47.721067
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/32/image_18082025_06_32_15_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_32_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_55_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_45_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_34_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_25_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e7ed518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e7ed518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e7ed518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:34:02.394263
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/32/image_18082025_06_32_15_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_32_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_55_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_45_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_34_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_25_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c7c0518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c7c0518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c7c0518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:34:16.852882
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/33/image_18082025_06_34_05_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/06/33/image_18082025_06_33_54_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/06/32/image_18082025_06_32_15_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_32_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_55_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_45_10631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8266a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8266a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8266a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:34:31.788318
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/33/image_18082025_06_34_05_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/06/33/image_18082025_06_33_54_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/06/32/image_18082025_06_32_15_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_32_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_55_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_45_10631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83cd44a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83cd44a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83cd44a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:34:46.857370
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/33/image_18082025_06_34_05_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/06/33/image_18082025_06_33_54_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/06/32/image_18082025_06_32_15_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_32_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_55_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_45_10631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab93b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab93b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab93b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:35:02.641555
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/33/image_18082025_06_34_05_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/06/33/image_18082025_06_33_54_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/06/32/image_18082025_06_32_15_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_32_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_55_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_31_45_10631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7faea518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7faea518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7faea518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:35:16.953192
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/35/image_18082025_06_35_25_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/06/34/image_18082025_06_34_44_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/06/33/image_18082025_06_34_05_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/06/33/image_18082025_06_33_54_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/06/32/image_18082025_06_32_15_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_32_04_9645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d406518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d406518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d406518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:35:31.932764
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/35/image_18082025_06_35_25_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/06/34/image_18082025_06_34_44_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/06/33/image_18082025_06_34_05_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/06/33/image_18082025_06_33_54_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/06/32/image_18082025_06_32_15_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_32_04_9645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f841664a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f841664a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f841664a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:35:46.946138
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/35/image_18082025_06_35_25_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/06/34/image_18082025_06_34_44_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/06/33/image_18082025_06_34_05_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/06/33/image_18082025_06_33_54_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/06/32/image_18082025_06_32_15_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_32_04_9645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b4aa518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b4aa518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b4aa518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:36:02.610161
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/35/image_18082025_06_35_25_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/06/34/image_18082025_06_34_44_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/06/33/image_18082025_06_34_05_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/06/33/image_18082025_06_33_54_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/06/32/image_18082025_06_32_15_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/06/31/image_18082025_06_32_04_9645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa59e6518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa59e6518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa59e6518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:36:17.034346
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/36/image_18082025_06_36_14_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/06/35/image_18082025_06_36_05_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/06/35/image_18082025_06_35_55_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/06/35/image_18082025_06_35_25_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/06/34/image_18082025_06_34_44_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/06/33/image_18082025_06_34_05_10644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf401518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf401518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf401518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:36:32.087862
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/36/image_18082025_06_36_14_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/06/35/image_18082025_06_36_05_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/06/35/image_18082025_06_35_55_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/06/35/image_18082025_06_35_25_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/06/34/image_18082025_06_34_44_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/06/33/image_18082025_06_34_05_10644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8759518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8759518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8759518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:36:47.033746
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/36/image_18082025_06_36_14_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/06/35/image_18082025_06_36_05_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/06/35/image_18082025_06_35_55_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/06/35/image_18082025_06_35_25_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/06/34/image_18082025_06_34_44_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/06/33/image_18082025_06_34_05_10644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f807764a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f807764a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f807764a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:37:02.669858
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/36/image_18082025_06_36_14_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/06/35/image_18082025_06_36_05_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/06/35/image_18082025_06_35_55_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/06/35/image_18082025_06_35_25_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/06/34/image_18082025_06_34_44_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/06/33/image_18082025_06_34_05_10644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81778518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81778518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81778518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:37:17.133928
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/37/image_18082025_06_37_45_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/06/37/image_18082025_06_37_34_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/06/37/image_18082025_06_37_25_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/06/37/image_18082025_06_37_14_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/06/36/image_18082025_06_37_04_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/06/36/image_18082025_06_36_55_10641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2a34518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2a34518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2a34518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:37:32.133874
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/37/image_18082025_06_37_45_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/06/37/image_18082025_06_37_34_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/06/37/image_18082025_06_37_25_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/06/37/image_18082025_06_37_14_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/06/36/image_18082025_06_37_04_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/06/36/image_18082025_06_36_55_10641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95268518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95268518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95268518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:37:47.122570
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/37/image_18082025_06_37_45_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/06/37/image_18082025_06_37_34_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/06/37/image_18082025_06_37_25_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/06/37/image_18082025_06_37_14_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/06/36/image_18082025_06_37_04_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/06/36/image_18082025_06_36_55_10641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f778e74a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f778e74a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f778e74a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:38:02.668240
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/37/image_18082025_06_37_45_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/06/37/image_18082025_06_37_34_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/06/37/image_18082025_06_37_25_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/06/37/image_18082025_06_37_14_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/06/36/image_18082025_06_37_04_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/06/36/image_18082025_06_36_55_10641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a0cc518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a0cc518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a0cc518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:38:17.245835
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/38/image_18082025_06_38_25_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/06/38/image_18082025_06_38_15_10676.jpg', 2), ('/home/nano/Desktop/images/18082025/06/37/image_18082025_06_38_04_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/06/37/image_18082025_06_37_55_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/06/37/image_18082025_06_37_45_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/06/37/image_18082025_06_37_34_9631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0ca7518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0ca7518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0ca7518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:38:32.232918
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/38/image_18082025_06_38_25_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/06/38/image_18082025_06_38_15_10676.jpg', 2), ('/home/nano/Desktop/images/18082025/06/37/image_18082025_06_38_04_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/06/37/image_18082025_06_37_55_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/06/37/image_18082025_06_37_45_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/06/37/image_18082025_06_37_34_9631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94793518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94793518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94793518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:38:47.221798
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/38/image_18082025_06_38_25_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/06/38/image_18082025_06_38_15_10676.jpg', 2), ('/home/nano/Desktop/images/18082025/06/37/image_18082025_06_38_04_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/06/37/image_18082025_06_37_55_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/06/37/image_18082025_06_37_45_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/06/37/image_18082025_06_37_34_9631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94ffd518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94ffd518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94ffd518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:39:03.384460
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/38/image_18082025_06_38_25_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/06/38/image_18082025_06_38_15_10676.jpg', 2), ('/home/nano/Desktop/images/18082025/06/37/image_18082025_06_38_04_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/06/37/image_18082025_06_37_55_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/06/37/image_18082025_06_37_45_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/06/37/image_18082025_06_37_34_9631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8036c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8036c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8036c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:39:17.341509
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/39/image_18082025_06_39_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/06/39/image_18082025_06_39_24_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/06/39/image_18082025_06_39_15_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/06/38/image_18082025_06_39_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/06/38/image_18082025_06_38_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/06/38/image_18082025_06_38_25_9632.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9bcff518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bcff518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bcff518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:39:32.307393
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/39/image_18082025_06_39_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/06/39/image_18082025_06_39_24_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/06/39/image_18082025_06_39_15_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/06/38/image_18082025_06_39_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/06/38/image_18082025_06_38_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/06/38/image_18082025_06_38_25_9632.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7aa9f4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7aa9f4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7aa9f4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:39:47.332850
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/39/image_18082025_06_39_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/06/39/image_18082025_06_39_24_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/06/39/image_18082025_06_39_15_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/06/38/image_18082025_06_39_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/06/38/image_18082025_06_38_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/06/38/image_18082025_06_38_25_9632.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78490518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78490518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78490518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:40:02.897942
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/39/image_18082025_06_39_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/06/39/image_18082025_06_39_24_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/06/39/image_18082025_06_39_15_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/06/38/image_18082025_06_39_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/06/38/image_18082025_06_38_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/06/38/image_18082025_06_38_25_9632.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8afcc518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8afcc518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8afcc518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:40:17.429938
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/40/image_18082025_06_40_24_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/06/40/image_18082025_06_40_15_9673.jpg', 2), ('/home/nano/Desktop/images/18082025/06/39/image_18082025_06_40_05_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/06/39/image_18082025_06_39_45_10643.jpg', 2), ('/home/nano/Desktop/images/18082025/06/39/image_18082025_06_39_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/06/39/image_18082025_06_39_24_9634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91e09518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91e09518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91e09518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:40:32.435031
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/40/image_18082025_06_40_24_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/06/40/image_18082025_06_40_15_9673.jpg', 2), ('/home/nano/Desktop/images/18082025/06/39/image_18082025_06_40_05_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/06/39/image_18082025_06_39_45_10643.jpg', 2), ('/home/nano/Desktop/images/18082025/06/39/image_18082025_06_39_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/06/39/image_18082025_06_39_24_9634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9566b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9566b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9566b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:40:47.503195
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/40/image_18082025_06_40_24_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/06/40/image_18082025_06_40_15_9673.jpg', 2), ('/home/nano/Desktop/images/18082025/06/39/image_18082025_06_40_05_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/06/39/image_18082025_06_39_45_10643.jpg', 2), ('/home/nano/Desktop/images/18082025/06/39/image_18082025_06_39_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/06/39/image_18082025_06_39_24_9634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f16c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f16c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f16c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:41:03.411317
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/40/image_18082025_06_40_24_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/06/40/image_18082025_06_40_15_9673.jpg', 2), ('/home/nano/Desktop/images/18082025/06/39/image_18082025_06_40_05_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/06/39/image_18082025_06_39_45_10643.jpg', 2), ('/home/nano/Desktop/images/18082025/06/39/image_18082025_06_39_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/06/39/image_18082025_06_39_24_9634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83640518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83640518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83640518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:41:17.611274
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/41/image_18082025_06_41_45_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/06/41/image_18082025_06_41_35_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/06/41/image_18082025_06_41_24_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/06/41/image_18082025_06_41_15_9670.jpg', 2), ('/home/nano/Desktop/images/18082025/06/40/image_18082025_06_41_05_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/06/40/image_18082025_06_40_35_10646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa487b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa487b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa487b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:41:32.604077
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/41/image_18082025_06_41_45_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/06/41/image_18082025_06_41_35_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/06/41/image_18082025_06_41_24_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/06/41/image_18082025_06_41_15_9670.jpg', 2), ('/home/nano/Desktop/images/18082025/06/40/image_18082025_06_41_05_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/06/40/image_18082025_06_40_35_10646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87280518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87280518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87280518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:41:47.584170
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/41/image_18082025_06_41_45_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/06/41/image_18082025_06_41_35_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/06/41/image_18082025_06_41_24_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/06/41/image_18082025_06_41_15_9670.jpg', 2), ('/home/nano/Desktop/images/18082025/06/40/image_18082025_06_41_05_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/06/40/image_18082025_06_40_35_10646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3b38518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3b38518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3b38518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:42:03.238754
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/41/image_18082025_06_41_45_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/06/41/image_18082025_06_41_35_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/06/41/image_18082025_06_41_24_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/06/41/image_18082025_06_41_15_9670.jpg', 2), ('/home/nano/Desktop/images/18082025/06/40/image_18082025_06_41_05_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/06/40/image_18082025_06_40_35_10646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90689518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90689518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90689518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:42:17.685099
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/42/image_18082025_06_42_45_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/06/42/image_18082025_06_42_35_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/06/42/image_18082025_06_42_24_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/06/42/image_18082025_06_42_15_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/06/41/image_18082025_06_42_05_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/06/41/image_18082025_06_41_54_9635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8cbbe518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8cbbe518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8cbbe518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:42:32.759823
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/42/image_18082025_06_42_45_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/06/42/image_18082025_06_42_35_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/06/42/image_18082025_06_42_24_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/06/42/image_18082025_06_42_15_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/06/41/image_18082025_06_42_05_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/06/41/image_18082025_06_41_54_9635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96725518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96725518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96725518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:42:47.704163
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/42/image_18082025_06_42_45_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/06/42/image_18082025_06_42_35_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/06/42/image_18082025_06_42_24_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/06/42/image_18082025_06_42_15_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/06/41/image_18082025_06_42_05_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/06/41/image_18082025_06_41_54_9635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7df42518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7df42518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7df42518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:43:02.379474
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/42/image_18082025_06_42_45_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/06/42/image_18082025_06_42_35_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/06/42/image_18082025_06_42_24_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/06/42/image_18082025_06_42_15_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/06/41/image_18082025_06_42_05_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/06/41/image_18082025_06_41_54_9635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa88414a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa88414a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa88414a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:43:16.809726
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/43/image_18082025_06_43_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/06/43/image_18082025_06_43_35_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/06/43/image_18082025_06_43_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/06/43/image_18082025_06_43_14_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/06/42/image_18082025_06_43_05_10674.jpg', 2), ('/home/nano/Desktop/images/18082025/06/42/image_18082025_06_42_54_9646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91138518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91138518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91138518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:43:31.784910
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/43/image_18082025_06_43_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/06/43/image_18082025_06_43_35_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/06/43/image_18082025_06_43_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/06/43/image_18082025_06_43_14_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/06/42/image_18082025_06_43_05_10674.jpg', 2), ('/home/nano/Desktop/images/18082025/06/42/image_18082025_06_42_54_9646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5df1518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5df1518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5df1518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:43:46.807783
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/43/image_18082025_06_43_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/06/43/image_18082025_06_43_35_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/06/43/image_18082025_06_43_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/06/43/image_18082025_06_43_14_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/06/42/image_18082025_06_43_05_10674.jpg', 2), ('/home/nano/Desktop/images/18082025/06/42/image_18082025_06_42_54_9646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d2a7518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d2a7518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d2a7518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:44:02.849016
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/43/image_18082025_06_43_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/06/43/image_18082025_06_43_35_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/06/43/image_18082025_06_43_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/06/43/image_18082025_06_43_14_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/06/42/image_18082025_06_43_05_10674.jpg', 2), ('/home/nano/Desktop/images/18082025/06/42/image_18082025_06_42_54_9646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f956b2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f956b2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f956b2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:44:16.930254
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/44/image_18082025_06_44_44_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/06/44/image_18082025_06_44_35_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/06/44/image_18082025_06_44_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/06/44/image_18082025_06_44_14_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/06/43/image_18082025_06_44_05_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/06/43/image_18082025_06_43_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2863518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2863518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2863518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:44:31.934992
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/44/image_18082025_06_44_44_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/06/44/image_18082025_06_44_35_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/06/44/image_18082025_06_44_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/06/44/image_18082025_06_44_14_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/06/43/image_18082025_06_44_05_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/06/43/image_18082025_06_43_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb650e4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb650e4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb650e4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:44:46.967430
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/44/image_18082025_06_44_44_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/06/44/image_18082025_06_44_35_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/06/44/image_18082025_06_44_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/06/44/image_18082025_06_44_14_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/06/43/image_18082025_06_44_05_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/06/43/image_18082025_06_43_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88d1a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88d1a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88d1a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:45:02.797807
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/44/image_18082025_06_44_44_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/06/44/image_18082025_06_44_35_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/06/44/image_18082025_06_44_24_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/06/44/image_18082025_06_44_14_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/06/43/image_18082025_06_44_05_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/06/43/image_18082025_06_43_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f916da518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f916da518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f916da518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:45:17.045496
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/45/image_18082025_06_45_44_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/06/45/image_18082025_06_45_25_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/06/44/image_18082025_06_45_05_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/06/44/image_18082025_06_44_55_10670.jpg', 2), ('/home/nano/Desktop/images/18082025/06/44/image_18082025_06_44_44_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/06/44/image_18082025_06_44_35_10653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f7ae518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f7ae518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f7ae518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:45:32.051634
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/45/image_18082025_06_45_44_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/06/45/image_18082025_06_45_25_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/06/44/image_18082025_06_45_05_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/06/44/image_18082025_06_44_55_10670.jpg', 2), ('/home/nano/Desktop/images/18082025/06/44/image_18082025_06_44_44_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/06/44/image_18082025_06_44_35_10653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb1b4b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1b4b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1b4b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:45:47.036737
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/45/image_18082025_06_45_44_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/06/45/image_18082025_06_45_25_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/06/44/image_18082025_06_45_05_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/06/44/image_18082025_06_44_55_10670.jpg', 2), ('/home/nano/Desktop/images/18082025/06/44/image_18082025_06_44_44_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/06/44/image_18082025_06_44_35_10653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ba5d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ba5d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ba5d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:46:02.577202
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/45/image_18082025_06_45_44_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/06/45/image_18082025_06_45_25_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/06/44/image_18082025_06_45_05_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/06/44/image_18082025_06_44_55_10670.jpg', 2), ('/home/nano/Desktop/images/18082025/06/44/image_18082025_06_44_44_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/06/44/image_18082025_06_44_35_10653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d9dc4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d9dc4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d9dc4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:46:17.134733
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/46/image_18082025_06_46_44_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/06/46/image_18082025_06_46_35_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/06/46/image_18082025_06_46_25_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/06/46/image_18082025_06_46_14_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/06/45/image_18082025_06_46_05_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/06/45/image_18082025_06_45_55_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7699a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7699a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7699a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:46:32.142666
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/46/image_18082025_06_46_44_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/06/46/image_18082025_06_46_35_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/06/46/image_18082025_06_46_25_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/06/46/image_18082025_06_46_14_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/06/45/image_18082025_06_46_05_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/06/45/image_18082025_06_45_55_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b540518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b540518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b540518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:46:47.132760
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/46/image_18082025_06_46_44_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/06/46/image_18082025_06_46_35_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/06/46/image_18082025_06_46_25_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/06/46/image_18082025_06_46_14_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/06/45/image_18082025_06_46_05_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/06/45/image_18082025_06_45_55_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c8b1518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c8b1518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c8b1518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:47:02.757606
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/46/image_18082025_06_46_44_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/06/46/image_18082025_06_46_35_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/06/46/image_18082025_06_46_25_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/06/46/image_18082025_06_46_14_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/06/45/image_18082025_06_46_05_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/06/45/image_18082025_06_45_55_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99f6f4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99f6f4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99f6f4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:47:17.253521
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/47/image_18082025_06_47_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/06/47/image_18082025_06_47_35_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/06/47/image_18082025_06_47_25_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/06/47/image_18082025_06_47_14_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/06/46/image_18082025_06_47_05_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/06/46/image_18082025_06_46_55_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4d7a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4d7a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4d7a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:47:32.307769
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/47/image_18082025_06_47_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/06/47/image_18082025_06_47_35_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/06/47/image_18082025_06_47_25_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/06/47/image_18082025_06_47_14_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/06/46/image_18082025_06_47_05_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/06/46/image_18082025_06_46_55_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97df9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97df9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97df9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:47:47.310166
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/47/image_18082025_06_47_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/06/47/image_18082025_06_47_35_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/06/47/image_18082025_06_47_25_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/06/47/image_18082025_06_47_14_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/06/46/image_18082025_06_47_05_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/06/46/image_18082025_06_46_55_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb51f3518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb51f3518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb51f3518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:48:02.882170
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/47/image_18082025_06_47_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/06/47/image_18082025_06_47_35_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/06/47/image_18082025_06_47_25_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/06/47/image_18082025_06_47_14_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/06/46/image_18082025_06_47_05_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/06/46/image_18082025_06_46_55_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f541518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f541518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f541518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:48:17.404282
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/48/image_18082025_06_48_44_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/06/48/image_18082025_06_48_34_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/06/48/image_18082025_06_48_25_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/06/48/image_18082025_06_48_14_9693.jpg', 2), ('/home/nano/Desktop/images/18082025/06/47/image_18082025_06_48_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/06/47/image_18082025_06_47_55_10656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f80423518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80423518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80423518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:48:32.408899
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/48/image_18082025_06_48_44_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/06/48/image_18082025_06_48_34_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/06/48/image_18082025_06_48_25_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/06/48/image_18082025_06_48_14_9693.jpg', 2), ('/home/nano/Desktop/images/18082025/06/47/image_18082025_06_48_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/06/47/image_18082025_06_47_55_10656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f913cd4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f913cd4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f913cd4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:48:47.413400
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/48/image_18082025_06_48_44_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/06/48/image_18082025_06_48_34_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/06/48/image_18082025_06_48_25_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/06/48/image_18082025_06_48_14_9693.jpg', 2), ('/home/nano/Desktop/images/18082025/06/47/image_18082025_06_48_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/06/47/image_18082025_06_47_55_10656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb52844a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb52844a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb52844a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:49:03.538246
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/48/image_18082025_06_48_44_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/06/48/image_18082025_06_48_34_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/06/48/image_18082025_06_48_25_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/06/48/image_18082025_06_48_14_9693.jpg', 2), ('/home/nano/Desktop/images/18082025/06/47/image_18082025_06_48_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/06/47/image_18082025_06_47_55_10656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9665b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9665b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9665b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:49:17.499306
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/49/image_18082025_06_49_44_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/06/49/image_18082025_06_49_34_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/06/49/image_18082025_06_49_25_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/06/49/image_18082025_06_49_14_9692.jpg', 2), ('/home/nano/Desktop/images/18082025/06/48/image_18082025_06_49_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/06/48/image_18082025_06_48_55_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8465518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8465518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8465518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:49:32.498257
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/49/image_18082025_06_49_44_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/06/49/image_18082025_06_49_34_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/06/49/image_18082025_06_49_25_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/06/49/image_18082025_06_49_14_9692.jpg', 2), ('/home/nano/Desktop/images/18082025/06/48/image_18082025_06_49_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/06/48/image_18082025_06_48_55_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7fd504a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fd504a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fd504a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:49:47.488585
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/49/image_18082025_06_49_44_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/06/49/image_18082025_06_49_34_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/06/49/image_18082025_06_49_25_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/06/49/image_18082025_06_49_14_9692.jpg', 2), ('/home/nano/Desktop/images/18082025/06/48/image_18082025_06_49_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/06/48/image_18082025_06_48_55_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa458a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa458a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa458a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:50:03.124685
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/49/image_18082025_06_49_44_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/06/49/image_18082025_06_49_34_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/06/49/image_18082025_06_49_25_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/06/49/image_18082025_06_49_14_9692.jpg', 2), ('/home/nano/Desktop/images/18082025/06/48/image_18082025_06_49_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/06/48/image_18082025_06_48_55_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb40464a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb40464a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb40464a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:50:17.595107
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/50/image_18082025_06_50_45_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/06/50/image_18082025_06_50_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/06/50/image_18082025_06_50_25_10671.jpg', 2), ('/home/nano/Desktop/images/18082025/06/50/image_18082025_06_50_14_9698.jpg', 2), ('/home/nano/Desktop/images/18082025/06/49/image_18082025_06_50_04_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/06/49/image_18082025_06_49_55_10653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8efd8518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8efd8518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8efd8518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:50:32.591747
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/50/image_18082025_06_50_45_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/06/50/image_18082025_06_50_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/06/50/image_18082025_06_50_25_10671.jpg', 2), ('/home/nano/Desktop/images/18082025/06/50/image_18082025_06_50_14_9698.jpg', 2), ('/home/nano/Desktop/images/18082025/06/49/image_18082025_06_50_04_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/06/49/image_18082025_06_49_55_10653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f795f1518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f795f1518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f795f1518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:50:47.592770
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/50/image_18082025_06_50_45_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/06/50/image_18082025_06_50_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/06/50/image_18082025_06_50_25_10671.jpg', 2), ('/home/nano/Desktop/images/18082025/06/50/image_18082025_06_50_14_9698.jpg', 2), ('/home/nano/Desktop/images/18082025/06/49/image_18082025_06_50_04_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/06/49/image_18082025_06_49_55_10653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96b61518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96b61518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96b61518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:51:03.291162
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/50/image_18082025_06_50_45_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/06/50/image_18082025_06_50_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/06/50/image_18082025_06_50_25_10671.jpg', 2), ('/home/nano/Desktop/images/18082025/06/50/image_18082025_06_50_14_9698.jpg', 2), ('/home/nano/Desktop/images/18082025/06/49/image_18082025_06_50_04_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/06/49/image_18082025_06_49_55_10653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9bbc0518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bbc0518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bbc0518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:51:17.712735
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/51/image_18082025_06_51_45_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/06/51/image_18082025_06_51_34_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/06/51/image_18082025_06_51_25_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/06/51/image_18082025_06_51_15_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/06/50/image_18082025_06_51_04_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/06/50/image_18082025_06_50_55_9648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f952d5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f952d5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f952d5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:51:32.704437
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/51/image_18082025_06_51_45_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/06/51/image_18082025_06_51_34_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/06/51/image_18082025_06_51_25_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/06/51/image_18082025_06_51_15_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/06/50/image_18082025_06_51_04_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/06/50/image_18082025_06_50_55_9648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f913c14a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f913c14a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f913c14a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:51:47.730572
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/51/image_18082025_06_51_45_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/06/51/image_18082025_06_51_34_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/06/51/image_18082025_06_51_25_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/06/51/image_18082025_06_51_15_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/06/50/image_18082025_06_51_04_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/06/50/image_18082025_06_50_55_9648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ed67518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ed67518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ed67518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:52:02.377987
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/51/image_18082025_06_51_45_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/06/51/image_18082025_06_51_34_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/06/51/image_18082025_06_51_25_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/06/51/image_18082025_06_51_15_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/06/50/image_18082025_06_51_04_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/06/50/image_18082025_06_50_55_9648.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1f444a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1f444a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1f444a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:52:16.821618
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/52/image_18082025_06_52_45_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/06/52/image_18082025_06_52_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/06/52/image_18082025_06_52_25_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/06/52/image_18082025_06_52_15_10675.jpg', 2), ('/home/nano/Desktop/images/18082025/06/51/image_18082025_06_51_55_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/06/51/image_18082025_06_51_45_10665.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fae2ab518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae2ab518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae2ab518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:52:31.836020
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/52/image_18082025_06_52_45_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/06/52/image_18082025_06_52_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/06/52/image_18082025_06_52_25_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/06/52/image_18082025_06_52_15_10675.jpg', 2), ('/home/nano/Desktop/images/18082025/06/51/image_18082025_06_51_55_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/06/51/image_18082025_06_51_45_10665.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb1cd3518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1cd3518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1cd3518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:52:46.827904
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/52/image_18082025_06_52_45_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/06/52/image_18082025_06_52_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/06/52/image_18082025_06_52_25_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/06/52/image_18082025_06_52_15_10675.jpg', 2), ('/home/nano/Desktop/images/18082025/06/51/image_18082025_06_51_55_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/06/51/image_18082025_06_51_45_10665.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b851518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b851518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b851518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:53:02.601789
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/52/image_18082025_06_52_45_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/06/52/image_18082025_06_52_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/06/52/image_18082025_06_52_25_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/06/52/image_18082025_06_52_15_10675.jpg', 2), ('/home/nano/Desktop/images/18082025/06/51/image_18082025_06_51_55_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/06/51/image_18082025_06_51_45_10665.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8253f550>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8253f550>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8253f550>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:53:16.943857
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/53/image_18082025_06_53_45_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/06/53/image_18082025_06_53_35_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/06/53/image_18082025_06_53_24_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/06/53/image_18082025_06_53_15_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/06/52/image_18082025_06_53_04_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/06/52/image_18082025_06_52_54_9613.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5d98518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5d98518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5d98518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:53:31.945871
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/53/image_18082025_06_53_45_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/06/53/image_18082025_06_53_35_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/06/53/image_18082025_06_53_24_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/06/53/image_18082025_06_53_15_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/06/52/image_18082025_06_53_04_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/06/52/image_18082025_06_52_54_9613.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8fd04518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fd04518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fd04518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:53:46.927873
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/53/image_18082025_06_53_45_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/06/53/image_18082025_06_53_35_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/06/53/image_18082025_06_53_24_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/06/53/image_18082025_06_53_15_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/06/52/image_18082025_06_53_04_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/06/52/image_18082025_06_52_54_9613.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9384e4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9384e4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9384e4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:54:02.769511
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/53/image_18082025_06_53_45_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/06/53/image_18082025_06_53_35_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/06/53/image_18082025_06_53_24_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/06/53/image_18082025_06_53_15_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/06/52/image_18082025_06_53_04_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/06/52/image_18082025_06_52_54_9613.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8484a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8484a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8484a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:54:17.057848
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/54/image_18082025_06_54_44_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/06/54/image_18082025_06_54_35_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/06/54/image_18082025_06_54_24_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/06/54/image_18082025_06_54_15_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/06/53/image_18082025_06_54_05_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/06/53/image_18082025_06_53_54_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab82e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab82e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab82e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:54:31.995545
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/54/image_18082025_06_54_44_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/06/54/image_18082025_06_54_35_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/06/54/image_18082025_06_54_24_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/06/54/image_18082025_06_54_15_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/06/53/image_18082025_06_54_05_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/06/53/image_18082025_06_53_54_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e8d9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e8d9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e8d9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:54:47.031157
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/54/image_18082025_06_54_44_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/06/54/image_18082025_06_54_35_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/06/54/image_18082025_06_54_24_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/06/54/image_18082025_06_54_15_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/06/53/image_18082025_06_54_05_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/06/53/image_18082025_06_53_54_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa205c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa205c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa205c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:55:02.783726
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/54/image_18082025_06_54_44_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/06/54/image_18082025_06_54_35_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/06/54/image_18082025_06_54_24_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/06/54/image_18082025_06_54_15_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/06/53/image_18082025_06_54_05_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/06/53/image_18082025_06_53_54_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4a35518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4a35518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4a35518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:55:17.135010
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/55/image_18082025_06_55_44_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/06/55/image_18082025_06_55_35_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/06/55/image_18082025_06_55_25_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/06/55/image_18082025_06_55_14_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/06/54/image_18082025_06_55_05_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/06/54/image_18082025_06_54_54_9621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99c0f4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99c0f4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99c0f4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:55:32.164003
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/55/image_18082025_06_55_44_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/06/55/image_18082025_06_55_35_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/06/55/image_18082025_06_55_25_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/06/55/image_18082025_06_55_14_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/06/54/image_18082025_06_55_05_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/06/54/image_18082025_06_54_54_9621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79afa4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79afa4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79afa4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:55:47.164537
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/55/image_18082025_06_55_44_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/06/55/image_18082025_06_55_35_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/06/55/image_18082025_06_55_25_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/06/55/image_18082025_06_55_14_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/06/54/image_18082025_06_55_05_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/06/54/image_18082025_06_54_54_9621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c0a9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c0a9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c0a9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:56:02.716865
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/55/image_18082025_06_55_44_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/06/55/image_18082025_06_55_35_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/06/55/image_18082025_06_55_25_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/06/55/image_18082025_06_55_14_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/06/54/image_18082025_06_55_05_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/06/54/image_18082025_06_54_54_9621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76f534e0>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76f534e0>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76f534e0>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:56:17.262176
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/56/image_18082025_06_56_44_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/06/56/image_18082025_06_56_35_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/06/56/image_18082025_06_56_25_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/06/56/image_18082025_06_56_14_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/06/55/image_18082025_06_56_05_9682.jpg', 2), ('/home/nano/Desktop/images/18082025/06/55/image_18082025_06_55_55_10707.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1fe1518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1fe1518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1fe1518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:56:32.264678
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/56/image_18082025_06_56_44_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/06/56/image_18082025_06_56_35_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/06/56/image_18082025_06_56_25_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/06/56/image_18082025_06_56_14_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/06/55/image_18082025_06_56_05_9682.jpg', 2), ('/home/nano/Desktop/images/18082025/06/55/image_18082025_06_55_55_10707.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94322518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94322518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94322518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:56:47.290249
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/56/image_18082025_06_56_44_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/06/56/image_18082025_06_56_35_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/06/56/image_18082025_06_56_25_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/06/56/image_18082025_06_56_14_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/06/55/image_18082025_06_56_05_9682.jpg', 2), ('/home/nano/Desktop/images/18082025/06/55/image_18082025_06_55_55_10707.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa32d2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa32d2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa32d2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:57:03.044216
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/56/image_18082025_06_56_44_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/06/56/image_18082025_06_56_35_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/06/56/image_18082025_06_56_25_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/06/56/image_18082025_06_56_14_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/06/55/image_18082025_06_56_05_9682.jpg', 2), ('/home/nano/Desktop/images/18082025/06/55/image_18082025_06_55_55_10707.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f6ac4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f6ac4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f6ac4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:57:17.368143
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/57/image_18082025_06_57_44_9678.jpg', 2), ('/home/nano/Desktop/images/18082025/06/57/image_18082025_06_57_34_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/06/57/image_18082025_06_57_25_10679.jpg', 2), ('/home/nano/Desktop/images/18082025/06/57/image_18082025_06_57_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/06/56/image_18082025_06_57_04_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/06/56/image_18082025_06_56_55_10633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f874a2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f874a2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f874a2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:57:32.418614
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/57/image_18082025_06_57_44_9678.jpg', 2), ('/home/nano/Desktop/images/18082025/06/57/image_18082025_06_57_34_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/06/57/image_18082025_06_57_25_10679.jpg', 2), ('/home/nano/Desktop/images/18082025/06/57/image_18082025_06_57_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/06/56/image_18082025_06_57_04_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/06/56/image_18082025_06_56_55_10633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb36ed518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb36ed518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb36ed518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:57:47.386169
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/57/image_18082025_06_57_44_9678.jpg', 2), ('/home/nano/Desktop/images/18082025/06/57/image_18082025_06_57_34_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/06/57/image_18082025_06_57_25_10679.jpg', 2), ('/home/nano/Desktop/images/18082025/06/57/image_18082025_06_57_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/06/56/image_18082025_06_57_04_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/06/56/image_18082025_06_56_55_10633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ba4d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ba4d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ba4d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:59:03.531754
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/57/image_18082025_06_57_44_9678.jpg', 2), ('/home/nano/Desktop/images/18082025/06/57/image_18082025_06_57_34_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/06/57/image_18082025_06_57_25_10679.jpg', 2), ('/home/nano/Desktop/images/18082025/06/57/image_18082025_06_57_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/06/56/image_18082025_06_57_04_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/06/56/image_18082025_06_56_55_10633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f975fc518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f975fc518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f975fc518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:59:17.626317
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/59/image_18082025_06_59_45_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/06/59/image_18082025_06_59_34_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/06/59/image_18082025_06_59_25_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/06/59/image_18082025_06_59_14_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/06/58/image_18082025_06_59_04_9672.jpg', 2), ('/home/nano/Desktop/images/18082025/06/58/image_18082025_06_58_55_10693.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d4504a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d4504a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d4504a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:59:32.703453
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/59/image_18082025_06_59_45_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/06/59/image_18082025_06_59_34_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/06/59/image_18082025_06_59_25_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/06/59/image_18082025_06_59_14_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/06/58/image_18082025_06_59_04_9672.jpg', 2), ('/home/nano/Desktop/images/18082025/06/58/image_18082025_06_58_55_10693.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f954b1518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f954b1518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f954b1518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 06:59:47.605948
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/59/image_18082025_06_59_45_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/06/59/image_18082025_06_59_34_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/06/59/image_18082025_06_59_25_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/06/59/image_18082025_06_59_14_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/06/58/image_18082025_06_59_04_9672.jpg', 2), ('/home/nano/Desktop/images/18082025/06/58/image_18082025_06_58_55_10693.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f304518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f304518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f304518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:00:03.269443
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/06/59/image_18082025_06_59_45_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/06/59/image_18082025_06_59_34_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/06/59/image_18082025_06_59_25_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/06/59/image_18082025_06_59_14_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/06/58/image_18082025_06_59_04_9672.jpg', 2), ('/home/nano/Desktop/images/18082025/06/58/image_18082025_06_58_55_10693.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c0ea518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c0ea518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c0ea518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:00:17.731315
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/00/image_18082025_07_00_45_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/07/00/image_18082025_07_00_34_9695.jpg', 2), ('/home/nano/Desktop/images/18082025/07/00/image_18082025_07_00_25_9601.jpg', 2), ('/home/nano/Desktop/images/18082025/07/00/image_18082025_07_00_15_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/06/59/image_18082025_07_00_04_9671.jpg', 2), ('/home/nano/Desktop/images/18082025/06/59/image_18082025_06_59_55_9620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4620518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4620518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4620518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:00:32.708358
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/00/image_18082025_07_00_45_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/07/00/image_18082025_07_00_34_9695.jpg', 2), ('/home/nano/Desktop/images/18082025/07/00/image_18082025_07_00_25_9601.jpg', 2), ('/home/nano/Desktop/images/18082025/07/00/image_18082025_07_00_15_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/06/59/image_18082025_07_00_04_9671.jpg', 2), ('/home/nano/Desktop/images/18082025/06/59/image_18082025_06_59_55_9620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76f4d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76f4d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76f4d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:00:47.712727
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/00/image_18082025_07_00_45_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/07/00/image_18082025_07_00_34_9695.jpg', 2), ('/home/nano/Desktop/images/18082025/07/00/image_18082025_07_00_25_9601.jpg', 2), ('/home/nano/Desktop/images/18082025/07/00/image_18082025_07_00_15_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/06/59/image_18082025_07_00_04_9671.jpg', 2), ('/home/nano/Desktop/images/18082025/06/59/image_18082025_06_59_55_9620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97fd7518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97fd7518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97fd7518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:01:02.534771
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/00/image_18082025_07_00_45_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/07/00/image_18082025_07_00_34_9695.jpg', 2), ('/home/nano/Desktop/images/18082025/07/00/image_18082025_07_00_25_9601.jpg', 2), ('/home/nano/Desktop/images/18082025/07/00/image_18082025_07_00_15_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/06/59/image_18082025_07_00_04_9671.jpg', 2), ('/home/nano/Desktop/images/18082025/06/59/image_18082025_06_59_55_9620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88644518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88644518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88644518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:01:16.861239
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/01/image_18082025_07_01_45_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/07/01/image_18082025_07_01_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/07/01/image_18082025_07_01_24_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/07/01/image_18082025_07_01_15_10689.jpg', 2), ('/home/nano/Desktop/images/18082025/07/00/image_18082025_07_01_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/07/00/image_18082025_07_00_55_9616.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faae3f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faae3f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faae3f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:01:31.803454
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/01/image_18082025_07_01_45_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/07/01/image_18082025_07_01_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/07/01/image_18082025_07_01_24_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/07/01/image_18082025_07_01_15_10689.jpg', 2), ('/home/nano/Desktop/images/18082025/07/00/image_18082025_07_01_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/07/00/image_18082025_07_00_55_9616.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f92dd44a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92dd44a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92dd44a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:01:46.806858
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/01/image_18082025_07_01_45_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/07/01/image_18082025_07_01_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/07/01/image_18082025_07_01_24_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/07/01/image_18082025_07_01_15_10689.jpg', 2), ('/home/nano/Desktop/images/18082025/07/00/image_18082025_07_01_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/07/00/image_18082025_07_00_55_9616.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa315b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa315b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa315b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:02:02.510743
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/01/image_18082025_07_01_45_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/07/01/image_18082025_07_01_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/07/01/image_18082025_07_01_24_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/07/01/image_18082025_07_01_15_10689.jpg', 2), ('/home/nano/Desktop/images/18082025/07/00/image_18082025_07_01_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/07/00/image_18082025_07_00_55_9616.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8ecd518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8ecd518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8ecd518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:02:16.913266
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/02/image_18082025_07_02_45_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/07/02/image_18082025_07_02_35_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/07/02/image_18082025_07_02_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/07/02/image_18082025_07_02_15_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/07/01/image_18082025_07_02_05_10617.jpg', 2), ('/home/nano/Desktop/images/18082025/07/01/image_18082025_07_01_54_9614.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77c84518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77c84518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77c84518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:02:31.914145
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/02/image_18082025_07_02_45_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/07/02/image_18082025_07_02_35_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/07/02/image_18082025_07_02_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/07/02/image_18082025_07_02_15_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/07/01/image_18082025_07_02_05_10617.jpg', 2), ('/home/nano/Desktop/images/18082025/07/01/image_18082025_07_01_54_9614.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8dfac518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8dfac518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8dfac518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:02:46.943061
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/02/image_18082025_07_02_45_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/07/02/image_18082025_07_02_35_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/07/02/image_18082025_07_02_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/07/02/image_18082025_07_02_15_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/07/01/image_18082025_07_02_05_10617.jpg', 2), ('/home/nano/Desktop/images/18082025/07/01/image_18082025_07_01_54_9614.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99dc6518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99dc6518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99dc6518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:03:02.704270
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/02/image_18082025_07_02_45_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/07/02/image_18082025_07_02_35_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/07/02/image_18082025_07_02_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/07/02/image_18082025_07_02_15_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/07/01/image_18082025_07_02_05_10617.jpg', 2), ('/home/nano/Desktop/images/18082025/07/01/image_18082025_07_01_54_9614.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f8cb4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f8cb4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f8cb4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:03:17.081378
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/03/image_18082025_07_03_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/07/03/image_18082025_07_03_35_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/07/03/image_18082025_07_03_24_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/07/03/image_18082025_07_03_15_9665.jpg', 2), ('/home/nano/Desktop/images/18082025/07/02/image_18082025_07_03_05_10672.jpg', 2), ('/home/nano/Desktop/images/18082025/07/02/image_18082025_07_02_54_9693.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b13b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b13b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b13b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:03:32.017676
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/03/image_18082025_07_03_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/07/03/image_18082025_07_03_35_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/07/03/image_18082025_07_03_24_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/07/03/image_18082025_07_03_15_9665.jpg', 2), ('/home/nano/Desktop/images/18082025/07/02/image_18082025_07_03_05_10672.jpg', 2), ('/home/nano/Desktop/images/18082025/07/02/image_18082025_07_02_54_9693.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79d3b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79d3b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79d3b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:03:47.079390
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/03/image_18082025_07_03_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/07/03/image_18082025_07_03_35_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/07/03/image_18082025_07_03_24_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/07/03/image_18082025_07_03_15_9665.jpg', 2), ('/home/nano/Desktop/images/18082025/07/02/image_18082025_07_03_05_10672.jpg', 2), ('/home/nano/Desktop/images/18082025/07/02/image_18082025_07_02_54_9693.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2cda518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2cda518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2cda518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:04:02.999763
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/03/image_18082025_07_03_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/07/03/image_18082025_07_03_35_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/07/03/image_18082025_07_03_24_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/07/03/image_18082025_07_03_15_9665.jpg', 2), ('/home/nano/Desktop/images/18082025/07/02/image_18082025_07_03_05_10672.jpg', 2), ('/home/nano/Desktop/images/18082025/07/02/image_18082025_07_02_54_9693.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ec28518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ec28518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ec28518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:04:17.188536
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/04/image_18082025_07_04_44_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/07/04/image_18082025_07_04_35_9683.jpg', 2), ('/home/nano/Desktop/images/18082025/07/04/image_18082025_07_04_25_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/07/04/image_18082025_07_04_14_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/07/03/image_18082025_07_04_05_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/07/03/image_18082025_07_03_54_9627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8dabe518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8dabe518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8dabe518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:04:32.251691
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/04/image_18082025_07_04_44_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/07/04/image_18082025_07_04_35_9683.jpg', 2), ('/home/nano/Desktop/images/18082025/07/04/image_18082025_07_04_25_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/07/04/image_18082025_07_04_14_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/07/03/image_18082025_07_04_05_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/07/03/image_18082025_07_03_54_9627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b9f84a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b9f84a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b9f84a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:04:47.201492
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/04/image_18082025_07_04_44_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/07/04/image_18082025_07_04_35_9683.jpg', 2), ('/home/nano/Desktop/images/18082025/07/04/image_18082025_07_04_25_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/07/04/image_18082025_07_04_14_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/07/03/image_18082025_07_04_05_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/07/03/image_18082025_07_03_54_9627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97c78518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97c78518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97c78518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:05:02.707681
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/04/image_18082025_07_04_44_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/07/04/image_18082025_07_04_35_9683.jpg', 2), ('/home/nano/Desktop/images/18082025/07/04/image_18082025_07_04_25_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/07/04/image_18082025_07_04_14_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/07/03/image_18082025_07_04_05_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/07/03/image_18082025_07_03_54_9627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c76f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c76f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c76f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:05:17.294548
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/05/image_18082025_07_05_44_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/07/05/image_18082025_07_05_35_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/07/05/image_18082025_07_05_25_10693.jpg', 2), ('/home/nano/Desktop/images/18082025/07/05/image_18082025_07_05_14_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/07/04/image_18082025_07_05_05_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/07/04/image_18082025_07_04_55_10693.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e6ca518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e6ca518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e6ca518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:05:32.320867
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/05/image_18082025_07_05_44_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/07/05/image_18082025_07_05_35_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/07/05/image_18082025_07_05_25_10693.jpg', 2), ('/home/nano/Desktop/images/18082025/07/05/image_18082025_07_05_14_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/07/04/image_18082025_07_05_05_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/07/04/image_18082025_07_04_55_10693.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5ae5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5ae5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5ae5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:05:47.290554
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/05/image_18082025_07_05_44_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/07/05/image_18082025_07_05_35_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/07/05/image_18082025_07_05_25_10693.jpg', 2), ('/home/nano/Desktop/images/18082025/07/05/image_18082025_07_05_14_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/07/04/image_18082025_07_05_05_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/07/04/image_18082025_07_04_55_10693.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab344518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab344518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab344518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:06:02.994535
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/05/image_18082025_07_05_44_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/07/05/image_18082025_07_05_35_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/07/05/image_18082025_07_05_25_10693.jpg', 2), ('/home/nano/Desktop/images/18082025/07/05/image_18082025_07_05_14_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/07/04/image_18082025_07_05_05_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/07/04/image_18082025_07_04_55_10693.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2df6518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2df6518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2df6518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:06:17.377403
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/06/image_18082025_07_06_44_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/07/06/image_18082025_07_06_35_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/07/06/image_18082025_07_06_25_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/07/06/image_18082025_07_06_14_9680.jpg', 2), ('/home/nano/Desktop/images/18082025/07/05/image_18082025_07_06_05_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/07/05/image_18082025_07_05_55_10643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a8be518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a8be518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a8be518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:06:32.418959
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/06/image_18082025_07_06_44_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/07/06/image_18082025_07_06_35_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/07/06/image_18082025_07_06_25_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/07/06/image_18082025_07_06_14_9680.jpg', 2), ('/home/nano/Desktop/images/18082025/07/05/image_18082025_07_06_05_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/07/05/image_18082025_07_05_55_10643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87569518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87569518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87569518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:06:47.369541
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/06/image_18082025_07_06_44_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/07/06/image_18082025_07_06_35_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/07/06/image_18082025_07_06_25_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/07/06/image_18082025_07_06_14_9680.jpg', 2), ('/home/nano/Desktop/images/18082025/07/05/image_18082025_07_06_05_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/07/05/image_18082025_07_05_55_10643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d6b3518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d6b3518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d6b3518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:07:03.029697
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/06/image_18082025_07_06_44_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/07/06/image_18082025_07_06_35_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/07/06/image_18082025_07_06_25_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/07/06/image_18082025_07_06_14_9680.jpg', 2), ('/home/nano/Desktop/images/18082025/07/05/image_18082025_07_06_05_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/07/05/image_18082025_07_05_55_10643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5427518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5427518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5427518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:07:17.537239
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/07/image_18082025_07_07_45_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/07/07/image_18082025_07_07_34_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/07/07/image_18082025_07_07_25_10617.jpg', 2), ('/home/nano/Desktop/images/18082025/07/07/image_18082025_07_07_14_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/07/06/image_18082025_07_07_04_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/07/06/image_18082025_07_06_55_10626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa684f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa684f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa684f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:07:32.492978
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/07/image_18082025_07_07_45_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/07/07/image_18082025_07_07_34_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/07/07/image_18082025_07_07_25_10617.jpg', 2), ('/home/nano/Desktop/images/18082025/07/07/image_18082025_07_07_14_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/07/06/image_18082025_07_07_04_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/07/06/image_18082025_07_06_55_10626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97e9c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97e9c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97e9c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:07:47.552073
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/07/image_18082025_07_07_45_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/07/07/image_18082025_07_07_34_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/07/07/image_18082025_07_07_25_10617.jpg', 2), ('/home/nano/Desktop/images/18082025/07/07/image_18082025_07_07_14_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/07/06/image_18082025_07_07_04_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/07/06/image_18082025_07_06_55_10626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9fb9f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fb9f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fb9f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:08:03.129142
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/07/image_18082025_07_07_45_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/07/07/image_18082025_07_07_34_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/07/07/image_18082025_07_07_25_10617.jpg', 2), ('/home/nano/Desktop/images/18082025/07/07/image_18082025_07_07_14_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/07/06/image_18082025_07_07_04_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/07/06/image_18082025_07_06_55_10626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a340518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a340518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a340518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:08:17.661990
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/08/image_18082025_07_08_45_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/07/08/image_18082025_07_08_34_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/07/08/image_18082025_07_08_24_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/07/08/image_18082025_07_08_15_10678.jpg', 2), ('/home/nano/Desktop/images/18082025/07/07/image_18082025_07_08_04_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/07/07/image_18082025_07_07_55_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2bbe518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2bbe518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2bbe518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:08:32.641549
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/08/image_18082025_07_08_45_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/07/08/image_18082025_07_08_34_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/07/08/image_18082025_07_08_24_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/07/08/image_18082025_07_08_15_10678.jpg', 2), ('/home/nano/Desktop/images/18082025/07/07/image_18082025_07_08_04_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/07/07/image_18082025_07_07_55_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84ca94a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84ca94a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84ca94a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:08:47.655287
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/08/image_18082025_07_08_45_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/07/08/image_18082025_07_08_34_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/07/08/image_18082025_07_08_24_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/07/08/image_18082025_07_08_15_10678.jpg', 2), ('/home/nano/Desktop/images/18082025/07/07/image_18082025_07_08_04_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/07/07/image_18082025_07_07_55_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94c5a4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94c5a4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94c5a4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:09:02.786835
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/08/image_18082025_07_08_45_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/07/08/image_18082025_07_08_34_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/07/08/image_18082025_07_08_24_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/07/08/image_18082025_07_08_15_10678.jpg', 2), ('/home/nano/Desktop/images/18082025/07/07/image_18082025_07_08_04_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/07/07/image_18082025_07_07_55_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac8f54a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac8f54a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac8f54a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:09:16.794110
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/09/image_18082025_07_09_45_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/07/09/image_18082025_07_09_35_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/07/09/image_18082025_07_09_24_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/07/09/image_18082025_07_09_15_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/07/08/image_18082025_07_09_05_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/07/08/image_18082025_07_08_54_9622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa26b2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa26b2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa26b2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:09:31.791473
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/09/image_18082025_07_09_45_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/07/09/image_18082025_07_09_35_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/07/09/image_18082025_07_09_24_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/07/09/image_18082025_07_09_15_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/07/08/image_18082025_07_09_05_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/07/08/image_18082025_07_08_54_9622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f983f54a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f983f54a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f983f54a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:09:46.746477
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/09/image_18082025_07_09_45_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/07/09/image_18082025_07_09_35_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/07/09/image_18082025_07_09_24_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/07/09/image_18082025_07_09_15_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/07/08/image_18082025_07_09_05_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/07/08/image_18082025_07_08_54_9622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4ae3518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4ae3518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4ae3518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:10:02.431066
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/09/image_18082025_07_09_45_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/07/09/image_18082025_07_09_35_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/07/09/image_18082025_07_09_24_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/07/09/image_18082025_07_09_15_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/07/08/image_18082025_07_09_05_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/07/08/image_18082025_07_08_54_9622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa94404a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa94404a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa94404a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:10:16.866035
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/10/image_18082025_07_10_44_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/07/10/image_18082025_07_10_35_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/07/10/image_18082025_07_10_24_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/07/10/image_18082025_07_10_14_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/07/09/image_18082025_07_10_05_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/07/09/image_18082025_07_09_54_9620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f299518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f299518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f299518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:10:31.946445
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/10/image_18082025_07_10_44_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/07/10/image_18082025_07_10_35_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/07/10/image_18082025_07_10_24_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/07/10/image_18082025_07_10_14_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/07/09/image_18082025_07_10_05_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/07/09/image_18082025_07_09_54_9620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7782f4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7782f4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7782f4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:10:46.969156
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/10/image_18082025_07_10_44_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/07/10/image_18082025_07_10_35_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/07/10/image_18082025_07_10_24_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/07/10/image_18082025_07_10_14_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/07/09/image_18082025_07_10_05_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/07/09/image_18082025_07_09_54_9620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ecb5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ecb5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ecb5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:11:02.626273
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/10/image_18082025_07_10_44_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/07/10/image_18082025_07_10_35_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/07/10/image_18082025_07_10_24_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/07/10/image_18082025_07_10_14_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/07/09/image_18082025_07_10_05_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/07/09/image_18082025_07_09_54_9620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f776f6518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f776f6518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f776f6518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:11:17.041162
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/11/image_18082025_07_11_44_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/07/11/image_18082025_07_11_35_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/07/11/image_18082025_07_11_25_10657.jpg', 2), ('/home/nano/Desktop/images/18082025/07/11/image_18082025_07_11_14_9674.jpg', 2), ('/home/nano/Desktop/images/18082025/07/10/image_18082025_07_11_05_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/07/10/image_18082025_07_10_55_10707.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f4fd518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f4fd518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f4fd518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:11:32.047734
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/11/image_18082025_07_11_44_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/07/11/image_18082025_07_11_35_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/07/11/image_18082025_07_11_25_10657.jpg', 2), ('/home/nano/Desktop/images/18082025/07/11/image_18082025_07_11_14_9674.jpg', 2), ('/home/nano/Desktop/images/18082025/07/10/image_18082025_07_11_05_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/07/10/image_18082025_07_10_55_10707.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93a724a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93a724a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93a724a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:11:47.070233
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/11/image_18082025_07_11_44_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/07/11/image_18082025_07_11_35_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/07/11/image_18082025_07_11_25_10657.jpg', 2), ('/home/nano/Desktop/images/18082025/07/11/image_18082025_07_11_14_9674.jpg', 2), ('/home/nano/Desktop/images/18082025/07/10/image_18082025_07_11_05_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/07/10/image_18082025_07_10_55_10707.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4380518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4380518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4380518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:12:02.692090
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/11/image_18082025_07_11_44_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/07/11/image_18082025_07_11_35_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/07/11/image_18082025_07_11_25_10657.jpg', 2), ('/home/nano/Desktop/images/18082025/07/11/image_18082025_07_11_14_9674.jpg', 2), ('/home/nano/Desktop/images/18082025/07/10/image_18082025_07_11_05_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/07/10/image_18082025_07_10_55_10707.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94d47518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94d47518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94d47518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:12:17.174596
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/12/image_18082025_07_12_44_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/07/12/image_18082025_07_12_35_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/07/12/image_18082025_07_12_25_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/07/12/image_18082025_07_12_14_9701.jpg', 2), ('/home/nano/Desktop/images/18082025/07/11/image_18082025_07_12_05_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/07/11/image_18082025_07_11_55_10652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e7694a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e7694a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e7694a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:12:32.148995
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/12/image_18082025_07_12_44_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/07/12/image_18082025_07_12_35_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/07/12/image_18082025_07_12_25_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/07/12/image_18082025_07_12_14_9701.jpg', 2), ('/home/nano/Desktop/images/18082025/07/11/image_18082025_07_12_05_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/07/11/image_18082025_07_11_55_10652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ae3e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ae3e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ae3e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:12:47.147618
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/12/image_18082025_07_12_44_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/07/12/image_18082025_07_12_35_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/07/12/image_18082025_07_12_25_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/07/12/image_18082025_07_12_14_9701.jpg', 2), ('/home/nano/Desktop/images/18082025/07/11/image_18082025_07_12_05_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/07/11/image_18082025_07_11_55_10652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb13ac4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb13ac4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb13ac4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:13:02.984655
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/12/image_18082025_07_12_44_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/07/12/image_18082025_07_12_35_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/07/12/image_18082025_07_12_25_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/07/12/image_18082025_07_12_14_9701.jpg', 2), ('/home/nano/Desktop/images/18082025/07/11/image_18082025_07_12_05_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/07/11/image_18082025_07_11_55_10652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87fd6518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87fd6518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87fd6518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:13:17.223376
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/13/image_18082025_07_13_44_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/07/13/image_18082025_07_13_35_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/07/13/image_18082025_07_13_25_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/07/13/image_18082025_07_13_14_9686.jpg', 2), ('/home/nano/Desktop/images/18082025/07/12/image_18082025_07_13_05_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/07/12/image_18082025_07_12_55_10642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8fb83518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fb83518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fb83518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:13:32.244919
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/13/image_18082025_07_13_44_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/07/13/image_18082025_07_13_35_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/07/13/image_18082025_07_13_25_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/07/13/image_18082025_07_13_14_9686.jpg', 2), ('/home/nano/Desktop/images/18082025/07/12/image_18082025_07_13_05_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/07/12/image_18082025_07_12_55_10642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f920914a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f920914a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f920914a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:13:47.251629
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/13/image_18082025_07_13_44_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/07/13/image_18082025_07_13_35_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/07/13/image_18082025_07_13_25_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/07/13/image_18082025_07_13_14_9686.jpg', 2), ('/home/nano/Desktop/images/18082025/07/12/image_18082025_07_13_05_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/07/12/image_18082025_07_12_55_10642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f145518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f145518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f145518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:14:03.038525
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/13/image_18082025_07_13_44_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/07/13/image_18082025_07_13_35_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/07/13/image_18082025_07_13_25_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/07/13/image_18082025_07_13_14_9686.jpg', 2), ('/home/nano/Desktop/images/18082025/07/12/image_18082025_07_13_05_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/07/12/image_18082025_07_12_55_10642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f951ac518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f951ac518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f951ac518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:14:17.356278
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/14/image_18082025_07_14_44_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/07/14/image_18082025_07_14_35_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/07/14/image_18082025_07_14_25_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/07/14/image_18082025_07_14_14_9699.jpg', 2), ('/home/nano/Desktop/images/18082025/07/13/image_18082025_07_14_05_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/07/13/image_18082025_07_13_55_10643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fae364518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae364518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae364518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:14:32.359025
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/14/image_18082025_07_14_44_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/07/14/image_18082025_07_14_35_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/07/14/image_18082025_07_14_25_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/07/14/image_18082025_07_14_14_9699.jpg', 2), ('/home/nano/Desktop/images/18082025/07/13/image_18082025_07_14_05_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/07/13/image_18082025_07_13_55_10643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ab87518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ab87518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ab87518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:14:47.346923
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/14/image_18082025_07_14_44_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/07/14/image_18082025_07_14_35_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/07/14/image_18082025_07_14_25_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/07/14/image_18082025_07_14_14_9699.jpg', 2), ('/home/nano/Desktop/images/18082025/07/13/image_18082025_07_14_05_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/07/13/image_18082025_07_13_55_10643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ec28518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ec28518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ec28518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:15:03.104304
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/14/image_18082025_07_14_44_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/07/14/image_18082025_07_14_35_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/07/14/image_18082025_07_14_25_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/07/14/image_18082025_07_14_14_9699.jpg', 2), ('/home/nano/Desktop/images/18082025/07/13/image_18082025_07_14_05_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/07/13/image_18082025_07_13_55_10643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a670518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a670518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a670518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:15:17.467352
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/15/image_18082025_07_15_44_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/07/15/image_18082025_07_15_35_9691.jpg', 2), ('/home/nano/Desktop/images/18082025/07/15/image_18082025_07_15_25_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/07/15/image_18082025_07_15_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/07/14/image_18082025_07_15_04_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/07/14/image_18082025_07_14_55_10675.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa64c44a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa64c44a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa64c44a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:15:32.450313
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/15/image_18082025_07_15_44_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/07/15/image_18082025_07_15_35_9691.jpg', 2), ('/home/nano/Desktop/images/18082025/07/15/image_18082025_07_15_25_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/07/15/image_18082025_07_15_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/07/14/image_18082025_07_15_04_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/07/14/image_18082025_07_14_55_10675.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f807d4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f807d4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f807d4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:15:47.448223
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/15/image_18082025_07_15_44_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/07/15/image_18082025_07_15_35_9691.jpg', 2), ('/home/nano/Desktop/images/18082025/07/15/image_18082025_07_15_25_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/07/15/image_18082025_07_15_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/07/14/image_18082025_07_15_04_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/07/14/image_18082025_07_14_55_10675.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ef79518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ef79518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ef79518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:16:03.065323
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/15/image_18082025_07_15_44_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/07/15/image_18082025_07_15_35_9691.jpg', 2), ('/home/nano/Desktop/images/18082025/07/15/image_18082025_07_15_25_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/07/15/image_18082025_07_15_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/07/14/image_18082025_07_15_04_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/07/14/image_18082025_07_14_55_10675.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa677d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa677d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa677d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:16:17.575249
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/16/image_18082025_07_16_45_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/07/16/image_18082025_07_16_34_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/07/16/image_18082025_07_16_25_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/07/16/image_18082025_07_16_14_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/07/15/image_18082025_07_16_04_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/07/15/image_18082025_07_15_55_10646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76b65518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76b65518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76b65518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:16:32.694026
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/16/image_18082025_07_16_45_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/07/16/image_18082025_07_16_34_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/07/16/image_18082025_07_16_25_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/07/16/image_18082025_07_16_14_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/07/15/image_18082025_07_16_04_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/07/15/image_18082025_07_15_55_10646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa3e67518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3e67518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3e67518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:16:47.550304
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/16/image_18082025_07_16_45_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/07/16/image_18082025_07_16_34_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/07/16/image_18082025_07_16_25_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/07/16/image_18082025_07_16_14_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/07/15/image_18082025_07_16_04_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/07/15/image_18082025_07_15_55_10646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faddf9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faddf9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faddf9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:17:03.340216
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/16/image_18082025_07_16_45_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/07/16/image_18082025_07_16_34_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/07/16/image_18082025_07_16_25_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/07/16/image_18082025_07_16_14_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/07/15/image_18082025_07_16_04_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/07/15/image_18082025_07_15_55_10646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f904134e0>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f904134e0>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f904134e0>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:17:17.648736
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/17/image_18082025_07_17_45_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/07/17/image_18082025_07_17_34_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/07/17/image_18082025_07_17_25_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/07/17/image_18082025_07_17_15_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/07/16/image_18082025_07_17_04_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/07/16/image_18082025_07_16_55_9609.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ff04518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ff04518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ff04518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:17:32.664962
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/17/image_18082025_07_17_45_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/07/17/image_18082025_07_17_34_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/07/17/image_18082025_07_17_25_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/07/17/image_18082025_07_17_15_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/07/16/image_18082025_07_17_04_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/07/16/image_18082025_07_16_55_9609.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f932550>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f932550>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f932550>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:17:47.679921
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/17/image_18082025_07_17_45_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/07/17/image_18082025_07_17_34_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/07/17/image_18082025_07_17_25_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/07/17/image_18082025_07_17_15_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/07/16/image_18082025_07_17_04_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/07/16/image_18082025_07_16_55_9609.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5d06518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5d06518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5d06518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:18:02.185191
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/17/image_18082025_07_17_45_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/07/17/image_18082025_07_17_34_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/07/17/image_18082025_07_17_25_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/07/17/image_18082025_07_17_15_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/07/16/image_18082025_07_17_04_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/07/16/image_18082025_07_16_55_9609.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91b2b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91b2b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91b2b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:18:16.776287
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/18/image_18082025_07_18_45_10678.jpg', 2), ('/home/nano/Desktop/images/18082025/07/18/image_18082025_07_18_34_9685.jpg', 2), ('/home/nano/Desktop/images/18082025/07/18/image_18082025_07_18_25_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/07/18/image_18082025_07_18_15_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/07/17/image_18082025_07_18_04_9692.jpg', 2), ('/home/nano/Desktop/images/18082025/07/17/image_18082025_07_17_55_9675.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79a0e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79a0e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79a0e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:18:31.771716
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/18/image_18082025_07_18_45_10678.jpg', 2), ('/home/nano/Desktop/images/18082025/07/18/image_18082025_07_18_34_9685.jpg', 2), ('/home/nano/Desktop/images/18082025/07/18/image_18082025_07_18_25_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/07/18/image_18082025_07_18_15_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/07/17/image_18082025_07_18_04_9692.jpg', 2), ('/home/nano/Desktop/images/18082025/07/17/image_18082025_07_17_55_9675.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ad8f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ad8f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ad8f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:18:46.755861
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/18/image_18082025_07_18_45_10678.jpg', 2), ('/home/nano/Desktop/images/18082025/07/18/image_18082025_07_18_34_9685.jpg', 2), ('/home/nano/Desktop/images/18082025/07/18/image_18082025_07_18_25_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/07/18/image_18082025_07_18_15_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/07/17/image_18082025_07_18_04_9692.jpg', 2), ('/home/nano/Desktop/images/18082025/07/17/image_18082025_07_17_55_9675.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97f82518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97f82518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97f82518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:19:02.650213
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/18/image_18082025_07_18_45_10678.jpg', 2), ('/home/nano/Desktop/images/18082025/07/18/image_18082025_07_18_34_9685.jpg', 2), ('/home/nano/Desktop/images/18082025/07/18/image_18082025_07_18_25_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/07/18/image_18082025_07_18_15_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/07/17/image_18082025_07_18_04_9692.jpg', 2), ('/home/nano/Desktop/images/18082025/07/17/image_18082025_07_17_55_9675.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87b0a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87b0a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87b0a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:19:16.855921
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/19/image_18082025_07_19_45_10657.jpg', 2), ('/home/nano/Desktop/images/18082025/07/19/image_18082025_07_19_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/07/19/image_18082025_07_19_24_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/07/19/image_18082025_07_19_15_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/07/18/image_18082025_07_19_04_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/07/18/image_18082025_07_18_55_9698.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ea12518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ea12518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ea12518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:19:31.907184
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/19/image_18082025_07_19_45_10657.jpg', 2), ('/home/nano/Desktop/images/18082025/07/19/image_18082025_07_19_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/07/19/image_18082025_07_19_24_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/07/19/image_18082025_07_19_15_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/07/18/image_18082025_07_19_04_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/07/18/image_18082025_07_18_55_9698.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4026518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4026518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4026518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:19:46.857180
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/19/image_18082025_07_19_45_10657.jpg', 2), ('/home/nano/Desktop/images/18082025/07/19/image_18082025_07_19_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/07/19/image_18082025_07_19_24_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/07/19/image_18082025_07_19_15_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/07/18/image_18082025_07_19_04_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/07/18/image_18082025_07_18_55_9698.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b102518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b102518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b102518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:20:02.466710
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/19/image_18082025_07_19_45_10657.jpg', 2), ('/home/nano/Desktop/images/18082025/07/19/image_18082025_07_19_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/07/19/image_18082025_07_19_24_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/07/19/image_18082025_07_19_15_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/07/18/image_18082025_07_19_04_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/07/18/image_18082025_07_18_55_9698.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83f3c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83f3c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83f3c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:20:16.961843
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/20/image_18082025_07_20_45_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/07/20/image_18082025_07_20_34_9674.jpg', 2), ('/home/nano/Desktop/images/18082025/07/20/image_18082025_07_20_24_9673.jpg', 2), ('/home/nano/Desktop/images/18082025/07/20/image_18082025_07_20_15_10678.jpg', 2), ('/home/nano/Desktop/images/18082025/07/19/image_18082025_07_20_04_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/07/19/image_18082025_07_19_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f938704a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f938704a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f938704a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:20:31.961361
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/20/image_18082025_07_20_45_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/07/20/image_18082025_07_20_34_9674.jpg', 2), ('/home/nano/Desktop/images/18082025/07/20/image_18082025_07_20_24_9673.jpg', 2), ('/home/nano/Desktop/images/18082025/07/20/image_18082025_07_20_15_10678.jpg', 2), ('/home/nano/Desktop/images/18082025/07/19/image_18082025_07_20_04_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/07/19/image_18082025_07_19_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7450518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7450518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7450518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:20:46.972938
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/20/image_18082025_07_20_45_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/07/20/image_18082025_07_20_34_9674.jpg', 2), ('/home/nano/Desktop/images/18082025/07/20/image_18082025_07_20_24_9673.jpg', 2), ('/home/nano/Desktop/images/18082025/07/20/image_18082025_07_20_15_10678.jpg', 2), ('/home/nano/Desktop/images/18082025/07/19/image_18082025_07_20_04_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/07/19/image_18082025_07_19_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f92c8c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92c8c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92c8c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:21:02.758949
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/20/image_18082025_07_20_45_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/07/20/image_18082025_07_20_34_9674.jpg', 2), ('/home/nano/Desktop/images/18082025/07/20/image_18082025_07_20_24_9673.jpg', 2), ('/home/nano/Desktop/images/18082025/07/20/image_18082025_07_20_15_10678.jpg', 2), ('/home/nano/Desktop/images/18082025/07/19/image_18082025_07_20_04_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/07/19/image_18082025_07_19_54_9643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9dc96518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9dc96518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9dc96518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:21:17.067443
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/21/image_18082025_07_21_45_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/07/21/image_18082025_07_21_35_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/07/21/image_18082025_07_21_24_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/07/21/image_18082025_07_21_15_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/07/20/image_18082025_07_21_04_9678.jpg', 2), ('/home/nano/Desktop/images/18082025/07/20/image_18082025_07_20_54_9628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4430518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4430518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4430518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:21:32.098288
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/21/image_18082025_07_21_45_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/07/21/image_18082025_07_21_35_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/07/21/image_18082025_07_21_24_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/07/21/image_18082025_07_21_15_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/07/20/image_18082025_07_21_04_9678.jpg', 2), ('/home/nano/Desktop/images/18082025/07/20/image_18082025_07_20_54_9628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90fe7518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90fe7518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90fe7518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:21:47.094491
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/21/image_18082025_07_21_45_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/07/21/image_18082025_07_21_35_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/07/21/image_18082025_07_21_24_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/07/21/image_18082025_07_21_15_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/07/20/image_18082025_07_21_04_9678.jpg', 2), ('/home/nano/Desktop/images/18082025/07/20/image_18082025_07_20_54_9628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa3ad7518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3ad7518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3ad7518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:22:02.608212
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/21/image_18082025_07_21_45_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/07/21/image_18082025_07_21_35_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/07/21/image_18082025_07_21_24_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/07/21/image_18082025_07_21_15_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/07/20/image_18082025_07_21_04_9678.jpg', 2), ('/home/nano/Desktop/images/18082025/07/20/image_18082025_07_20_54_9628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa9c02518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9c02518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9c02518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:22:17.162985
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/22/image_18082025_07_22_44_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/07/22/image_18082025_07_22_35_10615.jpg', 2), ('/home/nano/Desktop/images/18082025/07/22/image_18082025_07_22_24_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/07/22/image_18082025_07_22_15_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/07/21/image_18082025_07_22_05_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/07/21/image_18082025_07_21_54_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a6484a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a6484a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a6484a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:22:32.177919
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/22/image_18082025_07_22_44_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/07/22/image_18082025_07_22_35_10615.jpg', 2), ('/home/nano/Desktop/images/18082025/07/22/image_18082025_07_22_24_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/07/22/image_18082025_07_22_15_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/07/21/image_18082025_07_22_05_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/07/21/image_18082025_07_21_54_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f791d9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f791d9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f791d9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:22:47.161522
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/22/image_18082025_07_22_44_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/07/22/image_18082025_07_22_35_10615.jpg', 2), ('/home/nano/Desktop/images/18082025/07/22/image_18082025_07_22_24_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/07/22/image_18082025_07_22_15_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/07/21/image_18082025_07_22_05_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/07/21/image_18082025_07_21_54_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1fd5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1fd5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1fd5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:23:02.969983
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/22/image_18082025_07_22_44_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/07/22/image_18082025_07_22_35_10615.jpg', 2), ('/home/nano/Desktop/images/18082025/07/22/image_18082025_07_22_24_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/07/22/image_18082025_07_22_15_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/07/21/image_18082025_07_22_05_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/07/21/image_18082025_07_21_54_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5c39518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5c39518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5c39518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:23:17.283381
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/23/image_18082025_07_23_44_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/07/23/image_18082025_07_23_35_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/07/23/image_18082025_07_23_25_10620.jpg', 2), ('/home/nano/Desktop/images/18082025/07/23/image_18082025_07_23_14_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/07/22/image_18082025_07_23_05_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/07/22/image_18082025_07_22_54_9611.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96712518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96712518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96712518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:23:32.257103
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/23/image_18082025_07_23_44_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/07/23/image_18082025_07_23_35_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/07/23/image_18082025_07_23_25_10620.jpg', 2), ('/home/nano/Desktop/images/18082025/07/23/image_18082025_07_23_14_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/07/22/image_18082025_07_23_05_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/07/22/image_18082025_07_22_54_9611.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5410518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5410518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5410518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:23:47.289969
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/23/image_18082025_07_23_44_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/07/23/image_18082025_07_23_35_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/07/23/image_18082025_07_23_25_10620.jpg', 2), ('/home/nano/Desktop/images/18082025/07/23/image_18082025_07_23_14_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/07/22/image_18082025_07_23_05_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/07/22/image_18082025_07_22_54_9611.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4036518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4036518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4036518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:24:03.103690
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/23/image_18082025_07_23_44_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/07/23/image_18082025_07_23_35_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/07/23/image_18082025_07_23_25_10620.jpg', 2), ('/home/nano/Desktop/images/18082025/07/23/image_18082025_07_23_14_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/07/22/image_18082025_07_23_05_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/07/22/image_18082025_07_22_54_9611.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f341550>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f341550>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f341550>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:24:17.387816
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/24/image_18082025_07_24_44_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/07/24/image_18082025_07_24_34_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/07/24/image_18082025_07_24_25_10657.jpg', 2), ('/home/nano/Desktop/images/18082025/07/24/image_18082025_07_24_14_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/07/23/image_18082025_07_24_05_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/07/23/image_18082025_07_23_55_10631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97669518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97669518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97669518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:24:32.399805
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/24/image_18082025_07_24_44_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/07/24/image_18082025_07_24_34_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/07/24/image_18082025_07_24_25_10657.jpg', 2), ('/home/nano/Desktop/images/18082025/07/24/image_18082025_07_24_14_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/07/23/image_18082025_07_24_05_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/07/23/image_18082025_07_23_55_10631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb1a7a4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1a7a4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1a7a4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:24:47.389178
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/24/image_18082025_07_24_44_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/07/24/image_18082025_07_24_34_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/07/24/image_18082025_07_24_25_10657.jpg', 2), ('/home/nano/Desktop/images/18082025/07/24/image_18082025_07_24_14_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/07/23/image_18082025_07_24_05_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/07/23/image_18082025_07_23_55_10631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fabfba518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fabfba518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fabfba518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:25:03.226959
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/24/image_18082025_07_24_44_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/07/24/image_18082025_07_24_34_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/07/24/image_18082025_07_24_25_10657.jpg', 2), ('/home/nano/Desktop/images/18082025/07/24/image_18082025_07_24_14_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/07/23/image_18082025_07_24_05_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/07/23/image_18082025_07_23_55_10631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f837bb518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f837bb518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f837bb518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:25:17.513286
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/25/image_18082025_07_25_45_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/07/25/image_18082025_07_25_34_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/07/25/image_18082025_07_25_25_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/07/25/image_18082025_07_25_15_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/07/24/image_18082025_07_25_04_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/07/24/image_18082025_07_24_55_10625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2727518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2727518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2727518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:25:32.477942
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/25/image_18082025_07_25_45_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/07/25/image_18082025_07_25_34_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/07/25/image_18082025_07_25_25_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/07/25/image_18082025_07_25_15_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/07/24/image_18082025_07_25_04_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/07/24/image_18082025_07_24_55_10625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d64f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d64f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d64f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:25:47.474914
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/25/image_18082025_07_25_45_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/07/25/image_18082025_07_25_34_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/07/25/image_18082025_07_25_25_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/07/25/image_18082025_07_25_15_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/07/24/image_18082025_07_25_04_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/07/24/image_18082025_07_24_55_10625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa76b6518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa76b6518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa76b6518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:26:02.922633
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/25/image_18082025_07_25_45_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/07/25/image_18082025_07_25_34_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/07/25/image_18082025_07_25_25_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/07/25/image_18082025_07_25_15_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/07/24/image_18082025_07_25_04_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/07/24/image_18082025_07_24_55_10625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a530518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a530518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a530518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:26:17.571473
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/26/image_18082025_07_26_45_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/07/26/image_18082025_07_26_34_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/07/26/image_18082025_07_26_24_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/07/26/image_18082025_07_26_15_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/07/25/image_18082025_07_26_04_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/07/25/image_18082025_07_25_55_9615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89839518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89839518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89839518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:26:32.576629
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/26/image_18082025_07_26_45_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/07/26/image_18082025_07_26_34_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/07/26/image_18082025_07_26_24_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/07/26/image_18082025_07_26_15_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/07/25/image_18082025_07_26_04_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/07/25/image_18082025_07_25_55_9615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa9b40518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9b40518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9b40518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:26:47.586399
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/26/image_18082025_07_26_45_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/07/26/image_18082025_07_26_34_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/07/26/image_18082025_07_26_24_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/07/26/image_18082025_07_26_15_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/07/25/image_18082025_07_26_04_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/07/25/image_18082025_07_25_55_9615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7dabf518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7dabf518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7dabf518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:27:03.346213
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/26/image_18082025_07_26_45_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/07/26/image_18082025_07_26_34_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/07/26/image_18082025_07_26_24_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/07/26/image_18082025_07_26_15_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/07/25/image_18082025_07_26_04_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/07/25/image_18082025_07_25_55_9615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7facce8518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7facce8518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7facce8518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:27:17.680496
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/27/image_18082025_07_27_45_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/07/27/image_18082025_07_27_35_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/07/27/image_18082025_07_27_24_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/07/27/image_18082025_07_27_15_9697.jpg', 2), ('/home/nano/Desktop/images/18082025/07/26/image_18082025_07_27_05_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/07/26/image_18082025_07_26_54_9653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93511518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93511518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93511518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:27:32.687039
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/27/image_18082025_07_27_45_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/07/27/image_18082025_07_27_35_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/07/27/image_18082025_07_27_24_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/07/27/image_18082025_07_27_15_9697.jpg', 2), ('/home/nano/Desktop/images/18082025/07/26/image_18082025_07_27_05_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/07/26/image_18082025_07_26_54_9653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8712b4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8712b4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8712b4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:27:47.709373
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/27/image_18082025_07_27_45_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/07/27/image_18082025_07_27_35_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/07/27/image_18082025_07_27_24_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/07/27/image_18082025_07_27_15_9697.jpg', 2), ('/home/nano/Desktop/images/18082025/07/26/image_18082025_07_27_05_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/07/26/image_18082025_07_26_54_9653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95109518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95109518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95109518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:28:02.364843
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/27/image_18082025_07_27_45_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/07/27/image_18082025_07_27_35_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/07/27/image_18082025_07_27_24_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/07/27/image_18082025_07_27_15_9697.jpg', 2), ('/home/nano/Desktop/images/18082025/07/26/image_18082025_07_27_05_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/07/26/image_18082025_07_26_54_9653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0890518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0890518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0890518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:28:16.816498
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/28/image_18082025_07_28_44_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/07/28/image_18082025_07_28_35_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/07/28/image_18082025_07_28_24_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/07/28/image_18082025_07_28_15_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/07/27/image_18082025_07_28_05_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/07/27/image_18082025_07_27_54_9627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81b65518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81b65518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81b65518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:28:31.788333
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/28/image_18082025_07_28_44_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/07/28/image_18082025_07_28_35_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/07/28/image_18082025_07_28_24_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/07/28/image_18082025_07_28_15_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/07/27/image_18082025_07_28_05_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/07/27/image_18082025_07_27_54_9627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f8f5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f8f5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f8f5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:28:46.789639
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/28/image_18082025_07_28_44_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/07/28/image_18082025_07_28_35_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/07/28/image_18082025_07_28_24_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/07/28/image_18082025_07_28_15_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/07/27/image_18082025_07_28_05_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/07/27/image_18082025_07_27_54_9627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7dfee518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7dfee518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7dfee518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:29:02.713316
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/28/image_18082025_07_28_44_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/07/28/image_18082025_07_28_35_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/07/28/image_18082025_07_28_24_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/07/28/image_18082025_07_28_15_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/07/27/image_18082025_07_28_05_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/07/27/image_18082025_07_27_54_9627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e705518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e705518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e705518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:29:16.911123
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/29/image_18082025_07_29_44_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/07/29/image_18082025_07_29_35_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/07/29/image_18082025_07_29_25_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/07/29/image_18082025_07_29_14_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/07/28/image_18082025_07_29_05_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/07/28/image_18082025_07_28_55_10637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f92e99518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92e99518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92e99518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:29:31.954270
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/29/image_18082025_07_29_44_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/07/29/image_18082025_07_29_35_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/07/29/image_18082025_07_29_25_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/07/29/image_18082025_07_29_14_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/07/28/image_18082025_07_29_05_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/07/28/image_18082025_07_28_55_10637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faec7f4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faec7f4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faec7f4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:29:46.946544
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/29/image_18082025_07_29_44_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/07/29/image_18082025_07_29_35_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/07/29/image_18082025_07_29_25_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/07/29/image_18082025_07_29_14_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/07/28/image_18082025_07_29_05_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/07/28/image_18082025_07_28_55_10637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa42bb518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa42bb518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa42bb518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:30:02.625861
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/29/image_18082025_07_29_44_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/07/29/image_18082025_07_29_35_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/07/29/image_18082025_07_29_25_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/07/29/image_18082025_07_29_14_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/07/28/image_18082025_07_29_05_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/07/28/image_18082025_07_28_55_10637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa67194a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa67194a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa67194a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:30:17.033270
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/30/image_18082025_07_30_44_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/07/30/image_18082025_07_30_35_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/07/30/image_18082025_07_30_25_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/07/30/image_18082025_07_30_14_9678.jpg', 2), ('/home/nano/Desktop/images/18082025/07/29/image_18082025_07_30_05_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/07/29/image_18082025_07_29_55_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d4564a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d4564a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d4564a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:30:32.030980
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/30/image_18082025_07_30_44_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/07/30/image_18082025_07_30_35_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/07/30/image_18082025_07_30_25_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/07/30/image_18082025_07_30_14_9678.jpg', 2), ('/home/nano/Desktop/images/18082025/07/29/image_18082025_07_30_05_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/07/29/image_18082025_07_29_55_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4ca4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4ca4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4ca4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:30:47.029510
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/30/image_18082025_07_30_44_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/07/30/image_18082025_07_30_35_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/07/30/image_18082025_07_30_25_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/07/30/image_18082025_07_30_14_9678.jpg', 2), ('/home/nano/Desktop/images/18082025/07/29/image_18082025_07_30_05_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/07/29/image_18082025_07_29_55_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ea58518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ea58518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ea58518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:31:02.940407
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/30/image_18082025_07_30_44_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/07/30/image_18082025_07_30_35_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/07/30/image_18082025_07_30_25_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/07/30/image_18082025_07_30_14_9678.jpg', 2), ('/home/nano/Desktop/images/18082025/07/29/image_18082025_07_30_05_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/07/29/image_18082025_07_29_55_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa09c1518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa09c1518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa09c1518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:31:17.155483
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/31/image_18082025_07_31_45_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/07/31/image_18082025_07_31_34_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/07/31/image_18082025_07_31_25_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/07/31/image_18082025_07_31_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/07/30/image_18082025_07_31_04_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/07/30/image_18082025_07_30_55_10642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac9f5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac9f5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac9f5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:31:32.112750
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/31/image_18082025_07_31_45_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/07/31/image_18082025_07_31_34_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/07/31/image_18082025_07_31_25_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/07/31/image_18082025_07_31_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/07/30/image_18082025_07_31_04_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/07/30/image_18082025_07_30_55_10642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ef5a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ef5a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ef5a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:31:47.208780
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/31/image_18082025_07_31_45_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/07/31/image_18082025_07_31_34_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/07/31/image_18082025_07_31_25_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/07/31/image_18082025_07_31_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/07/30/image_18082025_07_31_04_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/07/30/image_18082025_07_30_55_10642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad2fe518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad2fe518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad2fe518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:32:02.890374
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/31/image_18082025_07_31_45_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/07/31/image_18082025_07_31_34_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/07/31/image_18082025_07_31_25_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/07/31/image_18082025_07_31_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/07/30/image_18082025_07_31_04_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/07/30/image_18082025_07_30_55_10642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa17db518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa17db518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa17db518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:32:17.321652
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/32/image_18082025_07_32_45_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/07/32/image_18082025_07_32_34_9689.jpg', 2), ('/home/nano/Desktop/images/18082025/07/32/image_18082025_07_32_25_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/07/32/image_18082025_07_32_15_10681.jpg', 2), ('/home/nano/Desktop/images/18082025/07/31/image_18082025_07_32_04_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/07/31/image_18082025_07_31_55_9616.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7cd7518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7cd7518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7cd7518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:32:32.350425
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/32/image_18082025_07_32_45_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/07/32/image_18082025_07_32_34_9689.jpg', 2), ('/home/nano/Desktop/images/18082025/07/32/image_18082025_07_32_25_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/07/32/image_18082025_07_32_15_10681.jpg', 2), ('/home/nano/Desktop/images/18082025/07/31/image_18082025_07_32_04_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/07/31/image_18082025_07_31_55_9616.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2860518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2860518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2860518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:32:47.330485
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/32/image_18082025_07_32_45_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/07/32/image_18082025_07_32_34_9689.jpg', 2), ('/home/nano/Desktop/images/18082025/07/32/image_18082025_07_32_25_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/07/32/image_18082025_07_32_15_10681.jpg', 2), ('/home/nano/Desktop/images/18082025/07/31/image_18082025_07_32_04_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/07/31/image_18082025_07_31_55_9616.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7830f4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7830f4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7830f4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:33:03.192072
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/33/image_18082025_07_33_24_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/07/32/image_18082025_07_32_45_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/07/32/image_18082025_07_32_34_9689.jpg', 2), ('/home/nano/Desktop/images/18082025/07/32/image_18082025_07_32_25_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/07/32/image_18082025_07_32_15_10681.jpg', 2), ('/home/nano/Desktop/images/18082025/07/31/image_18082025_07_32_04_9633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb30634a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb30634a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb30634a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:33:17.417982
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/33/image_18082025_07_33_45_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/07/33/image_18082025_07_33_35_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/07/33/image_18082025_07_33_24_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/07/33/image_18082025_07_33_15_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/07/32/image_18082025_07_33_04_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/07/32/image_18082025_07_32_54_9614.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84fc54a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84fc54a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84fc54a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:33:32.421658
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/33/image_18082025_07_33_45_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/07/33/image_18082025_07_33_35_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/07/33/image_18082025_07_33_24_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/07/33/image_18082025_07_33_15_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/07/32/image_18082025_07_33_04_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/07/32/image_18082025_07_32_54_9614.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95e7a4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95e7a4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95e7a4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:33:47.390085
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/33/image_18082025_07_33_45_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/07/33/image_18082025_07_33_35_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/07/33/image_18082025_07_33_24_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/07/33/image_18082025_07_33_15_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/07/32/image_18082025_07_33_04_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/07/32/image_18082025_07_32_54_9614.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa3ab6518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3ab6518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3ab6518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:34:03.266719
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/33/image_18082025_07_33_45_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/07/33/image_18082025_07_33_35_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/07/33/image_18082025_07_33_24_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/07/33/image_18082025_07_33_15_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/07/32/image_18082025_07_33_04_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/07/32/image_18082025_07_32_54_9614.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac127518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac127518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac127518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:34:17.485909
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/34/image_18082025_07_34_44_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/07/34/image_18082025_07_34_35_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/07/34/image_18082025_07_34_24_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/07/34/image_18082025_07_34_15_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/07/33/image_18082025_07_34_05_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/07/33/image_18082025_07_33_54_9615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7723518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7723518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7723518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:34:32.506985
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/34/image_18082025_07_34_44_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/07/34/image_18082025_07_34_35_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/07/34/image_18082025_07_34_24_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/07/34/image_18082025_07_34_15_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/07/33/image_18082025_07_34_05_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/07/33/image_18082025_07_33_54_9615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8389a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8389a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8389a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:34:47.489528
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/34/image_18082025_07_34_44_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/07/34/image_18082025_07_34_35_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/07/34/image_18082025_07_34_24_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/07/34/image_18082025_07_34_15_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/07/33/image_18082025_07_34_05_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/07/33/image_18082025_07_33_54_9615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e25e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e25e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e25e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:35:03.377846
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/34/image_18082025_07_34_44_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/07/34/image_18082025_07_34_35_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/07/34/image_18082025_07_34_24_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/07/34/image_18082025_07_34_15_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/07/33/image_18082025_07_34_05_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/07/33/image_18082025_07_33_54_9615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb184f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb184f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb184f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:35:17.591248
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/35/image_18082025_07_35_44_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/07/35/image_18082025_07_35_35_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/07/35/image_18082025_07_35_25_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/07/35/image_18082025_07_35_14_9678.jpg', 2), ('/home/nano/Desktop/images/18082025/07/34/image_18082025_07_35_05_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/07/34/image_18082025_07_34_55_10640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ce93518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ce93518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ce93518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:35:32.582363
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/35/image_18082025_07_35_44_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/07/35/image_18082025_07_35_35_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/07/35/image_18082025_07_35_25_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/07/35/image_18082025_07_35_14_9678.jpg', 2), ('/home/nano/Desktop/images/18082025/07/34/image_18082025_07_35_05_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/07/34/image_18082025_07_34_55_10640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb20e5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb20e5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb20e5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:35:47.609296
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/35/image_18082025_07_35_44_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/07/35/image_18082025_07_35_35_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/07/35/image_18082025_07_35_25_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/07/35/image_18082025_07_35_14_9678.jpg', 2), ('/home/nano/Desktop/images/18082025/07/34/image_18082025_07_35_05_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/07/34/image_18082025_07_34_55_10640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa549b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa549b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa549b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:36:03.289087
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/35/image_18082025_07_35_44_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/07/35/image_18082025_07_35_35_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/07/35/image_18082025_07_35_25_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/07/35/image_18082025_07_35_14_9678.jpg', 2), ('/home/nano/Desktop/images/18082025/07/34/image_18082025_07_35_05_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/07/34/image_18082025_07_34_55_10640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac70d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac70d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac70d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:36:17.721968
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/36/image_18082025_07_36_44_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/07/36/image_18082025_07_36_34_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/07/36/image_18082025_07_36_25_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/07/36/image_18082025_07_36_14_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/07/35/image_18082025_07_36_05_9690.jpg', 2), ('/home/nano/Desktop/images/18082025/07/35/image_18082025_07_35_55_10620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f3494a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f3494a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f3494a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:36:32.699613
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/36/image_18082025_07_36_44_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/07/36/image_18082025_07_36_34_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/07/36/image_18082025_07_36_25_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/07/36/image_18082025_07_36_14_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/07/35/image_18082025_07_36_05_9690.jpg', 2), ('/home/nano/Desktop/images/18082025/07/35/image_18082025_07_35_55_10620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3643518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3643518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3643518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:36:47.711389
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/36/image_18082025_07_36_44_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/07/36/image_18082025_07_36_34_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/07/36/image_18082025_07_36_25_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/07/36/image_18082025_07_36_14_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/07/35/image_18082025_07_36_05_9690.jpg', 2), ('/home/nano/Desktop/images/18082025/07/35/image_18082025_07_35_55_10620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94c68518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94c68518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94c68518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:37:02.519775
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/36/image_18082025_07_36_44_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/07/36/image_18082025_07_36_34_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/07/36/image_18082025_07_36_25_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/07/36/image_18082025_07_36_14_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/07/35/image_18082025_07_36_05_9690.jpg', 2), ('/home/nano/Desktop/images/18082025/07/35/image_18082025_07_35_55_10620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f80dad518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80dad518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80dad518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:37:16.795440
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/37/image_18082025_07_37_45_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/07/37/image_18082025_07_37_34_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/07/37/image_18082025_07_37_25_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/07/37/image_18082025_07_37_14_9685.jpg', 2), ('/home/nano/Desktop/images/18082025/07/36/image_18082025_07_37_04_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/07/36/image_18082025_07_36_55_10631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb19bd518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb19bd518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb19bd518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:37:31.809046
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/37/image_18082025_07_37_45_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/07/37/image_18082025_07_37_34_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/07/37/image_18082025_07_37_25_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/07/37/image_18082025_07_37_14_9685.jpg', 2), ('/home/nano/Desktop/images/18082025/07/36/image_18082025_07_37_04_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/07/36/image_18082025_07_36_55_10631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85053518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85053518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85053518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:37:46.822638
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/37/image_18082025_07_37_45_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/07/37/image_18082025_07_37_34_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/07/37/image_18082025_07_37_25_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/07/37/image_18082025_07_37_14_9685.jpg', 2), ('/home/nano/Desktop/images/18082025/07/36/image_18082025_07_37_04_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/07/36/image_18082025_07_36_55_10631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a17a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a17a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a17a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:38:02.411004
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/37/image_18082025_07_37_45_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/07/37/image_18082025_07_37_34_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/07/37/image_18082025_07_37_25_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/07/37/image_18082025_07_37_14_9685.jpg', 2), ('/home/nano/Desktop/images/18082025/07/36/image_18082025_07_37_04_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/07/36/image_18082025_07_36_55_10631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f80f5e4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80f5e4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80f5e4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:38:16.929187
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/38/image_18082025_07_38_45_10689.jpg', 2), ('/home/nano/Desktop/images/18082025/07/38/image_18082025_07_38_34_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/07/38/image_18082025_07_38_25_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/07/38/image_18082025_07_38_15_10684.jpg', 2), ('/home/nano/Desktop/images/18082025/07/37/image_18082025_07_38_04_9673.jpg', 2), ('/home/nano/Desktop/images/18082025/07/37/image_18082025_07_37_55_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78cca550>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78cca550>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78cca550>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:38:31.920267
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/38/image_18082025_07_38_45_10689.jpg', 2), ('/home/nano/Desktop/images/18082025/07/38/image_18082025_07_38_34_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/07/38/image_18082025_07_38_25_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/07/38/image_18082025_07_38_15_10684.jpg', 2), ('/home/nano/Desktop/images/18082025/07/37/image_18082025_07_38_04_9673.jpg', 2), ('/home/nano/Desktop/images/18082025/07/37/image_18082025_07_37_55_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9305c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9305c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9305c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:38:46.930082
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/38/image_18082025_07_38_45_10689.jpg', 2), ('/home/nano/Desktop/images/18082025/07/38/image_18082025_07_38_34_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/07/38/image_18082025_07_38_25_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/07/38/image_18082025_07_38_15_10684.jpg', 2), ('/home/nano/Desktop/images/18082025/07/37/image_18082025_07_38_04_9673.jpg', 2), ('/home/nano/Desktop/images/18082025/07/37/image_18082025_07_37_55_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8a0b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8a0b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8a0b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:39:03.065243
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/38/image_18082025_07_38_45_10689.jpg', 2), ('/home/nano/Desktop/images/18082025/07/38/image_18082025_07_38_34_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/07/38/image_18082025_07_38_25_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/07/38/image_18082025_07_38_15_10684.jpg', 2), ('/home/nano/Desktop/images/18082025/07/37/image_18082025_07_38_04_9673.jpg', 2), ('/home/nano/Desktop/images/18082025/07/37/image_18082025_07_37_55_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f867f7518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f867f7518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f867f7518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:39:17.018198
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/39/image_18082025_07_39_45_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/07/39/image_18082025_07_39_34_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/07/39/image_18082025_07_39_24_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/07/39/image_18082025_07_39_15_10670.jpg', 2), ('/home/nano/Desktop/images/18082025/07/38/image_18082025_07_39_04_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/07/38/image_18082025_07_38_55_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faac844a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faac844a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faac844a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:39:32.004267
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/39/image_18082025_07_39_45_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/07/39/image_18082025_07_39_34_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/07/39/image_18082025_07_39_24_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/07/39/image_18082025_07_39_15_10670.jpg', 2), ('/home/nano/Desktop/images/18082025/07/38/image_18082025_07_39_04_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/07/38/image_18082025_07_38_55_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f29a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f29a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f29a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:39:46.998161
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/39/image_18082025_07_39_45_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/07/39/image_18082025_07_39_34_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/07/39/image_18082025_07_39_24_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/07/39/image_18082025_07_39_15_10670.jpg', 2), ('/home/nano/Desktop/images/18082025/07/38/image_18082025_07_39_04_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/07/38/image_18082025_07_38_55_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86db74e0>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86db74e0>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86db74e0>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:40:02.530501
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/39/image_18082025_07_39_45_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/07/39/image_18082025_07_39_34_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/07/39/image_18082025_07_39_24_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/07/39/image_18082025_07_39_15_10670.jpg', 2), ('/home/nano/Desktop/images/18082025/07/38/image_18082025_07_39_04_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/07/38/image_18082025_07_38_55_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5e0f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5e0f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5e0f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:40:17.085938
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/40/image_18082025_07_40_45_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/07/40/image_18082025_07_40_35_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/07/40/image_18082025_07_40_24_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/07/40/image_18082025_07_40_15_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/07/39/image_18082025_07_40_05_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/07/39/image_18082025_07_39_54_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7df41518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7df41518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7df41518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:40:32.094702
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/40/image_18082025_07_40_45_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/07/40/image_18082025_07_40_35_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/07/40/image_18082025_07_40_24_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/07/40/image_18082025_07_40_15_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/07/39/image_18082025_07_40_05_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/07/39/image_18082025_07_39_54_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb154a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb154a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb154a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:40:47.084972
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/40/image_18082025_07_40_45_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/07/40/image_18082025_07_40_35_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/07/40/image_18082025_07_40_24_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/07/40/image_18082025_07_40_15_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/07/39/image_18082025_07_40_05_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/07/39/image_18082025_07_39_54_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b3d14a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b3d14a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b3d14a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:41:02.974887
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/40/image_18082025_07_40_45_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/07/40/image_18082025_07_40_35_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/07/40/image_18082025_07_40_24_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/07/40/image_18082025_07_40_15_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/07/39/image_18082025_07_40_05_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/07/39/image_18082025_07_39_54_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f992cc518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f992cc518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f992cc518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:41:17.200841
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/41/image_18082025_07_41_44_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/07/41/image_18082025_07_41_35_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/07/41/image_18082025_07_41_24_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/07/41/image_18082025_07_41_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/07/40/image_18082025_07_41_05_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/07/40/image_18082025_07_40_54_9614.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0fd0518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0fd0518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0fd0518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:41:32.166350
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/41/image_18082025_07_41_44_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/07/41/image_18082025_07_41_35_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/07/41/image_18082025_07_41_24_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/07/41/image_18082025_07_41_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/07/40/image_18082025_07_41_05_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/07/40/image_18082025_07_40_54_9614.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ad61518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ad61518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ad61518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:41:47.191152
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/41/image_18082025_07_41_44_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/07/41/image_18082025_07_41_35_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/07/41/image_18082025_07_41_24_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/07/41/image_18082025_07_41_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/07/40/image_18082025_07_41_05_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/07/40/image_18082025_07_40_54_9614.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa3fb2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3fb2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3fb2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:42:02.861610
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/41/image_18082025_07_41_44_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/07/41/image_18082025_07_41_35_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/07/41/image_18082025_07_41_24_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/07/41/image_18082025_07_41_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/07/40/image_18082025_07_41_05_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/07/40/image_18082025_07_40_54_9614.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f80826518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80826518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80826518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:42:17.318471
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/42/image_18082025_07_42_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/07/42/image_18082025_07_42_35_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/07/42/image_18082025_07_42_25_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/07/42/image_18082025_07_42_14_9676.jpg', 2), ('/home/nano/Desktop/images/18082025/07/41/image_18082025_07_42_05_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/07/41/image_18082025_07_41_55_10633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa400518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa400518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa400518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:42:32.293644
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/42/image_18082025_07_42_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/07/42/image_18082025_07_42_35_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/07/42/image_18082025_07_42_25_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/07/42/image_18082025_07_42_14_9676.jpg', 2), ('/home/nano/Desktop/images/18082025/07/41/image_18082025_07_42_05_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/07/41/image_18082025_07_41_55_10633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f877b64a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f877b64a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f877b64a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:42:47.343489
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/42/image_18082025_07_42_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/07/42/image_18082025_07_42_35_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/07/42/image_18082025_07_42_25_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/07/42/image_18082025_07_42_14_9676.jpg', 2), ('/home/nano/Desktop/images/18082025/07/41/image_18082025_07_42_05_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/07/41/image_18082025_07_41_55_10633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb53b9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb53b9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb53b9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:43:03.087663
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/42/image_18082025_07_42_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/07/42/image_18082025_07_42_35_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/07/42/image_18082025_07_42_25_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/07/42/image_18082025_07_42_14_9676.jpg', 2), ('/home/nano/Desktop/images/18082025/07/41/image_18082025_07_42_05_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/07/41/image_18082025_07_41_55_10633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ad19518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ad19518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ad19518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:43:17.509456
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/43/image_18082025_07_43_45_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/07/43/image_18082025_07_43_34_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/07/43/image_18082025_07_43_25_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/07/43/image_18082025_07_43_14_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/07/42/image_18082025_07_43_04_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/07/42/image_18082025_07_42_55_10639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2a65518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2a65518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2a65518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:43:32.416730
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/43/image_18082025_07_43_45_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/07/43/image_18082025_07_43_34_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/07/43/image_18082025_07_43_25_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/07/43/image_18082025_07_43_14_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/07/42/image_18082025_07_43_04_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/07/42/image_18082025_07_42_55_10639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a23f4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a23f4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a23f4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:43:47.503595
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/43/image_18082025_07_43_45_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/07/43/image_18082025_07_43_34_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/07/43/image_18082025_07_43_25_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/07/43/image_18082025_07_43_14_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/07/42/image_18082025_07_43_04_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/07/42/image_18082025_07_42_55_10639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9649a4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9649a4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9649a4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:44:03.548587
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/43/image_18082025_07_43_45_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/07/43/image_18082025_07_43_34_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/07/43/image_18082025_07_43_25_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/07/43/image_18082025_07_43_14_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/07/42/image_18082025_07_43_04_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/07/42/image_18082025_07_42_55_10639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89d4d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89d4d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89d4d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:44:17.581957
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/44/image_18082025_07_44_45_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/07/44/image_18082025_07_44_34_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/07/44/image_18082025_07_44_25_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/07/44/image_18082025_07_44_15_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/07/43/image_18082025_07_44_04_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/07/43/image_18082025_07_43_55_9622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90451518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90451518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90451518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:44:32.585761
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/44/image_18082025_07_44_45_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/07/44/image_18082025_07_44_34_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/07/44/image_18082025_07_44_25_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/07/44/image_18082025_07_44_15_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/07/43/image_18082025_07_44_04_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/07/43/image_18082025_07_43_55_9622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4184518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4184518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4184518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:44:47.579554
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/44/image_18082025_07_44_45_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/07/44/image_18082025_07_44_34_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/07/44/image_18082025_07_44_25_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/07/44/image_18082025_07_44_15_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/07/43/image_18082025_07_44_04_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/07/43/image_18082025_07_43_55_9622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93ebd518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93ebd518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93ebd518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:45:03.368567
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/44/image_18082025_07_44_45_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/07/44/image_18082025_07_44_34_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/07/44/image_18082025_07_44_25_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/07/44/image_18082025_07_44_15_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/07/43/image_18082025_07_44_04_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/07/43/image_18082025_07_43_55_9622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ceda518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ceda518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ceda518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:45:17.673793
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/45/image_18082025_07_45_45_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/07/45/image_18082025_07_45_35_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/07/45/image_18082025_07_45_24_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/07/45/image_18082025_07_45_15_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/07/44/image_18082025_07_45_04_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/07/44/image_18082025_07_44_54_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9db43518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9db43518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9db43518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:45:32.729092
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/45/image_18082025_07_45_45_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/07/45/image_18082025_07_45_35_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/07/45/image_18082025_07_45_24_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/07/45/image_18082025_07_45_15_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/07/44/image_18082025_07_45_04_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/07/44/image_18082025_07_44_54_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5cc5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5cc5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5cc5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:45:47.706642
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/45/image_18082025_07_45_45_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/07/45/image_18082025_07_45_35_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/07/45/image_18082025_07_45_24_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/07/45/image_18082025_07_45_15_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/07/44/image_18082025_07_45_04_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/07/44/image_18082025_07_44_54_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93b41518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93b41518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93b41518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:46:02.318983
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/45/image_18082025_07_45_45_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/07/45/image_18082025_07_45_35_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/07/45/image_18082025_07_45_24_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/07/45/image_18082025_07_45_15_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/07/44/image_18082025_07_45_04_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/07/44/image_18082025_07_44_54_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96569518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96569518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96569518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:46:16.790991
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/46/image_18082025_07_46_44_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/07/46/image_18082025_07_46_35_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/07/46/image_18082025_07_46_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/07/46/image_18082025_07_46_15_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/07/45/image_18082025_07_46_05_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/07/45/image_18082025_07_45_54_9615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8fa83518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fa83518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fa83518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:46:31.846005
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/46/image_18082025_07_46_44_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/07/46/image_18082025_07_46_35_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/07/46/image_18082025_07_46_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/07/46/image_18082025_07_46_15_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/07/45/image_18082025_07_46_05_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/07/45/image_18082025_07_45_54_9615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b26f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b26f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b26f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:46:46.858432
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/46/image_18082025_07_46_44_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/07/46/image_18082025_07_46_35_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/07/46/image_18082025_07_46_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/07/46/image_18082025_07_46_15_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/07/45/image_18082025_07_46_05_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/07/45/image_18082025_07_45_54_9615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79d0d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79d0d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79d0d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:47:02.658972
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/46/image_18082025_07_46_44_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/07/46/image_18082025_07_46_35_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/07/46/image_18082025_07_46_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/07/46/image_18082025_07_46_15_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/07/45/image_18082025_07_46_05_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/07/45/image_18082025_07_45_54_9615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4663518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4663518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4663518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:47:16.968886
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/47/image_18082025_07_47_44_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/07/47/image_18082025_07_47_35_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/07/47/image_18082025_07_47_25_10612.jpg', 2), ('/home/nano/Desktop/images/18082025/07/47/image_18082025_07_47_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/07/46/image_18082025_07_47_05_10674.jpg', 2), ('/home/nano/Desktop/images/18082025/07/46/image_18082025_07_46_54_9622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83d0c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83d0c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83d0c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:47:31.969497
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/47/image_18082025_07_47_44_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/07/47/image_18082025_07_47_35_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/07/47/image_18082025_07_47_25_10612.jpg', 2), ('/home/nano/Desktop/images/18082025/07/47/image_18082025_07_47_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/07/46/image_18082025_07_47_05_10674.jpg', 2), ('/home/nano/Desktop/images/18082025/07/46/image_18082025_07_46_54_9622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f798984a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f798984a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f798984a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:47:46.960882
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/47/image_18082025_07_47_44_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/07/47/image_18082025_07_47_35_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/07/47/image_18082025_07_47_25_10612.jpg', 2), ('/home/nano/Desktop/images/18082025/07/47/image_18082025_07_47_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/07/46/image_18082025_07_47_05_10674.jpg', 2), ('/home/nano/Desktop/images/18082025/07/46/image_18082025_07_46_54_9622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf18a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf18a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf18a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:48:02.659257
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/47/image_18082025_07_47_44_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/07/47/image_18082025_07_47_35_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/07/47/image_18082025_07_47_25_10612.jpg', 2), ('/home/nano/Desktop/images/18082025/07/47/image_18082025_07_47_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/07/46/image_18082025_07_47_05_10674.jpg', 2), ('/home/nano/Desktop/images/18082025/07/46/image_18082025_07_46_54_9622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4892518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4892518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4892518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:48:17.062224
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/48/image_18082025_07_48_44_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/07/48/image_18082025_07_48_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/07/48/image_18082025_07_48_25_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/07/48/image_18082025_07_48_14_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/07/47/image_18082025_07_48_05_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/07/47/image_18082025_07_47_55_10625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa85f9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa85f9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa85f9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:48:32.061873
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/48/image_18082025_07_48_44_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/07/48/image_18082025_07_48_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/07/48/image_18082025_07_48_25_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/07/48/image_18082025_07_48_14_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/07/47/image_18082025_07_48_05_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/07/47/image_18082025_07_47_55_10625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2f82518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2f82518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2f82518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:48:47.040403
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/48/image_18082025_07_48_44_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/07/48/image_18082025_07_48_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/07/48/image_18082025_07_48_25_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/07/48/image_18082025_07_48_14_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/07/47/image_18082025_07_48_05_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/07/47/image_18082025_07_47_55_10625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e43d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e43d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e43d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:49:02.996457
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/48/image_18082025_07_48_44_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/07/48/image_18082025_07_48_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/07/48/image_18082025_07_48_25_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/07/48/image_18082025_07_48_14_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/07/47/image_18082025_07_48_05_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/07/47/image_18082025_07_47_55_10625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8cde4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8cde4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8cde4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:49:17.140989
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/49/image_18082025_07_49_45_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/07/49/image_18082025_07_49_34_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/07/49/image_18082025_07_49_25_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/07/49/image_18082025_07_49_15_10719.jpg', 2), ('/home/nano/Desktop/images/18082025/07/48/image_18082025_07_49_04_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/07/48/image_18082025_07_48_55_10620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d5f2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d5f2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d5f2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:49:32.146305
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/49/image_18082025_07_49_45_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/07/49/image_18082025_07_49_34_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/07/49/image_18082025_07_49_25_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/07/49/image_18082025_07_49_15_10719.jpg', 2), ('/home/nano/Desktop/images/18082025/07/48/image_18082025_07_49_04_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/07/48/image_18082025_07_48_55_10620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2666518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2666518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2666518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:49:47.158328
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/49/image_18082025_07_49_45_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/07/49/image_18082025_07_49_34_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/07/49/image_18082025_07_49_25_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/07/49/image_18082025_07_49_15_10719.jpg', 2), ('/home/nano/Desktop/images/18082025/07/48/image_18082025_07_49_04_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/07/48/image_18082025_07_48_55_10620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c1b0518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c1b0518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c1b0518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:50:02.816723
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/49/image_18082025_07_49_45_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/07/49/image_18082025_07_49_34_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/07/49/image_18082025_07_49_25_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/07/49/image_18082025_07_49_15_10719.jpg', 2), ('/home/nano/Desktop/images/18082025/07/48/image_18082025_07_49_04_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/07/48/image_18082025_07_48_55_10620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c459518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c459518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c459518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:50:17.268697
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/50/image_18082025_07_50_45_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/07/50/image_18082025_07_50_34_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/07/50/image_18082025_07_50_24_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/07/50/image_18082025_07_50_15_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/07/49/image_18082025_07_50_04_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/07/49/image_18082025_07_49_55_9622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a480518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a480518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a480518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:50:32.272853
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/50/image_18082025_07_50_45_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/07/50/image_18082025_07_50_34_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/07/50/image_18082025_07_50_24_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/07/50/image_18082025_07_50_15_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/07/49/image_18082025_07_50_04_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/07/49/image_18082025_07_49_55_9622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76775518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76775518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76775518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:50:47.277810
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/50/image_18082025_07_50_45_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/07/50/image_18082025_07_50_34_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/07/50/image_18082025_07_50_24_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/07/50/image_18082025_07_50_15_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/07/49/image_18082025_07_50_04_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/07/49/image_18082025_07_49_55_9622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c40f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c40f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c40f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:51:03.096504
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/50/image_18082025_07_50_45_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/07/50/image_18082025_07_50_34_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/07/50/image_18082025_07_50_24_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/07/50/image_18082025_07_50_15_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/07/49/image_18082025_07_50_04_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/07/49/image_18082025_07_49_55_9622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb22ca4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb22ca4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb22ca4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:51:17.371372
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/51/image_18082025_07_51_45_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/07/51/image_18082025_07_51_35_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/07/51/image_18082025_07_51_24_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/07/51/image_18082025_07_51_15_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/07/50/image_18082025_07_51_05_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/07/50/image_18082025_07_50_54_9633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96c53518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96c53518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96c53518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:51:32.356094
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/51/image_18082025_07_51_45_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/07/51/image_18082025_07_51_35_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/07/51/image_18082025_07_51_24_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/07/51/image_18082025_07_51_15_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/07/50/image_18082025_07_51_05_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/07/50/image_18082025_07_50_54_9633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7fff2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fff2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fff2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:51:47.355467
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/51/image_18082025_07_51_45_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/07/51/image_18082025_07_51_35_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/07/51/image_18082025_07_51_24_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/07/51/image_18082025_07_51_15_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/07/50/image_18082025_07_51_05_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/07/50/image_18082025_07_50_54_9633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa78fc518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa78fc518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa78fc518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:52:03.004962
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/51/image_18082025_07_51_45_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/07/51/image_18082025_07_51_35_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/07/51/image_18082025_07_51_24_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/07/51/image_18082025_07_51_15_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/07/50/image_18082025_07_51_05_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/07/50/image_18082025_07_50_54_9633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7280518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7280518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7280518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:52:17.462848
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/52/image_18082025_07_52_44_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/07/52/image_18082025_07_52_35_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/07/52/image_18082025_07_52_24_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/07/52/image_18082025_07_52_15_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/07/51/image_18082025_07_52_05_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/07/51/image_18082025_07_51_54_9628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b3cf518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b3cf518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b3cf518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:52:32.478135
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/52/image_18082025_07_52_44_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/07/52/image_18082025_07_52_35_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/07/52/image_18082025_07_52_24_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/07/52/image_18082025_07_52_15_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/07/51/image_18082025_07_52_05_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/07/51/image_18082025_07_51_54_9628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa9506518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9506518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9506518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:52:47.517146
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/52/image_18082025_07_52_44_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/07/52/image_18082025_07_52_35_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/07/52/image_18082025_07_52_24_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/07/52/image_18082025_07_52_15_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/07/51/image_18082025_07_52_05_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/07/51/image_18082025_07_51_54_9628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf3d54a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf3d54a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf3d54a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:53:03.407890
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/52/image_18082025_07_52_44_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/07/52/image_18082025_07_52_35_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/07/52/image_18082025_07_52_24_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/07/52/image_18082025_07_52_15_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/07/51/image_18082025_07_52_05_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/07/51/image_18082025_07_51_54_9628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97779518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97779518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97779518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:53:17.698738
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/53/image_18082025_07_53_44_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/07/53/image_18082025_07_53_35_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/07/53/image_18082025_07_53_25_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/07/53/image_18082025_07_53_14_9670.jpg', 2), ('/home/nano/Desktop/images/18082025/07/52/image_18082025_07_53_05_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/07/52/image_18082025_07_52_54_9615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5a5a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5a5a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5a5a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:53:32.621130
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/53/image_18082025_07_53_44_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/07/53/image_18082025_07_53_35_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/07/53/image_18082025_07_53_25_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/07/53/image_18082025_07_53_14_9670.jpg', 2), ('/home/nano/Desktop/images/18082025/07/52/image_18082025_07_53_05_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/07/52/image_18082025_07_52_54_9615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77498518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77498518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77498518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:53:47.682453
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/53/image_18082025_07_53_44_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/07/53/image_18082025_07_53_35_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/07/53/image_18082025_07_53_25_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/07/53/image_18082025_07_53_14_9670.jpg', 2), ('/home/nano/Desktop/images/18082025/07/52/image_18082025_07_53_05_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/07/52/image_18082025_07_52_54_9615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d7a9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d7a9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d7a9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:54:02.577063
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/53/image_18082025_07_53_44_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/07/53/image_18082025_07_53_35_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/07/53/image_18082025_07_53_25_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/07/53/image_18082025_07_53_14_9670.jpg', 2), ('/home/nano/Desktop/images/18082025/07/52/image_18082025_07_53_05_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/07/52/image_18082025_07_52_54_9615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa82ce518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa82ce518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa82ce518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:54:16.775541
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/54/image_18082025_07_54_45_10622.jpg', 2), ('/home/nano/Desktop/images/18082025/07/54/image_18082025_07_54_34_9600.jpg', 2), ('/home/nano/Desktop/images/18082025/07/54/image_18082025_07_54_25_10617.jpg', 2), ('/home/nano/Desktop/images/18082025/07/54/image_18082025_07_54_14_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/07/53/image_18082025_07_54_05_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/07/53/image_18082025_07_53_55_10700.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f2e3518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f2e3518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f2e3518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:54:31.804309
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/54/image_18082025_07_54_45_10622.jpg', 2), ('/home/nano/Desktop/images/18082025/07/54/image_18082025_07_54_34_9600.jpg', 2), ('/home/nano/Desktop/images/18082025/07/54/image_18082025_07_54_25_10617.jpg', 2), ('/home/nano/Desktop/images/18082025/07/54/image_18082025_07_54_14_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/07/53/image_18082025_07_54_05_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/07/53/image_18082025_07_53_55_10700.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa87264a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa87264a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa87264a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:54:46.804285
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/54/image_18082025_07_54_45_10622.jpg', 2), ('/home/nano/Desktop/images/18082025/07/54/image_18082025_07_54_34_9600.jpg', 2), ('/home/nano/Desktop/images/18082025/07/54/image_18082025_07_54_25_10617.jpg', 2), ('/home/nano/Desktop/images/18082025/07/54/image_18082025_07_54_14_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/07/53/image_18082025_07_54_05_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/07/53/image_18082025_07_53_55_10700.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3fd4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3fd4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3fd4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:55:02.690104
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/54/image_18082025_07_54_45_10622.jpg', 2), ('/home/nano/Desktop/images/18082025/07/54/image_18082025_07_54_34_9600.jpg', 2), ('/home/nano/Desktop/images/18082025/07/54/image_18082025_07_54_25_10617.jpg', 2), ('/home/nano/Desktop/images/18082025/07/54/image_18082025_07_54_14_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/07/53/image_18082025_07_54_05_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/07/53/image_18082025_07_53_55_10700.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b980518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b980518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b980518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:55:16.917683
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/55/image_18082025_07_55_45_10620.jpg', 2), ('/home/nano/Desktop/images/18082025/07/55/image_18082025_07_55_34_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/07/55/image_18082025_07_55_25_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/07/55/image_18082025_07_55_15_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/07/54/image_18082025_07_55_04_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/07/54/image_18082025_07_54_55_9628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7bba14a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bba14a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bba14a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:55:31.914818
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/55/image_18082025_07_55_45_10620.jpg', 2), ('/home/nano/Desktop/images/18082025/07/55/image_18082025_07_55_34_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/07/55/image_18082025_07_55_25_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/07/55/image_18082025_07_55_15_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/07/54/image_18082025_07_55_04_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/07/54/image_18082025_07_54_55_9628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f769464a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f769464a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f769464a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:55:46.925815
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/55/image_18082025_07_55_45_10620.jpg', 2), ('/home/nano/Desktop/images/18082025/07/55/image_18082025_07_55_34_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/07/55/image_18082025_07_55_25_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/07/55/image_18082025_07_55_15_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/07/54/image_18082025_07_55_04_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/07/54/image_18082025_07_54_55_9628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7793d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7793d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7793d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:56:02.465666
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/55/image_18082025_07_55_45_10620.jpg', 2), ('/home/nano/Desktop/images/18082025/07/55/image_18082025_07_55_34_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/07/55/image_18082025_07_55_25_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/07/55/image_18082025_07_55_15_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/07/54/image_18082025_07_55_04_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/07/54/image_18082025_07_54_55_9628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78683518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78683518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78683518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:56:16.988849
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/56/image_18082025_07_56_45_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/07/56/image_18082025_07_56_35_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/07/56/image_18082025_07_56_24_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/07/56/image_18082025_07_56_15_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/07/55/image_18082025_07_56_04_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/07/55/image_18082025_07_55_55_9629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa240518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa240518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa240518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:56:31.994404
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/56/image_18082025_07_56_45_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/07/56/image_18082025_07_56_35_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/07/56/image_18082025_07_56_24_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/07/56/image_18082025_07_56_15_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/07/55/image_18082025_07_56_04_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/07/55/image_18082025_07_55_55_9629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85c4b550>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85c4b550>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85c4b550>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:56:47.002445
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/56/image_18082025_07_56_45_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/07/56/image_18082025_07_56_35_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/07/56/image_18082025_07_56_24_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/07/56/image_18082025_07_56_15_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/07/55/image_18082025_07_56_04_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/07/55/image_18082025_07_55_55_9629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f907cd518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f907cd518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f907cd518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:57:02.850127
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/56/image_18082025_07_56_45_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/07/56/image_18082025_07_56_35_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/07/56/image_18082025_07_56_24_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/07/56/image_18082025_07_56_15_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/07/55/image_18082025_07_56_04_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/07/55/image_18082025_07_55_55_9629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9783b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9783b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9783b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:57:17.090951
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/57/image_18082025_07_57_44_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/07/57/image_18082025_07_57_35_10633.jpg', 2), ('/home/nano/Desktop/images/18082025/07/57/image_18082025_07_57_24_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/07/57/image_18082025_07_57_15_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/07/56/image_18082025_07_57_05_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/07/56/image_18082025_07_56_54_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f769e2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f769e2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f769e2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:57:32.118959
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/57/image_18082025_07_57_44_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/07/57/image_18082025_07_57_35_10633.jpg', 2), ('/home/nano/Desktop/images/18082025/07/57/image_18082025_07_57_24_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/07/57/image_18082025_07_57_15_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/07/56/image_18082025_07_57_05_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/07/56/image_18082025_07_56_54_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e61e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e61e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e61e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:57:47.115215
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/57/image_18082025_07_57_44_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/07/57/image_18082025_07_57_35_10633.jpg', 2), ('/home/nano/Desktop/images/18082025/07/57/image_18082025_07_57_24_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/07/57/image_18082025_07_57_15_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/07/56/image_18082025_07_57_05_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/07/56/image_18082025_07_56_54_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7bd56518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bd56518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bd56518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:58:32.257929
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/57/image_18082025_07_57_44_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/07/57/image_18082025_07_57_35_10633.jpg', 2), ('/home/nano/Desktop/images/18082025/07/57/image_18082025_07_57_24_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/07/57/image_18082025_07_57_15_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/07/56/image_18082025_07_57_05_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/07/56/image_18082025_07_56_54_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d5154a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d5154a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d5154a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:58:47.239557
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/57/image_18082025_07_57_44_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/07/57/image_18082025_07_57_35_10633.jpg', 2), ('/home/nano/Desktop/images/18082025/07/57/image_18082025_07_57_24_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/07/57/image_18082025_07_57_15_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/07/56/image_18082025_07_57_05_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/07/56/image_18082025_07_56_54_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb22e5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb22e5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb22e5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:59:03.574719
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/57/image_18082025_07_57_44_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/07/57/image_18082025_07_57_35_10633.jpg', 2), ('/home/nano/Desktop/images/18082025/07/57/image_18082025_07_57_24_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/07/57/image_18082025_07_57_15_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/07/56/image_18082025_07_57_05_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/07/56/image_18082025_07_56_54_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1493518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1493518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1493518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:59:17.364734
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/59/image_18082025_07_59_45_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/07/59/image_18082025_07_59_34_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/07/59/image_18082025_07_59_25_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/07/59/image_18082025_07_59_14_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/07/58/image_18082025_07_59_05_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/07/58/image_18082025_07_58_55_10627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8af49518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8af49518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8af49518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:59:32.395840
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/59/image_18082025_07_59_45_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/07/59/image_18082025_07_59_34_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/07/59/image_18082025_07_59_25_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/07/59/image_18082025_07_59_14_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/07/58/image_18082025_07_59_05_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/07/58/image_18082025_07_58_55_10627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8fa26518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fa26518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fa26518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 07:59:47.424840
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/07/59/image_18082025_07_59_45_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/07/59/image_18082025_07_59_34_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/07/59/image_18082025_07_59_25_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/07/59/image_18082025_07_59_14_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/07/58/image_18082025_07_59_05_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/07/58/image_18082025_07_58_55_10627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f884d5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f884d5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f884d5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:00:03.212793
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/00/image_18082025_08_00_55_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/07/59/image_18082025_07_59_45_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/07/59/image_18082025_07_59_34_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/07/59/image_18082025_07_59_25_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/07/59/image_18082025_07_59_14_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/07/58/image_18082025_07_59_05_9645.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f8fe4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f8fe4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f8fe4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:00:17.528102
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/00/image_18082025_08_00_55_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/08/00/image_18082025_08_00_34_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/08/00/image_18082025_08_00_25_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/08/00/image_18082025_08_00_15_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/07/59/image_18082025_08_00_04_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/07/59/image_18082025_07_59_55_9631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa74854a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa74854a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa74854a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:00:32.534647
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/00/image_18082025_08_00_55_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/08/00/image_18082025_08_00_34_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/08/00/image_18082025_08_00_25_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/08/00/image_18082025_08_00_15_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/07/59/image_18082025_08_00_04_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/07/59/image_18082025_07_59_55_9631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb294d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb294d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb294d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:00:47.505901
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/00/image_18082025_08_00_55_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/08/00/image_18082025_08_00_34_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/08/00/image_18082025_08_00_25_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/08/00/image_18082025_08_00_15_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/07/59/image_18082025_08_00_04_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/07/59/image_18082025_07_59_55_9631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb131d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb131d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb131d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:01:03.417053
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/00/image_18082025_08_00_55_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/08/00/image_18082025_08_00_34_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/08/00/image_18082025_08_00_25_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/08/00/image_18082025_08_00_15_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/07/59/image_18082025_08_00_04_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/07/59/image_18082025_07_59_55_9631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9155f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9155f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9155f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:01:17.614952
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/01/image_18082025_08_01_45_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/08/01/image_18082025_08_01_34_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/08/01/image_18082025_08_01_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/08/01/image_18082025_08_01_15_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/08/00/image_18082025_08_01_04_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/08/00/image_18082025_08_00_55_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94a4b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94a4b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94a4b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:01:32.628120
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/01/image_18082025_08_01_45_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/08/01/image_18082025_08_01_34_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/08/01/image_18082025_08_01_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/08/01/image_18082025_08_01_15_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/08/00/image_18082025_08_01_04_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/08/00/image_18082025_08_00_55_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f825334a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f825334a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f825334a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:01:47.632957
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/01/image_18082025_08_01_45_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/08/01/image_18082025_08_01_34_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/08/01/image_18082025_08_01_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/08/01/image_18082025_08_01_15_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/08/00/image_18082025_08_01_04_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/08/00/image_18082025_08_00_55_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9cb68518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cb68518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cb68518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:02:03.245469
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/01/image_18082025_08_01_45_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/08/01/image_18082025_08_01_34_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/08/01/image_18082025_08_01_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/08/01/image_18082025_08_01_15_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/08/00/image_18082025_08_01_04_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/08/00/image_18082025_08_00_55_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0927518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0927518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0927518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:02:17.738187
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/02/image_18082025_08_02_45_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/08/02/image_18082025_08_02_35_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/08/02/image_18082025_08_02_24_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/08/02/image_18082025_08_02_15_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/08/01/image_18082025_08_02_05_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/08/01/image_18082025_08_01_54_9631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf09b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf09b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf09b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:02:32.753421
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/02/image_18082025_08_02_45_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/08/02/image_18082025_08_02_35_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/08/02/image_18082025_08_02_24_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/08/02/image_18082025_08_02_15_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/08/01/image_18082025_08_02_05_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/08/01/image_18082025_08_01_54_9631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9fb94518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fb94518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fb94518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:02:47.731722
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/02/image_18082025_08_02_45_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/08/02/image_18082025_08_02_35_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/08/02/image_18082025_08_02_24_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/08/02/image_18082025_08_02_15_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/08/01/image_18082025_08_02_05_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/08/01/image_18082025_08_01_54_9631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa434e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa434e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa434e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:03:02.608925
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/02/image_18082025_08_02_45_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/08/02/image_18082025_08_02_35_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/08/02/image_18082025_08_02_24_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/08/02/image_18082025_08_02_15_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/08/01/image_18082025_08_02_05_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/08/01/image_18082025_08_01_54_9631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f868a7518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f868a7518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f868a7518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:03:16.857731
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/03/image_18082025_08_03_44_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/08/03/image_18082025_08_03_35_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/08/03/image_18082025_08_03_24_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/08/03/image_18082025_08_03_15_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/08/02/image_18082025_08_03_05_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/08/02/image_18082025_08_02_54_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b788518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b788518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b788518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:03:31.829542
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/03/image_18082025_08_03_44_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/08/03/image_18082025_08_03_35_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/08/03/image_18082025_08_03_24_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/08/03/image_18082025_08_03_15_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/08/02/image_18082025_08_03_05_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/08/02/image_18082025_08_02_54_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa57864a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa57864a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa57864a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:03:46.847074
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/03/image_18082025_08_03_44_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/08/03/image_18082025_08_03_35_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/08/03/image_18082025_08_03_24_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/08/03/image_18082025_08_03_15_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/08/02/image_18082025_08_03_05_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/08/02/image_18082025_08_02_54_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98c524a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98c524a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98c524a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:04:02.666896
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/03/image_18082025_08_03_44_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/08/03/image_18082025_08_03_35_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/08/03/image_18082025_08_03_24_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/08/03/image_18082025_08_03_15_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/08/02/image_18082025_08_03_05_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/08/02/image_18082025_08_02_54_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3851518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3851518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3851518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:04:16.943035
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/04/image_18082025_08_04_44_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/08/04/image_18082025_08_04_35_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/08/04/image_18082025_08_04_25_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/08/04/image_18082025_08_04_14_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/08/03/image_18082025_08_04_05_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/08/03/image_18082025_08_03_55_10641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab76b4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab76b4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab76b4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:04:31.955215
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/04/image_18082025_08_04_44_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/08/04/image_18082025_08_04_35_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/08/04/image_18082025_08_04_25_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/08/04/image_18082025_08_04_14_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/08/03/image_18082025_08_04_05_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/08/03/image_18082025_08_03_55_10641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94f61518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94f61518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94f61518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:04:46.976788
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/04/image_18082025_08_04_44_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/08/04/image_18082025_08_04_35_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/08/04/image_18082025_08_04_25_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/08/04/image_18082025_08_04_14_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/08/03/image_18082025_08_04_05_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/08/03/image_18082025_08_03_55_10641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c7ed518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c7ed518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c7ed518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:05:02.887887
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/04/image_18082025_08_04_44_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/08/04/image_18082025_08_04_35_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/08/04/image_18082025_08_04_25_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/08/04/image_18082025_08_04_14_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/08/03/image_18082025_08_04_05_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/08/03/image_18082025_08_03_55_10641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faad1f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faad1f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faad1f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:05:17.071387
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/05/image_18082025_08_05_45_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/08/05/image_18082025_08_05_34_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/08/05/image_18082025_08_05_25_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/08/05/image_18082025_08_05_14_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/08/04/image_18082025_08_05_04_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/08/04/image_18082025_08_04_55_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77d33518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77d33518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77d33518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:05:32.077133
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/05/image_18082025_08_05_45_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/08/05/image_18082025_08_05_34_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/08/05/image_18082025_08_05_25_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/08/05/image_18082025_08_05_14_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/08/04/image_18082025_08_05_04_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/08/04/image_18082025_08_04_55_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e338518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e338518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e338518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:05:47.072963
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/05/image_18082025_08_05_45_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/08/05/image_18082025_08_05_34_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/08/05/image_18082025_08_05_25_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/08/05/image_18082025_08_05_14_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/08/04/image_18082025_08_05_04_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/08/04/image_18082025_08_04_55_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ca9c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ca9c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ca9c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:06:02.699851
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/05/image_18082025_08_05_45_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/08/05/image_18082025_08_05_34_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/08/05/image_18082025_08_05_25_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/08/05/image_18082025_08_05_14_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/08/04/image_18082025_08_05_04_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/08/04/image_18082025_08_04_55_10651.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fafcc44a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafcc44a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafcc44a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:06:17.215102
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/06/image_18082025_08_06_45_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/08/06/image_18082025_08_06_34_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/08/06/image_18082025_08_06_25_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/08/06/image_18082025_08_06_15_10657.jpg', 2), ('/home/nano/Desktop/images/18082025/08/05/image_18082025_08_06_04_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/08/05/image_18082025_08_05_55_9627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb42a1518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb42a1518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb42a1518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:06:32.155227
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/06/image_18082025_08_06_45_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/08/06/image_18082025_08_06_34_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/08/06/image_18082025_08_06_25_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/08/06/image_18082025_08_06_15_10657.jpg', 2), ('/home/nano/Desktop/images/18082025/08/05/image_18082025_08_06_04_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/08/05/image_18082025_08_05_55_9627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f846de518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f846de518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f846de518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:06:47.180626
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/06/image_18082025_08_06_45_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/08/06/image_18082025_08_06_34_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/08/06/image_18082025_08_06_25_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/08/06/image_18082025_08_06_15_10657.jpg', 2), ('/home/nano/Desktop/images/18082025/08/05/image_18082025_08_06_04_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/08/05/image_18082025_08_05_55_9627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2c29518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2c29518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2c29518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:07:02.943698
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/06/image_18082025_08_06_45_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/08/06/image_18082025_08_06_34_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/08/06/image_18082025_08_06_25_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/08/06/image_18082025_08_06_15_10657.jpg', 2), ('/home/nano/Desktop/images/18082025/08/05/image_18082025_08_06_04_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/08/05/image_18082025_08_05_55_9627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76d3d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76d3d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76d3d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:07:17.263931
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/07/image_18082025_08_07_45_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/08/07/image_18082025_08_07_35_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/08/07/image_18082025_08_07_24_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/08/07/image_18082025_08_07_15_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/08/06/image_18082025_08_07_04_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/08/06/image_18082025_08_06_54_9621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78c2d4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78c2d4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78c2d4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:07:32.276384
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/07/image_18082025_08_07_45_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/08/07/image_18082025_08_07_35_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/08/07/image_18082025_08_07_24_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/08/07/image_18082025_08_07_15_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/08/06/image_18082025_08_07_04_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/08/06/image_18082025_08_06_54_9621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b48e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b48e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b48e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:07:47.274481
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/07/image_18082025_08_07_45_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/08/07/image_18082025_08_07_35_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/08/07/image_18082025_08_07_24_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/08/07/image_18082025_08_07_15_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/08/06/image_18082025_08_07_04_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/08/06/image_18082025_08_06_54_9621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95f8e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95f8e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95f8e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:08:02.956637
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/07/image_18082025_08_07_45_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/08/07/image_18082025_08_07_35_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/08/07/image_18082025_08_07_24_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/08/07/image_18082025_08_07_15_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/08/06/image_18082025_08_07_04_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/08/06/image_18082025_08_06_54_9621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78d9e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78d9e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78d9e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:08:17.379182
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/08/image_18082025_08_08_44_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/08/08/image_18082025_08_08_35_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/08/08/image_18082025_08_08_24_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/08/image_18082025_08_08_15_9671.jpg', 2), ('/home/nano/Desktop/images/18082025/08/07/image_18082025_08_08_05_10643.jpg', 2), ('/home/nano/Desktop/images/18082025/08/07/image_18082025_08_07_54_9610.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97200518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97200518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97200518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:08:32.374030
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/08/image_18082025_08_08_44_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/08/08/image_18082025_08_08_35_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/08/08/image_18082025_08_08_24_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/08/image_18082025_08_08_15_9671.jpg', 2), ('/home/nano/Desktop/images/18082025/08/07/image_18082025_08_08_05_10643.jpg', 2), ('/home/nano/Desktop/images/18082025/08/07/image_18082025_08_07_54_9610.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4a2d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4a2d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4a2d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:08:47.365867
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/08/image_18082025_08_08_44_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/08/08/image_18082025_08_08_35_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/08/08/image_18082025_08_08_24_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/08/image_18082025_08_08_15_9671.jpg', 2), ('/home/nano/Desktop/images/18082025/08/07/image_18082025_08_08_05_10643.jpg', 2), ('/home/nano/Desktop/images/18082025/08/07/image_18082025_08_07_54_9610.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab3424a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab3424a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab3424a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:09:03.301911
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/08/image_18082025_08_08_44_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/08/08/image_18082025_08_08_35_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/08/08/image_18082025_08_08_24_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/08/image_18082025_08_08_15_9671.jpg', 2), ('/home/nano/Desktop/images/18082025/08/07/image_18082025_08_08_05_10643.jpg', 2), ('/home/nano/Desktop/images/18082025/08/07/image_18082025_08_07_54_9610.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7cdb6518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7cdb6518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7cdb6518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:09:17.481198
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/09/image_18082025_08_09_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/08/09/image_18082025_08_09_35_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/08/09/image_18082025_08_09_25_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/08/09/image_18082025_08_09_14_9666.jpg', 2), ('/home/nano/Desktop/images/18082025/08/08/image_18082025_08_09_05_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/08/08/image_18082025_08_08_54_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9005d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9005d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9005d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:09:32.476232
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/09/image_18082025_08_09_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/08/09/image_18082025_08_09_35_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/08/09/image_18082025_08_09_25_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/08/09/image_18082025_08_09_14_9666.jpg', 2), ('/home/nano/Desktop/images/18082025/08/08/image_18082025_08_09_05_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/08/08/image_18082025_08_08_54_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77c28518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77c28518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77c28518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:09:47.444076
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/09/image_18082025_08_09_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/08/09/image_18082025_08_09_35_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/08/09/image_18082025_08_09_25_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/08/09/image_18082025_08_09_14_9666.jpg', 2), ('/home/nano/Desktop/images/18082025/08/08/image_18082025_08_09_05_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/08/08/image_18082025_08_08_54_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb61e74a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb61e74a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb61e74a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:10:03.120062
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/09/image_18082025_08_09_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/08/09/image_18082025_08_09_35_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/08/09/image_18082025_08_09_25_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/08/09/image_18082025_08_09_14_9666.jpg', 2), ('/home/nano/Desktop/images/18082025/08/08/image_18082025_08_09_05_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/08/08/image_18082025_08_08_54_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8464a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8464a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8464a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:10:17.572918
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/10/image_18082025_08_10_44_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/08/10/image_18082025_08_10_34_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/08/10/image_18082025_08_10_25_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/08/10/image_18082025_08_10_14_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/08/09/image_18082025_08_10_05_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/08/09/image_18082025_08_09_55_10660.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ad61518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ad61518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ad61518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:10:32.568736
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/10/image_18082025_08_10_44_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/08/10/image_18082025_08_10_34_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/08/10/image_18082025_08_10_25_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/08/10/image_18082025_08_10_14_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/08/09/image_18082025_08_10_05_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/08/09/image_18082025_08_09_55_10660.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97b2d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97b2d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97b2d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:10:47.619395
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/10/image_18082025_08_10_44_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/08/10/image_18082025_08_10_34_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/08/10/image_18082025_08_10_25_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/08/10/image_18082025_08_10_14_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/08/09/image_18082025_08_10_05_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/08/09/image_18082025_08_09_55_10660.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97ef1518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97ef1518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97ef1518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:11:03.273201
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/10/image_18082025_08_10_44_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/08/10/image_18082025_08_10_34_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/08/10/image_18082025_08_10_25_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/08/10/image_18082025_08_10_14_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/08/09/image_18082025_08_10_05_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/08/09/image_18082025_08_09_55_10660.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f781dc518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f781dc518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f781dc518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:11:17.691357
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/11/image_18082025_08_11_45_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/11/image_18082025_08_11_34_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/08/11/image_18082025_08_11_25_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/08/11/image_18082025_08_11_15_10675.jpg', 2), ('/home/nano/Desktop/images/18082025/08/10/image_18082025_08_11_04_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/08/10/image_18082025_08_10_55_10632.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f948064a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f948064a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f948064a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:11:32.707657
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/11/image_18082025_08_11_45_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/11/image_18082025_08_11_34_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/08/11/image_18082025_08_11_25_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/08/11/image_18082025_08_11_15_10675.jpg', 2), ('/home/nano/Desktop/images/18082025/08/10/image_18082025_08_11_04_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/08/10/image_18082025_08_10_55_10632.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf423518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf423518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf423518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:11:47.693220
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/11/image_18082025_08_11_45_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/11/image_18082025_08_11_34_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/08/11/image_18082025_08_11_25_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/08/11/image_18082025_08_11_15_10675.jpg', 2), ('/home/nano/Desktop/images/18082025/08/10/image_18082025_08_11_04_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/08/10/image_18082025_08_10_55_10632.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0e75518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0e75518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0e75518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:12:02.252925
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/11/image_18082025_08_11_45_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/11/image_18082025_08_11_34_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/08/11/image_18082025_08_11_25_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/08/11/image_18082025_08_11_15_10675.jpg', 2), ('/home/nano/Desktop/images/18082025/08/10/image_18082025_08_11_04_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/08/10/image_18082025_08_10_55_10632.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4ebf518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4ebf518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4ebf518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:12:16.787215
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/12/image_18082025_08_12_45_10622.jpg', 2), ('/home/nano/Desktop/images/18082025/08/12/image_18082025_08_12_34_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/08/12/image_18082025_08_12_25_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/08/12/image_18082025_08_12_15_10671.jpg', 2), ('/home/nano/Desktop/images/18082025/08/11/image_18082025_08_12_04_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/08/11/image_18082025_08_11_55_9657.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f864704a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f864704a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f864704a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:12:31.836919
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/12/image_18082025_08_12_45_10622.jpg', 2), ('/home/nano/Desktop/images/18082025/08/12/image_18082025_08_12_34_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/08/12/image_18082025_08_12_25_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/08/12/image_18082025_08_12_15_10671.jpg', 2), ('/home/nano/Desktop/images/18082025/08/11/image_18082025_08_12_04_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/08/11/image_18082025_08_11_55_9657.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e2f2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e2f2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e2f2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:12:46.823701
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/12/image_18082025_08_12_45_10622.jpg', 2), ('/home/nano/Desktop/images/18082025/08/12/image_18082025_08_12_34_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/08/12/image_18082025_08_12_25_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/08/12/image_18082025_08_12_15_10671.jpg', 2), ('/home/nano/Desktop/images/18082025/08/11/image_18082025_08_12_04_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/08/11/image_18082025_08_11_55_9657.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83d7b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83d7b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83d7b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:13:02.495465
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/12/image_18082025_08_12_45_10622.jpg', 2), ('/home/nano/Desktop/images/18082025/08/12/image_18082025_08_12_34_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/08/12/image_18082025_08_12_25_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/08/12/image_18082025_08_12_15_10671.jpg', 2), ('/home/nano/Desktop/images/18082025/08/11/image_18082025_08_12_04_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/08/11/image_18082025_08_11_55_9657.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f969f3518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f969f3518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f969f3518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:13:16.917861
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/13/image_18082025_08_13_45_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/08/13/image_18082025_08_13_35_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/08/13/image_18082025_08_13_24_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/08/13/image_18082025_08_13_15_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/08/12/image_18082025_08_13_05_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/08/12/image_18082025_08_12_54_9615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85c9f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85c9f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85c9f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:13:31.953842
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/13/image_18082025_08_13_45_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/08/13/image_18082025_08_13_35_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/08/13/image_18082025_08_13_24_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/08/13/image_18082025_08_13_15_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/08/12/image_18082025_08_13_05_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/08/12/image_18082025_08_12_54_9615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86636518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86636518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86636518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:13:46.901716
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/13/image_18082025_08_13_45_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/08/13/image_18082025_08_13_35_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/08/13/image_18082025_08_13_24_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/08/13/image_18082025_08_13_15_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/08/12/image_18082025_08_13_05_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/08/12/image_18082025_08_12_54_9615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faef0d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faef0d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faef0d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:14:03.006560
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/13/image_18082025_08_13_45_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/08/13/image_18082025_08_13_35_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/08/13/image_18082025_08_13_24_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/08/13/image_18082025_08_13_15_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/08/12/image_18082025_08_13_05_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/08/12/image_18082025_08_12_54_9615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa95f9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa95f9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa95f9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:14:17.001846
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/14/image_18082025_08_14_44_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/08/14/image_18082025_08_14_35_10690.jpg', 2), ('/home/nano/Desktop/images/18082025/08/14/image_18082025_08_14_24_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/08/14/image_18082025_08_14_14_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/13/image_18082025_08_14_05_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/08/13/image_18082025_08_13_54_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4be5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4be5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4be5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:14:32.008542
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/14/image_18082025_08_14_44_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/08/14/image_18082025_08_14_35_10690.jpg', 2), ('/home/nano/Desktop/images/18082025/08/14/image_18082025_08_14_24_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/08/14/image_18082025_08_14_14_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/13/image_18082025_08_14_05_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/08/13/image_18082025_08_13_54_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9310c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9310c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9310c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:14:47.019418
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/14/image_18082025_08_14_44_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/08/14/image_18082025_08_14_35_10690.jpg', 2), ('/home/nano/Desktop/images/18082025/08/14/image_18082025_08_14_24_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/08/14/image_18082025_08_14_14_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/13/image_18082025_08_14_05_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/08/13/image_18082025_08_13_54_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a4d5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a4d5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a4d5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:15:02.964967
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/14/image_18082025_08_14_44_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/08/14/image_18082025_08_14_35_10690.jpg', 2), ('/home/nano/Desktop/images/18082025/08/14/image_18082025_08_14_24_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/08/14/image_18082025_08_14_14_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/13/image_18082025_08_14_05_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/08/13/image_18082025_08_13_54_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d3b0518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d3b0518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d3b0518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:15:17.115708
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/15/image_18082025_08_15_44_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/08/15/image_18082025_08_15_35_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/15/image_18082025_08_15_25_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/08/15/image_18082025_08_15_14_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/08/14/image_18082025_08_15_05_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/08/14/image_18082025_08_14_55_10634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb1bb1518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1bb1518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1bb1518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:15:32.098985
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/15/image_18082025_08_15_44_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/08/15/image_18082025_08_15_35_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/15/image_18082025_08_15_25_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/08/15/image_18082025_08_15_14_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/08/14/image_18082025_08_15_05_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/08/14/image_18082025_08_14_55_10634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9dc3d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9dc3d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9dc3d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:15:47.108653
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/15/image_18082025_08_15_44_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/08/15/image_18082025_08_15_35_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/15/image_18082025_08_15_25_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/08/15/image_18082025_08_15_14_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/08/14/image_18082025_08_15_05_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/08/14/image_18082025_08_14_55_10634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8663e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8663e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8663e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:16:02.720965
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/15/image_18082025_08_15_44_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/08/15/image_18082025_08_15_35_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/15/image_18082025_08_15_25_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/08/15/image_18082025_08_15_14_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/08/14/image_18082025_08_15_05_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/08/14/image_18082025_08_14_55_10634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99958518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99958518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99958518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:16:17.232941
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/16/image_18082025_08_16_45_10619.jpg', 2), ('/home/nano/Desktop/images/18082025/08/16/image_18082025_08_16_34_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/08/16/image_18082025_08_16_25_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/08/16/image_18082025_08_16_14_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/08/15/image_18082025_08_16_04_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/08/15/image_18082025_08_15_55_10642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f912c3518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f912c3518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f912c3518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:16:32.221196
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/16/image_18082025_08_16_45_10619.jpg', 2), ('/home/nano/Desktop/images/18082025/08/16/image_18082025_08_16_34_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/08/16/image_18082025_08_16_25_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/08/16/image_18082025_08_16_14_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/08/15/image_18082025_08_16_04_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/08/15/image_18082025_08_15_55_10642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b126518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b126518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b126518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:16:47.216621
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/16/image_18082025_08_16_45_10619.jpg', 2), ('/home/nano/Desktop/images/18082025/08/16/image_18082025_08_16_34_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/08/16/image_18082025_08_16_25_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/08/16/image_18082025_08_16_14_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/08/15/image_18082025_08_16_04_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/08/15/image_18082025_08_15_55_10642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c5d2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c5d2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c5d2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:17:03.137437
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/16/image_18082025_08_16_45_10619.jpg', 2), ('/home/nano/Desktop/images/18082025/08/16/image_18082025_08_16_34_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/08/16/image_18082025_08_16_25_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/08/16/image_18082025_08_16_14_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/08/15/image_18082025_08_16_04_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/08/15/image_18082025_08_15_55_10642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9bb974a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bb974a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bb974a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:17:17.337962
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/17/image_18082025_08_17_45_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/08/17/image_18082025_08_17_34_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/08/17/image_18082025_08_17_25_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/08/17/image_18082025_08_17_15_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/08/16/image_18082025_08_17_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/08/16/image_18082025_08_16_55_9631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2c02518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2c02518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2c02518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:17:32.328853
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/17/image_18082025_08_17_45_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/08/17/image_18082025_08_17_34_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/08/17/image_18082025_08_17_25_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/08/17/image_18082025_08_17_15_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/08/16/image_18082025_08_17_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/08/16/image_18082025_08_16_55_9631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f7af518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f7af518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f7af518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:17:47.375620
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/17/image_18082025_08_17_45_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/08/17/image_18082025_08_17_34_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/08/17/image_18082025_08_17_25_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/08/17/image_18082025_08_17_15_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/08/16/image_18082025_08_17_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/08/16/image_18082025_08_16_55_9631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa86e1518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa86e1518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa86e1518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:18:03.015358
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/17/image_18082025_08_17_45_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/08/17/image_18082025_08_17_34_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/08/17/image_18082025_08_17_25_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/08/17/image_18082025_08_17_15_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/08/16/image_18082025_08_17_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/08/16/image_18082025_08_16_55_9631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86fa44a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86fa44a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86fa44a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:18:17.471230
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/18/image_18082025_08_18_45_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/08/18/image_18082025_08_18_34_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/08/18/image_18082025_08_18_24_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/08/18/image_18082025_08_18_15_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/08/17/image_18082025_08_18_04_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/08/17/image_18082025_08_17_54_9633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f788a4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f788a4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f788a4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:18:32.476984
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/18/image_18082025_08_18_45_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/08/18/image_18082025_08_18_34_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/08/18/image_18082025_08_18_24_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/08/18/image_18082025_08_18_15_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/08/17/image_18082025_08_18_04_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/08/17/image_18082025_08_17_54_9633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f80d45518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80d45518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80d45518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:18:47.462626
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/18/image_18082025_08_18_45_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/08/18/image_18082025_08_18_34_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/08/18/image_18082025_08_18_24_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/08/18/image_18082025_08_18_15_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/08/17/image_18082025_08_18_04_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/08/17/image_18082025_08_17_54_9633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f966c3518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f966c3518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f966c3518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:19:03.567027
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/18/image_18082025_08_18_45_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/08/18/image_18082025_08_18_34_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/08/18/image_18082025_08_18_24_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/08/18/image_18082025_08_18_15_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/08/17/image_18082025_08_18_04_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/08/17/image_18082025_08_17_54_9633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9dd8d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9dd8d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9dd8d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:19:17.558329
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/19/image_18082025_08_19_45_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/08/19/image_18082025_08_19_35_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/08/19/image_18082025_08_19_24_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/08/19/image_18082025_08_19_15_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/08/18/image_18082025_08_19_05_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/08/18/image_18082025_08_18_54_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82806518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82806518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82806518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:19:32.565804
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/19/image_18082025_08_19_45_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/08/19/image_18082025_08_19_35_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/08/19/image_18082025_08_19_24_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/08/19/image_18082025_08_19_15_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/08/18/image_18082025_08_19_05_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/08/18/image_18082025_08_18_54_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94db5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94db5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94db5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:19:47.591314
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/19/image_18082025_08_19_45_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/08/19/image_18082025_08_19_35_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/08/19/image_18082025_08_19_24_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/08/19/image_18082025_08_19_15_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/08/18/image_18082025_08_19_05_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/08/18/image_18082025_08_18_54_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad227518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad227518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad227518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:20:03.222104
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/19/image_18082025_08_19_45_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/08/19/image_18082025_08_19_35_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/08/19/image_18082025_08_19_24_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/08/19/image_18082025_08_19_15_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/08/18/image_18082025_08_19_05_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/08/18/image_18082025_08_18_54_9638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5b5a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5b5a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5b5a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:20:17.678061
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/20/image_18082025_08_20_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/08/20/image_18082025_08_20_35_10633.jpg', 2), ('/home/nano/Desktop/images/18082025/08/20/image_18082025_08_20_24_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/08/20/image_18082025_08_20_15_9696.jpg', 2), ('/home/nano/Desktop/images/18082025/08/19/image_18082025_08_20_05_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/08/19/image_18082025_08_19_54_9621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa124a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa124a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa124a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:20:32.708401
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/20/image_18082025_08_20_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/08/20/image_18082025_08_20_35_10633.jpg', 2), ('/home/nano/Desktop/images/18082025/08/20/image_18082025_08_20_24_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/08/20/image_18082025_08_20_15_9696.jpg', 2), ('/home/nano/Desktop/images/18082025/08/19/image_18082025_08_20_05_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/08/19/image_18082025_08_19_54_9621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab7ba518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab7ba518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab7ba518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:20:47.671367
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/20/image_18082025_08_20_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/08/20/image_18082025_08_20_35_10633.jpg', 2), ('/home/nano/Desktop/images/18082025/08/20/image_18082025_08_20_24_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/08/20/image_18082025_08_20_15_9696.jpg', 2), ('/home/nano/Desktop/images/18082025/08/19/image_18082025_08_20_05_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/08/19/image_18082025_08_19_54_9621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5594518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5594518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5594518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:21:02.431483
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/20/image_18082025_08_20_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/08/20/image_18082025_08_20_35_10633.jpg', 2), ('/home/nano/Desktop/images/18082025/08/20/image_18082025_08_20_24_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/08/20/image_18082025_08_20_15_9696.jpg', 2), ('/home/nano/Desktop/images/18082025/08/19/image_18082025_08_20_05_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/08/19/image_18082025_08_19_54_9621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91bdc518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91bdc518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91bdc518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:21:16.793990
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/21/image_18082025_08_21_44_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/08/21/image_18082025_08_21_35_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/08/21/image_18082025_08_21_25_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/08/21/image_18082025_08_21_14_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/08/20/image_18082025_08_21_05_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/08/20/image_18082025_08_20_54_9633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e310518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e310518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e310518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:21:31.785387
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/21/image_18082025_08_21_44_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/08/21/image_18082025_08_21_35_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/08/21/image_18082025_08_21_25_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/08/21/image_18082025_08_21_14_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/08/20/image_18082025_08_21_05_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/08/20/image_18082025_08_20_54_9633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f914cc518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f914cc518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f914cc518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:21:46.788410
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/21/image_18082025_08_21_44_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/08/21/image_18082025_08_21_35_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/08/21/image_18082025_08_21_25_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/08/21/image_18082025_08_21_14_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/08/20/image_18082025_08_21_05_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/08/20/image_18082025_08_20_54_9633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f1a7518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f1a7518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f1a7518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:22:02.419737
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/21/image_18082025_08_21_44_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/08/21/image_18082025_08_21_35_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/08/21/image_18082025_08_21_25_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/08/21/image_18082025_08_21_14_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/08/20/image_18082025_08_21_05_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/08/20/image_18082025_08_20_54_9633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb1684518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1684518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1684518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:22:16.895739
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/22/image_18082025_08_22_44_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/08/22/image_18082025_08_22_34_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/08/22/image_18082025_08_22_25_10643.jpg', 2), ('/home/nano/Desktop/images/18082025/08/22/image_18082025_08_22_14_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/08/21/image_18082025_08_22_05_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/08/21/image_18082025_08_21_55_10634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa036c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa036c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa036c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:22:31.897883
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/22/image_18082025_08_22_44_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/08/22/image_18082025_08_22_34_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/08/22/image_18082025_08_22_25_10643.jpg', 2), ('/home/nano/Desktop/images/18082025/08/22/image_18082025_08_22_14_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/08/21/image_18082025_08_22_05_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/08/21/image_18082025_08_21_55_10634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa9ad0518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9ad0518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9ad0518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:22:46.874169
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/22/image_18082025_08_22_44_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/08/22/image_18082025_08_22_34_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/08/22/image_18082025_08_22_25_10643.jpg', 2), ('/home/nano/Desktop/images/18082025/08/22/image_18082025_08_22_14_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/08/21/image_18082025_08_22_05_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/08/21/image_18082025_08_21_55_10634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf281518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf281518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf281518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:23:02.787401
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/22/image_18082025_08_22_44_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/08/22/image_18082025_08_22_34_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/08/22/image_18082025_08_22_25_10643.jpg', 2), ('/home/nano/Desktop/images/18082025/08/22/image_18082025_08_22_14_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/08/21/image_18082025_08_22_05_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/08/21/image_18082025_08_21_55_10634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f803ce518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f803ce518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f803ce518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:23:16.978601
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/23/image_18082025_08_23_45_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/08/23/image_18082025_08_23_34_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/23/image_18082025_08_23_25_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/08/23/image_18082025_08_23_15_10657.jpg', 2), ('/home/nano/Desktop/images/18082025/08/22/image_18082025_08_23_04_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/08/22/image_18082025_08_22_55_10641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb16ef518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb16ef518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb16ef518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:23:31.987468
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/23/image_18082025_08_23_45_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/08/23/image_18082025_08_23_34_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/23/image_18082025_08_23_25_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/08/23/image_18082025_08_23_15_10657.jpg', 2), ('/home/nano/Desktop/images/18082025/08/22/image_18082025_08_23_04_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/08/22/image_18082025_08_22_55_10641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8fd75518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fd75518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fd75518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:23:47.035978
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/23/image_18082025_08_23_45_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/08/23/image_18082025_08_23_34_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/23/image_18082025_08_23_25_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/08/23/image_18082025_08_23_15_10657.jpg', 2), ('/home/nano/Desktop/images/18082025/08/22/image_18082025_08_23_04_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/08/22/image_18082025_08_22_55_10641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91f62518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91f62518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91f62518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:24:03.088852
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/23/image_18082025_08_23_45_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/08/23/image_18082025_08_23_34_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/23/image_18082025_08_23_25_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/08/23/image_18082025_08_23_15_10657.jpg', 2), ('/home/nano/Desktop/images/18082025/08/22/image_18082025_08_23_04_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/08/22/image_18082025_08_22_55_10641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84cc7518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84cc7518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84cc7518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:24:17.188885
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/24/image_18082025_08_24_44_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/08/24/image_18082025_08_24_34_9722.jpg', 2), ('/home/nano/Desktop/images/18082025/08/24/image_18082025_08_24_25_9753.jpg', 2), ('/home/nano/Desktop/images/18082025/08/24/image_18082025_08_24_15_10769.jpg', 2), ('/home/nano/Desktop/images/18082025/08/23/image_18082025_08_24_04_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/08/23/image_18082025_08_23_55_9627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f61d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f61d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f61d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:24:32.136884
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/24/image_18082025_08_24_44_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/08/24/image_18082025_08_24_34_9722.jpg', 2), ('/home/nano/Desktop/images/18082025/08/24/image_18082025_08_24_25_9753.jpg', 2), ('/home/nano/Desktop/images/18082025/08/24/image_18082025_08_24_15_10769.jpg', 2), ('/home/nano/Desktop/images/18082025/08/23/image_18082025_08_24_04_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/08/23/image_18082025_08_23_55_9627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a1b9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a1b9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a1b9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:24:47.129097
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/24/image_18082025_08_24_44_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/08/24/image_18082025_08_24_34_9722.jpg', 2), ('/home/nano/Desktop/images/18082025/08/24/image_18082025_08_24_25_9753.jpg', 2), ('/home/nano/Desktop/images/18082025/08/24/image_18082025_08_24_15_10769.jpg', 2), ('/home/nano/Desktop/images/18082025/08/23/image_18082025_08_24_04_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/08/23/image_18082025_08_23_55_9627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faffda518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faffda518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faffda518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:25:02.890014
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/24/image_18082025_08_24_44_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/08/24/image_18082025_08_24_34_9722.jpg', 2), ('/home/nano/Desktop/images/18082025/08/24/image_18082025_08_24_25_9753.jpg', 2), ('/home/nano/Desktop/images/18082025/08/24/image_18082025_08_24_15_10769.jpg', 2), ('/home/nano/Desktop/images/18082025/08/23/image_18082025_08_24_04_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/08/23/image_18082025_08_23_55_9627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6ebe518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6ebe518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6ebe518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:25:17.221893
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/25/image_18082025_08_25_45_10616.jpg', 2), ('/home/nano/Desktop/images/18082025/08/25/image_18082025_08_25_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/08/25/image_18082025_08_25_25_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/25/image_18082025_08_25_14_9706.jpg', 2), ('/home/nano/Desktop/images/18082025/08/24/image_18082025_08_25_04_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/08/24/image_18082025_08_24_55_10690.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7cf644a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7cf644a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7cf644a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:25:32.223414
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/25/image_18082025_08_25_45_10616.jpg', 2), ('/home/nano/Desktop/images/18082025/08/25/image_18082025_08_25_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/08/25/image_18082025_08_25_25_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/25/image_18082025_08_25_14_9706.jpg', 2), ('/home/nano/Desktop/images/18082025/08/24/image_18082025_08_25_04_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/08/24/image_18082025_08_24_55_10690.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4ddb518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4ddb518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4ddb518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:25:47.284056
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/25/image_18082025_08_25_45_10616.jpg', 2), ('/home/nano/Desktop/images/18082025/08/25/image_18082025_08_25_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/08/25/image_18082025_08_25_25_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/25/image_18082025_08_25_14_9706.jpg', 2), ('/home/nano/Desktop/images/18082025/08/24/image_18082025_08_25_04_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/08/24/image_18082025_08_24_55_10690.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94be4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94be4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94be4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:26:02.971715
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/25/image_18082025_08_25_45_10616.jpg', 2), ('/home/nano/Desktop/images/18082025/08/25/image_18082025_08_25_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/08/25/image_18082025_08_25_25_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/25/image_18082025_08_25_14_9706.jpg', 2), ('/home/nano/Desktop/images/18082025/08/24/image_18082025_08_25_04_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/08/24/image_18082025_08_24_55_10690.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95463518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95463518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95463518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:26:17.402973
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/26/image_18082025_08_26_45_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/08/26/image_18082025_08_26_34_9605.jpg', 2), ('/home/nano/Desktop/images/18082025/08/26/image_18082025_08_26_25_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/08/26/image_18082025_08_26_15_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/08/25/image_18082025_08_26_04_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/08/25/image_18082025_08_25_55_9615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d851518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d851518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d851518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:26:32.376596
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/26/image_18082025_08_26_45_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/08/26/image_18082025_08_26_34_9605.jpg', 2), ('/home/nano/Desktop/images/18082025/08/26/image_18082025_08_26_25_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/08/26/image_18082025_08_26_15_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/08/25/image_18082025_08_26_04_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/08/25/image_18082025_08_25_55_9615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8cc81518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8cc81518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8cc81518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:26:47.356830
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/26/image_18082025_08_26_45_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/08/26/image_18082025_08_26_34_9605.jpg', 2), ('/home/nano/Desktop/images/18082025/08/26/image_18082025_08_26_25_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/08/26/image_18082025_08_26_15_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/08/25/image_18082025_08_26_04_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/08/25/image_18082025_08_25_55_9615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb6491518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb6491518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb6491518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:27:02.952354
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/26/image_18082025_08_26_45_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/08/26/image_18082025_08_26_34_9605.jpg', 2), ('/home/nano/Desktop/images/18082025/08/26/image_18082025_08_26_25_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/08/26/image_18082025_08_26_15_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/08/25/image_18082025_08_26_04_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/08/25/image_18082025_08_25_55_9615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f855934a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f855934a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f855934a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:27:17.445163
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/27/image_18082025_08_27_45_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/08/27/image_18082025_08_27_35_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/08/27/image_18082025_08_27_24_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/08/27/image_18082025_08_27_15_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/08/26/image_18082025_08_27_05_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/08/26/image_18082025_08_26_54_9631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e830518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e830518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e830518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:27:32.465109
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/27/image_18082025_08_27_45_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/08/27/image_18082025_08_27_35_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/08/27/image_18082025_08_27_24_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/08/27/image_18082025_08_27_15_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/08/26/image_18082025_08_27_05_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/08/26/image_18082025_08_26_54_9631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2b65518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2b65518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2b65518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:27:47.444228
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/27/image_18082025_08_27_45_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/08/27/image_18082025_08_27_35_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/08/27/image_18082025_08_27_24_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/08/27/image_18082025_08_27_15_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/08/26/image_18082025_08_27_05_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/08/26/image_18082025_08_26_54_9631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9110e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9110e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9110e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:28:02.968872
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/27/image_18082025_08_27_45_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/08/27/image_18082025_08_27_35_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/08/27/image_18082025_08_27_24_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/08/27/image_18082025_08_27_15_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/08/26/image_18082025_08_27_05_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/08/26/image_18082025_08_26_54_9631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f828d5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f828d5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f828d5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:28:17.540127
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/28/image_18082025_08_28_44_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/08/28/image_18082025_08_28_35_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/08/28/image_18082025_08_28_24_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/08/28/image_18082025_08_28_15_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/08/27/image_18082025_08_28_05_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/08/27/image_18082025_08_27_54_9650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a256518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a256518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a256518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:28:32.578522
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/28/image_18082025_08_28_44_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/08/28/image_18082025_08_28_35_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/08/28/image_18082025_08_28_24_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/08/28/image_18082025_08_28_15_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/08/27/image_18082025_08_28_05_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/08/27/image_18082025_08_27_54_9650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7dd92518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7dd92518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7dd92518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:28:47.562458
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/28/image_18082025_08_28_44_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/08/28/image_18082025_08_28_35_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/08/28/image_18082025_08_28_24_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/08/28/image_18082025_08_28_15_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/08/27/image_18082025_08_28_05_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/08/27/image_18082025_08_27_54_9650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9fd38518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fd38518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fd38518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:29:03.655898
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/28/image_18082025_08_28_44_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/08/28/image_18082025_08_28_35_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/08/28/image_18082025_08_28_24_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/08/28/image_18082025_08_28_15_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/08/27/image_18082025_08_28_05_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/08/27/image_18082025_08_27_54_9650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa99674a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa99674a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa99674a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:29:17.666856
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/29/image_18082025_08_29_44_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/08/29/image_18082025_08_29_35_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/08/29/image_18082025_08_29_25_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/29/image_18082025_08_29_14_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/08/28/image_18082025_08_29_05_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/08/28/image_18082025_08_28_55_10628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb1465518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1465518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1465518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:29:32.649533
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/29/image_18082025_08_29_44_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/08/29/image_18082025_08_29_35_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/08/29/image_18082025_08_29_25_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/29/image_18082025_08_29_14_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/08/28/image_18082025_08_29_05_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/08/28/image_18082025_08_28_55_10628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f840cc518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f840cc518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f840cc518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:29:47.664063
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/29/image_18082025_08_29_44_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/08/29/image_18082025_08_29_35_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/08/29/image_18082025_08_29_25_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/29/image_18082025_08_29_14_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/08/28/image_18082025_08_29_05_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/08/28/image_18082025_08_28_55_10628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88b1b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88b1b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88b1b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:30:02.256092
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/29/image_18082025_08_29_44_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/08/29/image_18082025_08_29_35_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/08/29/image_18082025_08_29_25_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/29/image_18082025_08_29_14_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/08/28/image_18082025_08_29_05_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/08/28/image_18082025_08_28_55_10628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7594518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7594518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7594518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:30:16.801293
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/30/image_18082025_08_30_44_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/08/29/image_18082025_08_30_05_9673.jpg', 2), ('/home/nano/Desktop/images/18082025/08/29/image_18082025_08_29_55_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/29/image_18082025_08_29_44_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/08/29/image_18082025_08_29_35_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/08/29/image_18082025_08_29_25_10626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9cd92518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cd92518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cd92518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:30:31.773791
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/30/image_18082025_08_30_44_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/08/29/image_18082025_08_30_05_9673.jpg', 2), ('/home/nano/Desktop/images/18082025/08/29/image_18082025_08_29_55_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/29/image_18082025_08_29_44_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/08/29/image_18082025_08_29_35_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/08/29/image_18082025_08_29_25_10626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d30a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d30a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d30a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:30:46.779525
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/30/image_18082025_08_30_44_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/08/29/image_18082025_08_30_05_9673.jpg', 2), ('/home/nano/Desktop/images/18082025/08/29/image_18082025_08_29_55_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/29/image_18082025_08_29_44_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/08/29/image_18082025_08_29_35_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/08/29/image_18082025_08_29_25_10626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85709518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85709518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85709518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:31:02.451944
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/30/image_18082025_08_30_44_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/08/29/image_18082025_08_30_05_9673.jpg', 2), ('/home/nano/Desktop/images/18082025/08/29/image_18082025_08_29_55_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/29/image_18082025_08_29_44_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/08/29/image_18082025_08_29_35_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/08/29/image_18082025_08_29_25_10626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0a70550>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0a70550>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0a70550>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:31:16.934834
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/31/image_18082025_08_31_44_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/08/31/image_18082025_08_31_35_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/08/31/image_18082025_08_31_25_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/08/30/image_18082025_08_31_05_9681.jpg', 2), ('/home/nano/Desktop/images/18082025/08/30/image_18082025_08_30_55_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/08/30/image_18082025_08_30_44_9652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7bda84a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bda84a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bda84a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:31:31.934339
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/31/image_18082025_08_31_44_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/08/31/image_18082025_08_31_35_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/08/31/image_18082025_08_31_25_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/08/30/image_18082025_08_31_05_9681.jpg', 2), ('/home/nano/Desktop/images/18082025/08/30/image_18082025_08_30_55_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/08/30/image_18082025_08_30_44_9652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4825518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4825518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4825518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:31:46.846032
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/31/image_18082025_08_31_44_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/08/31/image_18082025_08_31_35_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/08/31/image_18082025_08_31_25_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/08/30/image_18082025_08_31_05_9681.jpg', 2), ('/home/nano/Desktop/images/18082025/08/30/image_18082025_08_30_55_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/08/30/image_18082025_08_30_44_9652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f825c4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f825c4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f825c4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:32:02.562118
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/31/image_18082025_08_31_44_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/08/31/image_18082025_08_31_35_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/08/31/image_18082025_08_31_25_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/08/30/image_18082025_08_31_05_9681.jpg', 2), ('/home/nano/Desktop/images/18082025/08/30/image_18082025_08_30_55_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/08/30/image_18082025_08_30_44_9652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb1acf518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1acf518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1acf518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:32:16.948922
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/32/image_18082025_08_32_44_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/08/32/image_18082025_08_32_34_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/08/32/image_18082025_08_32_25_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/08/32/image_18082025_08_32_14_9678.jpg', 2), ('/home/nano/Desktop/images/18082025/08/31/image_18082025_08_32_04_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/08/31/image_18082025_08_31_55_10653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d9c5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d9c5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d9c5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:32:31.988026
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/32/image_18082025_08_32_44_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/08/32/image_18082025_08_32_34_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/08/32/image_18082025_08_32_25_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/08/32/image_18082025_08_32_14_9678.jpg', 2), ('/home/nano/Desktop/images/18082025/08/31/image_18082025_08_32_04_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/08/31/image_18082025_08_31_55_10653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77caa518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77caa518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77caa518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:32:46.935537
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/32/image_18082025_08_32_44_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/08/32/image_18082025_08_32_34_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/08/32/image_18082025_08_32_25_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/08/32/image_18082025_08_32_14_9678.jpg', 2), ('/home/nano/Desktop/images/18082025/08/31/image_18082025_08_32_04_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/08/31/image_18082025_08_31_55_10653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f964ee4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f964ee4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f964ee4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:33:02.893285
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/32/image_18082025_08_32_44_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/08/32/image_18082025_08_32_34_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/08/32/image_18082025_08_32_25_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/08/32/image_18082025_08_32_14_9678.jpg', 2), ('/home/nano/Desktop/images/18082025/08/31/image_18082025_08_32_04_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/08/31/image_18082025_08_31_55_10653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98966518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98966518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98966518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:33:17.050499
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/33/image_18082025_08_33_45_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/08/33/image_18082025_08_33_34_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/33/image_18082025_08_33_25_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/08/33/image_18082025_08_33_15_10678.jpg', 2), ('/home/nano/Desktop/images/18082025/08/32/image_18082025_08_33_04_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/08/32/image_18082025_08_32_55_10636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83b7f4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83b7f4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83b7f4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:33:32.048712
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/33/image_18082025_08_33_45_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/08/33/image_18082025_08_33_34_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/33/image_18082025_08_33_25_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/08/33/image_18082025_08_33_15_10678.jpg', 2), ('/home/nano/Desktop/images/18082025/08/32/image_18082025_08_33_04_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/08/32/image_18082025_08_32_55_10636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa739f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa739f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa739f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:33:47.082424
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/33/image_18082025_08_33_45_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/08/33/image_18082025_08_33_34_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/33/image_18082025_08_33_25_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/08/33/image_18082025_08_33_15_10678.jpg', 2), ('/home/nano/Desktop/images/18082025/08/32/image_18082025_08_33_04_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/08/32/image_18082025_08_32_55_10636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9af80518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9af80518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9af80518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:34:03.038477
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/33/image_18082025_08_33_45_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/08/33/image_18082025_08_33_34_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/33/image_18082025_08_33_25_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/08/33/image_18082025_08_33_15_10678.jpg', 2), ('/home/nano/Desktop/images/18082025/08/32/image_18082025_08_33_04_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/08/32/image_18082025_08_32_55_10636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f941d8518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f941d8518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f941d8518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:34:17.204471
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/34/image_18082025_08_34_45_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/08/34/image_18082025_08_34_34_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/08/34/image_18082025_08_34_25_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/08/34/image_18082025_08_34_15_10664.jpg', 2), ('/home/nano/Desktop/images/18082025/08/33/image_18082025_08_34_04_9670.jpg', 2), ('/home/nano/Desktop/images/18082025/08/33/image_18082025_08_33_55_9623.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa9975518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9975518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9975518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:34:32.169527
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/34/image_18082025_08_34_45_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/08/34/image_18082025_08_34_34_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/08/34/image_18082025_08_34_25_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/08/34/image_18082025_08_34_15_10664.jpg', 2), ('/home/nano/Desktop/images/18082025/08/33/image_18082025_08_34_04_9670.jpg', 2), ('/home/nano/Desktop/images/18082025/08/33/image_18082025_08_33_55_9623.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f859ab518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f859ab518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f859ab518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:34:47.150443
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/34/image_18082025_08_34_45_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/08/34/image_18082025_08_34_34_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/08/34/image_18082025_08_34_25_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/08/34/image_18082025_08_34_15_10664.jpg', 2), ('/home/nano/Desktop/images/18082025/08/33/image_18082025_08_34_04_9670.jpg', 2), ('/home/nano/Desktop/images/18082025/08/33/image_18082025_08_33_55_9623.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb26d5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb26d5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb26d5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:35:02.920406
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/34/image_18082025_08_34_45_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/08/34/image_18082025_08_34_34_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/08/34/image_18082025_08_34_25_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/08/34/image_18082025_08_34_15_10664.jpg', 2), ('/home/nano/Desktop/images/18082025/08/33/image_18082025_08_34_04_9670.jpg', 2), ('/home/nano/Desktop/images/18082025/08/33/image_18082025_08_33_55_9623.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5a3c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5a3c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5a3c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:35:17.264792
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/35/image_18082025_08_35_45_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/08/35/image_18082025_08_35_35_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/08/35/image_18082025_08_35_24_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/08/35/image_18082025_08_35_15_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/08/34/image_18082025_08_35_05_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/08/34/image_18082025_08_34_54_9623.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d595518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d595518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d595518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:35:32.247308
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/35/image_18082025_08_35_45_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/08/35/image_18082025_08_35_35_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/08/35/image_18082025_08_35_24_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/08/35/image_18082025_08_35_15_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/08/34/image_18082025_08_35_05_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/08/34/image_18082025_08_34_54_9623.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f8ea518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f8ea518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f8ea518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:35:47.263774
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/35/image_18082025_08_35_45_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/08/35/image_18082025_08_35_35_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/08/35/image_18082025_08_35_24_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/08/35/image_18082025_08_35_15_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/08/34/image_18082025_08_35_05_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/08/34/image_18082025_08_34_54_9623.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f80655518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80655518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80655518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:36:02.889429
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/35/image_18082025_08_35_45_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/08/35/image_18082025_08_35_35_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/08/35/image_18082025_08_35_24_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/08/35/image_18082025_08_35_15_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/08/34/image_18082025_08_35_05_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/08/34/image_18082025_08_34_54_9623.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad3bb518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad3bb518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad3bb518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:36:17.354510
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/36/image_18082025_08_36_44_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/08/36/image_18082025_08_36_35_10634.jpg', 2), ('/home/nano/Desktop/images/18082025/08/36/image_18082025_08_36_24_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/08/36/image_18082025_08_36_15_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/08/35/image_18082025_08_36_05_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/08/35/image_18082025_08_35_54_9621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f952da4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f952da4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f952da4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:36:32.487266
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/36/image_18082025_08_36_44_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/08/36/image_18082025_08_36_35_10634.jpg', 2), ('/home/nano/Desktop/images/18082025/08/36/image_18082025_08_36_24_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/08/36/image_18082025_08_36_15_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/08/35/image_18082025_08_36_05_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/08/35/image_18082025_08_35_54_9621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e14d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e14d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e14d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:36:47.415959
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/36/image_18082025_08_36_44_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/08/36/image_18082025_08_36_35_10634.jpg', 2), ('/home/nano/Desktop/images/18082025/08/36/image_18082025_08_36_24_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/08/36/image_18082025_08_36_15_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/08/35/image_18082025_08_36_05_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/08/35/image_18082025_08_35_54_9621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5495518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5495518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5495518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:37:03.263757
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/36/image_18082025_08_36_44_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/08/36/image_18082025_08_36_35_10634.jpg', 2), ('/home/nano/Desktop/images/18082025/08/36/image_18082025_08_36_24_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/08/36/image_18082025_08_36_15_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/08/35/image_18082025_08_36_05_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/08/35/image_18082025_08_35_54_9621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb1fad4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1fad4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1fad4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:37:17.543121
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/37/image_18082025_08_37_44_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/08/37/image_18082025_08_37_35_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/08/37/image_18082025_08_37_25_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/08/37/image_18082025_08_37_14_9672.jpg', 2), ('/home/nano/Desktop/images/18082025/08/36/image_18082025_08_37_05_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/08/36/image_18082025_08_36_55_10631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f883fe4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f883fe4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f883fe4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:37:32.511609
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/37/image_18082025_08_37_44_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/08/37/image_18082025_08_37_35_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/08/37/image_18082025_08_37_25_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/08/37/image_18082025_08_37_14_9672.jpg', 2), ('/home/nano/Desktop/images/18082025/08/36/image_18082025_08_37_05_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/08/36/image_18082025_08_36_55_10631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f839764a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f839764a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f839764a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:37:47.525124
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/37/image_18082025_08_37_44_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/08/37/image_18082025_08_37_35_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/08/37/image_18082025_08_37_25_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/08/37/image_18082025_08_37_14_9672.jpg', 2), ('/home/nano/Desktop/images/18082025/08/36/image_18082025_08_37_05_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/08/36/image_18082025_08_36_55_10631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f869da518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f869da518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f869da518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:38:03.227467
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/37/image_18082025_08_37_44_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/08/37/image_18082025_08_37_35_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/08/37/image_18082025_08_37_25_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/08/37/image_18082025_08_37_14_9672.jpg', 2), ('/home/nano/Desktop/images/18082025/08/36/image_18082025_08_37_05_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/08/36/image_18082025_08_36_55_10631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91b0e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91b0e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91b0e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:38:17.642033
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/38/image_18082025_08_38_44_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/08/38/image_18082025_08_38_34_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/08/38/image_18082025_08_38_25_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/08/38/image_18082025_08_38_14_9684.jpg', 2), ('/home/nano/Desktop/images/18082025/08/37/image_18082025_08_38_05_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/08/37/image_18082025_08_37_55_10631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b603518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b603518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b603518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:38:32.620940
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/38/image_18082025_08_38_44_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/08/38/image_18082025_08_38_34_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/08/38/image_18082025_08_38_25_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/08/38/image_18082025_08_38_14_9684.jpg', 2), ('/home/nano/Desktop/images/18082025/08/37/image_18082025_08_38_05_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/08/37/image_18082025_08_37_55_10631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91cba518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91cba518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91cba518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:38:47.604717
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/38/image_18082025_08_38_44_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/08/38/image_18082025_08_38_34_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/08/38/image_18082025_08_38_25_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/08/38/image_18082025_08_38_14_9684.jpg', 2), ('/home/nano/Desktop/images/18082025/08/37/image_18082025_08_38_05_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/08/37/image_18082025_08_37_55_10631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8fe90518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fe90518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fe90518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:39:03.631615
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/38/image_18082025_08_38_44_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/08/38/image_18082025_08_38_34_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/08/38/image_18082025_08_38_25_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/08/38/image_18082025_08_38_14_9684.jpg', 2), ('/home/nano/Desktop/images/18082025/08/37/image_18082025_08_38_05_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/08/37/image_18082025_08_37_55_10631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab2f8518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab2f8518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab2f8518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:39:17.750015
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/39/image_18082025_08_39_45_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/08/39/image_18082025_08_39_34_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/08/39/image_18082025_08_39_25_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/08/39/image_18082025_08_39_15_10677.jpg', 2), ('/home/nano/Desktop/images/18082025/08/38/image_18082025_08_39_04_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/08/38/image_18082025_08_38_55_10632.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5b474a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5b474a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5b474a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:39:32.737334
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/39/image_18082025_08_39_45_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/08/39/image_18082025_08_39_34_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/08/39/image_18082025_08_39_25_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/08/39/image_18082025_08_39_15_10677.jpg', 2), ('/home/nano/Desktop/images/18082025/08/38/image_18082025_08_39_04_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/08/38/image_18082025_08_38_55_10632.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95143518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95143518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95143518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:39:47.704089
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/39/image_18082025_08_39_45_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/08/39/image_18082025_08_39_34_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/08/39/image_18082025_08_39_25_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/08/39/image_18082025_08_39_15_10677.jpg', 2), ('/home/nano/Desktop/images/18082025/08/38/image_18082025_08_39_04_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/08/38/image_18082025_08_38_55_10632.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa271b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa271b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa271b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:40:02.398263
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/39/image_18082025_08_39_45_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/08/39/image_18082025_08_39_34_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/08/39/image_18082025_08_39_25_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/08/39/image_18082025_08_39_15_10677.jpg', 2), ('/home/nano/Desktop/images/18082025/08/38/image_18082025_08_39_04_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/08/38/image_18082025_08_38_55_10632.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9098a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9098a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9098a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:40:16.821773
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/40/image_18082025_08_40_45_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/08/40/image_18082025_08_40_34_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/08/40/image_18082025_08_40_24_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/08/40/image_18082025_08_40_15_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/08/39/image_18082025_08_40_04_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/08/39/image_18082025_08_39_55_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2dec518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2dec518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2dec518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:40:31.823526
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/40/image_18082025_08_40_45_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/08/40/image_18082025_08_40_34_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/08/40/image_18082025_08_40_24_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/08/40/image_18082025_08_40_15_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/08/39/image_18082025_08_40_04_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/08/39/image_18082025_08_39_55_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4fa3518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4fa3518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4fa3518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:40:46.819139
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/40/image_18082025_08_40_45_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/08/40/image_18082025_08_40_34_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/08/40/image_18082025_08_40_24_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/08/40/image_18082025_08_40_15_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/08/39/image_18082025_08_40_04_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/08/39/image_18082025_08_39_55_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76d21518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76d21518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76d21518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:41:02.628649
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/40/image_18082025_08_40_45_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/08/40/image_18082025_08_40_34_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/08/40/image_18082025_08_40_24_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/08/40/image_18082025_08_40_15_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/08/39/image_18082025_08_40_04_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/08/39/image_18082025_08_39_55_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0937518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0937518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0937518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:41:16.944027
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/41/image_18082025_08_41_44_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/08/41/image_18082025_08_41_15_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/08/40/image_18082025_08_41_05_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/08/40/image_18082025_08_40_54_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/40/image_18082025_08_40_45_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/08/40/image_18082025_08_40_34_9632.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb05d04a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb05d04a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb05d04a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:41:31.904617
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/41/image_18082025_08_41_44_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/08/41/image_18082025_08_41_15_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/08/40/image_18082025_08_41_05_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/08/40/image_18082025_08_40_54_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/40/image_18082025_08_40_45_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/08/40/image_18082025_08_40_34_9632.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86279518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86279518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86279518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:41:46.921468
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/41/image_18082025_08_41_44_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/08/41/image_18082025_08_41_15_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/08/40/image_18082025_08_41_05_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/08/40/image_18082025_08_40_54_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/40/image_18082025_08_40_45_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/08/40/image_18082025_08_40_34_9632.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8806c4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8806c4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8806c4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:42:02.561329
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/41/image_18082025_08_41_44_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/08/41/image_18082025_08_41_15_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/08/40/image_18082025_08_41_05_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/08/40/image_18082025_08_40_54_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/40/image_18082025_08_40_45_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/08/40/image_18082025_08_40_34_9632.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b9b3518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b9b3518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b9b3518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:42:17.024439
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/42/image_18082025_08_42_44_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/08/42/image_18082025_08_42_35_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/08/42/image_18082025_08_42_25_10634.jpg', 2), ('/home/nano/Desktop/images/18082025/08/42/image_18082025_08_42_14_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/08/41/image_18082025_08_42_05_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/08/41/image_18082025_08_41_54_9623.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faee05518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faee05518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faee05518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:42:32.019430
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/42/image_18082025_08_42_44_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/08/42/image_18082025_08_42_35_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/08/42/image_18082025_08_42_25_10634.jpg', 2), ('/home/nano/Desktop/images/18082025/08/42/image_18082025_08_42_14_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/08/41/image_18082025_08_42_05_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/08/41/image_18082025_08_41_54_9623.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c7d0518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c7d0518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c7d0518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:42:47.020746
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/42/image_18082025_08_42_44_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/08/42/image_18082025_08_42_35_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/08/42/image_18082025_08_42_25_10634.jpg', 2), ('/home/nano/Desktop/images/18082025/08/42/image_18082025_08_42_14_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/08/41/image_18082025_08_42_05_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/08/41/image_18082025_08_41_54_9623.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0df4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0df4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0df4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:43:02.738760
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/42/image_18082025_08_42_44_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/08/42/image_18082025_08_42_35_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/08/42/image_18082025_08_42_25_10634.jpg', 2), ('/home/nano/Desktop/images/18082025/08/42/image_18082025_08_42_14_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/08/41/image_18082025_08_42_05_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/08/41/image_18082025_08_41_54_9623.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa37974e0>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa37974e0>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa37974e0>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:43:17.177814
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/43/image_18082025_08_43_44_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/08/43/image_18082025_08_43_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/08/43/image_18082025_08_43_25_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/08/43/image_18082025_08_43_14_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/08/42/image_18082025_08_43_05_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/08/42/image_18082025_08_42_55_10635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7da45518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7da45518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7da45518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:43:32.141812
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/43/image_18082025_08_43_44_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/08/43/image_18082025_08_43_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/08/43/image_18082025_08_43_25_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/08/43/image_18082025_08_43_14_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/08/42/image_18082025_08_43_05_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/08/42/image_18082025_08_42_55_10635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf206518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf206518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf206518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:43:47.125362
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/43/image_18082025_08_43_44_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/08/43/image_18082025_08_43_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/08/43/image_18082025_08_43_25_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/08/43/image_18082025_08_43_14_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/08/42/image_18082025_08_43_05_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/08/42/image_18082025_08_42_55_10635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7957a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7957a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7957a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:44:03.265566
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/43/image_18082025_08_43_44_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/08/43/image_18082025_08_43_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/08/43/image_18082025_08_43_25_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/08/43/image_18082025_08_43_14_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/08/42/image_18082025_08_43_05_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/08/42/image_18082025_08_42_55_10635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f00f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f00f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f00f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:44:17.234765
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/44/image_18082025_08_44_45_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/08/44/image_18082025_08_44_34_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/08/44/image_18082025_08_44_25_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/08/44/image_18082025_08_44_15_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/08/43/image_18082025_08_43_55_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/08/43/image_18082025_08_43_44_9620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5d904a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5d904a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5d904a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:44:32.229661
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/44/image_18082025_08_44_45_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/08/44/image_18082025_08_44_34_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/08/44/image_18082025_08_44_25_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/08/44/image_18082025_08_44_15_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/08/43/image_18082025_08_43_55_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/08/43/image_18082025_08_43_44_9620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85d5e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85d5e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85d5e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:44:47.249544
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/44/image_18082025_08_44_45_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/08/44/image_18082025_08_44_34_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/08/44/image_18082025_08_44_25_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/08/44/image_18082025_08_44_15_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/08/43/image_18082025_08_43_55_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/08/43/image_18082025_08_43_44_9620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88a61518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88a61518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88a61518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:45:02.831567
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/44/image_18082025_08_44_45_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/08/44/image_18082025_08_44_34_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/08/44/image_18082025_08_44_25_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/08/44/image_18082025_08_44_15_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/08/43/image_18082025_08_43_55_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/08/43/image_18082025_08_43_44_9620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d9af4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d9af4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d9af4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:45:17.322859
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/45/image_18082025_08_45_45_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/08/45/image_18082025_08_45_34_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/08/45/image_18082025_08_45_24_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/08/45/image_18082025_08_45_15_10675.jpg', 2), ('/home/nano/Desktop/images/18082025/08/44/image_18082025_08_45_04_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/08/44/image_18082025_08_44_55_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85125518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85125518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85125518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:45:32.332332
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/45/image_18082025_08_45_45_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/08/45/image_18082025_08_45_34_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/08/45/image_18082025_08_45_24_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/08/45/image_18082025_08_45_15_10675.jpg', 2), ('/home/nano/Desktop/images/18082025/08/44/image_18082025_08_45_04_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/08/44/image_18082025_08_44_55_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8968c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8968c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8968c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:45:47.340637
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/45/image_18082025_08_45_45_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/08/45/image_18082025_08_45_34_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/08/45/image_18082025_08_45_24_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/08/45/image_18082025_08_45_15_10675.jpg', 2), ('/home/nano/Desktop/images/18082025/08/44/image_18082025_08_45_04_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/08/44/image_18082025_08_44_55_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95b50518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95b50518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95b50518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:46:03.077620
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/45/image_18082025_08_45_45_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/08/45/image_18082025_08_45_34_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/08/45/image_18082025_08_45_24_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/08/45/image_18082025_08_45_15_10675.jpg', 2), ('/home/nano/Desktop/images/18082025/08/44/image_18082025_08_45_04_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/08/44/image_18082025_08_44_55_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb11f6518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb11f6518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb11f6518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:46:17.457717
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/46/image_18082025_08_46_45_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/08/46/image_18082025_08_46_35_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/08/46/image_18082025_08_46_24_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/08/46/image_18082025_08_46_15_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/08/45/image_18082025_08_46_05_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/08/45/image_18082025_08_45_54_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4df0518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4df0518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4df0518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:46:32.468706
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/46/image_18082025_08_46_45_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/08/46/image_18082025_08_46_35_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/08/46/image_18082025_08_46_24_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/08/46/image_18082025_08_46_15_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/08/45/image_18082025_08_46_05_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/08/45/image_18082025_08_45_54_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa72404a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa72404a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa72404a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:46:47.425408
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/46/image_18082025_08_46_45_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/08/46/image_18082025_08_46_35_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/08/46/image_18082025_08_46_24_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/08/46/image_18082025_08_46_15_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/08/45/image_18082025_08_46_05_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/08/45/image_18082025_08_45_54_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8c9f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8c9f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8c9f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:47:03.207958
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/46/image_18082025_08_46_45_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/08/46/image_18082025_08_46_35_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/08/46/image_18082025_08_46_24_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/08/46/image_18082025_08_46_15_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/08/45/image_18082025_08_46_05_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/08/45/image_18082025_08_45_54_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1f44518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1f44518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1f44518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:47:17.529685
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/47/image_18082025_08_47_44_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/08/47/image_18082025_08_47_35_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/08/47/image_18082025_08_47_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/08/47/image_18082025_08_47_14_9671.jpg', 2), ('/home/nano/Desktop/images/18082025/08/46/image_18082025_08_47_05_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/08/46/image_18082025_08_46_54_9622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9195f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9195f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9195f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:47:32.522012
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/47/image_18082025_08_47_44_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/08/47/image_18082025_08_47_35_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/08/47/image_18082025_08_47_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/08/47/image_18082025_08_47_14_9671.jpg', 2), ('/home/nano/Desktop/images/18082025/08/46/image_18082025_08_47_05_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/08/46/image_18082025_08_46_54_9622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f897dd518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f897dd518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f897dd518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:47:47.526494
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/47/image_18082025_08_47_44_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/08/47/image_18082025_08_47_35_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/08/47/image_18082025_08_47_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/08/47/image_18082025_08_47_14_9671.jpg', 2), ('/home/nano/Desktop/images/18082025/08/46/image_18082025_08_47_05_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/08/46/image_18082025_08_46_54_9622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94608550>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94608550>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94608550>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:48:03.240489
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/47/image_18082025_08_47_44_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/08/47/image_18082025_08_47_35_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/08/47/image_18082025_08_47_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/08/47/image_18082025_08_47_14_9671.jpg', 2), ('/home/nano/Desktop/images/18082025/08/46/image_18082025_08_47_05_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/08/46/image_18082025_08_46_54_9622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83f74518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83f74518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83f74518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:48:17.626196
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/48/image_18082025_08_48_44_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/48/image_18082025_08_48_35_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/08/48/image_18082025_08_48_25_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/08/48/image_18082025_08_48_14_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/08/47/image_18082025_08_48_05_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/08/47/image_18082025_08_47_55_10623.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0e31518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0e31518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0e31518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:48:32.623826
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/48/image_18082025_08_48_44_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/48/image_18082025_08_48_35_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/08/48/image_18082025_08_48_25_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/08/48/image_18082025_08_48_14_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/08/47/image_18082025_08_48_05_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/08/47/image_18082025_08_47_55_10623.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa503e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa503e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa503e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:48:47.624064
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/48/image_18082025_08_48_44_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/48/image_18082025_08_48_35_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/08/48/image_18082025_08_48_25_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/08/48/image_18082025_08_48_14_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/08/47/image_18082025_08_48_05_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/08/47/image_18082025_08_47_55_10623.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3564518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3564518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3564518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:49:03.620441
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/48/image_18082025_08_48_44_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/48/image_18082025_08_48_35_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/08/48/image_18082025_08_48_25_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/08/48/image_18082025_08_48_14_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/08/47/image_18082025_08_48_05_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/08/47/image_18082025_08_47_55_10623.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2e1f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2e1f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2e1f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:49:17.774012
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/49/image_18082025_08_49_45_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/08/49/image_18082025_08_49_34_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/08/49/image_18082025_08_49_25_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/08/49/image_18082025_08_49_14_9665.jpg', 2), ('/home/nano/Desktop/images/18082025/08/48/image_18082025_08_49_04_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/08/48/image_18082025_08_48_55_10638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f979b6518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f979b6518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f979b6518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:49:32.740305
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/49/image_18082025_08_49_45_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/08/49/image_18082025_08_49_34_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/08/49/image_18082025_08_49_25_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/08/49/image_18082025_08_49_14_9665.jpg', 2), ('/home/nano/Desktop/images/18082025/08/48/image_18082025_08_49_04_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/08/48/image_18082025_08_48_55_10638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7403518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7403518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7403518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:49:47.714980
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/49/image_18082025_08_49_45_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/08/49/image_18082025_08_49_34_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/08/49/image_18082025_08_49_25_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/08/49/image_18082025_08_49_14_9665.jpg', 2), ('/home/nano/Desktop/images/18082025/08/48/image_18082025_08_49_04_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/08/48/image_18082025_08_48_55_10638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76b6c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76b6c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76b6c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:50:02.276958
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/49/image_18082025_08_49_45_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/08/49/image_18082025_08_49_34_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/08/49/image_18082025_08_49_25_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/08/49/image_18082025_08_49_14_9665.jpg', 2), ('/home/nano/Desktop/images/18082025/08/48/image_18082025_08_49_04_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/08/48/image_18082025_08_48_55_10638.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa22ea4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa22ea4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa22ea4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:50:16.812746
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/50/image_18082025_08_50_45_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/08/50/image_18082025_08_50_34_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/08/50/image_18082025_08_50_24_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/08/50/image_18082025_08_50_15_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/08/49/image_18082025_08_50_04_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/08/49/image_18082025_08_49_55_9635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93649550>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93649550>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93649550>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:50:31.831202
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/50/image_18082025_08_50_45_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/08/50/image_18082025_08_50_34_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/08/50/image_18082025_08_50_24_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/08/50/image_18082025_08_50_15_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/08/49/image_18082025_08_50_04_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/08/49/image_18082025_08_49_55_9635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e515518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e515518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e515518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:50:46.821397
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/50/image_18082025_08_50_45_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/08/50/image_18082025_08_50_34_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/08/50/image_18082025_08_50_24_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/08/50/image_18082025_08_50_15_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/08/49/image_18082025_08_50_04_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/08/49/image_18082025_08_49_55_9635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88c45518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88c45518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88c45518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:51:02.484781
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/50/image_18082025_08_50_45_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/08/50/image_18082025_08_50_34_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/08/50/image_18082025_08_50_24_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/08/50/image_18082025_08_50_15_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/08/49/image_18082025_08_50_04_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/08/49/image_18082025_08_49_55_9635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89ee2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89ee2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89ee2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:51:16.936535
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/51/image_18082025_08_51_44_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/08/51/image_18082025_08_51_35_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/08/51/image_18082025_08_51_24_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/08/51/image_18082025_08_51_15_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/08/50/image_18082025_08_51_05_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/08/50/image_18082025_08_50_54_9614.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa493f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa493f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa493f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:51:32.006558
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/51/image_18082025_08_51_44_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/08/51/image_18082025_08_51_35_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/08/51/image_18082025_08_51_24_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/08/51/image_18082025_08_51_15_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/08/50/image_18082025_08_51_05_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/08/50/image_18082025_08_50_54_9614.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0e81518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0e81518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0e81518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:51:46.954490
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/51/image_18082025_08_51_44_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/08/51/image_18082025_08_51_35_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/08/51/image_18082025_08_51_24_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/08/51/image_18082025_08_51_15_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/08/50/image_18082025_08_51_05_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/08/50/image_18082025_08_50_54_9614.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90cee518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90cee518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90cee518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:52:02.665583
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/51/image_18082025_08_51_44_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/08/51/image_18082025_08_51_35_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/08/51/image_18082025_08_51_24_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/08/51/image_18082025_08_51_15_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/08/50/image_18082025_08_51_05_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/08/50/image_18082025_08_50_54_9614.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97379518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97379518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97379518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:52:17.083495
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/52/image_18082025_08_52_44_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/08/52/image_18082025_08_52_35_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/08/52/image_18082025_08_52_25_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/08/52/image_18082025_08_52_14_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/08/51/image_18082025_08_52_05_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/08/51/image_18082025_08_51_54_9615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4923518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4923518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4923518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:52:32.053339
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/52/image_18082025_08_52_44_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/08/52/image_18082025_08_52_35_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/08/52/image_18082025_08_52_25_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/08/52/image_18082025_08_52_14_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/08/51/image_18082025_08_52_05_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/08/51/image_18082025_08_51_54_9615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb003b4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb003b4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb003b4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:52:47.040987
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/52/image_18082025_08_52_44_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/08/52/image_18082025_08_52_35_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/08/52/image_18082025_08_52_25_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/08/52/image_18082025_08_52_14_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/08/51/image_18082025_08_52_05_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/08/51/image_18082025_08_51_54_9615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f834184a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f834184a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f834184a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:53:02.810408
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/52/image_18082025_08_52_44_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/08/52/image_18082025_08_52_35_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/08/52/image_18082025_08_52_25_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/08/52/image_18082025_08_52_14_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/08/51/image_18082025_08_52_05_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/08/51/image_18082025_08_51_54_9615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81c5f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81c5f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81c5f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:53:17.164970
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/53/image_18082025_08_53_45_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/08/53/image_18082025_08_53_34_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/53/image_18082025_08_53_25_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/08/53/image_18082025_08_53_14_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/08/52/image_18082025_08_53_05_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/08/52/image_18082025_08_52_55_10646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c563518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c563518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c563518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:53:32.194959
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/53/image_18082025_08_53_45_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/08/53/image_18082025_08_53_34_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/53/image_18082025_08_53_25_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/08/53/image_18082025_08_53_14_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/08/52/image_18082025_08_53_05_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/08/52/image_18082025_08_52_55_10646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ecf3518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ecf3518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ecf3518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:53:47.160529
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/53/image_18082025_08_53_45_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/08/53/image_18082025_08_53_34_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/53/image_18082025_08_53_25_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/08/53/image_18082025_08_53_14_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/08/52/image_18082025_08_53_05_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/08/52/image_18082025_08_52_55_10646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87846518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87846518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87846518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:54:02.987763
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/53/image_18082025_08_53_45_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/08/53/image_18082025_08_53_34_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/53/image_18082025_08_53_25_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/08/53/image_18082025_08_53_14_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/08/52/image_18082025_08_53_05_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/08/52/image_18082025_08_52_55_10646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7dac5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7dac5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7dac5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:54:17.288461
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/54/image_18082025_08_54_45_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/08/54/image_18082025_08_54_34_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/08/54/image_18082025_08_54_25_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/08/54/image_18082025_08_54_15_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/08/53/image_18082025_08_54_04_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/08/53/image_18082025_08_53_55_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2d75518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2d75518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2d75518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:54:32.304448
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/54/image_18082025_08_54_45_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/08/54/image_18082025_08_54_34_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/08/54/image_18082025_08_54_25_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/08/54/image_18082025_08_54_15_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/08/53/image_18082025_08_54_04_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/08/53/image_18082025_08_53_55_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7967a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7967a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7967a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:54:47.289713
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/54/image_18082025_08_54_45_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/08/54/image_18082025_08_54_34_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/08/54/image_18082025_08_54_25_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/08/54/image_18082025_08_54_15_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/08/53/image_18082025_08_54_04_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/08/53/image_18082025_08_53_55_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8fbd9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fbd9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fbd9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:55:03.091931
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/54/image_18082025_08_55_05_10634.jpg', 2), ('/home/nano/Desktop/images/18082025/08/54/image_18082025_08_54_45_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/08/54/image_18082025_08_54_34_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/08/54/image_18082025_08_54_25_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/08/54/image_18082025_08_54_15_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/08/53/image_18082025_08_54_04_9622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f944f5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f944f5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f944f5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:55:17.404994
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/55/image_18082025_08_55_45_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/08/55/image_18082025_08_55_35_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/08/55/image_18082025_08_55_24_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/08/55/image_18082025_08_55_15_9675.jpg', 2), ('/home/nano/Desktop/images/18082025/08/54/image_18082025_08_55_05_10634.jpg', 2), ('/home/nano/Desktop/images/18082025/08/54/image_18082025_08_54_54_9607.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97ba24a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97ba24a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97ba24a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:55:32.372041
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/55/image_18082025_08_55_45_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/08/55/image_18082025_08_55_35_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/08/55/image_18082025_08_55_24_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/08/55/image_18082025_08_55_15_9675.jpg', 2), ('/home/nano/Desktop/images/18082025/08/54/image_18082025_08_55_05_10634.jpg', 2), ('/home/nano/Desktop/images/18082025/08/54/image_18082025_08_54_54_9607.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93c014a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93c014a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93c014a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:55:47.378828
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/55/image_18082025_08_55_45_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/08/55/image_18082025_08_55_35_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/08/55/image_18082025_08_55_24_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/08/55/image_18082025_08_55_15_9675.jpg', 2), ('/home/nano/Desktop/images/18082025/08/54/image_18082025_08_55_05_10634.jpg', 2), ('/home/nano/Desktop/images/18082025/08/54/image_18082025_08_54_54_9607.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9dd62518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9dd62518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9dd62518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:56:02.993142
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/55/image_18082025_08_55_45_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/08/55/image_18082025_08_55_35_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/08/55/image_18082025_08_55_24_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/08/55/image_18082025_08_55_15_9675.jpg', 2), ('/home/nano/Desktop/images/18082025/08/54/image_18082025_08_55_05_10634.jpg', 2), ('/home/nano/Desktop/images/18082025/08/54/image_18082025_08_54_54_9607.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9802f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9802f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9802f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:56:17.467121
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/56/image_18082025_08_56_45_9738.jpg', 2), ('/home/nano/Desktop/images/18082025/08/56/image_18082025_08_56_35_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/08/56/image_18082025_08_56_24_9736.jpg', 2), ('/home/nano/Desktop/images/18082025/08/56/image_18082025_08_56_15_9702.jpg', 2), ('/home/nano/Desktop/images/18082025/08/55/image_18082025_08_56_05_10681.jpg', 2), ('/home/nano/Desktop/images/18082025/08/55/image_18082025_08_55_54_9680.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa3af6518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3af6518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3af6518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:56:32.483000
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/56/image_18082025_08_56_45_9738.jpg', 2), ('/home/nano/Desktop/images/18082025/08/56/image_18082025_08_56_35_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/08/56/image_18082025_08_56_24_9736.jpg', 2), ('/home/nano/Desktop/images/18082025/08/56/image_18082025_08_56_15_9702.jpg', 2), ('/home/nano/Desktop/images/18082025/08/55/image_18082025_08_56_05_10681.jpg', 2), ('/home/nano/Desktop/images/18082025/08/55/image_18082025_08_55_54_9680.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2f48518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2f48518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2f48518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:56:47.469305
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/56/image_18082025_08_56_45_9738.jpg', 2), ('/home/nano/Desktop/images/18082025/08/56/image_18082025_08_56_35_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/08/56/image_18082025_08_56_24_9736.jpg', 2), ('/home/nano/Desktop/images/18082025/08/56/image_18082025_08_56_15_9702.jpg', 2), ('/home/nano/Desktop/images/18082025/08/55/image_18082025_08_56_05_10681.jpg', 2), ('/home/nano/Desktop/images/18082025/08/55/image_18082025_08_55_54_9680.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa720e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa720e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa720e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:57:03.238837
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/56/image_18082025_08_56_45_9738.jpg', 2), ('/home/nano/Desktop/images/18082025/08/56/image_18082025_08_56_35_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/08/56/image_18082025_08_56_24_9736.jpg', 2), ('/home/nano/Desktop/images/18082025/08/56/image_18082025_08_56_15_9702.jpg', 2), ('/home/nano/Desktop/images/18082025/08/55/image_18082025_08_56_05_10681.jpg', 2), ('/home/nano/Desktop/images/18082025/08/55/image_18082025_08_55_54_9680.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb63c3518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb63c3518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb63c3518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:57:17.564764
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/57/image_18082025_08_57_45_10617.jpg', 2), ('/home/nano/Desktop/images/18082025/08/57/image_18082025_08_57_34_9603.jpg', 2), ('/home/nano/Desktop/images/18082025/08/57/image_18082025_08_57_25_9604.jpg', 2), ('/home/nano/Desktop/images/18082025/08/57/image_18082025_08_57_15_10716.jpg', 2), ('/home/nano/Desktop/images/18082025/08/56/image_18082025_08_57_04_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/08/56/image_18082025_08_56_55_9736.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb25dc550>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb25dc550>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb25dc550>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:57:32.601103
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/57/image_18082025_08_57_45_10617.jpg', 2), ('/home/nano/Desktop/images/18082025/08/57/image_18082025_08_57_34_9603.jpg', 2), ('/home/nano/Desktop/images/18082025/08/57/image_18082025_08_57_25_9604.jpg', 2), ('/home/nano/Desktop/images/18082025/08/57/image_18082025_08_57_15_10716.jpg', 2), ('/home/nano/Desktop/images/18082025/08/56/image_18082025_08_57_04_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/08/56/image_18082025_08_56_55_9736.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa51e2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa51e2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa51e2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:57:47.607097
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/57/image_18082025_08_57_45_10617.jpg', 2), ('/home/nano/Desktop/images/18082025/08/57/image_18082025_08_57_34_9603.jpg', 2), ('/home/nano/Desktop/images/18082025/08/57/image_18082025_08_57_25_9604.jpg', 2), ('/home/nano/Desktop/images/18082025/08/57/image_18082025_08_57_15_10716.jpg', 2), ('/home/nano/Desktop/images/18082025/08/56/image_18082025_08_57_04_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/08/56/image_18082025_08_56_55_9736.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7db7e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7db7e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7db7e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:58:03.277132
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/57/image_18082025_08_57_45_10617.jpg', 2), ('/home/nano/Desktop/images/18082025/08/57/image_18082025_08_57_34_9603.jpg', 2), ('/home/nano/Desktop/images/18082025/08/57/image_18082025_08_57_25_9604.jpg', 2), ('/home/nano/Desktop/images/18082025/08/57/image_18082025_08_57_15_10716.jpg', 2), ('/home/nano/Desktop/images/18082025/08/56/image_18082025_08_57_04_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/08/56/image_18082025_08_56_55_9736.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98c064a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98c064a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98c064a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:59:03.013284
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/58/image_18082025_08_58_44_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/08/58/image_18082025_08_58_35_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/08/58/image_18082025_08_58_24_9602.jpg', 2), ('/home/nano/Desktop/images/18082025/08/58/image_18082025_08_58_15_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/08/57/image_18082025_08_58_05_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/08/57/image_18082025_08_57_54_9602.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8daf3518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8daf3518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8daf3518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:59:17.317860
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/59/image_18082025_08_59_44_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/08/59/image_18082025_08_59_35_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/08/59/image_18082025_08_59_25_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/08/59/image_18082025_08_59_14_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/08/58/image_18082025_08_59_05_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/08/58/image_18082025_08_58_54_9612.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a1d8518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a1d8518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a1d8518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:59:32.319760
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/59/image_18082025_08_59_44_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/08/59/image_18082025_08_59_35_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/08/59/image_18082025_08_59_25_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/08/59/image_18082025_08_59_14_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/08/58/image_18082025_08_59_05_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/08/58/image_18082025_08_58_54_9612.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86abe518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86abe518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86abe518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 08:59:47.316359
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/59/image_18082025_08_59_44_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/08/59/image_18082025_08_59_35_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/08/59/image_18082025_08_59_25_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/08/59/image_18082025_08_59_14_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/08/58/image_18082025_08_59_05_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/08/58/image_18082025_08_58_54_9612.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb449a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb449a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb449a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:00:02.887834
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/59/image_18082025_08_59_44_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/08/59/image_18082025_08_59_35_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/08/59/image_18082025_08_59_25_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/08/59/image_18082025_08_59_14_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/08/58/image_18082025_08_59_05_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/08/58/image_18082025_08_58_54_9612.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9062d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9062d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9062d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:00:17.412842
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/00/image_18082025_09_00_45_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/09/00/image_18082025_09_00_34_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/00/image_18082025_09_00_25_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/09/00/image_18082025_09_00_14_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/08/59/image_18082025_09_00_04_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/08/59/image_18082025_08_59_55_10623.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86391518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86391518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86391518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:00:32.384157
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/00/image_18082025_09_00_45_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/09/00/image_18082025_09_00_34_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/00/image_18082025_09_00_25_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/09/00/image_18082025_09_00_14_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/08/59/image_18082025_09_00_04_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/08/59/image_18082025_08_59_55_10623.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fafd67518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafd67518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafd67518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:00:47.406499
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/00/image_18082025_09_00_45_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/09/00/image_18082025_09_00_34_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/00/image_18082025_09_00_25_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/09/00/image_18082025_09_00_14_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/08/59/image_18082025_09_00_04_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/08/59/image_18082025_08_59_55_10623.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f790814a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f790814a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f790814a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:01:02.936828
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/00/image_18082025_09_00_45_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/09/00/image_18082025_09_00_34_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/00/image_18082025_09_00_25_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/09/00/image_18082025_09_00_14_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/08/59/image_18082025_09_00_04_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/08/59/image_18082025_08_59_55_10623.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98336518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98336518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98336518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:01:17.510031
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/01/image_18082025_09_01_45_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/09/01/image_18082025_09_01_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/09/01/image_18082025_09_01_25_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/09/01/image_18082025_09_01_15_10684.jpg', 2), ('/home/nano/Desktop/images/18082025/09/00/image_18082025_09_01_04_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/09/00/image_18082025_09_00_55_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0580518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0580518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0580518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:01:32.509129
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/01/image_18082025_09_01_45_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/09/01/image_18082025_09_01_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/09/01/image_18082025_09_01_25_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/09/01/image_18082025_09_01_15_10684.jpg', 2), ('/home/nano/Desktop/images/18082025/09/00/image_18082025_09_01_04_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/09/00/image_18082025_09_00_55_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fada12518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fada12518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fada12518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:01:47.505049
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/01/image_18082025_09_01_45_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/09/01/image_18082025_09_01_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/09/01/image_18082025_09_01_25_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/09/01/image_18082025_09_01_15_10684.jpg', 2), ('/home/nano/Desktop/images/18082025/09/00/image_18082025_09_01_04_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/09/00/image_18082025_09_00_55_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76d92518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76d92518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76d92518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:02:03.204457
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/01/image_18082025_09_01_45_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/09/01/image_18082025_09_01_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/09/01/image_18082025_09_01_25_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/09/01/image_18082025_09_01_15_10684.jpg', 2), ('/home/nano/Desktop/images/18082025/09/00/image_18082025_09_01_04_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/09/00/image_18082025_09_00_55_9636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf983518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf983518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf983518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:02:17.577631
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/02/image_18082025_09_02_44_9725.jpg', 2), ('/home/nano/Desktop/images/18082025/09/02/image_18082025_09_02_34_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/09/02/image_18082025_09_02_25_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/09/02/image_18082025_09_02_14_9774.jpg', 2), ('/home/nano/Desktop/images/18082025/09/01/image_18082025_09_02_04_9788.jpg', 2), ('/home/nano/Desktop/images/18082025/09/01/image_18082025_09_01_55_9717.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d047518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d047518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d047518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:02:32.600059
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/02/image_18082025_09_02_44_9725.jpg', 2), ('/home/nano/Desktop/images/18082025/09/02/image_18082025_09_02_34_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/09/02/image_18082025_09_02_25_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/09/02/image_18082025_09_02_14_9774.jpg', 2), ('/home/nano/Desktop/images/18082025/09/01/image_18082025_09_02_04_9788.jpg', 2), ('/home/nano/Desktop/images/18082025/09/01/image_18082025_09_01_55_9717.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9311a4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9311a4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9311a4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:02:47.604605
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/02/image_18082025_09_02_44_9725.jpg', 2), ('/home/nano/Desktop/images/18082025/09/02/image_18082025_09_02_34_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/09/02/image_18082025_09_02_25_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/09/02/image_18082025_09_02_14_9774.jpg', 2), ('/home/nano/Desktop/images/18082025/09/01/image_18082025_09_02_04_9788.jpg', 2), ('/home/nano/Desktop/images/18082025/09/01/image_18082025_09_01_55_9717.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb03d44a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb03d44a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb03d44a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:03:03.496844
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/02/image_18082025_09_02_44_9725.jpg', 2), ('/home/nano/Desktop/images/18082025/09/02/image_18082025_09_02_34_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/09/02/image_18082025_09_02_25_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/09/02/image_18082025_09_02_14_9774.jpg', 2), ('/home/nano/Desktop/images/18082025/09/01/image_18082025_09_02_04_9788.jpg', 2), ('/home/nano/Desktop/images/18082025/09/01/image_18082025_09_01_55_9717.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f962b1518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f962b1518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f962b1518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:03:17.749815
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/03/image_18082025_09_03_44_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/09/03/image_18082025_09_03_35_9703.jpg', 2), ('/home/nano/Desktop/images/18082025/09/03/image_18082025_09_03_25_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/09/03/image_18082025_09_03_14_9789.jpg', 2), ('/home/nano/Desktop/images/18082025/09/02/image_18082025_09_03_04_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/09/02/image_18082025_09_02_55_10641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac2be518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac2be518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac2be518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:03:32.708490
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/03/image_18082025_09_03_44_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/09/03/image_18082025_09_03_35_9703.jpg', 2), ('/home/nano/Desktop/images/18082025/09/03/image_18082025_09_03_25_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/09/03/image_18082025_09_03_14_9789.jpg', 2), ('/home/nano/Desktop/images/18082025/09/02/image_18082025_09_03_04_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/09/02/image_18082025_09_02_55_10641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa24824a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa24824a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa24824a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:03:47.715712
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/03/image_18082025_09_03_44_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/09/03/image_18082025_09_03_35_9703.jpg', 2), ('/home/nano/Desktop/images/18082025/09/03/image_18082025_09_03_25_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/09/03/image_18082025_09_03_14_9789.jpg', 2), ('/home/nano/Desktop/images/18082025/09/02/image_18082025_09_03_04_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/09/02/image_18082025_09_02_55_10641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90f754a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90f754a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90f754a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:04:02.745286
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/04/image_18082025_09_04_15_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/09/03/image_18082025_09_03_44_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/09/03/image_18082025_09_03_35_9703.jpg', 2), ('/home/nano/Desktop/images/18082025/09/03/image_18082025_09_03_25_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/09/03/image_18082025_09_03_14_9789.jpg', 2), ('/home/nano/Desktop/images/18082025/09/02/image_18082025_09_03_04_9627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9759d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9759d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9759d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:04:16.830988
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/04/image_18082025_09_04_45_10615.jpg', 2), ('/home/nano/Desktop/images/18082025/09/04/image_18082025_09_04_34_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/04/image_18082025_09_04_25_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/09/04/image_18082025_09_04_15_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/09/03/image_18082025_09_04_04_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/09/03/image_18082025_09_03_55_10632.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa92e8518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa92e8518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa92e8518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:04:31.874998
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/04/image_18082025_09_04_45_10615.jpg', 2), ('/home/nano/Desktop/images/18082025/09/04/image_18082025_09_04_34_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/04/image_18082025_09_04_25_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/09/04/image_18082025_09_04_15_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/09/03/image_18082025_09_04_04_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/09/03/image_18082025_09_03_55_10632.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f915ab4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f915ab4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f915ab4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:04:46.819192
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/04/image_18082025_09_04_45_10615.jpg', 2), ('/home/nano/Desktop/images/18082025/09/04/image_18082025_09_04_34_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/04/image_18082025_09_04_25_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/09/04/image_18082025_09_04_15_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/09/03/image_18082025_09_04_04_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/09/03/image_18082025_09_03_55_10632.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95f6b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95f6b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95f6b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:05:02.557960
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/04/image_18082025_09_04_45_10615.jpg', 2), ('/home/nano/Desktop/images/18082025/09/04/image_18082025_09_04_34_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/04/image_18082025_09_04_25_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/09/04/image_18082025_09_04_15_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/09/03/image_18082025_09_04_04_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/09/03/image_18082025_09_03_55_10632.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f885e2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f885e2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f885e2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:05:16.945051
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/05/image_18082025_09_05_45_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/09/05/image_18082025_09_05_35_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/09/05/image_18082025_09_05_24_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/09/05/image_18082025_09_05_15_10622.jpg', 2), ('/home/nano/Desktop/images/18082025/09/04/image_18082025_09_05_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/09/04/image_18082025_09_04_55_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c2db518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c2db518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c2db518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:05:31.910953
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/05/image_18082025_09_05_45_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/09/05/image_18082025_09_05_35_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/09/05/image_18082025_09_05_24_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/09/05/image_18082025_09_05_15_10622.jpg', 2), ('/home/nano/Desktop/images/18082025/09/04/image_18082025_09_05_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/09/04/image_18082025_09_04_55_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f936ce518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f936ce518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f936ce518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:05:46.926461
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/05/image_18082025_09_05_45_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/09/05/image_18082025_09_05_35_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/09/05/image_18082025_09_05_24_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/09/05/image_18082025_09_05_15_10622.jpg', 2), ('/home/nano/Desktop/images/18082025/09/04/image_18082025_09_05_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/09/04/image_18082025_09_04_55_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0b35518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0b35518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0b35518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:06:02.467302
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/05/image_18082025_09_05_45_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/09/05/image_18082025_09_05_35_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/09/05/image_18082025_09_05_24_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/09/05/image_18082025_09_05_15_10622.jpg', 2), ('/home/nano/Desktop/images/18082025/09/04/image_18082025_09_05_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/09/04/image_18082025_09_04_55_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8aa50550>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8aa50550>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8aa50550>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:06:17.033738
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_44_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_35_10617.jpg', 2), ('/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_24_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_15_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/09/05/image_18082025_09_06_05_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/09/05/image_18082025_09_05_54_9614.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91020518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91020518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91020518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:06:32.043856
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_44_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_35_10617.jpg', 2), ('/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_24_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_15_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/09/05/image_18082025_09_06_05_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/09/05/image_18082025_09_05_54_9614.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f882fa518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f882fa518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f882fa518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:06:47.009868
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_44_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_35_10617.jpg', 2), ('/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_24_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_15_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/09/05/image_18082025_09_06_05_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/09/05/image_18082025_09_05_54_9614.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76fb5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76fb5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76fb5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:07:02.678275
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_44_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_35_10617.jpg', 2), ('/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_24_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_15_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/09/05/image_18082025_09_06_05_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/09/05/image_18082025_09_05_54_9614.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faecbc518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faecbc518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faecbc518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:07:17.132521
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/07/image_18082025_09_07_44_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/09/07/image_18082025_09_07_35_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/09/07/image_18082025_09_07_25_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/09/07/image_18082025_09_07_14_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/09/06/image_18082025_09_07_05_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_55_10628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7cfcc518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7cfcc518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7cfcc518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:07:32.127651
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/07/image_18082025_09_07_44_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/09/07/image_18082025_09_07_35_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/09/07/image_18082025_09_07_25_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/09/07/image_18082025_09_07_14_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/09/06/image_18082025_09_07_05_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_55_10628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3e65518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3e65518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3e65518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:07:47.104968
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/07/image_18082025_09_07_44_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/09/07/image_18082025_09_07_35_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/09/07/image_18082025_09_07_25_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/09/07/image_18082025_09_07_14_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/09/06/image_18082025_09_07_05_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_55_10628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb241d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb241d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb241d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:08:02.753031
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/07/image_18082025_09_07_44_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/09/07/image_18082025_09_07_35_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/09/07/image_18082025_09_07_25_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/09/07/image_18082025_09_07_14_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/09/06/image_18082025_09_07_05_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_55_10628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c6384a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c6384a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c6384a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:08:17.193918
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/08/image_18082025_09_08_45_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/09/08/image_18082025_09_08_34_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/08/image_18082025_09_08_25_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/09/08/image_18082025_09_08_14_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/09/07/image_18082025_09_08_04_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/07/image_18082025_09_07_55_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2cb64a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2cb64a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2cb64a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:08:32.222572
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/08/image_18082025_09_08_45_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/09/08/image_18082025_09_08_34_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/08/image_18082025_09_08_25_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/09/08/image_18082025_09_08_14_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/09/07/image_18082025_09_08_04_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/07/image_18082025_09_07_55_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88a41518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88a41518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88a41518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:08:47.212023
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/08/image_18082025_09_08_45_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/09/08/image_18082025_09_08_34_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/08/image_18082025_09_08_25_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/09/08/image_18082025_09_08_14_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/09/07/image_18082025_09_08_04_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/07/image_18082025_09_07_55_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76cd4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76cd4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76cd4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:09:03.311962
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/08/image_18082025_09_08_45_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/09/08/image_18082025_09_08_34_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/08/image_18082025_09_08_25_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/09/08/image_18082025_09_08_14_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/09/07/image_18082025_09_08_04_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/07/image_18082025_09_07_55_10649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93e33550>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93e33550>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93e33550>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:09:17.319759
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/09/image_18082025_09_09_45_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/09/09/image_18082025_09_09_34_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/09/09/image_18082025_09_09_25_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/09/09/image_18082025_09_09_15_10682.jpg', 2), ('/home/nano/Desktop/images/18082025/09/08/image_18082025_09_09_04_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/09/08/image_18082025_09_08_55_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81fc0550>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81fc0550>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81fc0550>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:09:32.347148
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/09/image_18082025_09_09_45_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/09/09/image_18082025_09_09_34_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/09/09/image_18082025_09_09_25_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/09/09/image_18082025_09_09_15_10682.jpg', 2), ('/home/nano/Desktop/images/18082025/09/08/image_18082025_09_09_04_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/09/08/image_18082025_09_08_55_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76c7b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76c7b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76c7b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:09:47.311806
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/09/image_18082025_09_09_45_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/09/09/image_18082025_09_09_34_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/09/09/image_18082025_09_09_25_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/09/09/image_18082025_09_09_15_10682.jpg', 2), ('/home/nano/Desktop/images/18082025/09/08/image_18082025_09_09_04_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/09/08/image_18082025_09_08_55_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f923fe518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f923fe518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f923fe518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:10:03.016703
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/09/image_18082025_09_09_45_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/09/09/image_18082025_09_09_34_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/09/09/image_18082025_09_09_25_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/09/09/image_18082025_09_09_15_10682.jpg', 2), ('/home/nano/Desktop/images/18082025/09/08/image_18082025_09_09_04_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/09/08/image_18082025_09_08_55_9618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88199518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88199518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88199518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:10:17.441987
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/10/image_18082025_09_10_45_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/09/10/image_18082025_09_10_35_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/09/10/image_18082025_09_10_24_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/09/10/image_18082025_09_10_15_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/09/09/image_18082025_09_10_04_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/09/09/image_18082025_09_09_54_9620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9952a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9952a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9952a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:10:32.400342
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/10/image_18082025_09_10_45_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/09/10/image_18082025_09_10_35_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/09/10/image_18082025_09_10_24_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/09/10/image_18082025_09_10_15_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/09/09/image_18082025_09_10_04_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/09/09/image_18082025_09_09_54_9620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b63a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b63a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b63a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:10:47.405030
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/10/image_18082025_09_10_45_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/09/10/image_18082025_09_10_35_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/09/10/image_18082025_09_10_24_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/09/10/image_18082025_09_10_15_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/09/09/image_18082025_09_10_04_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/09/09/image_18082025_09_09_54_9620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f856e14a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f856e14a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f856e14a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:11:03.090669
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/10/image_18082025_09_10_45_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/09/10/image_18082025_09_10_35_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/09/10/image_18082025_09_10_24_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/09/10/image_18082025_09_10_15_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/09/09/image_18082025_09_10_04_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/09/09/image_18082025_09_09_54_9620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fabaa4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fabaa4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fabaa4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:11:17.504209
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/11/image_18082025_09_11_44_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/09/11/image_18082025_09_11_35_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/09/11/image_18082025_09_11_24_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/09/11/image_18082025_09_11_15_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/09/10/image_18082025_09_11_05_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/09/10/image_18082025_09_10_54_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f912a8518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f912a8518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f912a8518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:11:32.501559
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/11/image_18082025_09_11_44_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/09/11/image_18082025_09_11_35_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/09/11/image_18082025_09_11_24_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/09/11/image_18082025_09_11_15_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/09/10/image_18082025_09_11_05_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/09/10/image_18082025_09_10_54_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa56224a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa56224a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa56224a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:11:47.524050
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/11/image_18082025_09_11_44_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/09/11/image_18082025_09_11_35_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/09/11/image_18082025_09_11_24_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/09/11/image_18082025_09_11_15_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/09/10/image_18082025_09_11_05_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/09/10/image_18082025_09_10_54_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81e3d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81e3d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81e3d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:12:03.164316
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/11/image_18082025_09_11_44_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/09/11/image_18082025_09_11_35_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/09/11/image_18082025_09_11_24_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/09/11/image_18082025_09_11_15_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/09/10/image_18082025_09_11_05_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/09/10/image_18082025_09_10_54_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4b8e4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4b8e4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4b8e4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:12:17.598201
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/12/image_18082025_09_12_44_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/09/12/image_18082025_09_12_35_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/09/12/image_18082025_09_12_25_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/09/12/image_18082025_09_12_14_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/09/11/image_18082025_09_12_05_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/09/11/image_18082025_09_11_54_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa589f4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa589f4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa589f4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:12:32.595681
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/12/image_18082025_09_12_44_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/09/12/image_18082025_09_12_35_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/09/12/image_18082025_09_12_25_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/09/12/image_18082025_09_12_14_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/09/11/image_18082025_09_12_05_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/09/11/image_18082025_09_11_54_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad735518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad735518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad735518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:12:47.601885
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/12/image_18082025_09_12_44_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/09/12/image_18082025_09_12_35_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/09/12/image_18082025_09_12_25_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/09/12/image_18082025_09_12_14_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/09/11/image_18082025_09_12_05_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/09/11/image_18082025_09_11_54_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ba64518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ba64518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ba64518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:13:03.426978
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/13/image_18082025_09_13_25_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/09/12/image_18082025_09_12_44_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/09/12/image_18082025_09_12_35_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/09/12/image_18082025_09_12_25_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/09/12/image_18082025_09_12_14_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/09/11/image_18082025_09_12_05_10644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f957224a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f957224a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f957224a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:13:17.743305
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/13/image_18082025_09_13_44_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/09/13/image_18082025_09_13_34_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/09/13/image_18082025_09_13_25_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/09/13/image_18082025_09_13_14_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/09/12/image_18082025_09_13_05_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/09/12/image_18082025_09_12_55_10625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fafbfd518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafbfd518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafbfd518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:13:32.706529
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/13/image_18082025_09_13_44_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/09/13/image_18082025_09_13_34_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/09/13/image_18082025_09_13_25_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/09/13/image_18082025_09_13_14_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/09/12/image_18082025_09_13_05_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/09/12/image_18082025_09_12_55_10625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8bd9b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8bd9b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8bd9b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:13:47.717972
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/13/image_18082025_09_13_44_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/09/13/image_18082025_09_13_34_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/09/13/image_18082025_09_13_25_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/09/13/image_18082025_09_13_14_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/09/12/image_18082025_09_13_05_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/09/12/image_18082025_09_12_55_10625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a1824a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a1824a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a1824a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:14:02.501775
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/13/image_18082025_09_13_44_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/09/13/image_18082025_09_13_34_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/09/13/image_18082025_09_13_25_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/09/13/image_18082025_09_13_14_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/09/12/image_18082025_09_13_05_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/09/12/image_18082025_09_12_55_10625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faaf7d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faaf7d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faaf7d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:14:16.906214
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/14/image_18082025_09_14_45_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/09/14/image_18082025_09_14_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/09/14/image_18082025_09_14_25_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/09/14/image_18082025_09_14_15_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/09/13/image_18082025_09_14_04_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/09/13/image_18082025_09_13_55_10624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85a14518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85a14518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85a14518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:14:31.819018
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/14/image_18082025_09_14_45_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/09/14/image_18082025_09_14_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/09/14/image_18082025_09_14_25_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/09/14/image_18082025_09_14_15_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/09/13/image_18082025_09_14_04_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/09/13/image_18082025_09_13_55_10624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7cea518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7cea518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7cea518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:14:46.823058
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/14/image_18082025_09_14_45_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/09/14/image_18082025_09_14_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/09/14/image_18082025_09_14_25_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/09/14/image_18082025_09_14_15_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/09/13/image_18082025_09_14_04_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/09/13/image_18082025_09_13_55_10624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ff04518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ff04518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ff04518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:15:02.651462
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/14/image_18082025_09_14_45_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/09/14/image_18082025_09_14_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/09/14/image_18082025_09_14_25_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/09/14/image_18082025_09_14_15_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/09/13/image_18082025_09_14_04_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/09/13/image_18082025_09_13_55_10624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f957c8518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f957c8518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f957c8518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:15:16.945083
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/15/image_18082025_09_15_45_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/09/15/image_18082025_09_15_34_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/15/image_18082025_09_15_25_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/09/15/image_18082025_09_15_15_10662.jpg', 2), ('/home/nano/Desktop/images/18082025/09/14/image_18082025_09_15_04_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/09/14/image_18082025_09_14_55_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb638f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb638f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb638f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:15:31.915502
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/15/image_18082025_09_15_45_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/09/15/image_18082025_09_15_34_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/15/image_18082025_09_15_25_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/09/15/image_18082025_09_15_15_10662.jpg', 2), ('/home/nano/Desktop/images/18082025/09/14/image_18082025_09_15_04_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/09/14/image_18082025_09_14_55_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a638518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a638518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a638518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:15:46.936306
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/15/image_18082025_09_15_45_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/09/15/image_18082025_09_15_34_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/15/image_18082025_09_15_25_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/09/15/image_18082025_09_15_15_10662.jpg', 2), ('/home/nano/Desktop/images/18082025/09/14/image_18082025_09_15_04_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/09/14/image_18082025_09_14_55_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f859d8518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f859d8518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f859d8518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:16:02.523000
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/15/image_18082025_09_15_45_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/09/15/image_18082025_09_15_34_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/15/image_18082025_09_15_25_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/09/15/image_18082025_09_15_15_10662.jpg', 2), ('/home/nano/Desktop/images/18082025/09/14/image_18082025_09_15_04_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/09/14/image_18082025_09_14_55_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7fb5e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fb5e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fb5e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:16:17.023173
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/16/image_18082025_09_16_45_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/09/16/image_18082025_09_16_35_10664.jpg', 2), ('/home/nano/Desktop/images/18082025/09/16/image_18082025_09_16_24_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/09/16/image_18082025_09_16_15_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/09/15/image_18082025_09_16_05_10633.jpg', 2), ('/home/nano/Desktop/images/18082025/09/15/image_18082025_09_15_54_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8dd0a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8dd0a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8dd0a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:16:32.016922
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/16/image_18082025_09_16_45_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/09/16/image_18082025_09_16_35_10664.jpg', 2), ('/home/nano/Desktop/images/18082025/09/16/image_18082025_09_16_24_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/09/16/image_18082025_09_16_15_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/09/15/image_18082025_09_16_05_10633.jpg', 2), ('/home/nano/Desktop/images/18082025/09/15/image_18082025_09_15_54_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fae5b2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae5b2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae5b2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:16:47.067765
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/16/image_18082025_09_16_45_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/09/16/image_18082025_09_16_35_10664.jpg', 2), ('/home/nano/Desktop/images/18082025/09/16/image_18082025_09_16_24_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/09/16/image_18082025_09_16_15_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/09/15/image_18082025_09_16_05_10633.jpg', 2), ('/home/nano/Desktop/images/18082025/09/15/image_18082025_09_15_54_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90fd2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90fd2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90fd2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:17:02.877453
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/16/image_18082025_09_16_45_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/09/16/image_18082025_09_16_35_10664.jpg', 2), ('/home/nano/Desktop/images/18082025/09/16/image_18082025_09_16_24_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/09/16/image_18082025_09_16_15_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/09/15/image_18082025_09_16_05_10633.jpg', 2), ('/home/nano/Desktop/images/18082025/09/15/image_18082025_09_15_54_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8fc0f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fc0f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fc0f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:17:17.172881
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/17/image_18082025_09_17_45_9673.jpg', 2), ('/home/nano/Desktop/images/18082025/09/17/image_18082025_09_17_35_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/09/17/image_18082025_09_17_24_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/09/17/image_18082025_09_17_15_9677.jpg', 2), ('/home/nano/Desktop/images/18082025/09/16/image_18082025_09_17_05_10677.jpg', 2), ('/home/nano/Desktop/images/18082025/09/16/image_18082025_09_16_54_9661.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f92b2e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92b2e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92b2e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:17:32.161971
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/17/image_18082025_09_17_45_9673.jpg', 2), ('/home/nano/Desktop/images/18082025/09/17/image_18082025_09_17_35_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/09/17/image_18082025_09_17_24_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/09/17/image_18082025_09_17_15_9677.jpg', 2), ('/home/nano/Desktop/images/18082025/09/16/image_18082025_09_17_05_10677.jpg', 2), ('/home/nano/Desktop/images/18082025/09/16/image_18082025_09_16_54_9661.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f832f5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f832f5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f832f5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:17:47.217761
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/17/image_18082025_09_17_45_9673.jpg', 2), ('/home/nano/Desktop/images/18082025/09/17/image_18082025_09_17_35_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/09/17/image_18082025_09_17_24_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/09/17/image_18082025_09_17_15_9677.jpg', 2), ('/home/nano/Desktop/images/18082025/09/16/image_18082025_09_17_05_10677.jpg', 2), ('/home/nano/Desktop/images/18082025/09/16/image_18082025_09_16_54_9661.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5e8b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5e8b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5e8b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:18:02.761921
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/17/image_18082025_09_17_45_9673.jpg', 2), ('/home/nano/Desktop/images/18082025/09/17/image_18082025_09_17_35_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/09/17/image_18082025_09_17_24_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/09/17/image_18082025_09_17_15_9677.jpg', 2), ('/home/nano/Desktop/images/18082025/09/16/image_18082025_09_17_05_10677.jpg', 2), ('/home/nano/Desktop/images/18082025/09/16/image_18082025_09_16_54_9661.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b9c2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b9c2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b9c2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:18:17.339853
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/18/image_18082025_09_18_45_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/09/18/image_18082025_09_18_35_10675.jpg', 2), ('/home/nano/Desktop/images/18082025/09/18/image_18082025_09_18_24_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/09/18/image_18082025_09_18_15_9702.jpg', 2), ('/home/nano/Desktop/images/18082025/09/17/image_18082025_09_18_05_10691.jpg', 2), ('/home/nano/Desktop/images/18082025/09/17/image_18082025_09_17_54_9665.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e661518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e661518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e661518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:18:32.293121
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/18/image_18082025_09_18_45_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/09/18/image_18082025_09_18_35_10675.jpg', 2), ('/home/nano/Desktop/images/18082025/09/18/image_18082025_09_18_24_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/09/18/image_18082025_09_18_15_9702.jpg', 2), ('/home/nano/Desktop/images/18082025/09/17/image_18082025_09_18_05_10691.jpg', 2), ('/home/nano/Desktop/images/18082025/09/17/image_18082025_09_17_54_9665.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90def518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90def518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90def518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:18:47.295361
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/18/image_18082025_09_18_45_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/09/18/image_18082025_09_18_35_10675.jpg', 2), ('/home/nano/Desktop/images/18082025/09/18/image_18082025_09_18_24_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/09/18/image_18082025_09_18_15_9702.jpg', 2), ('/home/nano/Desktop/images/18082025/09/17/image_18082025_09_18_05_10691.jpg', 2), ('/home/nano/Desktop/images/18082025/09/17/image_18082025_09_17_54_9665.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf3f0518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf3f0518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf3f0518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:19:03.489088
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/18/image_18082025_09_18_45_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/09/18/image_18082025_09_18_35_10675.jpg', 2), ('/home/nano/Desktop/images/18082025/09/18/image_18082025_09_18_24_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/09/18/image_18082025_09_18_15_9702.jpg', 2), ('/home/nano/Desktop/images/18082025/09/17/image_18082025_09_18_05_10691.jpg', 2), ('/home/nano/Desktop/images/18082025/09/17/image_18082025_09_17_54_9665.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a97c4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a97c4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a97c4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:19:17.381050
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/19/image_18082025_09_19_45_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/09/19/image_18082025_09_19_35_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/09/19/image_18082025_09_19_24_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/09/19/image_18082025_09_19_15_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/09/18/image_18082025_09_19_05_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/09/18/image_18082025_09_18_54_9669.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9915e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9915e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9915e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:19:32.498596
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/19/image_18082025_09_19_45_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/09/19/image_18082025_09_19_35_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/09/19/image_18082025_09_19_24_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/09/19/image_18082025_09_19_15_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/09/18/image_18082025_09_19_05_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/09/18/image_18082025_09_18_54_9669.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c36f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c36f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c36f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:19:47.384618
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/19/image_18082025_09_19_45_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/09/19/image_18082025_09_19_35_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/09/19/image_18082025_09_19_24_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/09/19/image_18082025_09_19_15_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/09/18/image_18082025_09_19_05_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/09/18/image_18082025_09_18_54_9669.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f951b5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f951b5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f951b5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:20:02.970115
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/19/image_18082025_09_19_45_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/09/19/image_18082025_09_19_35_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/09/19/image_18082025_09_19_24_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/09/19/image_18082025_09_19_15_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/09/18/image_18082025_09_19_05_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/09/18/image_18082025_09_18_54_9669.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a3c5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a3c5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a3c5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:20:17.484451
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/20/image_18082025_09_20_45_9697.jpg', 2), ('/home/nano/Desktop/images/18082025/09/20/image_18082025_09_20_35_10683.jpg', 2), ('/home/nano/Desktop/images/18082025/09/20/image_18082025_09_20_24_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/09/20/image_18082025_09_20_15_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/09/19/image_18082025_09_20_05_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/09/19/image_18082025_09_19_54_9631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b1e8518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b1e8518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b1e8518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:20:32.499176
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/20/image_18082025_09_20_45_9697.jpg', 2), ('/home/nano/Desktop/images/18082025/09/20/image_18082025_09_20_35_10683.jpg', 2), ('/home/nano/Desktop/images/18082025/09/20/image_18082025_09_20_24_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/09/20/image_18082025_09_20_15_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/09/19/image_18082025_09_20_05_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/09/19/image_18082025_09_19_54_9631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0cfe518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0cfe518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0cfe518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:20:47.523248
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/20/image_18082025_09_20_45_9697.jpg', 2), ('/home/nano/Desktop/images/18082025/09/20/image_18082025_09_20_35_10683.jpg', 2), ('/home/nano/Desktop/images/18082025/09/20/image_18082025_09_20_24_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/09/20/image_18082025_09_20_15_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/09/19/image_18082025_09_20_05_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/09/19/image_18082025_09_19_54_9631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa3616518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3616518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3616518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:21:03.253997
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/20/image_18082025_09_20_45_9697.jpg', 2), ('/home/nano/Desktop/images/18082025/09/20/image_18082025_09_20_35_10683.jpg', 2), ('/home/nano/Desktop/images/18082025/09/20/image_18082025_09_20_24_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/09/20/image_18082025_09_20_15_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/09/19/image_18082025_09_20_05_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/09/19/image_18082025_09_19_54_9631.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78b2c4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78b2c4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78b2c4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:21:17.644269
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/21/image_18082025_09_21_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/09/21/image_18082025_09_21_35_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/09/21/image_18082025_09_21_24_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/09/21/image_18082025_09_21_15_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/09/20/image_18082025_09_21_05_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/09/20/image_18082025_09_20_54_9652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa54274a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa54274a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa54274a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:21:32.619937
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/21/image_18082025_09_21_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/09/21/image_18082025_09_21_35_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/09/21/image_18082025_09_21_24_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/09/21/image_18082025_09_21_15_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/09/20/image_18082025_09_21_05_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/09/20/image_18082025_09_20_54_9652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8515f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8515f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8515f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:21:47.627499
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/21/image_18082025_09_21_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/09/21/image_18082025_09_21_35_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/09/21/image_18082025_09_21_24_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/09/21/image_18082025_09_21_15_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/09/20/image_18082025_09_21_05_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/09/20/image_18082025_09_20_54_9652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a79c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a79c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a79c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:22:03.215714
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/22/image_18082025_09_22_35_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/09/21/image_18082025_09_21_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/09/21/image_18082025_09_21_35_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/09/21/image_18082025_09_21_24_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/09/21/image_18082025_09_21_15_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/09/20/image_18082025_09_21_05_10630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb116c4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb116c4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb116c4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:22:17.731810
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/22/image_18082025_09_22_44_9696.jpg', 2), ('/home/nano/Desktop/images/18082025/09/22/image_18082025_09_22_35_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/09/22/image_18082025_09_22_25_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/09/22/image_18082025_09_22_14_9675.jpg', 2), ('/home/nano/Desktop/images/18082025/09/21/image_18082025_09_22_05_9685.jpg', 2), ('/home/nano/Desktop/images/18082025/09/21/image_18082025_09_21_55_10642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0a7f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0a7f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0a7f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:22:32.747790
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/22/image_18082025_09_22_44_9696.jpg', 2), ('/home/nano/Desktop/images/18082025/09/22/image_18082025_09_22_35_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/09/22/image_18082025_09_22_25_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/09/22/image_18082025_09_22_14_9675.jpg', 2), ('/home/nano/Desktop/images/18082025/09/21/image_18082025_09_22_05_9685.jpg', 2), ('/home/nano/Desktop/images/18082025/09/21/image_18082025_09_21_55_10642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f858b3518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f858b3518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f858b3518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:22:47.703934
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/22/image_18082025_09_22_44_9696.jpg', 2), ('/home/nano/Desktop/images/18082025/09/22/image_18082025_09_22_35_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/09/22/image_18082025_09_22_25_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/09/22/image_18082025_09_22_14_9675.jpg', 2), ('/home/nano/Desktop/images/18082025/09/21/image_18082025_09_22_05_9685.jpg', 2), ('/home/nano/Desktop/images/18082025/09/21/image_18082025_09_21_55_10642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8016e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8016e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8016e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:23:02.426869
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/22/image_18082025_09_22_44_9696.jpg', 2), ('/home/nano/Desktop/images/18082025/09/22/image_18082025_09_22_35_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/09/22/image_18082025_09_22_25_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/09/22/image_18082025_09_22_14_9675.jpg', 2), ('/home/nano/Desktop/images/18082025/09/21/image_18082025_09_22_05_9685.jpg', 2), ('/home/nano/Desktop/images/18082025/09/21/image_18082025_09_21_55_10642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5f6d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5f6d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5f6d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:23:16.824663
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/23/image_18082025_09_23_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/09/23/image_18082025_09_23_35_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/09/23/image_18082025_09_23_25_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/09/23/image_18082025_09_23_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/09/22/image_18082025_09_23_05_9670.jpg', 2), ('/home/nano/Desktop/images/18082025/09/22/image_18082025_09_22_55_10659.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faffe2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faffe2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faffe2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:23:31.792991
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/23/image_18082025_09_23_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/09/23/image_18082025_09_23_35_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/09/23/image_18082025_09_23_25_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/09/23/image_18082025_09_23_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/09/22/image_18082025_09_23_05_9670.jpg', 2), ('/home/nano/Desktop/images/18082025/09/22/image_18082025_09_22_55_10659.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4d1a4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4d1a4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4d1a4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:23:46.805644
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/23/image_18082025_09_23_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/09/23/image_18082025_09_23_35_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/09/23/image_18082025_09_23_25_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/09/23/image_18082025_09_23_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/09/22/image_18082025_09_23_05_9670.jpg', 2), ('/home/nano/Desktop/images/18082025/09/22/image_18082025_09_22_55_10659.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9060c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9060c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9060c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:24:02.724987
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/23/image_18082025_09_23_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/09/23/image_18082025_09_23_35_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/09/23/image_18082025_09_23_25_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/09/23/image_18082025_09_23_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/09/22/image_18082025_09_23_05_9670.jpg', 2), ('/home/nano/Desktop/images/18082025/09/22/image_18082025_09_22_55_10659.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97ac94a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97ac94a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97ac94a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:24:16.925356
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/24/image_18082025_09_24_44_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/09/24/image_18082025_09_24_35_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/09/24/image_18082025_09_24_25_10616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/24/image_18082025_09_24_14_9708.jpg', 2), ('/home/nano/Desktop/images/18082025/09/23/image_18082025_09_24_05_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/09/23/image_18082025_09_23_55_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9dadd4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9dadd4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9dadd4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:24:31.933315
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/24/image_18082025_09_24_44_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/09/24/image_18082025_09_24_35_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/09/24/image_18082025_09_24_25_10616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/24/image_18082025_09_24_14_9708.jpg', 2), ('/home/nano/Desktop/images/18082025/09/23/image_18082025_09_24_05_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/09/23/image_18082025_09_23_55_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b899518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b899518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b899518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:24:46.949892
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/24/image_18082025_09_24_44_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/09/24/image_18082025_09_24_35_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/09/24/image_18082025_09_24_25_10616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/24/image_18082025_09_24_14_9708.jpg', 2), ('/home/nano/Desktop/images/18082025/09/23/image_18082025_09_24_05_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/09/23/image_18082025_09_23_55_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e26a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e26a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e26a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:25:02.739932
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/24/image_18082025_09_24_44_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/09/24/image_18082025_09_24_35_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/09/24/image_18082025_09_24_25_10616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/24/image_18082025_09_24_14_9708.jpg', 2), ('/home/nano/Desktop/images/18082025/09/23/image_18082025_09_24_05_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/09/23/image_18082025_09_23_55_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f996ca518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f996ca518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f996ca518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:25:17.047594
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_45_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_34_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_25_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_15_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/09/24/image_18082025_09_25_04_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/09/24/image_18082025_09_24_55_10637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5747518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5747518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5747518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:25:32.049122
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_45_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_34_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_25_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_15_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/09/24/image_18082025_09_25_04_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/09/24/image_18082025_09_24_55_10637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f905bf518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f905bf518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f905bf518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:25:47.108209
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_45_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_34_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_25_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_15_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/09/24/image_18082025_09_25_04_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/09/24/image_18082025_09_24_55_10637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7af66518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7af66518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7af66518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:26:02.759235
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_45_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_34_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_25_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_15_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/09/24/image_18082025_09_25_04_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/09/24/image_18082025_09_24_55_10637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83ac74a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83ac74a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83ac74a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:26:17.232465
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/26/image_18082025_09_26_45_10616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/26/image_18082025_09_26_34_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/09/26/image_18082025_09_26_24_9605.jpg', 2), ('/home/nano/Desktop/images/18082025/09/26/image_18082025_09_26_15_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/09/25/image_18082025_09_26_04_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_55_9627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f80944518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80944518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80944518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:26:32.211336
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/26/image_18082025_09_26_45_10616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/26/image_18082025_09_26_34_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/09/26/image_18082025_09_26_24_9605.jpg', 2), ('/home/nano/Desktop/images/18082025/09/26/image_18082025_09_26_15_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/09/25/image_18082025_09_26_04_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_55_9627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e334550>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e334550>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e334550>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:26:47.203134
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/26/image_18082025_09_26_45_10616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/26/image_18082025_09_26_34_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/09/26/image_18082025_09_26_24_9605.jpg', 2), ('/home/nano/Desktop/images/18082025/09/26/image_18082025_09_26_15_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/09/25/image_18082025_09_26_04_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_55_9627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb282e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb282e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb282e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:27:03.146181
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/26/image_18082025_09_26_45_10616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/26/image_18082025_09_26_34_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/09/26/image_18082025_09_26_24_9605.jpg', 2), ('/home/nano/Desktop/images/18082025/09/26/image_18082025_09_26_15_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/09/25/image_18082025_09_26_04_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_55_9627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98e1b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98e1b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98e1b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:27:17.296159
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/27/image_18082025_09_27_44_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/09/27/image_18082025_09_27_35_10617.jpg', 2), ('/home/nano/Desktop/images/18082025/09/27/image_18082025_09_27_24_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/09/27/image_18082025_09_27_15_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/09/26/image_18082025_09_27_05_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/09/26/image_18082025_09_26_54_9607.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f80c49518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80c49518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80c49518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:27:32.314682
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/27/image_18082025_09_27_44_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/09/27/image_18082025_09_27_35_10617.jpg', 2), ('/home/nano/Desktop/images/18082025/09/27/image_18082025_09_27_24_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/09/27/image_18082025_09_27_15_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/09/26/image_18082025_09_27_05_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/09/26/image_18082025_09_26_54_9607.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9dce4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9dce4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9dce4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:27:47.327749
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/27/image_18082025_09_27_44_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/09/27/image_18082025_09_27_35_10617.jpg', 2), ('/home/nano/Desktop/images/18082025/09/27/image_18082025_09_27_24_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/09/27/image_18082025_09_27_15_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/09/26/image_18082025_09_27_05_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/09/26/image_18082025_09_26_54_9607.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e5e5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e5e5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e5e5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:28:02.945437
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/27/image_18082025_09_27_44_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/09/27/image_18082025_09_27_35_10617.jpg', 2), ('/home/nano/Desktop/images/18082025/09/27/image_18082025_09_27_24_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/09/27/image_18082025_09_27_15_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/09/26/image_18082025_09_27_05_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/09/26/image_18082025_09_26_54_9607.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ece3518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ece3518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ece3518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:28:17.480348
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/28/image_18082025_09_28_44_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/09/28/image_18082025_09_28_35_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/09/28/image_18082025_09_28_25_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/09/28/image_18082025_09_28_14_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/09/27/image_18082025_09_28_05_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/09/27/image_18082025_09_27_54_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94d4f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94d4f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94d4f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:28:32.468756
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/28/image_18082025_09_28_44_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/09/28/image_18082025_09_28_35_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/09/28/image_18082025_09_28_25_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/09/28/image_18082025_09_28_14_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/09/27/image_18082025_09_28_05_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/09/27/image_18082025_09_27_54_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97acc518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97acc518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97acc518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:28:47.467369
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/28/image_18082025_09_28_44_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/09/28/image_18082025_09_28_35_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/09/28/image_18082025_09_28_25_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/09/28/image_18082025_09_28_14_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/09/27/image_18082025_09_28_05_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/09/27/image_18082025_09_27_54_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a606518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a606518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a606518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:29:03.659442
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/28/image_18082025_09_28_44_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/09/28/image_18082025_09_28_35_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/09/28/image_18082025_09_28_25_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/09/28/image_18082025_09_28_14_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/09/27/image_18082025_09_28_05_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/09/27/image_18082025_09_27_54_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e040518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e040518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e040518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:29:17.609316
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/29/image_18082025_09_29_45_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/09/29/image_18082025_09_29_34_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/09/29/image_18082025_09_29_25_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/09/29/image_18082025_09_29_14_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/09/28/image_18082025_09_29_04_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/09/28/image_18082025_09_28_55_10619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f872b0518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f872b0518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f872b0518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:29:32.661204
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/29/image_18082025_09_29_45_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/09/29/image_18082025_09_29_34_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/09/29/image_18082025_09_29_25_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/09/29/image_18082025_09_29_14_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/09/28/image_18082025_09_29_04_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/09/28/image_18082025_09_28_55_10619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0bd5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0bd5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0bd5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:29:47.599905
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/29/image_18082025_09_29_45_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/09/29/image_18082025_09_29_34_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/09/29/image_18082025_09_29_25_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/09/29/image_18082025_09_29_14_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/09/28/image_18082025_09_29_04_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/09/28/image_18082025_09_28_55_10619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81bac518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81bac518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81bac518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:30:03.219747
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/29/image_18082025_09_29_45_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/09/29/image_18082025_09_29_34_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/09/29/image_18082025_09_29_25_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/09/29/image_18082025_09_29_14_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/09/28/image_18082025_09_29_04_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/09/28/image_18082025_09_28_55_10619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fae70a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae70a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae70a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:30:17.689985
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/30/image_18082025_09_30_45_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/09/30/image_18082025_09_30_34_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/30/image_18082025_09_30_25_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/09/30/image_18082025_09_30_15_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/09/29/image_18082025_09_30_04_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/09/29/image_18082025_09_29_55_9620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97e7c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97e7c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97e7c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:30:32.730695
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/30/image_18082025_09_30_45_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/09/30/image_18082025_09_30_34_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/30/image_18082025_09_30_25_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/09/30/image_18082025_09_30_15_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/09/29/image_18082025_09_30_04_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/09/29/image_18082025_09_29_55_9620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a03f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a03f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a03f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:30:47.694925
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/30/image_18082025_09_30_45_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/09/30/image_18082025_09_30_34_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/30/image_18082025_09_30_25_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/09/30/image_18082025_09_30_15_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/09/29/image_18082025_09_30_04_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/09/29/image_18082025_09_29_55_9620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89bc5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89bc5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89bc5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:31:02.564742
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/31/image_18082025_09_31_45_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/09/30/image_18082025_09_30_45_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/09/30/image_18082025_09_30_34_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/30/image_18082025_09_30_25_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/09/30/image_18082025_09_30_15_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/09/29/image_18082025_09_30_04_9633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91fe3518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91fe3518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91fe3518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:31:16.856487
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/31/image_18082025_09_31_45_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/09/31/image_18082025_09_31_35_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/09/31/image_18082025_09_31_24_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/09/31/image_18082025_09_31_15_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/09/30/image_18082025_09_31_05_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/09/30/image_18082025_09_30_54_9615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa13254a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa13254a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa13254a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:31:31.830860
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/31/image_18082025_09_31_45_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/09/31/image_18082025_09_31_35_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/09/31/image_18082025_09_31_24_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/09/31/image_18082025_09_31_15_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/09/30/image_18082025_09_31_05_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/09/30/image_18082025_09_30_54_9615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7918f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7918f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7918f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:31:46.783212
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/31/image_18082025_09_31_45_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/09/31/image_18082025_09_31_35_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/09/31/image_18082025_09_31_24_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/09/31/image_18082025_09_31_15_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/09/30/image_18082025_09_31_05_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/09/30/image_18082025_09_30_54_9615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b05e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b05e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b05e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:32:02.353756
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/31/image_18082025_09_31_45_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/09/31/image_18082025_09_31_35_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/09/31/image_18082025_09_31_24_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/09/31/image_18082025_09_31_15_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/09/30/image_18082025_09_31_05_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/09/30/image_18082025_09_30_54_9615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84bbd518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84bbd518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84bbd518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:32:16.878404
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/32/image_18082025_09_32_45_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/09/32/image_18082025_09_32_35_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/09/32/image_18082025_09_32_24_9713.jpg', 2), ('/home/nano/Desktop/images/18082025/09/32/image_18082025_09_32_15_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/09/31/image_18082025_09_32_05_10691.jpg', 2), ('/home/nano/Desktop/images/18082025/09/31/image_18082025_09_31_54_9654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf0f6518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf0f6518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf0f6518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:32:31.911834
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/32/image_18082025_09_32_45_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/09/32/image_18082025_09_32_35_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/09/32/image_18082025_09_32_24_9713.jpg', 2), ('/home/nano/Desktop/images/18082025/09/32/image_18082025_09_32_15_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/09/31/image_18082025_09_32_05_10691.jpg', 2), ('/home/nano/Desktop/images/18082025/09/31/image_18082025_09_31_54_9654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8eab9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8eab9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8eab9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:32:46.899705
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/32/image_18082025_09_32_45_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/09/32/image_18082025_09_32_35_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/09/32/image_18082025_09_32_24_9713.jpg', 2), ('/home/nano/Desktop/images/18082025/09/32/image_18082025_09_32_15_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/09/31/image_18082025_09_32_05_10691.jpg', 2), ('/home/nano/Desktop/images/18082025/09/31/image_18082025_09_31_54_9654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ac97518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ac97518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ac97518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:33:02.702573
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/32/image_18082025_09_32_45_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/09/32/image_18082025_09_32_35_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/09/32/image_18082025_09_32_24_9713.jpg', 2), ('/home/nano/Desktop/images/18082025/09/32/image_18082025_09_32_15_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/09/31/image_18082025_09_32_05_10691.jpg', 2), ('/home/nano/Desktop/images/18082025/09/31/image_18082025_09_31_54_9654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85be8518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85be8518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85be8518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:33:17.000349
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/33/image_18082025_09_33_45_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/09/33/image_18082025_09_33_35_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/09/33/image_18082025_09_33_24_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/09/33/image_18082025_09_33_15_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/09/32/image_18082025_09_33_05_10744.jpg', 2), ('/home/nano/Desktop/images/18082025/09/32/image_18082025_09_32_54_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84a05518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84a05518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84a05518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:33:32.094839
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/33/image_18082025_09_33_45_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/09/33/image_18082025_09_33_35_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/09/33/image_18082025_09_33_24_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/09/33/image_18082025_09_33_15_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/09/32/image_18082025_09_33_05_10744.jpg', 2), ('/home/nano/Desktop/images/18082025/09/32/image_18082025_09_32_54_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0ef74a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0ef74a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0ef74a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:33:46.988995
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/33/image_18082025_09_33_45_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/09/33/image_18082025_09_33_35_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/09/33/image_18082025_09_33_24_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/09/33/image_18082025_09_33_15_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/09/32/image_18082025_09_33_05_10744.jpg', 2), ('/home/nano/Desktop/images/18082025/09/32/image_18082025_09_32_54_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83516518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83516518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83516518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:34:02.799082
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/33/image_18082025_09_33_45_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/09/33/image_18082025_09_33_35_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/09/33/image_18082025_09_33_24_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/09/33/image_18082025_09_33_15_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/09/32/image_18082025_09_33_05_10744.jpg', 2), ('/home/nano/Desktop/images/18082025/09/32/image_18082025_09_32_54_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f576518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f576518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f576518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:34:17.097918
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/34/image_18082025_09_34_45_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/09/34/image_18082025_09_34_35_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/09/34/image_18082025_09_34_24_9670.jpg', 2), ('/home/nano/Desktop/images/18082025/09/34/image_18082025_09_34_15_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/09/33/image_18082025_09_34_05_10693.jpg', 2), ('/home/nano/Desktop/images/18082025/09/33/image_18082025_09_33_54_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab19e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab19e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab19e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:34:32.090662
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/34/image_18082025_09_34_45_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/09/34/image_18082025_09_34_35_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/09/34/image_18082025_09_34_24_9670.jpg', 2), ('/home/nano/Desktop/images/18082025/09/34/image_18082025_09_34_15_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/09/33/image_18082025_09_34_05_10693.jpg', 2), ('/home/nano/Desktop/images/18082025/09/33/image_18082025_09_33_54_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b635518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b635518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b635518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:34:47.073379
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/34/image_18082025_09_34_45_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/09/34/image_18082025_09_34_35_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/09/34/image_18082025_09_34_24_9670.jpg', 2), ('/home/nano/Desktop/images/18082025/09/34/image_18082025_09_34_15_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/09/33/image_18082025_09_34_05_10693.jpg', 2), ('/home/nano/Desktop/images/18082025/09/33/image_18082025_09_33_54_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f948d2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f948d2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f948d2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:35:02.895240
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/34/image_18082025_09_34_45_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/09/34/image_18082025_09_34_35_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/09/34/image_18082025_09_34_24_9670.jpg', 2), ('/home/nano/Desktop/images/18082025/09/34/image_18082025_09_34_15_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/09/33/image_18082025_09_34_05_10693.jpg', 2), ('/home/nano/Desktop/images/18082025/09/33/image_18082025_09_33_54_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97f114a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97f114a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97f114a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:35:17.190291
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/35/image_18082025_09_35_45_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/09/35/image_18082025_09_35_35_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/09/35/image_18082025_09_35_24_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/09/35/image_18082025_09_35_15_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/09/34/image_18082025_09_35_05_10682.jpg', 2), ('/home/nano/Desktop/images/18082025/09/34/image_18082025_09_34_54_9681.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f902c5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f902c5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f902c5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:35:32.201431
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/35/image_18082025_09_35_45_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/09/35/image_18082025_09_35_35_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/09/35/image_18082025_09_35_24_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/09/35/image_18082025_09_35_15_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/09/34/image_18082025_09_35_05_10682.jpg', 2), ('/home/nano/Desktop/images/18082025/09/34/image_18082025_09_34_54_9681.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83fc2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83fc2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83fc2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:35:47.162213
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/35/image_18082025_09_35_45_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/09/35/image_18082025_09_35_35_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/09/35/image_18082025_09_35_24_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/09/35/image_18082025_09_35_15_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/09/34/image_18082025_09_35_05_10682.jpg', 2), ('/home/nano/Desktop/images/18082025/09/34/image_18082025_09_34_54_9681.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8dbab4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8dbab4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8dbab4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:36:02.729199
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/35/image_18082025_09_35_45_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/09/35/image_18082025_09_35_35_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/09/35/image_18082025_09_35_24_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/09/35/image_18082025_09_35_15_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/09/34/image_18082025_09_35_05_10682.jpg', 2), ('/home/nano/Desktop/images/18082025/09/34/image_18082025_09_34_54_9681.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8bdf7518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8bdf7518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8bdf7518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:36:17.257864
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/36/image_18082025_09_36_45_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/09/36/image_18082025_09_36_35_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/09/36/image_18082025_09_36_24_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/09/36/image_18082025_09_36_15_9722.jpg', 2), ('/home/nano/Desktop/images/18082025/09/35/image_18082025_09_36_05_10701.jpg', 2), ('/home/nano/Desktop/images/18082025/09/35/image_18082025_09_35_54_9677.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ca99518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ca99518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ca99518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:36:32.282971
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/36/image_18082025_09_36_45_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/09/36/image_18082025_09_36_35_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/09/36/image_18082025_09_36_24_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/09/36/image_18082025_09_36_15_9722.jpg', 2), ('/home/nano/Desktop/images/18082025/09/35/image_18082025_09_36_05_10701.jpg', 2), ('/home/nano/Desktop/images/18082025/09/35/image_18082025_09_35_54_9677.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a4dc518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a4dc518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a4dc518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:36:47.273320
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/36/image_18082025_09_36_45_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/09/36/image_18082025_09_36_35_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/09/36/image_18082025_09_36_24_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/09/36/image_18082025_09_36_15_9722.jpg', 2), ('/home/nano/Desktop/images/18082025/09/35/image_18082025_09_36_05_10701.jpg', 2), ('/home/nano/Desktop/images/18082025/09/35/image_18082025_09_35_54_9677.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93c08518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93c08518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93c08518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:37:03.099491
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/36/image_18082025_09_36_45_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/09/36/image_18082025_09_36_35_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/09/36/image_18082025_09_36_24_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/09/36/image_18082025_09_36_15_9722.jpg', 2), ('/home/nano/Desktop/images/18082025/09/35/image_18082025_09_36_05_10701.jpg', 2), ('/home/nano/Desktop/images/18082025/09/35/image_18082025_09_35_54_9677.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa59b7518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa59b7518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa59b7518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:37:17.372807
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/37/image_18082025_09_37_45_9671.jpg', 2), ('/home/nano/Desktop/images/18082025/09/37/image_18082025_09_37_35_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/09/37/image_18082025_09_37_24_9696.jpg', 2), ('/home/nano/Desktop/images/18082025/09/37/image_18082025_09_37_15_9682.jpg', 2), ('/home/nano/Desktop/images/18082025/09/36/image_18082025_09_37_05_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/09/36/image_18082025_09_36_54_9669.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87255550>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87255550>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87255550>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:37:32.385392
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/37/image_18082025_09_37_45_9671.jpg', 2), ('/home/nano/Desktop/images/18082025/09/37/image_18082025_09_37_35_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/09/37/image_18082025_09_37_24_9696.jpg', 2), ('/home/nano/Desktop/images/18082025/09/37/image_18082025_09_37_15_9682.jpg', 2), ('/home/nano/Desktop/images/18082025/09/36/image_18082025_09_37_05_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/09/36/image_18082025_09_36_54_9669.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f933f84a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f933f84a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f933f84a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:37:47.424179
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/37/image_18082025_09_37_45_9671.jpg', 2), ('/home/nano/Desktop/images/18082025/09/37/image_18082025_09_37_35_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/09/37/image_18082025_09_37_24_9696.jpg', 2), ('/home/nano/Desktop/images/18082025/09/37/image_18082025_09_37_15_9682.jpg', 2), ('/home/nano/Desktop/images/18082025/09/36/image_18082025_09_37_05_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/09/36/image_18082025_09_36_54_9669.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7dded518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7dded518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7dded518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:38:03.092497
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/37/image_18082025_09_37_45_9671.jpg', 2), ('/home/nano/Desktop/images/18082025/09/37/image_18082025_09_37_35_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/09/37/image_18082025_09_37_24_9696.jpg', 2), ('/home/nano/Desktop/images/18082025/09/37/image_18082025_09_37_15_9682.jpg', 2), ('/home/nano/Desktop/images/18082025/09/36/image_18082025_09_37_05_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/09/36/image_18082025_09_36_54_9669.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa632e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa632e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa632e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:38:17.655415
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/38/image_18082025_09_38_44_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/09/38/image_18082025_09_38_35_10683.jpg', 2), ('/home/nano/Desktop/images/18082025/09/38/image_18082025_09_38_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/09/38/image_18082025_09_38_14_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/09/37/image_18082025_09_38_05_10677.jpg', 2), ('/home/nano/Desktop/images/18082025/09/37/image_18082025_09_37_54_9609.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f956f34a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f956f34a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f956f34a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:38:32.581750
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/38/image_18082025_09_38_44_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/09/38/image_18082025_09_38_35_10683.jpg', 2), ('/home/nano/Desktop/images/18082025/09/38/image_18082025_09_38_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/09/38/image_18082025_09_38_14_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/09/37/image_18082025_09_38_05_10677.jpg', 2), ('/home/nano/Desktop/images/18082025/09/37/image_18082025_09_37_54_9609.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9769c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9769c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9769c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:38:47.507067
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/38/image_18082025_09_38_44_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/09/38/image_18082025_09_38_35_10683.jpg', 2), ('/home/nano/Desktop/images/18082025/09/38/image_18082025_09_38_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/09/38/image_18082025_09_38_14_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/09/37/image_18082025_09_38_05_10677.jpg', 2), ('/home/nano/Desktop/images/18082025/09/37/image_18082025_09_37_54_9609.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb48c24a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb48c24a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb48c24a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:39:03.642164
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/38/image_18082025_09_38_44_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/09/38/image_18082025_09_38_35_10683.jpg', 2), ('/home/nano/Desktop/images/18082025/09/38/image_18082025_09_38_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/09/38/image_18082025_09_38_14_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/09/37/image_18082025_09_38_05_10677.jpg', 2), ('/home/nano/Desktop/images/18082025/09/37/image_18082025_09_37_54_9609.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d689518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d689518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d689518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:39:17.643556
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/39/image_18082025_09_39_44_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/09/39/image_18082025_09_39_35_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/09/39/image_18082025_09_39_25_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/09/39/image_18082025_09_39_14_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/09/38/image_18082025_09_39_05_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/09/38/image_18082025_09_38_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb39ab518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb39ab518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb39ab518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:39:32.653406
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/39/image_18082025_09_39_44_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/09/39/image_18082025_09_39_35_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/09/39/image_18082025_09_39_25_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/09/39/image_18082025_09_39_14_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/09/38/image_18082025_09_39_05_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/09/38/image_18082025_09_38_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a1504a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a1504a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a1504a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:39:47.663946
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/39/image_18082025_09_39_44_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/09/39/image_18082025_09_39_35_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/09/39/image_18082025_09_39_25_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/09/39/image_18082025_09_39_14_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/09/38/image_18082025_09_39_05_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/09/38/image_18082025_09_38_54_9639.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f036518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f036518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f036518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:40:02.279936
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/40/image_18082025_09_40_55_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/09/39/image_18082025_09_39_44_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/09/39/image_18082025_09_39_35_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/09/39/image_18082025_09_39_25_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/09/39/image_18082025_09_39_14_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/09/38/image_18082025_09_39_05_10642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa90e5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa90e5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa90e5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:40:16.792872
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/40/image_18082025_09_40_55_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/09/40/image_18082025_09_40_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/09/40/image_18082025_09_40_25_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/09/40/image_18082025_09_40_14_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/09/39/image_18082025_09_40_05_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/09/39/image_18082025_09_39_55_10633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d2aa518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d2aa518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d2aa518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:40:31.751788
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/40/image_18082025_09_40_55_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/09/40/image_18082025_09_40_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/09/40/image_18082025_09_40_25_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/09/40/image_18082025_09_40_14_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/09/39/image_18082025_09_40_05_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/09/39/image_18082025_09_39_55_10633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab914518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab914518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab914518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:40:46.752905
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/40/image_18082025_09_40_55_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/09/40/image_18082025_09_40_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/09/40/image_18082025_09_40_25_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/09/40/image_18082025_09_40_14_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/09/39/image_18082025_09_40_05_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/09/39/image_18082025_09_39_55_10633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96dba518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96dba518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96dba518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:41:02.612381
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/40/image_18082025_09_40_55_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/09/40/image_18082025_09_40_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/09/40/image_18082025_09_40_25_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/09/40/image_18082025_09_40_14_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/09/39/image_18082025_09_40_05_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/09/39/image_18082025_09_39_55_10633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb03dd518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb03dd518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb03dd518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:41:16.881579
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/41/image_18082025_09_41_45_10622.jpg', 2), ('/home/nano/Desktop/images/18082025/09/41/image_18082025_09_41_34_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/09/41/image_18082025_09_41_25_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/09/41/image_18082025_09_41_15_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/09/40/image_18082025_09_41_04_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/09/40/image_18082025_09_40_55_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f911ac518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f911ac518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f911ac518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:41:31.857353
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/41/image_18082025_09_41_45_10622.jpg', 2), ('/home/nano/Desktop/images/18082025/09/41/image_18082025_09_41_34_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/09/41/image_18082025_09_41_25_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/09/41/image_18082025_09_41_15_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/09/40/image_18082025_09_41_04_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/09/40/image_18082025_09_40_55_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7da40518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7da40518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7da40518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:41:46.843428
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/41/image_18082025_09_41_45_10622.jpg', 2), ('/home/nano/Desktop/images/18082025/09/41/image_18082025_09_41_34_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/09/41/image_18082025_09_41_25_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/09/41/image_18082025_09_41_15_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/09/40/image_18082025_09_41_04_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/09/40/image_18082025_09_40_55_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2c97518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2c97518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2c97518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:42:02.431057
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/41/image_18082025_09_41_45_10622.jpg', 2), ('/home/nano/Desktop/images/18082025/09/41/image_18082025_09_41_34_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/09/41/image_18082025_09_41_25_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/09/41/image_18082025_09_41_15_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/09/40/image_18082025_09_41_04_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/09/40/image_18082025_09_40_55_9641.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6027550>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6027550>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6027550>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:42:16.947112
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/42/image_18082025_09_42_45_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/09/42/image_18082025_09_42_35_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/09/42/image_18082025_09_42_24_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/09/42/image_18082025_09_42_15_10676.jpg', 2), ('/home/nano/Desktop/images/18082025/09/41/image_18082025_09_42_04_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/09/41/image_18082025_09_41_54_9627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa44794a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa44794a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa44794a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:42:31.944741
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/42/image_18082025_09_42_45_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/09/42/image_18082025_09_42_35_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/09/42/image_18082025_09_42_24_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/09/42/image_18082025_09_42_15_10676.jpg', 2), ('/home/nano/Desktop/images/18082025/09/41/image_18082025_09_42_04_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/09/41/image_18082025_09_41_54_9627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76d7c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76d7c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76d7c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:42:46.989363
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/42/image_18082025_09_42_45_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/09/42/image_18082025_09_42_35_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/09/42/image_18082025_09_42_24_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/09/42/image_18082025_09_42_15_10676.jpg', 2), ('/home/nano/Desktop/images/18082025/09/41/image_18082025_09_42_04_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/09/41/image_18082025_09_41_54_9627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5075550>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5075550>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5075550>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:43:02.664629
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/42/image_18082025_09_42_45_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/09/42/image_18082025_09_42_35_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/09/42/image_18082025_09_42_24_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/09/42/image_18082025_09_42_15_10676.jpg', 2), ('/home/nano/Desktop/images/18082025/09/41/image_18082025_09_42_04_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/09/41/image_18082025_09_41_54_9627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa692f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa692f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa692f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:43:17.079232
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/43/image_18082025_09_43_44_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/09/43/image_18082025_09_43_35_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/09/43/image_18082025_09_43_24_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/09/43/image_18082025_09_43_15_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/09/42/image_18082025_09_43_05_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/09/42/image_18082025_09_42_54_9608.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa779c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa779c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa779c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:43:32.082864
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/43/image_18082025_09_43_44_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/09/43/image_18082025_09_43_35_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/09/43/image_18082025_09_43_24_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/09/43/image_18082025_09_43_15_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/09/42/image_18082025_09_43_05_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/09/42/image_18082025_09_42_54_9608.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b94d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b94d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b94d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:43:47.154286
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/43/image_18082025_09_43_44_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/09/43/image_18082025_09_43_35_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/09/43/image_18082025_09_43_24_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/09/43/image_18082025_09_43_15_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/09/42/image_18082025_09_43_05_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/09/42/image_18082025_09_42_54_9608.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0743518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0743518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0743518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:44:03.015221
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/43/image_18082025_09_43_44_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/09/43/image_18082025_09_43_35_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/09/43/image_18082025_09_43_24_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/09/43/image_18082025_09_43_15_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/09/42/image_18082025_09_43_05_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/09/42/image_18082025_09_42_54_9608.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85068518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85068518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85068518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:44:17.247709
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/44/image_18082025_09_44_44_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/09/44/image_18082025_09_44_35_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/09/44/image_18082025_09_44_25_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/09/44/image_18082025_09_44_14_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/09/43/image_18082025_09_44_05_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/09/43/image_18082025_09_43_55_10625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c34b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c34b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c34b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:44:32.244899
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/44/image_18082025_09_44_44_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/09/44/image_18082025_09_44_35_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/09/44/image_18082025_09_44_25_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/09/44/image_18082025_09_44_14_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/09/43/image_18082025_09_44_05_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/09/43/image_18082025_09_43_55_10625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86ce1518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86ce1518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86ce1518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:44:47.257115
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/44/image_18082025_09_44_44_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/09/44/image_18082025_09_44_35_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/09/44/image_18082025_09_44_25_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/09/44/image_18082025_09_44_14_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/09/43/image_18082025_09_44_05_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/09/43/image_18082025_09_43_55_10625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8b084a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8b084a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8b084a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:45:03.104742
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/44/image_18082025_09_44_44_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/09/44/image_18082025_09_44_35_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/09/44/image_18082025_09_44_25_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/09/44/image_18082025_09_44_14_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/09/43/image_18082025_09_44_05_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/09/43/image_18082025_09_43_55_10625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84222518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84222518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84222518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:45:17.415803
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/45/image_18082025_09_45_45_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/09/45/image_18082025_09_45_34_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/09/45/image_18082025_09_45_25_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/09/45/image_18082025_09_45_15_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/09/44/image_18082025_09_45_04_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/09/44/image_18082025_09_44_55_10620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c7614a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c7614a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c7614a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:45:32.353191
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/45/image_18082025_09_45_45_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/09/45/image_18082025_09_45_34_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/09/45/image_18082025_09_45_25_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/09/45/image_18082025_09_45_15_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/09/44/image_18082025_09_45_04_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/09/44/image_18082025_09_44_55_10620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa788c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa788c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa788c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:45:47.377705
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/45/image_18082025_09_45_45_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/09/45/image_18082025_09_45_34_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/09/45/image_18082025_09_45_25_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/09/45/image_18082025_09_45_15_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/09/44/image_18082025_09_45_04_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/09/44/image_18082025_09_44_55_10620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79dc0518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79dc0518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79dc0518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:46:03.018138
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/45/image_18082025_09_45_45_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/09/45/image_18082025_09_45_34_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/09/45/image_18082025_09_45_25_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/09/45/image_18082025_09_45_15_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/09/44/image_18082025_09_45_04_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/09/44/image_18082025_09_44_55_10620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9486f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9486f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9486f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:46:17.480932
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/46/image_18082025_09_46_45_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/09/46/image_18082025_09_46_35_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/09/46/image_18082025_09_46_24_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/09/46/image_18082025_09_46_15_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/09/45/image_18082025_09_46_04_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/09/45/image_18082025_09_45_54_9629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f78e34518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78e34518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f78e34518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:46:32.469672
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/46/image_18082025_09_46_45_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/09/46/image_18082025_09_46_35_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/09/46/image_18082025_09_46_24_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/09/46/image_18082025_09_46_15_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/09/45/image_18082025_09_46_04_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/09/45/image_18082025_09_45_54_9629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fae3bd518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae3bd518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae3bd518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:46:47.432824
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/46/image_18082025_09_46_45_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/09/46/image_18082025_09_46_35_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/09/46/image_18082025_09_46_24_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/09/46/image_18082025_09_46_15_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/09/45/image_18082025_09_46_04_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/09/45/image_18082025_09_45_54_9629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f236518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f236518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f236518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:47:03.234610
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/46/image_18082025_09_46_45_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/09/46/image_18082025_09_46_35_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/09/46/image_18082025_09_46_24_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/09/46/image_18082025_09_46_15_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/09/45/image_18082025_09_46_04_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/09/45/image_18082025_09_45_54_9629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d025518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d025518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d025518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:47:17.528328
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/47/image_18082025_09_47_44_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/09/47/image_18082025_09_47_35_10619.jpg', 2), ('/home/nano/Desktop/images/18082025/09/47/image_18082025_09_47_24_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/09/47/image_18082025_09_47_15_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/09/46/image_18082025_09_47_05_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/09/46/image_18082025_09_46_54_9615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ec8c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ec8c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ec8c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:47:32.575276
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/47/image_18082025_09_47_44_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/09/47/image_18082025_09_47_35_10619.jpg', 2), ('/home/nano/Desktop/images/18082025/09/47/image_18082025_09_47_24_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/09/47/image_18082025_09_47_15_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/09/46/image_18082025_09_47_05_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/09/46/image_18082025_09_46_54_9615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa9b67518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9b67518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9b67518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:47:47.540364
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/47/image_18082025_09_47_44_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/09/47/image_18082025_09_47_35_10619.jpg', 2), ('/home/nano/Desktop/images/18082025/09/47/image_18082025_09_47_24_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/09/47/image_18082025_09_47_15_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/09/46/image_18082025_09_47_05_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/09/46/image_18082025_09_46_54_9615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f883414a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f883414a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f883414a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:48:03.156338
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/47/image_18082025_09_47_44_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/09/47/image_18082025_09_47_35_10619.jpg', 2), ('/home/nano/Desktop/images/18082025/09/47/image_18082025_09_47_24_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/09/47/image_18082025_09_47_15_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/09/46/image_18082025_09_47_05_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/09/46/image_18082025_09_46_54_9615.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb657f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb657f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb657f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:48:17.619572
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/48/image_18082025_09_48_44_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/09/48/image_18082025_09_48_35_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/09/48/image_18082025_09_48_25_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/09/48/image_18082025_09_48_14_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/09/47/image_18082025_09_48_05_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/09/47/image_18082025_09_47_55_10621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9df38518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9df38518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9df38518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:48:32.609191
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/48/image_18082025_09_48_44_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/09/48/image_18082025_09_48_35_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/09/48/image_18082025_09_48_25_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/09/48/image_18082025_09_48_14_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/09/47/image_18082025_09_48_05_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/09/47/image_18082025_09_47_55_10621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf4f6518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf4f6518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf4f6518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:48:47.631436
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/48/image_18082025_09_48_44_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/09/48/image_18082025_09_48_35_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/09/48/image_18082025_09_48_25_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/09/48/image_18082025_09_48_14_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/09/47/image_18082025_09_48_05_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/09/47/image_18082025_09_47_55_10621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9202b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9202b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9202b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:49:03.521727
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/48/image_18082025_09_48_44_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/09/48/image_18082025_09_48_35_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/09/48/image_18082025_09_48_25_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/09/48/image_18082025_09_48_14_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/09/47/image_18082025_09_48_05_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/09/47/image_18082025_09_47_55_10621.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f768634a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f768634a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f768634a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:49:17.739250
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/49/image_18082025_09_49_45_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/09/49/image_18082025_09_49_34_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/09/49/image_18082025_09_49_25_9605.jpg', 2), ('/home/nano/Desktop/images/18082025/09/49/image_18082025_09_49_15_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/09/48/image_18082025_09_49_04_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/09/48/image_18082025_09_48_55_10637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7c12518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7c12518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7c12518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:49:32.781789
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/49/image_18082025_09_49_45_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/09/49/image_18082025_09_49_34_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/09/49/image_18082025_09_49_25_9605.jpg', 2), ('/home/nano/Desktop/images/18082025/09/49/image_18082025_09_49_15_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/09/48/image_18082025_09_49_04_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/09/48/image_18082025_09_48_55_10637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa9ad4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9ad4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9ad4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:49:47.703053
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/49/image_18082025_09_49_45_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/09/49/image_18082025_09_49_34_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/09/49/image_18082025_09_49_25_9605.jpg', 2), ('/home/nano/Desktop/images/18082025/09/49/image_18082025_09_49_15_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/09/48/image_18082025_09_49_04_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/09/48/image_18082025_09_48_55_10637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a546518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a546518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a546518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:50:02.247416
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/49/image_18082025_09_49_45_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/09/49/image_18082025_09_49_34_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/09/49/image_18082025_09_49_25_9605.jpg', 2), ('/home/nano/Desktop/images/18082025/09/49/image_18082025_09_49_15_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/09/48/image_18082025_09_49_04_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/09/48/image_18082025_09_48_55_10637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f92bba518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92bba518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92bba518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:50:16.814431
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/50/image_18082025_09_50_45_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/09/50/image_18082025_09_50_35_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/09/50/image_18082025_09_50_24_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/09/50/image_18082025_09_50_15_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/09/49/image_18082025_09_50_04_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/09/49/image_18082025_09_49_54_9603.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90369518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90369518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90369518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:50:31.822327
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/50/image_18082025_09_50_45_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/09/50/image_18082025_09_50_35_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/09/50/image_18082025_09_50_24_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/09/50/image_18082025_09_50_15_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/09/49/image_18082025_09_50_04_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/09/49/image_18082025_09_49_54_9603.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9907c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9907c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9907c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:50:46.810631
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/50/image_18082025_09_50_45_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/09/50/image_18082025_09_50_35_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/09/50/image_18082025_09_50_24_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/09/50/image_18082025_09_50_15_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/09/49/image_18082025_09_50_04_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/09/49/image_18082025_09_49_54_9603.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2b65518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2b65518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2b65518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:51:02.650981
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/50/image_18082025_09_50_45_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/09/50/image_18082025_09_50_35_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/09/50/image_18082025_09_50_24_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/09/50/image_18082025_09_50_15_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/09/49/image_18082025_09_50_04_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/09/49/image_18082025_09_49_54_9603.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e0c6518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e0c6518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e0c6518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:51:16.942634
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/51/image_18082025_09_51_44_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/09/51/image_18082025_09_51_35_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/09/51/image_18082025_09_51_24_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/09/51/image_18082025_09_51_14_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/50/image_18082025_09_51_05_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/09/50/image_18082025_09_50_54_9610.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f9bb518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f9bb518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f9bb518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:51:31.942177
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/51/image_18082025_09_51_44_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/09/51/image_18082025_09_51_35_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/09/51/image_18082025_09_51_24_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/09/51/image_18082025_09_51_14_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/50/image_18082025_09_51_05_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/09/50/image_18082025_09_50_54_9610.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0cdc518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0cdc518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0cdc518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:51:46.913306
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/51/image_18082025_09_51_44_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/09/51/image_18082025_09_51_35_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/09/51/image_18082025_09_51_24_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/09/51/image_18082025_09_51_14_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/50/image_18082025_09_51_05_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/09/50/image_18082025_09_50_54_9610.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad9de4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad9de4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad9de4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:52:02.498593
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/51/image_18082025_09_51_44_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/09/51/image_18082025_09_51_35_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/09/51/image_18082025_09_51_24_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/09/51/image_18082025_09_51_14_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/50/image_18082025_09_51_05_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/09/50/image_18082025_09_50_54_9610.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa9d89518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9d89518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9d89518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:52:17.030903
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/52/image_18082025_09_52_44_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/52/image_18082025_09_52_34_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/09/52/image_18082025_09_52_25_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/09/52/image_18082025_09_52_14_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/09/51/image_18082025_09_52_05_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/09/51/image_18082025_09_51_55_10624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97880518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97880518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97880518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:52:32.043857
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/52/image_18082025_09_52_44_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/52/image_18082025_09_52_34_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/09/52/image_18082025_09_52_25_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/09/52/image_18082025_09_52_14_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/09/51/image_18082025_09_52_05_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/09/51/image_18082025_09_51_55_10624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa8aa518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa8aa518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa8aa518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:52:47.058353
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/52/image_18082025_09_52_44_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/52/image_18082025_09_52_34_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/09/52/image_18082025_09_52_25_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/09/52/image_18082025_09_52_14_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/09/51/image_18082025_09_52_05_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/09/51/image_18082025_09_51_55_10624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b597518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b597518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b597518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:53:02.799202
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/52/image_18082025_09_52_44_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/52/image_18082025_09_52_34_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/09/52/image_18082025_09_52_25_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/09/52/image_18082025_09_52_14_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/09/51/image_18082025_09_52_05_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/09/51/image_18082025_09_51_55_10624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ab1f550>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ab1f550>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ab1f550>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:53:17.143940
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/53/image_18082025_09_53_45_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/09/53/image_18082025_09_53_34_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/09/53/image_18082025_09_53_25_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/09/53/image_18082025_09_53_15_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/09/52/image_18082025_09_53_04_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/09/52/image_18082025_09_52_55_10627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e7e6518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e7e6518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e7e6518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:53:32.150131
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/53/image_18082025_09_53_45_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/09/53/image_18082025_09_53_34_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/09/53/image_18082025_09_53_25_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/09/53/image_18082025_09_53_15_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/09/52/image_18082025_09_53_04_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/09/52/image_18082025_09_52_55_10627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a37f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a37f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a37f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:53:47.137798
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/53/image_18082025_09_53_45_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/09/53/image_18082025_09_53_34_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/09/53/image_18082025_09_53_25_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/09/53/image_18082025_09_53_15_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/09/52/image_18082025_09_53_04_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/09/52/image_18082025_09_52_55_10627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa928a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa928a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa928a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:54:03.113544
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/53/image_18082025_09_53_45_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/09/53/image_18082025_09_53_34_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/09/53/image_18082025_09_53_25_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/09/53/image_18082025_09_53_15_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/09/52/image_18082025_09_53_04_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/09/52/image_18082025_09_52_55_10627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad722518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad722518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad722518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:54:17.261845
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/54/image_18082025_09_54_45_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/09/54/image_18082025_09_54_35_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/09/54/image_18082025_09_54_24_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/09/54/image_18082025_09_54_15_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/09/53/image_18082025_09_54_05_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/09/53/image_18082025_09_53_54_9605.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f49a4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f49a4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f49a4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:54:32.241435
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/54/image_18082025_09_54_45_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/09/54/image_18082025_09_54_35_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/09/54/image_18082025_09_54_24_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/09/54/image_18082025_09_54_15_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/09/53/image_18082025_09_54_05_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/09/53/image_18082025_09_53_54_9605.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa71f9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa71f9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa71f9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:54:47.225068
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/54/image_18082025_09_54_45_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/09/54/image_18082025_09_54_35_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/09/54/image_18082025_09_54_24_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/09/54/image_18082025_09_54_15_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/09/53/image_18082025_09_54_05_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/09/53/image_18082025_09_53_54_9605.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96766518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96766518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96766518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:55:02.852843
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/54/image_18082025_09_54_45_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/09/54/image_18082025_09_54_35_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/09/54/image_18082025_09_54_24_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/09/54/image_18082025_09_54_15_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/09/53/image_18082025_09_54_05_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/09/53/image_18082025_09_53_54_9605.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f803c9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f803c9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f803c9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:55:17.336500
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/55/image_18082025_09_55_44_9604.jpg', 2), ('/home/nano/Desktop/images/18082025/09/55/image_18082025_09_55_35_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/09/55/image_18082025_09_55_25_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/09/55/image_18082025_09_55_14_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/09/54/image_18082025_09_55_05_10619.jpg', 2), ('/home/nano/Desktop/images/18082025/09/54/image_18082025_09_54_54_9606.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93ed9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93ed9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93ed9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:55:32.368514
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/55/image_18082025_09_55_44_9604.jpg', 2), ('/home/nano/Desktop/images/18082025/09/55/image_18082025_09_55_35_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/09/55/image_18082025_09_55_25_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/09/55/image_18082025_09_55_14_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/09/54/image_18082025_09_55_05_10619.jpg', 2), ('/home/nano/Desktop/images/18082025/09/54/image_18082025_09_54_54_9606.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97b19518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97b19518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97b19518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:55:47.336330
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/55/image_18082025_09_55_44_9604.jpg', 2), ('/home/nano/Desktop/images/18082025/09/55/image_18082025_09_55_35_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/09/55/image_18082025_09_55_25_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/09/55/image_18082025_09_55_14_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/09/54/image_18082025_09_55_05_10619.jpg', 2), ('/home/nano/Desktop/images/18082025/09/54/image_18082025_09_54_54_9606.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8cd93518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8cd93518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8cd93518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:56:02.997379
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/55/image_18082025_09_55_44_9604.jpg', 2), ('/home/nano/Desktop/images/18082025/09/55/image_18082025_09_55_35_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/09/55/image_18082025_09_55_25_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/09/55/image_18082025_09_55_14_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/09/54/image_18082025_09_55_05_10619.jpg', 2), ('/home/nano/Desktop/images/18082025/09/54/image_18082025_09_54_54_9606.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7edbf518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7edbf518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7edbf518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:56:17.433073
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/56/image_18082025_09_56_45_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/09/56/image_18082025_09_56_34_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/09/56/image_18082025_09_56_25_10616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/56/image_18082025_09_56_14_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/09/55/image_18082025_09_56_04_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/09/55/image_18082025_09_55_55_10619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99553518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99553518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99553518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:56:32.444107
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/56/image_18082025_09_56_45_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/09/56/image_18082025_09_56_34_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/09/56/image_18082025_09_56_25_10616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/56/image_18082025_09_56_14_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/09/55/image_18082025_09_56_04_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/09/55/image_18082025_09_55_55_10619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8f5a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8f5a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8f5a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:56:47.461928
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/56/image_18082025_09_56_45_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/09/56/image_18082025_09_56_34_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/09/56/image_18082025_09_56_25_10616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/56/image_18082025_09_56_14_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/09/55/image_18082025_09_56_04_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/09/55/image_18082025_09_55_55_10619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8cdc24a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8cdc24a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8cdc24a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:57:03.290444
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/56/image_18082025_09_56_45_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/09/56/image_18082025_09_56_34_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/09/56/image_18082025_09_56_25_10616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/56/image_18082025_09_56_14_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/09/55/image_18082025_09_56_04_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/09/55/image_18082025_09_55_55_10619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa2cf4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa2cf4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa2cf4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:57:17.549890
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/57/image_18082025_09_57_45_10620.jpg', 2), ('/home/nano/Desktop/images/18082025/09/57/image_18082025_09_57_34_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/57/image_18082025_09_57_25_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/09/57/image_18082025_09_57_15_10662.jpg', 2), ('/home/nano/Desktop/images/18082025/09/56/image_18082025_09_57_04_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/09/56/image_18082025_09_56_55_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90478518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90478518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90478518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:57:32.544609
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/57/image_18082025_09_57_45_10620.jpg', 2), ('/home/nano/Desktop/images/18082025/09/57/image_18082025_09_57_34_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/57/image_18082025_09_57_25_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/09/57/image_18082025_09_57_15_10662.jpg', 2), ('/home/nano/Desktop/images/18082025/09/56/image_18082025_09_57_04_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/09/56/image_18082025_09_56_55_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b32f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b32f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b32f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:57:47.595784
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/57/image_18082025_09_57_45_10620.jpg', 2), ('/home/nano/Desktop/images/18082025/09/57/image_18082025_09_57_34_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/57/image_18082025_09_57_25_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/09/57/image_18082025_09_57_15_10662.jpg', 2), ('/home/nano/Desktop/images/18082025/09/56/image_18082025_09_57_04_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/09/56/image_18082025_09_56_55_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7db46550>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7db46550>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7db46550>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:59:02.634970
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/58/image_18082025_09_58_44_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/58/image_18082025_09_58_35_10622.jpg', 2), ('/home/nano/Desktop/images/18082025/09/58/image_18082025_09_58_24_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/09/58/image_18082025_09_58_15_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/09/57/image_18082025_09_58_05_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/09/57/image_18082025_09_57_54_9609.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89be9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89be9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89be9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:59:16.940609
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/59/image_18082025_09_59_44_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/09/59/image_18082025_09_59_35_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/09/59/image_18082025_09_59_25_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/09/59/image_18082025_09_59_14_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/09/58/image_18082025_09_59_05_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/09/58/image_18082025_09_58_54_9606.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87afe518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87afe518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87afe518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:59:31.990506
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/59/image_18082025_09_59_44_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/09/59/image_18082025_09_59_35_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/09/59/image_18082025_09_59_25_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/09/59/image_18082025_09_59_14_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/09/58/image_18082025_09_59_05_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/09/58/image_18082025_09_58_54_9606.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0f8b4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0f8b4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0f8b4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 09:59:46.979908
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/59/image_18082025_09_59_44_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/09/59/image_18082025_09_59_35_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/09/59/image_18082025_09_59_25_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/09/59/image_18082025_09_59_14_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/09/58/image_18082025_09_59_05_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/09/58/image_18082025_09_58_54_9606.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4870518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4870518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4870518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:00:02.618304
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/59/image_18082025_09_59_44_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/09/59/image_18082025_09_59_35_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/09/59/image_18082025_09_59_25_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/09/59/image_18082025_09_59_14_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/09/58/image_18082025_09_59_05_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/09/58/image_18082025_09_58_54_9606.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82c894a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82c894a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82c894a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:00:17.075227
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/00/image_18082025_10_00_44_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/10/00/image_18082025_10_00_34_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/10/00/image_18082025_10_00_25_10662.jpg', 2), ('/home/nano/Desktop/images/18082025/10/00/image_18082025_10_00_14_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/09/59/image_18082025_10_00_04_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/09/59/image_18082025_09_59_55_10646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88ef6518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88ef6518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88ef6518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:00:32.048075
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/00/image_18082025_10_00_44_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/10/00/image_18082025_10_00_34_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/10/00/image_18082025_10_00_25_10662.jpg', 2), ('/home/nano/Desktop/images/18082025/10/00/image_18082025_10_00_14_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/09/59/image_18082025_10_00_04_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/09/59/image_18082025_09_59_55_10646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2cae518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2cae518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2cae518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:00:47.133450
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/00/image_18082025_10_00_44_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/10/00/image_18082025_10_00_34_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/10/00/image_18082025_10_00_25_10662.jpg', 2), ('/home/nano/Desktop/images/18082025/10/00/image_18082025_10_00_14_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/09/59/image_18082025_10_00_04_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/09/59/image_18082025_09_59_55_10646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f948e64a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f948e64a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f948e64a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:01:02.932493
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/00/image_18082025_10_00_44_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/10/00/image_18082025_10_00_34_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/10/00/image_18082025_10_00_25_10662.jpg', 2), ('/home/nano/Desktop/images/18082025/10/00/image_18082025_10_00_14_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/09/59/image_18082025_10_00_04_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/09/59/image_18082025_09_59_55_10646.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ea54518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ea54518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ea54518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:01:17.252986
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/01/image_18082025_10_01_45_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/10/01/image_18082025_10_01_34_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/10/01/image_18082025_10_01_25_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/10/01/image_18082025_10_01_15_10664.jpg', 2), ('/home/nano/Desktop/images/18082025/10/00/image_18082025_10_01_04_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/10/00/image_18082025_10_00_55_10620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7734a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7734a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7734a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:01:32.241862
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/01/image_18082025_10_01_45_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/10/01/image_18082025_10_01_34_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/10/01/image_18082025_10_01_25_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/10/01/image_18082025_10_01_15_10664.jpg', 2), ('/home/nano/Desktop/images/18082025/10/00/image_18082025_10_01_04_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/10/00/image_18082025_10_00_55_10620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa05184a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa05184a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa05184a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:01:47.329971
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/01/image_18082025_10_01_45_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/10/01/image_18082025_10_01_34_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/10/01/image_18082025_10_01_25_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/10/01/image_18082025_10_01_15_10664.jpg', 2), ('/home/nano/Desktop/images/18082025/10/00/image_18082025_10_01_04_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/10/00/image_18082025_10_00_55_10620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0122518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0122518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0122518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:02:02.968496
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/01/image_18082025_10_01_45_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/10/01/image_18082025_10_01_34_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/10/01/image_18082025_10_01_25_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/10/01/image_18082025_10_01_15_10664.jpg', 2), ('/home/nano/Desktop/images/18082025/10/00/image_18082025_10_01_04_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/10/00/image_18082025_10_00_55_10620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2c2e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2c2e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2c2e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:02:17.489316
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/02/image_18082025_10_02_45_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/10/02/image_18082025_10_02_35_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/10/02/image_18082025_10_02_24_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/10/02/image_18082025_10_02_15_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/10/01/image_18082025_10_02_04_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/10/01/image_18082025_10_01_54_9622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9525b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9525b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9525b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:02:32.445013
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/02/image_18082025_10_02_45_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/10/02/image_18082025_10_02_35_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/10/02/image_18082025_10_02_24_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/10/02/image_18082025_10_02_15_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/10/01/image_18082025_10_02_04_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/10/01/image_18082025_10_01_54_9622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76f8f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76f8f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76f8f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:02:47.423010
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/02/image_18082025_10_02_45_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/10/02/image_18082025_10_02_35_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/10/02/image_18082025_10_02_24_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/10/02/image_18082025_10_02_15_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/10/01/image_18082025_10_02_04_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/10/01/image_18082025_10_01_54_9622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa8a5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa8a5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa8a5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:03:03.250545
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/02/image_18082025_10_02_45_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/10/02/image_18082025_10_02_35_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/10/02/image_18082025_10_02_24_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/10/02/image_18082025_10_02_15_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/10/01/image_18082025_10_02_04_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/10/01/image_18082025_10_01_54_9622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d942518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d942518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d942518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:03:17.529525
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/03/image_18082025_10_03_44_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/10/03/image_18082025_10_03_35_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/10/03/image_18082025_10_03_24_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/10/03/image_18082025_10_03_15_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/10/02/image_18082025_10_03_05_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/10/02/image_18082025_10_02_54_9616.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99803518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99803518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99803518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:03:32.560559
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/03/image_18082025_10_03_44_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/10/03/image_18082025_10_03_35_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/10/03/image_18082025_10_03_24_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/10/03/image_18082025_10_03_15_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/10/02/image_18082025_10_03_05_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/10/02/image_18082025_10_02_54_9616.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4be7518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4be7518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4be7518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:03:47.537957
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/03/image_18082025_10_03_44_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/10/03/image_18082025_10_03_35_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/10/03/image_18082025_10_03_24_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/10/03/image_18082025_10_03_15_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/10/02/image_18082025_10_03_05_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/10/02/image_18082025_10_02_54_9616.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a4f64a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a4f64a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a4f64a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:04:03.504378
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/03/image_18082025_10_03_44_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/10/03/image_18082025_10_03_35_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/10/03/image_18082025_10_03_24_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/10/03/image_18082025_10_03_15_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/10/02/image_18082025_10_03_05_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/10/02/image_18082025_10_02_54_9616.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f96a11518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96a11518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f96a11518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:04:17.649478
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/04/image_18082025_10_04_44_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/10/04/image_18082025_10_04_35_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/10/04/image_18082025_10_04_25_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/10/04/image_18082025_10_04_14_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/10/03/image_18082025_10_04_05_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/10/03/image_18082025_10_03_55_10628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9fe424a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fe424a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fe424a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:04:32.663315
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/04/image_18082025_10_04_44_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/10/04/image_18082025_10_04_35_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/10/04/image_18082025_10_04_25_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/10/04/image_18082025_10_04_14_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/10/03/image_18082025_10_04_05_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/10/03/image_18082025_10_03_55_10628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf425518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf425518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf425518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:04:47.657293
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/04/image_18082025_10_04_44_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/10/04/image_18082025_10_04_35_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/10/04/image_18082025_10_04_25_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/10/04/image_18082025_10_04_14_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/10/03/image_18082025_10_04_05_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/10/03/image_18082025_10_03_55_10628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f792af518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f792af518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f792af518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:05:02.487678
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/04/image_18082025_10_04_44_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/10/04/image_18082025_10_04_35_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/10/04/image_18082025_10_04_25_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/10/04/image_18082025_10_04_14_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/10/03/image_18082025_10_04_05_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/10/03/image_18082025_10_03_55_10628.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84136518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84136518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84136518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:05:16.746885
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/05/image_18082025_10_05_44_9693.jpg', 2), ('/home/nano/Desktop/images/18082025/10/05/image_18082025_10_05_34_9676.jpg', 2), ('/home/nano/Desktop/images/18082025/10/05/image_18082025_10_05_25_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/10/05/image_18082025_10_05_14_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/10/04/image_18082025_10_05_04_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/10/04/image_18082025_10_04_55_10636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79c674a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79c674a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79c674a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:05:31.773782
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/05/image_18082025_10_05_44_9693.jpg', 2), ('/home/nano/Desktop/images/18082025/10/05/image_18082025_10_05_34_9676.jpg', 2), ('/home/nano/Desktop/images/18082025/10/05/image_18082025_10_05_25_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/10/05/image_18082025_10_05_14_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/10/04/image_18082025_10_05_04_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/10/04/image_18082025_10_04_55_10636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c2b14a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c2b14a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c2b14a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:05:46.789550
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/05/image_18082025_10_05_44_9693.jpg', 2), ('/home/nano/Desktop/images/18082025/10/05/image_18082025_10_05_34_9676.jpg', 2), ('/home/nano/Desktop/images/18082025/10/05/image_18082025_10_05_25_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/10/05/image_18082025_10_05_14_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/10/04/image_18082025_10_05_04_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/10/04/image_18082025_10_04_55_10636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb52a7518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb52a7518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb52a7518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:06:02.305420
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/05/image_18082025_10_05_44_9693.jpg', 2), ('/home/nano/Desktop/images/18082025/10/05/image_18082025_10_05_34_9676.jpg', 2), ('/home/nano/Desktop/images/18082025/10/05/image_18082025_10_05_25_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/10/05/image_18082025_10_05_14_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/10/04/image_18082025_10_05_04_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/10/04/image_18082025_10_04_55_10636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86b6d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86b6d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86b6d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:06:16.909555
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/06/image_18082025_10_06_45_10695.jpg', 2), ('/home/nano/Desktop/images/18082025/10/06/image_18082025_10_06_34_9886.jpg', 2), ('/home/nano/Desktop/images/18082025/10/06/image_18082025_10_06_24_9858.jpg', 2), ('/home/nano/Desktop/images/18082025/10/06/image_18082025_10_06_14_9914.jpg', 2), ('/home/nano/Desktop/images/18082025/10/05/image_18082025_10_06_05_9726.jpg', 2), ('/home/nano/Desktop/images/18082025/10/05/image_18082025_10_05_55_10724.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2a81518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2a81518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2a81518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:06:31.855143
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/06/image_18082025_10_06_45_10695.jpg', 2), ('/home/nano/Desktop/images/18082025/10/06/image_18082025_10_06_34_9886.jpg', 2), ('/home/nano/Desktop/images/18082025/10/06/image_18082025_10_06_24_9858.jpg', 2), ('/home/nano/Desktop/images/18082025/10/06/image_18082025_10_06_14_9914.jpg', 2), ('/home/nano/Desktop/images/18082025/10/05/image_18082025_10_06_05_9726.jpg', 2), ('/home/nano/Desktop/images/18082025/10/05/image_18082025_10_05_55_10724.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88eaf518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88eaf518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88eaf518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:06:46.901469
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/06/image_18082025_10_06_45_10695.jpg', 2), ('/home/nano/Desktop/images/18082025/10/06/image_18082025_10_06_34_9886.jpg', 2), ('/home/nano/Desktop/images/18082025/10/06/image_18082025_10_06_24_9858.jpg', 2), ('/home/nano/Desktop/images/18082025/10/06/image_18082025_10_06_14_9914.jpg', 2), ('/home/nano/Desktop/images/18082025/10/05/image_18082025_10_06_05_9726.jpg', 2), ('/home/nano/Desktop/images/18082025/10/05/image_18082025_10_05_55_10724.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e4804a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e4804a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e4804a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:07:02.480760
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/06/image_18082025_10_06_45_10695.jpg', 2), ('/home/nano/Desktop/images/18082025/10/06/image_18082025_10_06_34_9886.jpg', 2), ('/home/nano/Desktop/images/18082025/10/06/image_18082025_10_06_24_9858.jpg', 2), ('/home/nano/Desktop/images/18082025/10/06/image_18082025_10_06_14_9914.jpg', 2), ('/home/nano/Desktop/images/18082025/10/05/image_18082025_10_06_05_9726.jpg', 2), ('/home/nano/Desktop/images/18082025/10/05/image_18082025_10_05_55_10724.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f474518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f474518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f474518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:07:17.002707
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/07/image_18082025_10_07_45_9817.jpg', 2), ('/home/nano/Desktop/images/18082025/10/07/image_18082025_10_07_35_10717.jpg', 2), ('/home/nano/Desktop/images/18082025/10/07/image_18082025_10_07_24_9775.jpg', 2), ('/home/nano/Desktop/images/18082025/10/07/image_18082025_10_07_14_9844.jpg', 2), ('/home/nano/Desktop/images/18082025/10/06/image_18082025_10_07_05_9802.jpg', 2), ('/home/nano/Desktop/images/18082025/10/06/image_18082025_10_06_55_9772.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8cf7a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8cf7a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8cf7a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:07:32.013750
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/07/image_18082025_10_07_45_9817.jpg', 2), ('/home/nano/Desktop/images/18082025/10/07/image_18082025_10_07_35_10717.jpg', 2), ('/home/nano/Desktop/images/18082025/10/07/image_18082025_10_07_24_9775.jpg', 2), ('/home/nano/Desktop/images/18082025/10/07/image_18082025_10_07_14_9844.jpg', 2), ('/home/nano/Desktop/images/18082025/10/06/image_18082025_10_07_05_9802.jpg', 2), ('/home/nano/Desktop/images/18082025/10/06/image_18082025_10_06_55_9772.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa61094a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa61094a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa61094a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:07:47.060172
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/07/image_18082025_10_07_45_9817.jpg', 2), ('/home/nano/Desktop/images/18082025/10/07/image_18082025_10_07_35_10717.jpg', 2), ('/home/nano/Desktop/images/18082025/10/07/image_18082025_10_07_24_9775.jpg', 2), ('/home/nano/Desktop/images/18082025/10/07/image_18082025_10_07_14_9844.jpg', 2), ('/home/nano/Desktop/images/18082025/10/06/image_18082025_10_07_05_9802.jpg', 2), ('/home/nano/Desktop/images/18082025/10/06/image_18082025_10_06_55_9772.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94498518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94498518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94498518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:08:02.714513
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/07/image_18082025_10_07_45_9817.jpg', 2), ('/home/nano/Desktop/images/18082025/10/07/image_18082025_10_07_35_10717.jpg', 2), ('/home/nano/Desktop/images/18082025/10/07/image_18082025_10_07_24_9775.jpg', 2), ('/home/nano/Desktop/images/18082025/10/07/image_18082025_10_07_14_9844.jpg', 2), ('/home/nano/Desktop/images/18082025/10/06/image_18082025_10_07_05_9802.jpg', 2), ('/home/nano/Desktop/images/18082025/10/06/image_18082025_10_06_55_9772.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8288d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8288d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8288d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:08:17.170124
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/08/image_18082025_10_08_45_10788.jpg', 2), ('/home/nano/Desktop/images/18082025/10/08/image_18082025_10_08_34_9778.jpg', 2), ('/home/nano/Desktop/images/18082025/10/08/image_18082025_10_08_24_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/10/08/image_18082025_10_08_15_9732.jpg', 2), ('/home/nano/Desktop/images/18082025/10/07/image_18082025_10_08_05_10674.jpg', 2), ('/home/nano/Desktop/images/18082025/10/07/image_18082025_10_07_54_9685.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83f2e4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83f2e4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83f2e4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:08:32.214676
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/08/image_18082025_10_08_45_10788.jpg', 2), ('/home/nano/Desktop/images/18082025/10/08/image_18082025_10_08_34_9778.jpg', 2), ('/home/nano/Desktop/images/18082025/10/08/image_18082025_10_08_24_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/10/08/image_18082025_10_08_15_9732.jpg', 2), ('/home/nano/Desktop/images/18082025/10/07/image_18082025_10_08_05_10674.jpg', 2), ('/home/nano/Desktop/images/18082025/10/07/image_18082025_10_07_54_9685.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e591518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e591518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e591518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:08:47.191887
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/08/image_18082025_10_08_45_10788.jpg', 2), ('/home/nano/Desktop/images/18082025/10/08/image_18082025_10_08_34_9778.jpg', 2), ('/home/nano/Desktop/images/18082025/10/08/image_18082025_10_08_24_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/10/08/image_18082025_10_08_15_9732.jpg', 2), ('/home/nano/Desktop/images/18082025/10/07/image_18082025_10_08_05_10674.jpg', 2), ('/home/nano/Desktop/images/18082025/10/07/image_18082025_10_07_54_9685.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7be58518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7be58518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7be58518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:09:03.249408
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/08/image_18082025_10_08_45_10788.jpg', 2), ('/home/nano/Desktop/images/18082025/10/08/image_18082025_10_08_34_9778.jpg', 2), ('/home/nano/Desktop/images/18082025/10/08/image_18082025_10_08_24_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/10/08/image_18082025_10_08_15_9732.jpg', 2), ('/home/nano/Desktop/images/18082025/10/07/image_18082025_10_08_05_10674.jpg', 2), ('/home/nano/Desktop/images/18082025/10/07/image_18082025_10_07_54_9685.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ba70518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ba70518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ba70518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:09:17.393405
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/09/image_18082025_10_09_44_9723.jpg', 2), ('/home/nano/Desktop/images/18082025/10/09/image_18082025_10_09_35_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/10/09/image_18082025_10_09_25_10745.jpg', 2), ('/home/nano/Desktop/images/18082025/10/09/image_18082025_10_09_14_9709.jpg', 2), ('/home/nano/Desktop/images/18082025/10/08/image_18082025_10_09_05_9788.jpg', 2), ('/home/nano/Desktop/images/18082025/10/08/image_18082025_10_08_55_9777.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86323518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86323518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86323518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:09:32.294516
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/09/image_18082025_10_09_44_9723.jpg', 2), ('/home/nano/Desktop/images/18082025/10/09/image_18082025_10_09_35_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/10/09/image_18082025_10_09_25_10745.jpg', 2), ('/home/nano/Desktop/images/18082025/10/09/image_18082025_10_09_14_9709.jpg', 2), ('/home/nano/Desktop/images/18082025/10/08/image_18082025_10_09_05_9788.jpg', 2), ('/home/nano/Desktop/images/18082025/10/08/image_18082025_10_08_55_9777.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8516a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8516a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8516a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:09:47.315464
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/09/image_18082025_10_09_44_9723.jpg', 2), ('/home/nano/Desktop/images/18082025/10/09/image_18082025_10_09_35_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/10/09/image_18082025_10_09_25_10745.jpg', 2), ('/home/nano/Desktop/images/18082025/10/09/image_18082025_10_09_14_9709.jpg', 2), ('/home/nano/Desktop/images/18082025/10/08/image_18082025_10_09_05_9788.jpg', 2), ('/home/nano/Desktop/images/18082025/10/08/image_18082025_10_08_55_9777.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ba0f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ba0f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ba0f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:10:02.979105
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/09/image_18082025_10_09_44_9723.jpg', 2), ('/home/nano/Desktop/images/18082025/10/09/image_18082025_10_09_35_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/10/09/image_18082025_10_09_25_10745.jpg', 2), ('/home/nano/Desktop/images/18082025/10/09/image_18082025_10_09_14_9709.jpg', 2), ('/home/nano/Desktop/images/18082025/10/08/image_18082025_10_09_05_9788.jpg', 2), ('/home/nano/Desktop/images/18082025/10/08/image_18082025_10_08_55_9777.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa9b854a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9b854a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9b854a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:10:17.433468
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/10/image_18082025_10_10_45_9752.jpg', 2), ('/home/nano/Desktop/images/18082025/10/10/image_18082025_10_10_35_10746.jpg', 2), ('/home/nano/Desktop/images/18082025/10/10/image_18082025_10_10_24_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/10/10/image_18082025_10_10_15_9780.jpg', 2), ('/home/nano/Desktop/images/18082025/10/09/image_18082025_10_10_05_10689.jpg', 2), ('/home/nano/Desktop/images/18082025/10/09/image_18082025_10_09_54_9725.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98923518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98923518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98923518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:10:32.422170
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/10/image_18082025_10_10_45_9752.jpg', 2), ('/home/nano/Desktop/images/18082025/10/10/image_18082025_10_10_35_10746.jpg', 2), ('/home/nano/Desktop/images/18082025/10/10/image_18082025_10_10_24_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/10/10/image_18082025_10_10_15_9780.jpg', 2), ('/home/nano/Desktop/images/18082025/10/09/image_18082025_10_10_05_10689.jpg', 2), ('/home/nano/Desktop/images/18082025/10/09/image_18082025_10_09_54_9725.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa9497518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9497518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9497518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:10:47.424280
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/10/image_18082025_10_10_45_9752.jpg', 2), ('/home/nano/Desktop/images/18082025/10/10/image_18082025_10_10_35_10746.jpg', 2), ('/home/nano/Desktop/images/18082025/10/10/image_18082025_10_10_24_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/10/10/image_18082025_10_10_15_9780.jpg', 2), ('/home/nano/Desktop/images/18082025/10/09/image_18082025_10_10_05_10689.jpg', 2), ('/home/nano/Desktop/images/18082025/10/09/image_18082025_10_09_54_9725.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3991518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3991518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3991518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:11:03.084953
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/10/image_18082025_10_10_45_9752.jpg', 2), ('/home/nano/Desktop/images/18082025/10/10/image_18082025_10_10_35_10746.jpg', 2), ('/home/nano/Desktop/images/18082025/10/10/image_18082025_10_10_24_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/10/10/image_18082025_10_10_15_9780.jpg', 2), ('/home/nano/Desktop/images/18082025/10/09/image_18082025_10_10_05_10689.jpg', 2), ('/home/nano/Desktop/images/18082025/10/09/image_18082025_10_09_54_9725.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac1bc518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac1bc518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac1bc518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:11:17.518424
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/11/image_18082025_10_11_44_9711.jpg', 2), ('/home/nano/Desktop/images/18082025/10/11/image_18082025_10_11_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/10/11/image_18082025_10_11_25_10772.jpg', 2), ('/home/nano/Desktop/images/18082025/10/11/image_18082025_10_11_14_9831.jpg', 2), ('/home/nano/Desktop/images/18082025/10/10/image_18082025_10_11_04_9777.jpg', 2), ('/home/nano/Desktop/images/18082025/10/10/image_18082025_10_10_54_9774.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83d54518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83d54518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83d54518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:11:32.528548
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/11/image_18082025_10_11_44_9711.jpg', 2), ('/home/nano/Desktop/images/18082025/10/11/image_18082025_10_11_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/10/11/image_18082025_10_11_25_10772.jpg', 2), ('/home/nano/Desktop/images/18082025/10/11/image_18082025_10_11_14_9831.jpg', 2), ('/home/nano/Desktop/images/18082025/10/10/image_18082025_10_11_04_9777.jpg', 2), ('/home/nano/Desktop/images/18082025/10/10/image_18082025_10_10_54_9774.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0117518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0117518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0117518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:11:47.573733
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/11/image_18082025_10_11_44_9711.jpg', 2), ('/home/nano/Desktop/images/18082025/10/11/image_18082025_10_11_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/10/11/image_18082025_10_11_25_10772.jpg', 2), ('/home/nano/Desktop/images/18082025/10/11/image_18082025_10_11_14_9831.jpg', 2), ('/home/nano/Desktop/images/18082025/10/10/image_18082025_10_11_04_9777.jpg', 2), ('/home/nano/Desktop/images/18082025/10/10/image_18082025_10_10_54_9774.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2d15518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2d15518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2d15518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:12:03.157483
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/11/image_18082025_10_11_44_9711.jpg', 2), ('/home/nano/Desktop/images/18082025/10/11/image_18082025_10_11_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/10/11/image_18082025_10_11_25_10772.jpg', 2), ('/home/nano/Desktop/images/18082025/10/11/image_18082025_10_11_14_9831.jpg', 2), ('/home/nano/Desktop/images/18082025/10/10/image_18082025_10_11_04_9777.jpg', 2), ('/home/nano/Desktop/images/18082025/10/10/image_18082025_10_10_54_9774.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8345c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8345c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8345c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:12:17.663616
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/12/image_18082025_10_12_44_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/10/12/image_18082025_10_12_35_10679.jpg', 2), ('/home/nano/Desktop/images/18082025/10/12/image_18082025_10_12_24_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/10/12/image_18082025_10_12_14_9789.jpg', 2), ('/home/nano/Desktop/images/18082025/10/11/image_18082025_10_12_05_9768.jpg', 2), ('/home/nano/Desktop/images/18082025/10/11/image_18082025_10_11_55_10690.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa575f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa575f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa575f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:12:32.695704
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/12/image_18082025_10_12_44_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/10/12/image_18082025_10_12_35_10679.jpg', 2), ('/home/nano/Desktop/images/18082025/10/12/image_18082025_10_12_24_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/10/12/image_18082025_10_12_14_9789.jpg', 2), ('/home/nano/Desktop/images/18082025/10/11/image_18082025_10_12_05_9768.jpg', 2), ('/home/nano/Desktop/images/18082025/10/11/image_18082025_10_11_55_10690.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8fd22518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fd22518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8fd22518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:12:47.692643
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/12/image_18082025_10_12_44_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/10/12/image_18082025_10_12_35_10679.jpg', 2), ('/home/nano/Desktop/images/18082025/10/12/image_18082025_10_12_24_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/10/12/image_18082025_10_12_14_9789.jpg', 2), ('/home/nano/Desktop/images/18082025/10/11/image_18082025_10_12_05_9768.jpg', 2), ('/home/nano/Desktop/images/18082025/10/11/image_18082025_10_11_55_10690.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fabf2b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fabf2b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fabf2b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:13:02.504532
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/12/image_18082025_10_12_44_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/10/12/image_18082025_10_12_35_10679.jpg', 2), ('/home/nano/Desktop/images/18082025/10/12/image_18082025_10_12_24_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/10/12/image_18082025_10_12_14_9789.jpg', 2), ('/home/nano/Desktop/images/18082025/10/11/image_18082025_10_12_05_9768.jpg', 2), ('/home/nano/Desktop/images/18082025/10/11/image_18082025_10_11_55_10690.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86b6a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86b6a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86b6a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:13:16.772193
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/13/image_18082025_10_13_44_9598.jpg', 2), ('/home/nano/Desktop/images/18082025/10/13/image_18082025_10_13_34_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/10/13/image_18082025_10_13_25_10605.jpg', 2), ('/home/nano/Desktop/images/18082025/10/13/image_18082025_10_13_14_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/10/12/image_18082025_10_13_05_9603.jpg', 2), ('/home/nano/Desktop/images/18082025/10/12/image_18082025_10_12_55_10624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5a17518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5a17518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5a17518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:13:31.781218
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/13/image_18082025_10_13_44_9598.jpg', 2), ('/home/nano/Desktop/images/18082025/10/13/image_18082025_10_13_34_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/10/13/image_18082025_10_13_25_10605.jpg', 2), ('/home/nano/Desktop/images/18082025/10/13/image_18082025_10_13_14_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/10/12/image_18082025_10_13_05_9603.jpg', 2), ('/home/nano/Desktop/images/18082025/10/12/image_18082025_10_12_55_10624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0dcc518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0dcc518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0dcc518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:13:46.771365
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/13/image_18082025_10_13_44_9598.jpg', 2), ('/home/nano/Desktop/images/18082025/10/13/image_18082025_10_13_34_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/10/13/image_18082025_10_13_25_10605.jpg', 2), ('/home/nano/Desktop/images/18082025/10/13/image_18082025_10_13_14_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/10/12/image_18082025_10_13_05_9603.jpg', 2), ('/home/nano/Desktop/images/18082025/10/12/image_18082025_10_12_55_10624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f864fd4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f864fd4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f864fd4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:14:02.779944
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/13/image_18082025_10_13_44_9598.jpg', 2), ('/home/nano/Desktop/images/18082025/10/13/image_18082025_10_13_34_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/10/13/image_18082025_10_13_25_10605.jpg', 2), ('/home/nano/Desktop/images/18082025/10/13/image_18082025_10_13_14_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/10/12/image_18082025_10_13_05_9603.jpg', 2), ('/home/nano/Desktop/images/18082025/10/12/image_18082025_10_12_55_10624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab96c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab96c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab96c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:14:16.880171
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/14/image_18082025_10_14_45_10620.jpg', 2), ('/home/nano/Desktop/images/18082025/10/14/image_18082025_10_14_34_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/10/14/image_18082025_10_14_24_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/10/14/image_18082025_10_14_15_10634.jpg', 2), ('/home/nano/Desktop/images/18082025/10/13/image_18082025_10_14_04_9592.jpg', 2), ('/home/nano/Desktop/images/18082025/10/13/image_18082025_10_13_55_10598.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0557518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0557518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0557518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:14:31.888084
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/14/image_18082025_10_14_45_10620.jpg', 2), ('/home/nano/Desktop/images/18082025/10/14/image_18082025_10_14_34_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/10/14/image_18082025_10_14_24_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/10/14/image_18082025_10_14_15_10634.jpg', 2), ('/home/nano/Desktop/images/18082025/10/13/image_18082025_10_14_04_9592.jpg', 2), ('/home/nano/Desktop/images/18082025/10/13/image_18082025_10_13_55_10598.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f957bd518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f957bd518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f957bd518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:14:46.910779
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/14/image_18082025_10_14_45_10620.jpg', 2), ('/home/nano/Desktop/images/18082025/10/14/image_18082025_10_14_34_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/10/14/image_18082025_10_14_24_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/10/14/image_18082025_10_14_15_10634.jpg', 2), ('/home/nano/Desktop/images/18082025/10/13/image_18082025_10_14_04_9592.jpg', 2), ('/home/nano/Desktop/images/18082025/10/13/image_18082025_10_13_55_10598.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4cac518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4cac518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4cac518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:15:02.756967
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/14/image_18082025_10_14_45_10620.jpg', 2), ('/home/nano/Desktop/images/18082025/10/14/image_18082025_10_14_34_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/10/14/image_18082025_10_14_24_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/10/14/image_18082025_10_14_15_10634.jpg', 2), ('/home/nano/Desktop/images/18082025/10/13/image_18082025_10_14_04_9592.jpg', 2), ('/home/nano/Desktop/images/18082025/10/13/image_18082025_10_13_55_10598.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad87e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad87e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad87e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:15:17.050543
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/15/image_18082025_10_15_44_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/10/15/image_18082025_10_15_35_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/10/15/image_18082025_10_15_24_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/10/15/image_18082025_10_15_15_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/10/14/image_18082025_10_15_05_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/10/14/image_18082025_10_14_54_9610.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f803fe518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f803fe518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f803fe518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:15:32.007903
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/15/image_18082025_10_15_44_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/10/15/image_18082025_10_15_35_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/10/15/image_18082025_10_15_24_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/10/15/image_18082025_10_15_15_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/10/14/image_18082025_10_15_05_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/10/14/image_18082025_10_14_54_9610.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a3d14a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a3d14a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a3d14a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:15:47.070934
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/15/image_18082025_10_15_44_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/10/15/image_18082025_10_15_35_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/10/15/image_18082025_10_15_24_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/10/15/image_18082025_10_15_15_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/10/14/image_18082025_10_15_05_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/10/14/image_18082025_10_14_54_9610.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f895cc4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f895cc4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f895cc4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:16:02.719664
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/15/image_18082025_10_15_44_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/10/15/image_18082025_10_15_35_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/10/15/image_18082025_10_15_24_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/10/15/image_18082025_10_15_15_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/10/14/image_18082025_10_15_05_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/10/14/image_18082025_10_14_54_9610.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8327a4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8327a4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8327a4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:16:17.214223
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/16/image_18082025_10_16_44_9605.jpg', 2), ('/home/nano/Desktop/images/18082025/10/16/image_18082025_10_16_35_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/10/16/image_18082025_10_16_25_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/10/16/image_18082025_10_16_14_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/10/15/image_18082025_10_16_05_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/10/15/image_18082025_10_15_54_9603.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7de34518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7de34518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7de34518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:16:32.251140
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/16/image_18082025_10_16_44_9605.jpg', 2), ('/home/nano/Desktop/images/18082025/10/16/image_18082025_10_16_35_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/10/16/image_18082025_10_16_25_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/10/16/image_18082025_10_16_14_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/10/15/image_18082025_10_16_05_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/10/15/image_18082025_10_15_54_9603.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d551518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d551518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d551518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:16:47.191632
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/16/image_18082025_10_16_44_9605.jpg', 2), ('/home/nano/Desktop/images/18082025/10/16/image_18082025_10_16_35_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/10/16/image_18082025_10_16_25_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/10/16/image_18082025_10_16_14_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/10/15/image_18082025_10_16_05_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/10/15/image_18082025_10_15_54_9603.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa3a65518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3a65518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3a65518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:17:02.988515
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/16/image_18082025_10_16_44_9605.jpg', 2), ('/home/nano/Desktop/images/18082025/10/16/image_18082025_10_16_35_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/10/16/image_18082025_10_16_25_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/10/16/image_18082025_10_16_14_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/10/15/image_18082025_10_16_05_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/10/15/image_18082025_10_15_54_9603.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf2d04a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf2d04a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf2d04a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:17:17.305044
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/17/image_18082025_10_17_44_9716.jpg', 2), ('/home/nano/Desktop/images/18082025/10/17/image_18082025_10_17_34_9691.jpg', 2), ('/home/nano/Desktop/images/18082025/10/17/image_18082025_10_17_25_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/10/17/image_18082025_10_17_15_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/10/16/image_18082025_10_17_04_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/10/16/image_18082025_10_16_55_10610.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f80185518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80185518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f80185518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:17:32.288729
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/17/image_18082025_10_17_44_9716.jpg', 2), ('/home/nano/Desktop/images/18082025/10/17/image_18082025_10_17_34_9691.jpg', 2), ('/home/nano/Desktop/images/18082025/10/17/image_18082025_10_17_25_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/10/17/image_18082025_10_17_15_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/10/16/image_18082025_10_17_04_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/10/16/image_18082025_10_16_55_10610.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5a04518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5a04518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5a04518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:17:47.291029
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/17/image_18082025_10_17_44_9716.jpg', 2), ('/home/nano/Desktop/images/18082025/10/17/image_18082025_10_17_34_9691.jpg', 2), ('/home/nano/Desktop/images/18082025/10/17/image_18082025_10_17_25_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/10/17/image_18082025_10_17_15_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/10/16/image_18082025_10_17_04_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/10/16/image_18082025_10_16_55_10610.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90054518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90054518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90054518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:18:02.988036
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/17/image_18082025_10_17_44_9716.jpg', 2), ('/home/nano/Desktop/images/18082025/10/17/image_18082025_10_17_34_9691.jpg', 2), ('/home/nano/Desktop/images/18082025/10/17/image_18082025_10_17_25_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/10/17/image_18082025_10_17_15_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/10/16/image_18082025_10_17_04_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/10/16/image_18082025_10_16_55_10610.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f933454a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f933454a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f933454a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:18:17.400281
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/18/image_18082025_10_18_44_9690.jpg', 2), ('/home/nano/Desktop/images/18082025/10/18/image_18082025_10_18_35_9708.jpg', 2), ('/home/nano/Desktop/images/18082025/10/18/image_18082025_10_18_25_10733.jpg', 2), ('/home/nano/Desktop/images/18082025/10/18/image_18082025_10_18_14_9739.jpg', 2), ('/home/nano/Desktop/images/18082025/10/17/image_18082025_10_18_05_9723.jpg', 2), ('/home/nano/Desktop/images/18082025/10/17/image_18082025_10_17_55_10734.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb6404518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb6404518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb6404518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:18:32.414890
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/18/image_18082025_10_18_44_9690.jpg', 2), ('/home/nano/Desktop/images/18082025/10/18/image_18082025_10_18_35_9708.jpg', 2), ('/home/nano/Desktop/images/18082025/10/18/image_18082025_10_18_25_10733.jpg', 2), ('/home/nano/Desktop/images/18082025/10/18/image_18082025_10_18_14_9739.jpg', 2), ('/home/nano/Desktop/images/18082025/10/17/image_18082025_10_18_05_9723.jpg', 2), ('/home/nano/Desktop/images/18082025/10/17/image_18082025_10_17_55_10734.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb444c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb444c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb444c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:18:47.375962
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/18/image_18082025_10_18_44_9690.jpg', 2), ('/home/nano/Desktop/images/18082025/10/18/image_18082025_10_18_35_9708.jpg', 2), ('/home/nano/Desktop/images/18082025/10/18/image_18082025_10_18_25_10733.jpg', 2), ('/home/nano/Desktop/images/18082025/10/18/image_18082025_10_18_14_9739.jpg', 2), ('/home/nano/Desktop/images/18082025/10/17/image_18082025_10_18_05_9723.jpg', 2), ('/home/nano/Desktop/images/18082025/10/17/image_18082025_10_17_55_10734.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f92ea8518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92ea8518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92ea8518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:19:03.620276
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/18/image_18082025_10_18_44_9690.jpg', 2), ('/home/nano/Desktop/images/18082025/10/18/image_18082025_10_18_35_9708.jpg', 2), ('/home/nano/Desktop/images/18082025/10/18/image_18082025_10_18_25_10733.jpg', 2), ('/home/nano/Desktop/images/18082025/10/18/image_18082025_10_18_14_9739.jpg', 2), ('/home/nano/Desktop/images/18082025/10/17/image_18082025_10_18_05_9723.jpg', 2), ('/home/nano/Desktop/images/18082025/10/17/image_18082025_10_17_55_10734.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3f4d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3f4d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3f4d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:19:17.479735
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/19/image_18082025_10_19_44_9807.jpg', 2), ('/home/nano/Desktop/images/18082025/10/19/image_18082025_10_19_34_9802.jpg', 2), ('/home/nano/Desktop/images/18082025/10/19/image_18082025_10_19_24_9805.jpg', 2), ('/home/nano/Desktop/images/18082025/10/19/image_18082025_10_19_15_9826.jpg', 2), ('/home/nano/Desktop/images/18082025/10/18/image_18082025_10_19_05_10713.jpg', 2), ('/home/nano/Desktop/images/18082025/10/18/image_18082025_10_18_54_9679.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81ceb4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81ceb4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81ceb4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:19:32.495526
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/19/image_18082025_10_19_44_9807.jpg', 2), ('/home/nano/Desktop/images/18082025/10/19/image_18082025_10_19_34_9802.jpg', 2), ('/home/nano/Desktop/images/18082025/10/19/image_18082025_10_19_24_9805.jpg', 2), ('/home/nano/Desktop/images/18082025/10/19/image_18082025_10_19_15_9826.jpg', 2), ('/home/nano/Desktop/images/18082025/10/18/image_18082025_10_19_05_10713.jpg', 2), ('/home/nano/Desktop/images/18082025/10/18/image_18082025_10_18_54_9679.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ff66518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ff66518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ff66518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:19:47.554335
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/19/image_18082025_10_19_44_9807.jpg', 2), ('/home/nano/Desktop/images/18082025/10/19/image_18082025_10_19_34_9802.jpg', 2), ('/home/nano/Desktop/images/18082025/10/19/image_18082025_10_19_24_9805.jpg', 2), ('/home/nano/Desktop/images/18082025/10/19/image_18082025_10_19_15_9826.jpg', 2), ('/home/nano/Desktop/images/18082025/10/18/image_18082025_10_19_05_10713.jpg', 2), ('/home/nano/Desktop/images/18082025/10/18/image_18082025_10_18_54_9679.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab5ce518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab5ce518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab5ce518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:20:03.246328
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/19/image_18082025_10_19_44_9807.jpg', 2), ('/home/nano/Desktop/images/18082025/10/19/image_18082025_10_19_34_9802.jpg', 2), ('/home/nano/Desktop/images/18082025/10/19/image_18082025_10_19_24_9805.jpg', 2), ('/home/nano/Desktop/images/18082025/10/19/image_18082025_10_19_15_9826.jpg', 2), ('/home/nano/Desktop/images/18082025/10/18/image_18082025_10_19_05_10713.jpg', 2), ('/home/nano/Desktop/images/18082025/10/18/image_18082025_10_18_54_9679.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f814cd518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f814cd518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f814cd518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:20:17.625750
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/20/image_18082025_10_20_45_10811.jpg', 2), ('/home/nano/Desktop/images/18082025/10/20/image_18082025_10_20_34_9802.jpg', 2), ('/home/nano/Desktop/images/18082025/10/20/image_18082025_10_20_24_9799.jpg', 2), ('/home/nano/Desktop/images/18082025/10/20/image_18082025_10_20_15_9842.jpg', 2), ('/home/nano/Desktop/images/18082025/10/19/image_18082025_10_20_05_9802.jpg', 2), ('/home/nano/Desktop/images/18082025/10/19/image_18082025_10_19_55_10810.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f896de4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f896de4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f896de4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:20:32.630228
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/20/image_18082025_10_20_45_10811.jpg', 2), ('/home/nano/Desktop/images/18082025/10/20/image_18082025_10_20_34_9802.jpg', 2), ('/home/nano/Desktop/images/18082025/10/20/image_18082025_10_20_24_9799.jpg', 2), ('/home/nano/Desktop/images/18082025/10/20/image_18082025_10_20_15_9842.jpg', 2), ('/home/nano/Desktop/images/18082025/10/19/image_18082025_10_20_05_9802.jpg', 2), ('/home/nano/Desktop/images/18082025/10/19/image_18082025_10_19_55_10810.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6b00518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6b00518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6b00518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:20:47.630685
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/20/image_18082025_10_20_45_10811.jpg', 2), ('/home/nano/Desktop/images/18082025/10/20/image_18082025_10_20_34_9802.jpg', 2), ('/home/nano/Desktop/images/18082025/10/20/image_18082025_10_20_24_9799.jpg', 2), ('/home/nano/Desktop/images/18082025/10/20/image_18082025_10_20_15_9842.jpg', 2), ('/home/nano/Desktop/images/18082025/10/19/image_18082025_10_20_05_9802.jpg', 2), ('/home/nano/Desktop/images/18082025/10/19/image_18082025_10_19_55_10810.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f992ee550>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f992ee550>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f992ee550>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:21:03.419574
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/20/image_18082025_10_20_45_10811.jpg', 2), ('/home/nano/Desktop/images/18082025/10/20/image_18082025_10_20_34_9802.jpg', 2), ('/home/nano/Desktop/images/18082025/10/20/image_18082025_10_20_24_9799.jpg', 2), ('/home/nano/Desktop/images/18082025/10/20/image_18082025_10_20_15_9842.jpg', 2), ('/home/nano/Desktop/images/18082025/10/19/image_18082025_10_20_05_9802.jpg', 2), ('/home/nano/Desktop/images/18082025/10/19/image_18082025_10_19_55_10810.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1b2c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1b2c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1b2c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:21:17.772916
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/21/image_18082025_10_21_45_9806.jpg', 2), ('/home/nano/Desktop/images/18082025/10/21/image_18082025_10_21_35_10831.jpg', 2), ('/home/nano/Desktop/images/18082025/10/21/image_18082025_10_21_24_9802.jpg', 2), ('/home/nano/Desktop/images/18082025/10/21/image_18082025_10_21_14_9829.jpg', 2), ('/home/nano/Desktop/images/18082025/10/20/image_18082025_10_21_05_9825.jpg', 2), ('/home/nano/Desktop/images/18082025/10/20/image_18082025_10_20_55_9799.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79437518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79437518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79437518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:21:32.755432
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/21/image_18082025_10_21_45_9806.jpg', 2), ('/home/nano/Desktop/images/18082025/10/21/image_18082025_10_21_35_10831.jpg', 2), ('/home/nano/Desktop/images/18082025/10/21/image_18082025_10_21_24_9802.jpg', 2), ('/home/nano/Desktop/images/18082025/10/21/image_18082025_10_21_14_9829.jpg', 2), ('/home/nano/Desktop/images/18082025/10/20/image_18082025_10_21_05_9825.jpg', 2), ('/home/nano/Desktop/images/18082025/10/20/image_18082025_10_20_55_9799.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa810a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa810a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa810a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:21:47.766440
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/21/image_18082025_10_21_45_9806.jpg', 2), ('/home/nano/Desktop/images/18082025/10/21/image_18082025_10_21_35_10831.jpg', 2), ('/home/nano/Desktop/images/18082025/10/21/image_18082025_10_21_24_9802.jpg', 2), ('/home/nano/Desktop/images/18082025/10/21/image_18082025_10_21_14_9829.jpg', 2), ('/home/nano/Desktop/images/18082025/10/20/image_18082025_10_21_05_9825.jpg', 2), ('/home/nano/Desktop/images/18082025/10/20/image_18082025_10_20_55_9799.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4ed9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4ed9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4ed9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:22:02.442422
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/21/image_18082025_10_21_45_9806.jpg', 2), ('/home/nano/Desktop/images/18082025/10/21/image_18082025_10_21_35_10831.jpg', 2), ('/home/nano/Desktop/images/18082025/10/21/image_18082025_10_21_24_9802.jpg', 2), ('/home/nano/Desktop/images/18082025/10/21/image_18082025_10_21_14_9829.jpg', 2), ('/home/nano/Desktop/images/18082025/10/20/image_18082025_10_21_05_9825.jpg', 2), ('/home/nano/Desktop/images/18082025/10/20/image_18082025_10_20_55_9799.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9db23518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9db23518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9db23518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:22:16.857690
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/22/image_18082025_10_22_35_10812.jpg', 2), ('/home/nano/Desktop/images/18082025/10/22/image_18082025_10_22_24_9821.jpg', 2), ('/home/nano/Desktop/images/18082025/10/22/image_18082025_10_22_14_9828.jpg', 2), ('/home/nano/Desktop/images/18082025/10/21/image_18082025_10_22_04_9810.jpg', 2), ('/home/nano/Desktop/images/18082025/10/21/image_18082025_10_21_55_9827.jpg', 2), ('/home/nano/Desktop/images/18082025/10/21/image_18082025_10_21_45_9806.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ab14518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ab14518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ab14518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:22:31.856673
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/22/image_18082025_10_22_35_10812.jpg', 2), ('/home/nano/Desktop/images/18082025/10/22/image_18082025_10_22_24_9821.jpg', 2), ('/home/nano/Desktop/images/18082025/10/22/image_18082025_10_22_14_9828.jpg', 2), ('/home/nano/Desktop/images/18082025/10/21/image_18082025_10_22_04_9810.jpg', 2), ('/home/nano/Desktop/images/18082025/10/21/image_18082025_10_21_55_9827.jpg', 2), ('/home/nano/Desktop/images/18082025/10/21/image_18082025_10_21_45_9806.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f801ab518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f801ab518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f801ab518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:22:46.875220
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/22/image_18082025_10_22_35_10812.jpg', 2), ('/home/nano/Desktop/images/18082025/10/22/image_18082025_10_22_24_9821.jpg', 2), ('/home/nano/Desktop/images/18082025/10/22/image_18082025_10_22_14_9828.jpg', 2), ('/home/nano/Desktop/images/18082025/10/21/image_18082025_10_22_04_9810.jpg', 2), ('/home/nano/Desktop/images/18082025/10/21/image_18082025_10_21_55_9827.jpg', 2), ('/home/nano/Desktop/images/18082025/10/21/image_18082025_10_21_45_9806.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d6a6518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d6a6518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d6a6518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:23:02.601690
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/22/image_18082025_10_22_35_10812.jpg', 2), ('/home/nano/Desktop/images/18082025/10/22/image_18082025_10_22_24_9821.jpg', 2), ('/home/nano/Desktop/images/18082025/10/22/image_18082025_10_22_14_9828.jpg', 2), ('/home/nano/Desktop/images/18082025/10/21/image_18082025_10_22_04_9810.jpg', 2), ('/home/nano/Desktop/images/18082025/10/21/image_18082025_10_21_55_9827.jpg', 2), ('/home/nano/Desktop/images/18082025/10/21/image_18082025_10_21_45_9806.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f821a44a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f821a44a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f821a44a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:23:16.959038
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/23/image_18082025_10_23_45_9800.jpg', 2), ('/home/nano/Desktop/images/18082025/10/23/image_18082025_10_23_35_9802.jpg', 2), ('/home/nano/Desktop/images/18082025/10/23/image_18082025_10_23_25_10812.jpg', 2), ('/home/nano/Desktop/images/18082025/10/23/image_18082025_10_23_14_9832.jpg', 2), ('/home/nano/Desktop/images/18082025/10/22/image_18082025_10_23_04_9802.jpg', 2), ('/home/nano/Desktop/images/18082025/10/22/image_18082025_10_22_45_9801.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb1fc2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1fc2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1fc2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:23:31.953062
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/23/image_18082025_10_23_45_9800.jpg', 2), ('/home/nano/Desktop/images/18082025/10/23/image_18082025_10_23_35_9802.jpg', 2), ('/home/nano/Desktop/images/18082025/10/23/image_18082025_10_23_25_10812.jpg', 2), ('/home/nano/Desktop/images/18082025/10/23/image_18082025_10_23_14_9832.jpg', 2), ('/home/nano/Desktop/images/18082025/10/22/image_18082025_10_23_04_9802.jpg', 2), ('/home/nano/Desktop/images/18082025/10/22/image_18082025_10_22_45_9801.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0d8f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0d8f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0d8f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:23:46.952982
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/23/image_18082025_10_23_45_9800.jpg', 2), ('/home/nano/Desktop/images/18082025/10/23/image_18082025_10_23_35_9802.jpg', 2), ('/home/nano/Desktop/images/18082025/10/23/image_18082025_10_23_25_10812.jpg', 2), ('/home/nano/Desktop/images/18082025/10/23/image_18082025_10_23_14_9832.jpg', 2), ('/home/nano/Desktop/images/18082025/10/22/image_18082025_10_23_04_9802.jpg', 2), ('/home/nano/Desktop/images/18082025/10/22/image_18082025_10_22_45_9801.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f71f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f71f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f71f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:24:02.982734
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/23/image_18082025_10_23_45_9800.jpg', 2), ('/home/nano/Desktop/images/18082025/10/23/image_18082025_10_23_35_9802.jpg', 2), ('/home/nano/Desktop/images/18082025/10/23/image_18082025_10_23_25_10812.jpg', 2), ('/home/nano/Desktop/images/18082025/10/23/image_18082025_10_23_14_9832.jpg', 2), ('/home/nano/Desktop/images/18082025/10/22/image_18082025_10_23_04_9802.jpg', 2), ('/home/nano/Desktop/images/18082025/10/22/image_18082025_10_22_45_9801.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95b55518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95b55518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95b55518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:24:17.070768
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/24/image_18082025_10_24_45_9803.jpg', 2), ('/home/nano/Desktop/images/18082025/10/24/image_18082025_10_24_35_9797.jpg', 2), ('/home/nano/Desktop/images/18082025/10/24/image_18082025_10_24_25_10832.jpg', 2), ('/home/nano/Desktop/images/18082025/10/24/image_18082025_10_24_14_9832.jpg', 2), ('/home/nano/Desktop/images/18082025/10/23/image_18082025_10_24_04_9837.jpg', 2), ('/home/nano/Desktop/images/18082025/10/23/image_18082025_10_23_54_9802.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97483518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97483518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97483518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:24:32.051397
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/24/image_18082025_10_24_45_9803.jpg', 2), ('/home/nano/Desktop/images/18082025/10/24/image_18082025_10_24_35_9797.jpg', 2), ('/home/nano/Desktop/images/18082025/10/24/image_18082025_10_24_25_10832.jpg', 2), ('/home/nano/Desktop/images/18082025/10/24/image_18082025_10_24_14_9832.jpg', 2), ('/home/nano/Desktop/images/18082025/10/23/image_18082025_10_24_04_9837.jpg', 2), ('/home/nano/Desktop/images/18082025/10/23/image_18082025_10_23_54_9802.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b925518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b925518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b925518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:24:47.065348
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/24/image_18082025_10_24_45_9803.jpg', 2), ('/home/nano/Desktop/images/18082025/10/24/image_18082025_10_24_35_9797.jpg', 2), ('/home/nano/Desktop/images/18082025/10/24/image_18082025_10_24_25_10832.jpg', 2), ('/home/nano/Desktop/images/18082025/10/24/image_18082025_10_24_14_9832.jpg', 2), ('/home/nano/Desktop/images/18082025/10/23/image_18082025_10_24_04_9837.jpg', 2), ('/home/nano/Desktop/images/18082025/10/23/image_18082025_10_23_54_9802.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9701f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9701f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9701f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:25:02.871688
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/24/image_18082025_10_24_45_9803.jpg', 2), ('/home/nano/Desktop/images/18082025/10/24/image_18082025_10_24_35_9797.jpg', 2), ('/home/nano/Desktop/images/18082025/10/24/image_18082025_10_24_25_10832.jpg', 2), ('/home/nano/Desktop/images/18082025/10/24/image_18082025_10_24_14_9832.jpg', 2), ('/home/nano/Desktop/images/18082025/10/23/image_18082025_10_24_04_9837.jpg', 2), ('/home/nano/Desktop/images/18082025/10/23/image_18082025_10_23_54_9802.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb05ac518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb05ac518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb05ac518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:25:17.213032
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/25/image_18082025_10_25_44_9797.jpg', 2), ('/home/nano/Desktop/images/18082025/10/25/image_18082025_10_25_35_9793.jpg', 2), ('/home/nano/Desktop/images/18082025/10/25/image_18082025_10_25_25_9792.jpg', 2), ('/home/nano/Desktop/images/18082025/10/25/image_18082025_10_25_15_10838.jpg', 2), ('/home/nano/Desktop/images/18082025/10/24/image_18082025_10_25_04_9821.jpg', 2), ('/home/nano/Desktop/images/18082025/10/24/image_18082025_10_24_54_9795.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91a87550>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91a87550>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91a87550>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:25:32.190243
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/25/image_18082025_10_25_44_9797.jpg', 2), ('/home/nano/Desktop/images/18082025/10/25/image_18082025_10_25_35_9793.jpg', 2), ('/home/nano/Desktop/images/18082025/10/25/image_18082025_10_25_25_9792.jpg', 2), ('/home/nano/Desktop/images/18082025/10/25/image_18082025_10_25_15_10838.jpg', 2), ('/home/nano/Desktop/images/18082025/10/24/image_18082025_10_25_04_9821.jpg', 2), ('/home/nano/Desktop/images/18082025/10/24/image_18082025_10_24_54_9795.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7fe45518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fe45518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fe45518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:25:47.193311
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/25/image_18082025_10_25_44_9797.jpg', 2), ('/home/nano/Desktop/images/18082025/10/25/image_18082025_10_25_35_9793.jpg', 2), ('/home/nano/Desktop/images/18082025/10/25/image_18082025_10_25_25_9792.jpg', 2), ('/home/nano/Desktop/images/18082025/10/25/image_18082025_10_25_15_10838.jpg', 2), ('/home/nano/Desktop/images/18082025/10/24/image_18082025_10_25_04_9821.jpg', 2), ('/home/nano/Desktop/images/18082025/10/24/image_18082025_10_24_54_9795.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3365518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3365518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3365518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:26:02.801659
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/25/image_18082025_10_25_44_9797.jpg', 2), ('/home/nano/Desktop/images/18082025/10/25/image_18082025_10_25_35_9793.jpg', 2), ('/home/nano/Desktop/images/18082025/10/25/image_18082025_10_25_25_9792.jpg', 2), ('/home/nano/Desktop/images/18082025/10/25/image_18082025_10_25_15_10838.jpg', 2), ('/home/nano/Desktop/images/18082025/10/24/image_18082025_10_25_04_9821.jpg', 2), ('/home/nano/Desktop/images/18082025/10/24/image_18082025_10_24_54_9795.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7db4b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7db4b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7db4b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:26:17.306931
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/26/image_18082025_10_26_44_9817.jpg', 2), ('/home/nano/Desktop/images/18082025/10/26/image_18082025_10_26_34_9793.jpg', 2), ('/home/nano/Desktop/images/18082025/10/26/image_18082025_10_26_25_9799.jpg', 2), ('/home/nano/Desktop/images/18082025/10/26/image_18082025_10_26_15_9830.jpg', 2), ('/home/nano/Desktop/images/18082025/10/25/image_18082025_10_26_05_10829.jpg', 2), ('/home/nano/Desktop/images/18082025/10/25/image_18082025_10_25_54_9836.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9de73518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9de73518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9de73518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:26:32.317727
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/26/image_18082025_10_26_44_9817.jpg', 2), ('/home/nano/Desktop/images/18082025/10/26/image_18082025_10_26_34_9793.jpg', 2), ('/home/nano/Desktop/images/18082025/10/26/image_18082025_10_26_25_9799.jpg', 2), ('/home/nano/Desktop/images/18082025/10/26/image_18082025_10_26_15_9830.jpg', 2), ('/home/nano/Desktop/images/18082025/10/25/image_18082025_10_26_05_10829.jpg', 2), ('/home/nano/Desktop/images/18082025/10/25/image_18082025_10_25_54_9836.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa396518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa396518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa396518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:26:47.282016
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/26/image_18082025_10_26_44_9817.jpg', 2), ('/home/nano/Desktop/images/18082025/10/26/image_18082025_10_26_34_9793.jpg', 2), ('/home/nano/Desktop/images/18082025/10/26/image_18082025_10_26_25_9799.jpg', 2), ('/home/nano/Desktop/images/18082025/10/26/image_18082025_10_26_15_9830.jpg', 2), ('/home/nano/Desktop/images/18082025/10/25/image_18082025_10_26_05_10829.jpg', 2), ('/home/nano/Desktop/images/18082025/10/25/image_18082025_10_25_54_9836.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98f6e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98f6e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98f6e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:27:03.081133
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/26/image_18082025_10_26_44_9817.jpg', 2), ('/home/nano/Desktop/images/18082025/10/26/image_18082025_10_26_34_9793.jpg', 2), ('/home/nano/Desktop/images/18082025/10/26/image_18082025_10_26_25_9799.jpg', 2), ('/home/nano/Desktop/images/18082025/10/26/image_18082025_10_26_15_9830.jpg', 2), ('/home/nano/Desktop/images/18082025/10/25/image_18082025_10_26_05_10829.jpg', 2), ('/home/nano/Desktop/images/18082025/10/25/image_18082025_10_25_54_9836.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e36a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e36a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e36a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:27:17.504278
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/27/image_18082025_10_27_44_9815.jpg', 2), ('/home/nano/Desktop/images/18082025/10/27/image_18082025_10_27_34_9809.jpg', 2), ('/home/nano/Desktop/images/18082025/10/27/image_18082025_10_27_25_9832.jpg', 2), ('/home/nano/Desktop/images/18082025/10/27/image_18082025_10_27_15_9868.jpg', 2), ('/home/nano/Desktop/images/18082025/10/26/image_18082025_10_27_05_10835.jpg', 2), ('/home/nano/Desktop/images/18082025/10/26/image_18082025_10_26_54_9811.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95fc7518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95fc7518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95fc7518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:27:32.451783
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/27/image_18082025_10_27_44_9815.jpg', 2), ('/home/nano/Desktop/images/18082025/10/27/image_18082025_10_27_34_9809.jpg', 2), ('/home/nano/Desktop/images/18082025/10/27/image_18082025_10_27_25_9832.jpg', 2), ('/home/nano/Desktop/images/18082025/10/27/image_18082025_10_27_15_9868.jpg', 2), ('/home/nano/Desktop/images/18082025/10/26/image_18082025_10_27_05_10835.jpg', 2), ('/home/nano/Desktop/images/18082025/10/26/image_18082025_10_26_54_9811.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa75f8518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa75f8518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa75f8518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:27:47.388410
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/27/image_18082025_10_27_44_9815.jpg', 2), ('/home/nano/Desktop/images/18082025/10/27/image_18082025_10_27_34_9809.jpg', 2), ('/home/nano/Desktop/images/18082025/10/27/image_18082025_10_27_25_9832.jpg', 2), ('/home/nano/Desktop/images/18082025/10/27/image_18082025_10_27_15_9868.jpg', 2), ('/home/nano/Desktop/images/18082025/10/26/image_18082025_10_27_05_10835.jpg', 2), ('/home/nano/Desktop/images/18082025/10/26/image_18082025_10_26_54_9811.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6161518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6161518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6161518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:28:03.143996
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/27/image_18082025_10_27_44_9815.jpg', 2), ('/home/nano/Desktop/images/18082025/10/27/image_18082025_10_27_34_9809.jpg', 2), ('/home/nano/Desktop/images/18082025/10/27/image_18082025_10_27_25_9832.jpg', 2), ('/home/nano/Desktop/images/18082025/10/27/image_18082025_10_27_15_9868.jpg', 2), ('/home/nano/Desktop/images/18082025/10/26/image_18082025_10_27_05_10835.jpg', 2), ('/home/nano/Desktop/images/18082025/10/26/image_18082025_10_26_54_9811.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f769f3518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f769f3518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f769f3518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:28:17.525961
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/28/image_18082025_10_28_44_9810.jpg', 2), ('/home/nano/Desktop/images/18082025/10/28/image_18082025_10_28_34_9810.jpg', 2), ('/home/nano/Desktop/images/18082025/10/28/image_18082025_10_28_25_9816.jpg', 2), ('/home/nano/Desktop/images/18082025/10/27/image_18082025_10_28_05_9826.jpg', 2), ('/home/nano/Desktop/images/18082025/10/27/image_18082025_10_27_55_10822.jpg', 2), ('/home/nano/Desktop/images/18082025/10/27/image_18082025_10_27_44_9815.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb04604a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb04604a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb04604a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:28:32.515535
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/28/image_18082025_10_28_44_9810.jpg', 2), ('/home/nano/Desktop/images/18082025/10/28/image_18082025_10_28_34_9810.jpg', 2), ('/home/nano/Desktop/images/18082025/10/28/image_18082025_10_28_25_9816.jpg', 2), ('/home/nano/Desktop/images/18082025/10/27/image_18082025_10_28_05_9826.jpg', 2), ('/home/nano/Desktop/images/18082025/10/27/image_18082025_10_27_55_10822.jpg', 2), ('/home/nano/Desktop/images/18082025/10/27/image_18082025_10_27_44_9815.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb1fb2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1fb2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1fb2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:28:47.497835
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/28/image_18082025_10_28_44_9810.jpg', 2), ('/home/nano/Desktop/images/18082025/10/28/image_18082025_10_28_34_9810.jpg', 2), ('/home/nano/Desktop/images/18082025/10/28/image_18082025_10_28_25_9816.jpg', 2), ('/home/nano/Desktop/images/18082025/10/27/image_18082025_10_28_05_9826.jpg', 2), ('/home/nano/Desktop/images/18082025/10/27/image_18082025_10_27_55_10822.jpg', 2), ('/home/nano/Desktop/images/18082025/10/27/image_18082025_10_27_44_9815.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98dc6518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98dc6518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98dc6518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:29:03.795362
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/28/image_18082025_10_28_44_9810.jpg', 2), ('/home/nano/Desktop/images/18082025/10/28/image_18082025_10_28_34_9810.jpg', 2), ('/home/nano/Desktop/images/18082025/10/28/image_18082025_10_28_25_9816.jpg', 2), ('/home/nano/Desktop/images/18082025/10/27/image_18082025_10_28_05_9826.jpg', 2), ('/home/nano/Desktop/images/18082025/10/27/image_18082025_10_27_55_10822.jpg', 2), ('/home/nano/Desktop/images/18082025/10/27/image_18082025_10_27_44_9815.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f929a4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f929a4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f929a4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:29:17.603045
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/29/image_18082025_10_29_44_9831.jpg', 2), ('/home/nano/Desktop/images/18082025/10/29/image_18082025_10_29_34_9808.jpg', 2), ('/home/nano/Desktop/images/18082025/10/29/image_18082025_10_29_24_9806.jpg', 2), ('/home/nano/Desktop/images/18082025/10/29/image_18082025_10_29_15_9872.jpg', 2), ('/home/nano/Desktop/images/18082025/10/28/image_18082025_10_29_05_9816.jpg', 2), ('/home/nano/Desktop/images/18082025/10/28/image_18082025_10_28_55_10840.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86b3f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86b3f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86b3f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:29:32.586493
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/29/image_18082025_10_29_44_9831.jpg', 2), ('/home/nano/Desktop/images/18082025/10/29/image_18082025_10_29_34_9808.jpg', 2), ('/home/nano/Desktop/images/18082025/10/29/image_18082025_10_29_24_9806.jpg', 2), ('/home/nano/Desktop/images/18082025/10/29/image_18082025_10_29_15_9872.jpg', 2), ('/home/nano/Desktop/images/18082025/10/28/image_18082025_10_29_05_9816.jpg', 2), ('/home/nano/Desktop/images/18082025/10/28/image_18082025_10_28_55_10840.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1d5b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1d5b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1d5b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:29:47.589129
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/29/image_18082025_10_29_44_9831.jpg', 2), ('/home/nano/Desktop/images/18082025/10/29/image_18082025_10_29_34_9808.jpg', 2), ('/home/nano/Desktop/images/18082025/10/29/image_18082025_10_29_24_9806.jpg', 2), ('/home/nano/Desktop/images/18082025/10/29/image_18082025_10_29_15_9872.jpg', 2), ('/home/nano/Desktop/images/18082025/10/28/image_18082025_10_29_05_9816.jpg', 2), ('/home/nano/Desktop/images/18082025/10/28/image_18082025_10_28_55_10840.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c983518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c983518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c983518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:30:03.318359
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/29/image_18082025_10_29_44_9831.jpg', 2), ('/home/nano/Desktop/images/18082025/10/29/image_18082025_10_29_34_9808.jpg', 2), ('/home/nano/Desktop/images/18082025/10/29/image_18082025_10_29_24_9806.jpg', 2), ('/home/nano/Desktop/images/18082025/10/29/image_18082025_10_29_15_9872.jpg', 2), ('/home/nano/Desktop/images/18082025/10/28/image_18082025_10_29_05_9816.jpg', 2), ('/home/nano/Desktop/images/18082025/10/28/image_18082025_10_28_55_10840.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f942f2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f942f2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f942f2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:30:17.686035
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/30/image_18082025_10_30_45_9707.jpg', 2), ('/home/nano/Desktop/images/18082025/10/30/image_18082025_10_30_35_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/10/30/image_18082025_10_30_24_9744.jpg', 2), ('/home/nano/Desktop/images/18082025/10/30/image_18082025_10_30_15_9835.jpg', 2), ('/home/nano/Desktop/images/18082025/10/29/image_18082025_10_30_05_9822.jpg', 2), ('/home/nano/Desktop/images/18082025/10/29/image_18082025_10_29_55_10826.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f783db518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f783db518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f783db518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:30:32.709941
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/30/image_18082025_10_30_45_9707.jpg', 2), ('/home/nano/Desktop/images/18082025/10/30/image_18082025_10_30_35_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/10/30/image_18082025_10_30_24_9744.jpg', 2), ('/home/nano/Desktop/images/18082025/10/30/image_18082025_10_30_15_9835.jpg', 2), ('/home/nano/Desktop/images/18082025/10/29/image_18082025_10_30_05_9822.jpg', 2), ('/home/nano/Desktop/images/18082025/10/29/image_18082025_10_29_55_10826.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f773244a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f773244a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f773244a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:30:47.682168
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/30/image_18082025_10_30_45_9707.jpg', 2), ('/home/nano/Desktop/images/18082025/10/30/image_18082025_10_30_35_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/10/30/image_18082025_10_30_24_9744.jpg', 2), ('/home/nano/Desktop/images/18082025/10/30/image_18082025_10_30_15_9835.jpg', 2), ('/home/nano/Desktop/images/18082025/10/29/image_18082025_10_30_05_9822.jpg', 2), ('/home/nano/Desktop/images/18082025/10/29/image_18082025_10_29_55_10826.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fae4c4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae4c4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae4c4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:31:02.438041
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/30/image_18082025_10_30_45_9707.jpg', 2), ('/home/nano/Desktop/images/18082025/10/30/image_18082025_10_30_35_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/10/30/image_18082025_10_30_24_9744.jpg', 2), ('/home/nano/Desktop/images/18082025/10/30/image_18082025_10_30_15_9835.jpg', 2), ('/home/nano/Desktop/images/18082025/10/29/image_18082025_10_30_05_9822.jpg', 2), ('/home/nano/Desktop/images/18082025/10/29/image_18082025_10_29_55_10826.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa184e4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa184e4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa184e4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:31:16.778067
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/31/image_18082025_10_31_44_9689.jpg', 2), ('/home/nano/Desktop/images/18082025/10/31/image_18082025_10_31_34_9728.jpg', 2), ('/home/nano/Desktop/images/18082025/10/31/image_18082025_10_31_25_9683.jpg', 2), ('/home/nano/Desktop/images/18082025/10/31/image_18082025_10_31_15_10759.jpg', 2), ('/home/nano/Desktop/images/18082025/10/30/image_18082025_10_31_04_9719.jpg', 2), ('/home/nano/Desktop/images/18082025/10/30/image_18082025_10_30_55_9775.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98a58518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98a58518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98a58518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:31:31.769054
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/31/image_18082025_10_31_44_9689.jpg', 2), ('/home/nano/Desktop/images/18082025/10/31/image_18082025_10_31_34_9728.jpg', 2), ('/home/nano/Desktop/images/18082025/10/31/image_18082025_10_31_25_9683.jpg', 2), ('/home/nano/Desktop/images/18082025/10/31/image_18082025_10_31_15_10759.jpg', 2), ('/home/nano/Desktop/images/18082025/10/30/image_18082025_10_31_04_9719.jpg', 2), ('/home/nano/Desktop/images/18082025/10/30/image_18082025_10_30_55_9775.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7942a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7942a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7942a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:31:46.801824
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/31/image_18082025_10_31_44_9689.jpg', 2), ('/home/nano/Desktop/images/18082025/10/31/image_18082025_10_31_34_9728.jpg', 2), ('/home/nano/Desktop/images/18082025/10/31/image_18082025_10_31_25_9683.jpg', 2), ('/home/nano/Desktop/images/18082025/10/31/image_18082025_10_31_15_10759.jpg', 2), ('/home/nano/Desktop/images/18082025/10/30/image_18082025_10_31_04_9719.jpg', 2), ('/home/nano/Desktop/images/18082025/10/30/image_18082025_10_30_55_9775.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9256d4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9256d4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9256d4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:32:02.326016
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/31/image_18082025_10_31_44_9689.jpg', 2), ('/home/nano/Desktop/images/18082025/10/31/image_18082025_10_31_34_9728.jpg', 2), ('/home/nano/Desktop/images/18082025/10/31/image_18082025_10_31_25_9683.jpg', 2), ('/home/nano/Desktop/images/18082025/10/31/image_18082025_10_31_15_10759.jpg', 2), ('/home/nano/Desktop/images/18082025/10/30/image_18082025_10_31_04_9719.jpg', 2), ('/home/nano/Desktop/images/18082025/10/30/image_18082025_10_30_55_9775.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa763550>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa763550>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa763550>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:32:16.929101
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/32/image_18082025_10_32_44_9792.jpg', 2), ('/home/nano/Desktop/images/18082025/10/32/image_18082025_10_32_35_9785.jpg', 2), ('/home/nano/Desktop/images/18082025/10/32/image_18082025_10_32_25_10694.jpg', 2), ('/home/nano/Desktop/images/18082025/10/32/image_18082025_10_32_14_9733.jpg', 2), ('/home/nano/Desktop/images/18082025/10/31/image_18082025_10_32_04_9685.jpg', 2), ('/home/nano/Desktop/images/18082025/10/31/image_18082025_10_31_55_10692.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fad5fa518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad5fa518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fad5fa518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:32:31.920270
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/32/image_18082025_10_32_44_9792.jpg', 2), ('/home/nano/Desktop/images/18082025/10/32/image_18082025_10_32_35_9785.jpg', 2), ('/home/nano/Desktop/images/18082025/10/32/image_18082025_10_32_25_10694.jpg', 2), ('/home/nano/Desktop/images/18082025/10/32/image_18082025_10_32_14_9733.jpg', 2), ('/home/nano/Desktop/images/18082025/10/31/image_18082025_10_32_04_9685.jpg', 2), ('/home/nano/Desktop/images/18082025/10/31/image_18082025_10_31_55_10692.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f782824a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f782824a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f782824a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:32:46.928138
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/32/image_18082025_10_32_44_9792.jpg', 2), ('/home/nano/Desktop/images/18082025/10/32/image_18082025_10_32_35_9785.jpg', 2), ('/home/nano/Desktop/images/18082025/10/32/image_18082025_10_32_25_10694.jpg', 2), ('/home/nano/Desktop/images/18082025/10/32/image_18082025_10_32_14_9733.jpg', 2), ('/home/nano/Desktop/images/18082025/10/31/image_18082025_10_32_04_9685.jpg', 2), ('/home/nano/Desktop/images/18082025/10/31/image_18082025_10_31_55_10692.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a57f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a57f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a57f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:33:02.700731
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/32/image_18082025_10_32_44_9792.jpg', 2), ('/home/nano/Desktop/images/18082025/10/32/image_18082025_10_32_35_9785.jpg', 2), ('/home/nano/Desktop/images/18082025/10/32/image_18082025_10_32_25_10694.jpg', 2), ('/home/nano/Desktop/images/18082025/10/32/image_18082025_10_32_14_9733.jpg', 2), ('/home/nano/Desktop/images/18082025/10/31/image_18082025_10_32_04_9685.jpg', 2), ('/home/nano/Desktop/images/18082025/10/31/image_18082025_10_31_55_10692.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0b06518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0b06518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0b06518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:33:17.008561
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/33/image_18082025_10_33_44_9600.jpg', 2), ('/home/nano/Desktop/images/18082025/10/33/image_18082025_10_33_35_10607.jpg', 2), ('/home/nano/Desktop/images/18082025/10/33/image_18082025_10_33_24_9597.jpg', 2), ('/home/nano/Desktop/images/18082025/10/33/image_18082025_10_33_15_9595.jpg', 2), ('/home/nano/Desktop/images/18082025/10/32/image_18082025_10_33_05_10796.jpg', 2), ('/home/nano/Desktop/images/18082025/10/32/image_18082025_10_32_54_9656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97a00518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97a00518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97a00518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:33:32.023646
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/33/image_18082025_10_33_44_9600.jpg', 2), ('/home/nano/Desktop/images/18082025/10/33/image_18082025_10_33_35_10607.jpg', 2), ('/home/nano/Desktop/images/18082025/10/33/image_18082025_10_33_24_9597.jpg', 2), ('/home/nano/Desktop/images/18082025/10/33/image_18082025_10_33_15_9595.jpg', 2), ('/home/nano/Desktop/images/18082025/10/32/image_18082025_10_33_05_10796.jpg', 2), ('/home/nano/Desktop/images/18082025/10/32/image_18082025_10_32_54_9656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f766c4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f766c4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f766c4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:33:47.011138
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/33/image_18082025_10_33_44_9600.jpg', 2), ('/home/nano/Desktop/images/18082025/10/33/image_18082025_10_33_35_10607.jpg', 2), ('/home/nano/Desktop/images/18082025/10/33/image_18082025_10_33_24_9597.jpg', 2), ('/home/nano/Desktop/images/18082025/10/33/image_18082025_10_33_15_9595.jpg', 2), ('/home/nano/Desktop/images/18082025/10/32/image_18082025_10_33_05_10796.jpg', 2), ('/home/nano/Desktop/images/18082025/10/32/image_18082025_10_32_54_9656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f00e4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f00e4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f00e4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:34:02.893537
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/33/image_18082025_10_33_44_9600.jpg', 2), ('/home/nano/Desktop/images/18082025/10/33/image_18082025_10_33_35_10607.jpg', 2), ('/home/nano/Desktop/images/18082025/10/33/image_18082025_10_33_24_9597.jpg', 2), ('/home/nano/Desktop/images/18082025/10/33/image_18082025_10_33_15_9595.jpg', 2), ('/home/nano/Desktop/images/18082025/10/32/image_18082025_10_33_05_10796.jpg', 2), ('/home/nano/Desktop/images/18082025/10/32/image_18082025_10_32_54_9656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7cb36518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7cb36518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7cb36518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:34:17.106937
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/34/image_18082025_10_34_45_10603.jpg', 2), ('/home/nano/Desktop/images/18082025/10/34/image_18082025_10_34_34_9600.jpg', 2), ('/home/nano/Desktop/images/18082025/10/34/image_18082025_10_34_25_10608.jpg', 2), ('/home/nano/Desktop/images/18082025/10/34/image_18082025_10_34_14_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/10/33/image_18082025_10_34_05_9597.jpg', 2), ('/home/nano/Desktop/images/18082025/10/33/image_18082025_10_33_55_10626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c5804a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c5804a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c5804a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:34:32.125752
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/34/image_18082025_10_34_45_10603.jpg', 2), ('/home/nano/Desktop/images/18082025/10/34/image_18082025_10_34_34_9600.jpg', 2), ('/home/nano/Desktop/images/18082025/10/34/image_18082025_10_34_25_10608.jpg', 2), ('/home/nano/Desktop/images/18082025/10/34/image_18082025_10_34_14_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/10/33/image_18082025_10_34_05_9597.jpg', 2), ('/home/nano/Desktop/images/18082025/10/33/image_18082025_10_33_55_10626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8f8c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8f8c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8f8c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:34:47.098427
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/34/image_18082025_10_34_45_10603.jpg', 2), ('/home/nano/Desktop/images/18082025/10/34/image_18082025_10_34_34_9600.jpg', 2), ('/home/nano/Desktop/images/18082025/10/34/image_18082025_10_34_25_10608.jpg', 2), ('/home/nano/Desktop/images/18082025/10/34/image_18082025_10_34_14_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/10/33/image_18082025_10_34_05_9597.jpg', 2), ('/home/nano/Desktop/images/18082025/10/33/image_18082025_10_33_55_10626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fafa5b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafa5b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafa5b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:35:02.996167
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/34/image_18082025_10_34_45_10603.jpg', 2), ('/home/nano/Desktop/images/18082025/10/34/image_18082025_10_34_34_9600.jpg', 2), ('/home/nano/Desktop/images/18082025/10/34/image_18082025_10_34_25_10608.jpg', 2), ('/home/nano/Desktop/images/18082025/10/34/image_18082025_10_34_14_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/10/33/image_18082025_10_34_05_9597.jpg', 2), ('/home/nano/Desktop/images/18082025/10/33/image_18082025_10_33_55_10626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f869f6518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f869f6518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f869f6518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:35:17.223988
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/35/image_18082025_10_35_45_10617.jpg', 2), ('/home/nano/Desktop/images/18082025/10/35/image_18082025_10_35_34_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/10/35/image_18082025_10_35_24_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/10/35/image_18082025_10_35_15_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/10/34/image_18082025_10_35_04_9598.jpg', 2), ('/home/nano/Desktop/images/18082025/10/34/image_18082025_10_34_55_9599.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5b02518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5b02518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5b02518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:35:32.212908
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/35/image_18082025_10_35_45_10617.jpg', 2), ('/home/nano/Desktop/images/18082025/10/35/image_18082025_10_35_34_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/10/35/image_18082025_10_35_24_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/10/35/image_18082025_10_35_15_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/10/34/image_18082025_10_35_04_9598.jpg', 2), ('/home/nano/Desktop/images/18082025/10/34/image_18082025_10_34_55_9599.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9854f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9854f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9854f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:35:47.215495
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/35/image_18082025_10_35_45_10617.jpg', 2), ('/home/nano/Desktop/images/18082025/10/35/image_18082025_10_35_34_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/10/35/image_18082025_10_35_24_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/10/35/image_18082025_10_35_15_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/10/34/image_18082025_10_35_04_9598.jpg', 2), ('/home/nano/Desktop/images/18082025/10/34/image_18082025_10_34_55_9599.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f845e4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f845e4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f845e4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:36:02.849369
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/35/image_18082025_10_35_45_10617.jpg', 2), ('/home/nano/Desktop/images/18082025/10/35/image_18082025_10_35_34_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/10/35/image_18082025_10_35_24_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/10/35/image_18082025_10_35_15_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/10/34/image_18082025_10_35_04_9598.jpg', 2), ('/home/nano/Desktop/images/18082025/10/34/image_18082025_10_34_55_9599.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9651c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9651c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9651c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:36:17.324237
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/36/image_18082025_10_36_44_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/10/36/image_18082025_10_36_35_10610.jpg', 2), ('/home/nano/Desktop/images/18082025/10/36/image_18082025_10_36_24_9604.jpg', 2), ('/home/nano/Desktop/images/18082025/10/36/image_18082025_10_36_15_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/10/35/image_18082025_10_36_05_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/10/35/image_18082025_10_35_54_9604.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8161e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8161e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8161e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:36:32.367363
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/36/image_18082025_10_36_44_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/10/36/image_18082025_10_36_35_10610.jpg', 2), ('/home/nano/Desktop/images/18082025/10/36/image_18082025_10_36_24_9604.jpg', 2), ('/home/nano/Desktop/images/18082025/10/36/image_18082025_10_36_15_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/10/35/image_18082025_10_36_05_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/10/35/image_18082025_10_35_54_9604.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa844f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa844f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa844f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:36:47.346616
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/36/image_18082025_10_36_44_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/10/36/image_18082025_10_36_35_10610.jpg', 2), ('/home/nano/Desktop/images/18082025/10/36/image_18082025_10_36_24_9604.jpg', 2), ('/home/nano/Desktop/images/18082025/10/36/image_18082025_10_36_15_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/10/35/image_18082025_10_36_05_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/10/35/image_18082025_10_35_54_9604.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f954724a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f954724a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f954724a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:37:03.042070
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/36/image_18082025_10_36_44_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/10/36/image_18082025_10_36_35_10610.jpg', 2), ('/home/nano/Desktop/images/18082025/10/36/image_18082025_10_36_24_9604.jpg', 2), ('/home/nano/Desktop/images/18082025/10/36/image_18082025_10_36_15_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/10/35/image_18082025_10_36_05_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/10/35/image_18082025_10_35_54_9604.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9daad518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9daad518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9daad518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:37:17.427276
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/37/image_18082025_10_37_44_9604.jpg', 2), ('/home/nano/Desktop/images/18082025/10/37/image_18082025_10_37_35_9602.jpg', 2), ('/home/nano/Desktop/images/18082025/10/37/image_18082025_10_37_25_10617.jpg', 2), ('/home/nano/Desktop/images/18082025/10/37/image_18082025_10_37_14_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/10/36/image_18082025_10_37_05_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/10/36/image_18082025_10_36_55_10618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f6ab518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f6ab518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f6ab518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:37:32.420662
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/37/image_18082025_10_37_44_9604.jpg', 2), ('/home/nano/Desktop/images/18082025/10/37/image_18082025_10_37_35_9602.jpg', 2), ('/home/nano/Desktop/images/18082025/10/37/image_18082025_10_37_25_10617.jpg', 2), ('/home/nano/Desktop/images/18082025/10/37/image_18082025_10_37_14_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/10/36/image_18082025_10_37_05_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/10/36/image_18082025_10_36_55_10618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6dc9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6dc9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6dc9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:37:47.434916
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/37/image_18082025_10_37_44_9604.jpg', 2), ('/home/nano/Desktop/images/18082025/10/37/image_18082025_10_37_35_9602.jpg', 2), ('/home/nano/Desktop/images/18082025/10/37/image_18082025_10_37_25_10617.jpg', 2), ('/home/nano/Desktop/images/18082025/10/37/image_18082025_10_37_14_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/10/36/image_18082025_10_37_05_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/10/36/image_18082025_10_36_55_10618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99a6b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99a6b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99a6b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:38:02.981249
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/37/image_18082025_10_37_44_9604.jpg', 2), ('/home/nano/Desktop/images/18082025/10/37/image_18082025_10_37_35_9602.jpg', 2), ('/home/nano/Desktop/images/18082025/10/37/image_18082025_10_37_25_10617.jpg', 2), ('/home/nano/Desktop/images/18082025/10/37/image_18082025_10_37_14_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/10/36/image_18082025_10_37_05_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/10/36/image_18082025_10_36_55_10618.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa58e9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa58e9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa58e9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:38:17.530825
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/38/image_18082025_10_38_45_10616.jpg', 2), ('/home/nano/Desktop/images/18082025/10/38/image_18082025_10_38_34_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/10/38/image_18082025_10_38_25_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/10/38/image_18082025_10_38_15_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/10/37/image_18082025_10_38_04_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/10/37/image_18082025_10_37_55_10620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa694518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa694518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa694518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:38:32.525027
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/38/image_18082025_10_38_45_10616.jpg', 2), ('/home/nano/Desktop/images/18082025/10/38/image_18082025_10_38_34_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/10/38/image_18082025_10_38_25_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/10/38/image_18082025_10_38_15_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/10/37/image_18082025_10_38_04_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/10/37/image_18082025_10_37_55_10620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa9207518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9207518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9207518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:38:47.527561
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/38/image_18082025_10_38_45_10616.jpg', 2), ('/home/nano/Desktop/images/18082025/10/38/image_18082025_10_38_34_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/10/38/image_18082025_10_38_25_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/10/38/image_18082025_10_38_15_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/10/37/image_18082025_10_38_04_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/10/37/image_18082025_10_37_55_10620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa3a13518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3a13518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3a13518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:39:03.699237
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/38/image_18082025_10_38_45_10616.jpg', 2), ('/home/nano/Desktop/images/18082025/10/38/image_18082025_10_38_34_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/10/38/image_18082025_10_38_25_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/10/38/image_18082025_10_38_15_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/10/37/image_18082025_10_38_04_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/10/37/image_18082025_10_37_55_10620.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c000518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c000518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c000518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:39:17.665129
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/39/image_18082025_10_39_45_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/10/39/image_18082025_10_39_35_10611.jpg', 2), ('/home/nano/Desktop/images/18082025/10/39/image_18082025_10_39_24_9603.jpg', 2), ('/home/nano/Desktop/images/18082025/10/39/image_18082025_10_39_15_9681.jpg', 2), ('/home/nano/Desktop/images/18082025/10/38/image_18082025_10_39_05_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/10/38/image_18082025_10_38_54_9602.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d603518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d603518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d603518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:39:32.631750
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/39/image_18082025_10_39_45_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/10/39/image_18082025_10_39_35_10611.jpg', 2), ('/home/nano/Desktop/images/18082025/10/39/image_18082025_10_39_24_9603.jpg', 2), ('/home/nano/Desktop/images/18082025/10/39/image_18082025_10_39_15_9681.jpg', 2), ('/home/nano/Desktop/images/18082025/10/38/image_18082025_10_39_05_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/10/38/image_18082025_10_38_54_9602.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7e832550>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e832550>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7e832550>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:39:47.649670
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/39/image_18082025_10_39_45_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/10/39/image_18082025_10_39_35_10611.jpg', 2), ('/home/nano/Desktop/images/18082025/10/39/image_18082025_10_39_24_9603.jpg', 2), ('/home/nano/Desktop/images/18082025/10/39/image_18082025_10_39_15_9681.jpg', 2), ('/home/nano/Desktop/images/18082025/10/38/image_18082025_10_39_05_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/10/38/image_18082025_10_38_54_9602.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4901518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4901518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4901518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:40:03.237375
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/39/image_18082025_10_39_45_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/10/39/image_18082025_10_39_35_10611.jpg', 2), ('/home/nano/Desktop/images/18082025/10/39/image_18082025_10_39_24_9603.jpg', 2), ('/home/nano/Desktop/images/18082025/10/39/image_18082025_10_39_15_9681.jpg', 2), ('/home/nano/Desktop/images/18082025/10/38/image_18082025_10_39_05_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/10/38/image_18082025_10_38_54_9602.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f794ab518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f794ab518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f794ab518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:40:17.764798
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/40/image_18082025_10_40_44_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/10/40/image_18082025_10_40_35_9603.jpg', 2), ('/home/nano/Desktop/images/18082025/10/40/image_18082025_10_40_25_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/10/40/image_18082025_10_40_14_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/10/39/image_18082025_10_40_05_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/10/39/image_18082025_10_39_54_9596.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa970c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa970c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa970c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:40:32.777014
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/40/image_18082025_10_40_44_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/10/40/image_18082025_10_40_35_9603.jpg', 2), ('/home/nano/Desktop/images/18082025/10/40/image_18082025_10_40_25_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/10/40/image_18082025_10_40_14_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/10/39/image_18082025_10_40_05_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/10/39/image_18082025_10_39_54_9596.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5bd0518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5bd0518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5bd0518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:40:47.733591
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/40/image_18082025_10_40_44_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/10/40/image_18082025_10_40_35_9603.jpg', 2), ('/home/nano/Desktop/images/18082025/10/40/image_18082025_10_40_25_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/10/40/image_18082025_10_40_14_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/10/39/image_18082025_10_40_05_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/10/39/image_18082025_10_39_54_9596.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f75f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f75f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f75f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:41:02.358644
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/40/image_18082025_10_40_44_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/10/40/image_18082025_10_40_35_9603.jpg', 2), ('/home/nano/Desktop/images/18082025/10/40/image_18082025_10_40_25_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/10/40/image_18082025_10_40_14_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/10/39/image_18082025_10_40_05_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/10/39/image_18082025_10_39_54_9596.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f785bc518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f785bc518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f785bc518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:41:16.892212
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/41/image_18082025_10_41_45_9709.jpg', 2), ('/home/nano/Desktop/images/18082025/10/41/image_18082025_10_41_35_10677.jpg', 2), ('/home/nano/Desktop/images/18082025/10/41/image_18082025_10_41_24_9677.jpg', 2), ('/home/nano/Desktop/images/18082025/10/41/image_18082025_10_41_14_9744.jpg', 2), ('/home/nano/Desktop/images/18082025/10/40/image_18082025_10_41_05_9694.jpg', 2), ('/home/nano/Desktop/images/18082025/10/40/image_18082025_10_40_55_10732.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8aa1e550>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8aa1e550>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8aa1e550>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:41:31.814525
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/41/image_18082025_10_41_45_9709.jpg', 2), ('/home/nano/Desktop/images/18082025/10/41/image_18082025_10_41_35_10677.jpg', 2), ('/home/nano/Desktop/images/18082025/10/41/image_18082025_10_41_24_9677.jpg', 2), ('/home/nano/Desktop/images/18082025/10/41/image_18082025_10_41_14_9744.jpg', 2), ('/home/nano/Desktop/images/18082025/10/40/image_18082025_10_41_05_9694.jpg', 2), ('/home/nano/Desktop/images/18082025/10/40/image_18082025_10_40_55_10732.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f866b8518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f866b8518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f866b8518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:41:46.875672
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/41/image_18082025_10_41_45_9709.jpg', 2), ('/home/nano/Desktop/images/18082025/10/41/image_18082025_10_41_35_10677.jpg', 2), ('/home/nano/Desktop/images/18082025/10/41/image_18082025_10_41_24_9677.jpg', 2), ('/home/nano/Desktop/images/18082025/10/41/image_18082025_10_41_14_9744.jpg', 2), ('/home/nano/Desktop/images/18082025/10/40/image_18082025_10_41_05_9694.jpg', 2), ('/home/nano/Desktop/images/18082025/10/40/image_18082025_10_40_55_10732.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82521518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82521518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82521518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:42:02.376420
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/41/image_18082025_10_41_45_9709.jpg', 2), ('/home/nano/Desktop/images/18082025/10/41/image_18082025_10_41_35_10677.jpg', 2), ('/home/nano/Desktop/images/18082025/10/41/image_18082025_10_41_24_9677.jpg', 2), ('/home/nano/Desktop/images/18082025/10/41/image_18082025_10_41_14_9744.jpg', 2), ('/home/nano/Desktop/images/18082025/10/40/image_18082025_10_41_05_9694.jpg', 2), ('/home/nano/Desktop/images/18082025/10/40/image_18082025_10_40_55_10732.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f993c7518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f993c7518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f993c7518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:42:16.981793
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/42/image_18082025_10_42_45_9693.jpg', 2), ('/home/nano/Desktop/images/18082025/10/42/image_18082025_10_42_35_10719.jpg', 2), ('/home/nano/Desktop/images/18082025/10/42/image_18082025_10_42_24_9711.jpg', 2), ('/home/nano/Desktop/images/18082025/10/42/image_18082025_10_42_15_9682.jpg', 2), ('/home/nano/Desktop/images/18082025/10/41/image_18082025_10_42_05_10743.jpg', 2), ('/home/nano/Desktop/images/18082025/10/41/image_18082025_10_41_54_9690.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb549b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb549b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb549b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:42:31.971193
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/42/image_18082025_10_42_45_9693.jpg', 2), ('/home/nano/Desktop/images/18082025/10/42/image_18082025_10_42_35_10719.jpg', 2), ('/home/nano/Desktop/images/18082025/10/42/image_18082025_10_42_24_9711.jpg', 2), ('/home/nano/Desktop/images/18082025/10/42/image_18082025_10_42_15_9682.jpg', 2), ('/home/nano/Desktop/images/18082025/10/41/image_18082025_10_42_05_10743.jpg', 2), ('/home/nano/Desktop/images/18082025/10/41/image_18082025_10_41_54_9690.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb6455518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb6455518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb6455518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:42:46.974662
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/42/image_18082025_10_42_45_9693.jpg', 2), ('/home/nano/Desktop/images/18082025/10/42/image_18082025_10_42_35_10719.jpg', 2), ('/home/nano/Desktop/images/18082025/10/42/image_18082025_10_42_24_9711.jpg', 2), ('/home/nano/Desktop/images/18082025/10/42/image_18082025_10_42_15_9682.jpg', 2), ('/home/nano/Desktop/images/18082025/10/41/image_18082025_10_42_05_10743.jpg', 2), ('/home/nano/Desktop/images/18082025/10/41/image_18082025_10_41_54_9690.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d7e6518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d7e6518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d7e6518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:43:02.792462
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/42/image_18082025_10_42_45_9693.jpg', 2), ('/home/nano/Desktop/images/18082025/10/42/image_18082025_10_42_35_10719.jpg', 2), ('/home/nano/Desktop/images/18082025/10/42/image_18082025_10_42_24_9711.jpg', 2), ('/home/nano/Desktop/images/18082025/10/42/image_18082025_10_42_15_9682.jpg', 2), ('/home/nano/Desktop/images/18082025/10/41/image_18082025_10_42_05_10743.jpg', 2), ('/home/nano/Desktop/images/18082025/10/41/image_18082025_10_41_54_9690.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9006e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9006e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9006e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:43:17.088789
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/43/image_18082025_10_43_44_9706.jpg', 2), ('/home/nano/Desktop/images/18082025/10/43/image_18082025_10_43_34_9713.jpg', 2), ('/home/nano/Desktop/images/18082025/10/43/image_18082025_10_43_25_9686.jpg', 2), ('/home/nano/Desktop/images/18082025/10/43/image_18082025_10_43_15_10743.jpg', 2), ('/home/nano/Desktop/images/18082025/10/42/image_18082025_10_43_04_9708.jpg', 2), ('/home/nano/Desktop/images/18082025/10/42/image_18082025_10_42_55_9812.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa29c6518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa29c6518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa29c6518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:43:32.074005
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/43/image_18082025_10_43_44_9706.jpg', 2), ('/home/nano/Desktop/images/18082025/10/43/image_18082025_10_43_34_9713.jpg', 2), ('/home/nano/Desktop/images/18082025/10/43/image_18082025_10_43_25_9686.jpg', 2), ('/home/nano/Desktop/images/18082025/10/43/image_18082025_10_43_15_10743.jpg', 2), ('/home/nano/Desktop/images/18082025/10/42/image_18082025_10_43_04_9708.jpg', 2), ('/home/nano/Desktop/images/18082025/10/42/image_18082025_10_42_55_9812.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faedd5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faedd5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faedd5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:43:47.084712
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/43/image_18082025_10_43_44_9706.jpg', 2), ('/home/nano/Desktop/images/18082025/10/43/image_18082025_10_43_34_9713.jpg', 2), ('/home/nano/Desktop/images/18082025/10/43/image_18082025_10_43_25_9686.jpg', 2), ('/home/nano/Desktop/images/18082025/10/43/image_18082025_10_43_15_10743.jpg', 2), ('/home/nano/Desktop/images/18082025/10/42/image_18082025_10_43_04_9708.jpg', 2), ('/home/nano/Desktop/images/18082025/10/42/image_18082025_10_42_55_9812.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8cb03518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8cb03518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8cb03518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:44:02.912686
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/43/image_18082025_10_43_44_9706.jpg', 2), ('/home/nano/Desktop/images/18082025/10/43/image_18082025_10_43_34_9713.jpg', 2), ('/home/nano/Desktop/images/18082025/10/43/image_18082025_10_43_25_9686.jpg', 2), ('/home/nano/Desktop/images/18082025/10/43/image_18082025_10_43_15_10743.jpg', 2), ('/home/nano/Desktop/images/18082025/10/42/image_18082025_10_43_04_9708.jpg', 2), ('/home/nano/Desktop/images/18082025/10/42/image_18082025_10_42_55_9812.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb6191518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb6191518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb6191518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:44:17.213956
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/44/image_18082025_10_44_44_9799.jpg', 2), ('/home/nano/Desktop/images/18082025/10/44/image_18082025_10_44_35_9680.jpg', 2), ('/home/nano/Desktop/images/18082025/10/44/image_18082025_10_44_25_10729.jpg', 2), ('/home/nano/Desktop/images/18082025/10/44/image_18082025_10_44_14_9739.jpg', 2), ('/home/nano/Desktop/images/18082025/10/43/image_18082025_10_44_05_9719.jpg', 2), ('/home/nano/Desktop/images/18082025/10/43/image_18082025_10_43_55_10703.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77200518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77200518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77200518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:44:32.213524
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/44/image_18082025_10_44_44_9799.jpg', 2), ('/home/nano/Desktop/images/18082025/10/44/image_18082025_10_44_35_9680.jpg', 2), ('/home/nano/Desktop/images/18082025/10/44/image_18082025_10_44_25_10729.jpg', 2), ('/home/nano/Desktop/images/18082025/10/44/image_18082025_10_44_14_9739.jpg', 2), ('/home/nano/Desktop/images/18082025/10/43/image_18082025_10_44_05_9719.jpg', 2), ('/home/nano/Desktop/images/18082025/10/43/image_18082025_10_43_55_10703.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95a7f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95a7f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95a7f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:44:47.212318
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/44/image_18082025_10_44_44_9799.jpg', 2), ('/home/nano/Desktop/images/18082025/10/44/image_18082025_10_44_35_9680.jpg', 2), ('/home/nano/Desktop/images/18082025/10/44/image_18082025_10_44_25_10729.jpg', 2), ('/home/nano/Desktop/images/18082025/10/44/image_18082025_10_44_14_9739.jpg', 2), ('/home/nano/Desktop/images/18082025/10/43/image_18082025_10_44_05_9719.jpg', 2), ('/home/nano/Desktop/images/18082025/10/43/image_18082025_10_43_55_10703.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98f17518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98f17518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98f17518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:45:02.921307
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/44/image_18082025_10_44_44_9799.jpg', 2), ('/home/nano/Desktop/images/18082025/10/44/image_18082025_10_44_35_9680.jpg', 2), ('/home/nano/Desktop/images/18082025/10/44/image_18082025_10_44_25_10729.jpg', 2), ('/home/nano/Desktop/images/18082025/10/44/image_18082025_10_44_14_9739.jpg', 2), ('/home/nano/Desktop/images/18082025/10/43/image_18082025_10_44_05_9719.jpg', 2), ('/home/nano/Desktop/images/18082025/10/43/image_18082025_10_43_55_10703.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b68e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b68e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b68e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:45:17.331749
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/45/image_18082025_10_45_45_10731.jpg', 2), ('/home/nano/Desktop/images/18082025/10/45/image_18082025_10_45_34_9751.jpg', 2), ('/home/nano/Desktop/images/18082025/10/45/image_18082025_10_45_25_9722.jpg', 2), ('/home/nano/Desktop/images/18082025/10/45/image_18082025_10_45_15_9880.jpg', 2), ('/home/nano/Desktop/images/18082025/10/44/image_18082025_10_45_05_10728.jpg', 2), ('/home/nano/Desktop/images/18082025/10/44/image_18082025_10_44_54_9730.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7fa83518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fa83518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fa83518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:45:32.316967
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/45/image_18082025_10_45_45_10731.jpg', 2), ('/home/nano/Desktop/images/18082025/10/45/image_18082025_10_45_34_9751.jpg', 2), ('/home/nano/Desktop/images/18082025/10/45/image_18082025_10_45_25_9722.jpg', 2), ('/home/nano/Desktop/images/18082025/10/45/image_18082025_10_45_15_9880.jpg', 2), ('/home/nano/Desktop/images/18082025/10/44/image_18082025_10_45_05_10728.jpg', 2), ('/home/nano/Desktop/images/18082025/10/44/image_18082025_10_44_54_9730.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7bcda518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bcda518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7bcda518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:45:47.323160
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/45/image_18082025_10_45_45_10731.jpg', 2), ('/home/nano/Desktop/images/18082025/10/45/image_18082025_10_45_34_9751.jpg', 2), ('/home/nano/Desktop/images/18082025/10/45/image_18082025_10_45_25_9722.jpg', 2), ('/home/nano/Desktop/images/18082025/10/45/image_18082025_10_45_15_9880.jpg', 2), ('/home/nano/Desktop/images/18082025/10/44/image_18082025_10_45_05_10728.jpg', 2), ('/home/nano/Desktop/images/18082025/10/44/image_18082025_10_44_54_9730.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8aef84a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8aef84a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8aef84a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:46:02.956320
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/45/image_18082025_10_45_45_10731.jpg', 2), ('/home/nano/Desktop/images/18082025/10/45/image_18082025_10_45_34_9751.jpg', 2), ('/home/nano/Desktop/images/18082025/10/45/image_18082025_10_45_25_9722.jpg', 2), ('/home/nano/Desktop/images/18082025/10/45/image_18082025_10_45_15_9880.jpg', 2), ('/home/nano/Desktop/images/18082025/10/44/image_18082025_10_45_05_10728.jpg', 2), ('/home/nano/Desktop/images/18082025/10/44/image_18082025_10_44_54_9730.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f90742518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90742518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f90742518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:46:17.431376
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/46/image_18082025_10_46_44_9742.jpg', 2), ('/home/nano/Desktop/images/18082025/10/46/image_18082025_10_46_35_9733.jpg', 2), ('/home/nano/Desktop/images/18082025/10/46/image_18082025_10_46_25_10714.jpg', 2), ('/home/nano/Desktop/images/18082025/10/46/image_18082025_10_46_14_9744.jpg', 2), ('/home/nano/Desktop/images/18082025/10/45/image_18082025_10_46_05_9734.jpg', 2), ('/home/nano/Desktop/images/18082025/10/45/image_18082025_10_45_55_9722.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86119518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86119518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86119518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:46:32.431611
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/46/image_18082025_10_46_44_9742.jpg', 2), ('/home/nano/Desktop/images/18082025/10/46/image_18082025_10_46_35_9733.jpg', 2), ('/home/nano/Desktop/images/18082025/10/46/image_18082025_10_46_25_10714.jpg', 2), ('/home/nano/Desktop/images/18082025/10/46/image_18082025_10_46_14_9744.jpg', 2), ('/home/nano/Desktop/images/18082025/10/45/image_18082025_10_46_05_9734.jpg', 2), ('/home/nano/Desktop/images/18082025/10/45/image_18082025_10_45_55_9722.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9efbb518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9efbb518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9efbb518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:46:47.428412
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/46/image_18082025_10_46_44_9742.jpg', 2), ('/home/nano/Desktop/images/18082025/10/46/image_18082025_10_46_35_9733.jpg', 2), ('/home/nano/Desktop/images/18082025/10/46/image_18082025_10_46_25_10714.jpg', 2), ('/home/nano/Desktop/images/18082025/10/46/image_18082025_10_46_14_9744.jpg', 2), ('/home/nano/Desktop/images/18082025/10/45/image_18082025_10_46_05_9734.jpg', 2), ('/home/nano/Desktop/images/18082025/10/45/image_18082025_10_45_55_9722.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89dda518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89dda518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89dda518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:47:03.322672
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/46/image_18082025_10_46_44_9742.jpg', 2), ('/home/nano/Desktop/images/18082025/10/46/image_18082025_10_46_35_9733.jpg', 2), ('/home/nano/Desktop/images/18082025/10/46/image_18082025_10_46_25_10714.jpg', 2), ('/home/nano/Desktop/images/18082025/10/46/image_18082025_10_46_14_9744.jpg', 2), ('/home/nano/Desktop/images/18082025/10/45/image_18082025_10_46_05_9734.jpg', 2), ('/home/nano/Desktop/images/18082025/10/45/image_18082025_10_45_55_9722.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f92a57518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92a57518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92a57518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:47:17.566192
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/47/image_18082025_10_47_45_10732.jpg', 2), ('/home/nano/Desktop/images/18082025/10/47/image_18082025_10_47_34_9718.jpg', 2), ('/home/nano/Desktop/images/18082025/10/47/image_18082025_10_47_24_9713.jpg', 2), ('/home/nano/Desktop/images/18082025/10/47/image_18082025_10_47_15_9747.jpg', 2), ('/home/nano/Desktop/images/18082025/10/46/image_18082025_10_47_05_10755.jpg', 2), ('/home/nano/Desktop/images/18082025/10/46/image_18082025_10_46_54_9698.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76638518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76638518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76638518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:47:32.506369
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/47/image_18082025_10_47_45_10732.jpg', 2), ('/home/nano/Desktop/images/18082025/10/47/image_18082025_10_47_34_9718.jpg', 2), ('/home/nano/Desktop/images/18082025/10/47/image_18082025_10_47_24_9713.jpg', 2), ('/home/nano/Desktop/images/18082025/10/47/image_18082025_10_47_15_9747.jpg', 2), ('/home/nano/Desktop/images/18082025/10/46/image_18082025_10_47_05_10755.jpg', 2), ('/home/nano/Desktop/images/18082025/10/46/image_18082025_10_46_54_9698.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d0b54a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d0b54a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d0b54a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:47:47.530117
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/47/image_18082025_10_47_45_10732.jpg', 2), ('/home/nano/Desktop/images/18082025/10/47/image_18082025_10_47_34_9718.jpg', 2), ('/home/nano/Desktop/images/18082025/10/47/image_18082025_10_47_24_9713.jpg', 2), ('/home/nano/Desktop/images/18082025/10/47/image_18082025_10_47_15_9747.jpg', 2), ('/home/nano/Desktop/images/18082025/10/46/image_18082025_10_47_05_10755.jpg', 2), ('/home/nano/Desktop/images/18082025/10/46/image_18082025_10_46_54_9698.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa627a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa627a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa627a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:48:03.192381
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/47/image_18082025_10_47_45_10732.jpg', 2), ('/home/nano/Desktop/images/18082025/10/47/image_18082025_10_47_34_9718.jpg', 2), ('/home/nano/Desktop/images/18082025/10/47/image_18082025_10_47_24_9713.jpg', 2), ('/home/nano/Desktop/images/18082025/10/47/image_18082025_10_47_15_9747.jpg', 2), ('/home/nano/Desktop/images/18082025/10/46/image_18082025_10_47_05_10755.jpg', 2), ('/home/nano/Desktop/images/18082025/10/46/image_18082025_10_46_54_9698.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91171518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91171518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91171518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:48:17.623841
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/48/image_18082025_10_48_44_9729.jpg', 2), ('/home/nano/Desktop/images/18082025/10/48/image_18082025_10_48_35_9744.jpg', 2), ('/home/nano/Desktop/images/18082025/10/48/image_18082025_10_48_25_10764.jpg', 2), ('/home/nano/Desktop/images/18082025/10/48/image_18082025_10_48_14_9843.jpg', 2), ('/home/nano/Desktop/images/18082025/10/47/image_18082025_10_48_04_9731.jpg', 2), ('/home/nano/Desktop/images/18082025/10/47/image_18082025_10_47_55_9725.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb428f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb428f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb428f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:48:32.633207
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/48/image_18082025_10_48_44_9729.jpg', 2), ('/home/nano/Desktop/images/18082025/10/48/image_18082025_10_48_35_9744.jpg', 2), ('/home/nano/Desktop/images/18082025/10/48/image_18082025_10_48_25_10764.jpg', 2), ('/home/nano/Desktop/images/18082025/10/48/image_18082025_10_48_14_9843.jpg', 2), ('/home/nano/Desktop/images/18082025/10/47/image_18082025_10_48_04_9731.jpg', 2), ('/home/nano/Desktop/images/18082025/10/47/image_18082025_10_47_55_9725.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2cc8518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2cc8518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2cc8518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:48:47.645489
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/48/image_18082025_10_48_44_9729.jpg', 2), ('/home/nano/Desktop/images/18082025/10/48/image_18082025_10_48_35_9744.jpg', 2), ('/home/nano/Desktop/images/18082025/10/48/image_18082025_10_48_25_10764.jpg', 2), ('/home/nano/Desktop/images/18082025/10/48/image_18082025_10_48_14_9843.jpg', 2), ('/home/nano/Desktop/images/18082025/10/47/image_18082025_10_48_04_9731.jpg', 2), ('/home/nano/Desktop/images/18082025/10/47/image_18082025_10_47_55_9725.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82042518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82042518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82042518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:49:03.704752
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/48/image_18082025_10_48_44_9729.jpg', 2), ('/home/nano/Desktop/images/18082025/10/48/image_18082025_10_48_35_9744.jpg', 2), ('/home/nano/Desktop/images/18082025/10/48/image_18082025_10_48_25_10764.jpg', 2), ('/home/nano/Desktop/images/18082025/10/48/image_18082025_10_48_14_9843.jpg', 2), ('/home/nano/Desktop/images/18082025/10/47/image_18082025_10_48_04_9731.jpg', 2), ('/home/nano/Desktop/images/18082025/10/47/image_18082025_10_47_55_9725.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f956ca518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f956ca518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f956ca518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:49:17.737100
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/49/image_18082025_10_49_45_9716.jpg', 2), ('/home/nano/Desktop/images/18082025/10/49/image_18082025_10_49_35_10706.jpg', 2), ('/home/nano/Desktop/images/18082025/10/49/image_18082025_10_49_24_9713.jpg', 2), ('/home/nano/Desktop/images/18082025/10/49/image_18082025_10_49_15_9716.jpg', 2), ('/home/nano/Desktop/images/18082025/10/48/image_18082025_10_49_05_10733.jpg', 2), ('/home/nano/Desktop/images/18082025/10/48/image_18082025_10_48_54_9726.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d1ad518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d1ad518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d1ad518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:49:32.765222
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/49/image_18082025_10_49_45_9716.jpg', 2), ('/home/nano/Desktop/images/18082025/10/49/image_18082025_10_49_35_10706.jpg', 2), ('/home/nano/Desktop/images/18082025/10/49/image_18082025_10_49_24_9713.jpg', 2), ('/home/nano/Desktop/images/18082025/10/49/image_18082025_10_49_15_9716.jpg', 2), ('/home/nano/Desktop/images/18082025/10/48/image_18082025_10_49_05_10733.jpg', 2), ('/home/nano/Desktop/images/18082025/10/48/image_18082025_10_48_54_9726.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d5274a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d5274a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d5274a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:49:47.728380
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/49/image_18082025_10_49_45_9716.jpg', 2), ('/home/nano/Desktop/images/18082025/10/49/image_18082025_10_49_35_10706.jpg', 2), ('/home/nano/Desktop/images/18082025/10/49/image_18082025_10_49_24_9713.jpg', 2), ('/home/nano/Desktop/images/18082025/10/49/image_18082025_10_49_15_9716.jpg', 2), ('/home/nano/Desktop/images/18082025/10/48/image_18082025_10_49_05_10733.jpg', 2), ('/home/nano/Desktop/images/18082025/10/48/image_18082025_10_48_54_9726.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84b45518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84b45518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84b45518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:50:02.353301
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/49/image_18082025_10_49_45_9716.jpg', 2), ('/home/nano/Desktop/images/18082025/10/49/image_18082025_10_49_35_10706.jpg', 2), ('/home/nano/Desktop/images/18082025/10/49/image_18082025_10_49_24_9713.jpg', 2), ('/home/nano/Desktop/images/18082025/10/49/image_18082025_10_49_15_9716.jpg', 2), ('/home/nano/Desktop/images/18082025/10/48/image_18082025_10_49_05_10733.jpg', 2), ('/home/nano/Desktop/images/18082025/10/48/image_18082025_10_48_54_9726.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d73a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d73a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d73a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:50:16.828986
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/50/image_18082025_10_50_44_9725.jpg', 2), ('/home/nano/Desktop/images/18082025/10/50/image_18082025_10_50_34_9749.jpg', 2), ('/home/nano/Desktop/images/18082025/10/50/image_18082025_10_50_25_9822.jpg', 2), ('/home/nano/Desktop/images/18082025/10/50/image_18082025_10_50_15_10738.jpg', 2), ('/home/nano/Desktop/images/18082025/10/49/image_18082025_10_50_04_9716.jpg', 2), ('/home/nano/Desktop/images/18082025/10/49/image_18082025_10_49_54_9722.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ecf5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ecf5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ecf5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:50:31.837837
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/50/image_18082025_10_50_44_9725.jpg', 2), ('/home/nano/Desktop/images/18082025/10/50/image_18082025_10_50_34_9749.jpg', 2), ('/home/nano/Desktop/images/18082025/10/50/image_18082025_10_50_25_9822.jpg', 2), ('/home/nano/Desktop/images/18082025/10/50/image_18082025_10_50_15_10738.jpg', 2), ('/home/nano/Desktop/images/18082025/10/49/image_18082025_10_50_04_9716.jpg', 2), ('/home/nano/Desktop/images/18082025/10/49/image_18082025_10_49_54_9722.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faeef5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faeef5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faeef5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:50:46.813157
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/50/image_18082025_10_50_44_9725.jpg', 2), ('/home/nano/Desktop/images/18082025/10/50/image_18082025_10_50_34_9749.jpg', 2), ('/home/nano/Desktop/images/18082025/10/50/image_18082025_10_50_25_9822.jpg', 2), ('/home/nano/Desktop/images/18082025/10/50/image_18082025_10_50_15_10738.jpg', 2), ('/home/nano/Desktop/images/18082025/10/49/image_18082025_10_50_04_9716.jpg', 2), ('/home/nano/Desktop/images/18082025/10/49/image_18082025_10_49_54_9722.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6b2c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6b2c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6b2c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:51:02.571960
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/50/image_18082025_10_50_44_9725.jpg', 2), ('/home/nano/Desktop/images/18082025/10/50/image_18082025_10_50_34_9749.jpg', 2), ('/home/nano/Desktop/images/18082025/10/50/image_18082025_10_50_25_9822.jpg', 2), ('/home/nano/Desktop/images/18082025/10/50/image_18082025_10_50_15_10738.jpg', 2), ('/home/nano/Desktop/images/18082025/10/49/image_18082025_10_50_04_9716.jpg', 2), ('/home/nano/Desktop/images/18082025/10/49/image_18082025_10_49_54_9722.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89c24518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89c24518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89c24518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:51:16.895156
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/51/image_18082025_10_51_44_9675.jpg', 2), ('/home/nano/Desktop/images/18082025/10/51/image_18082025_10_51_35_10725.jpg', 2), ('/home/nano/Desktop/images/18082025/10/51/image_18082025_10_51_24_9742.jpg', 2), ('/home/nano/Desktop/images/18082025/10/51/image_18082025_10_51_14_9745.jpg', 2), ('/home/nano/Desktop/images/18082025/10/50/image_18082025_10_51_05_9756.jpg', 2), ('/home/nano/Desktop/images/18082025/10/50/image_18082025_10_50_55_10709.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84a604a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84a604a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84a604a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:51:31.925490
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/51/image_18082025_10_51_44_9675.jpg', 2), ('/home/nano/Desktop/images/18082025/10/51/image_18082025_10_51_35_10725.jpg', 2), ('/home/nano/Desktop/images/18082025/10/51/image_18082025_10_51_24_9742.jpg', 2), ('/home/nano/Desktop/images/18082025/10/51/image_18082025_10_51_14_9745.jpg', 2), ('/home/nano/Desktop/images/18082025/10/50/image_18082025_10_51_05_9756.jpg', 2), ('/home/nano/Desktop/images/18082025/10/50/image_18082025_10_50_55_10709.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f970b2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f970b2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f970b2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:51:46.920544
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/51/image_18082025_10_51_44_9675.jpg', 2), ('/home/nano/Desktop/images/18082025/10/51/image_18082025_10_51_35_10725.jpg', 2), ('/home/nano/Desktop/images/18082025/10/51/image_18082025_10_51_24_9742.jpg', 2), ('/home/nano/Desktop/images/18082025/10/51/image_18082025_10_51_14_9745.jpg', 2), ('/home/nano/Desktop/images/18082025/10/50/image_18082025_10_51_05_9756.jpg', 2), ('/home/nano/Desktop/images/18082025/10/50/image_18082025_10_50_55_10709.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d973518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d973518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d973518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:52:02.566092
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/51/image_18082025_10_51_44_9675.jpg', 2), ('/home/nano/Desktop/images/18082025/10/51/image_18082025_10_51_35_10725.jpg', 2), ('/home/nano/Desktop/images/18082025/10/51/image_18082025_10_51_24_9742.jpg', 2), ('/home/nano/Desktop/images/18082025/10/51/image_18082025_10_51_14_9745.jpg', 2), ('/home/nano/Desktop/images/18082025/10/50/image_18082025_10_51_05_9756.jpg', 2), ('/home/nano/Desktop/images/18082025/10/50/image_18082025_10_50_55_10709.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ad31518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ad31518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ad31518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:52:17.058956
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/52/image_18082025_10_52_45_10750.jpg', 2), ('/home/nano/Desktop/images/18082025/10/52/image_18082025_10_52_34_9761.jpg', 2), ('/home/nano/Desktop/images/18082025/10/52/image_18082025_10_52_24_9727.jpg', 2), ('/home/nano/Desktop/images/18082025/10/52/image_18082025_10_52_15_9740.jpg', 2), ('/home/nano/Desktop/images/18082025/10/51/image_18082025_10_52_05_10731.jpg', 2), ('/home/nano/Desktop/images/18082025/10/51/image_18082025_10_51_54_9729.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f93b154a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93b154a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f93b154a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:52:32.051265
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/52/image_18082025_10_52_45_10750.jpg', 2), ('/home/nano/Desktop/images/18082025/10/52/image_18082025_10_52_34_9761.jpg', 2), ('/home/nano/Desktop/images/18082025/10/52/image_18082025_10_52_24_9727.jpg', 2), ('/home/nano/Desktop/images/18082025/10/52/image_18082025_10_52_15_9740.jpg', 2), ('/home/nano/Desktop/images/18082025/10/51/image_18082025_10_52_05_10731.jpg', 2), ('/home/nano/Desktop/images/18082025/10/51/image_18082025_10_51_54_9729.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9769c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9769c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9769c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:52:47.027674
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/52/image_18082025_10_52_45_10750.jpg', 2), ('/home/nano/Desktop/images/18082025/10/52/image_18082025_10_52_34_9761.jpg', 2), ('/home/nano/Desktop/images/18082025/10/52/image_18082025_10_52_24_9727.jpg', 2), ('/home/nano/Desktop/images/18082025/10/52/image_18082025_10_52_15_9740.jpg', 2), ('/home/nano/Desktop/images/18082025/10/51/image_18082025_10_52_05_10731.jpg', 2), ('/home/nano/Desktop/images/18082025/10/51/image_18082025_10_51_54_9729.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7aa1f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7aa1f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7aa1f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:53:02.898636
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/53/image_18082025_10_53_24_9723.jpg', 2), ('/home/nano/Desktop/images/18082025/10/52/image_18082025_10_52_45_10750.jpg', 2), ('/home/nano/Desktop/images/18082025/10/52/image_18082025_10_52_34_9761.jpg', 2), ('/home/nano/Desktop/images/18082025/10/52/image_18082025_10_52_24_9727.jpg', 2), ('/home/nano/Desktop/images/18082025/10/52/image_18082025_10_52_15_9740.jpg', 2), ('/home/nano/Desktop/images/18082025/10/51/image_18082025_10_52_05_10731.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab221518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab221518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab221518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:53:17.154181
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/53/image_18082025_10_53_44_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/10/53/image_18082025_10_53_35_10681.jpg', 2), ('/home/nano/Desktop/images/18082025/10/53/image_18082025_10_53_24_9723.jpg', 2), ('/home/nano/Desktop/images/18082025/10/53/image_18082025_10_53_14_9820.jpg', 2), ('/home/nano/Desktop/images/18082025/10/52/image_18082025_10_53_05_9808.jpg', 2), ('/home/nano/Desktop/images/18082025/10/52/image_18082025_10_52_55_9817.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8b32a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b32a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8b32a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:53:32.118516
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/53/image_18082025_10_53_44_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/10/53/image_18082025_10_53_35_10681.jpg', 2), ('/home/nano/Desktop/images/18082025/10/53/image_18082025_10_53_24_9723.jpg', 2), ('/home/nano/Desktop/images/18082025/10/53/image_18082025_10_53_14_9820.jpg', 2), ('/home/nano/Desktop/images/18082025/10/52/image_18082025_10_53_05_9808.jpg', 2), ('/home/nano/Desktop/images/18082025/10/52/image_18082025_10_52_55_9817.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab8684a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab8684a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab8684a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:53:47.133900
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/53/image_18082025_10_53_44_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/10/53/image_18082025_10_53_35_10681.jpg', 2), ('/home/nano/Desktop/images/18082025/10/53/image_18082025_10_53_24_9723.jpg', 2), ('/home/nano/Desktop/images/18082025/10/53/image_18082025_10_53_14_9820.jpg', 2), ('/home/nano/Desktop/images/18082025/10/52/image_18082025_10_53_05_9808.jpg', 2), ('/home/nano/Desktop/images/18082025/10/52/image_18082025_10_52_55_9817.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e248518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e248518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e248518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:54:03.116715
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/53/image_18082025_10_53_44_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/10/53/image_18082025_10_53_35_10681.jpg', 2), ('/home/nano/Desktop/images/18082025/10/53/image_18082025_10_53_24_9723.jpg', 2), ('/home/nano/Desktop/images/18082025/10/53/image_18082025_10_53_14_9820.jpg', 2), ('/home/nano/Desktop/images/18082025/10/52/image_18082025_10_53_05_9808.jpg', 2), ('/home/nano/Desktop/images/18082025/10/52/image_18082025_10_52_55_9817.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9aece518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9aece518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9aece518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:54:17.237517
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/54/image_18082025_10_54_44_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/10/54/image_18082025_10_54_35_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/10/54/image_18082025_10_54_25_10634.jpg', 2), ('/home/nano/Desktop/images/18082025/10/54/image_18082025_10_54_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/10/53/image_18082025_10_54_05_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/10/53/image_18082025_10_53_55_10623.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91d53518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91d53518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91d53518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:54:32.256140
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/54/image_18082025_10_54_44_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/10/54/image_18082025_10_54_35_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/10/54/image_18082025_10_54_25_10634.jpg', 2), ('/home/nano/Desktop/images/18082025/10/54/image_18082025_10_54_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/10/53/image_18082025_10_54_05_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/10/53/image_18082025_10_53_55_10623.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f467518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f467518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f467518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:54:47.242852
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/54/image_18082025_10_54_44_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/10/54/image_18082025_10_54_35_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/10/54/image_18082025_10_54_25_10634.jpg', 2), ('/home/nano/Desktop/images/18082025/10/54/image_18082025_10_54_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/10/53/image_18082025_10_54_05_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/10/53/image_18082025_10_53_55_10623.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f904f5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f904f5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f904f5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:55:03.031379
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/54/image_18082025_10_54_44_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/10/54/image_18082025_10_54_35_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/10/54/image_18082025_10_54_25_10634.jpg', 2), ('/home/nano/Desktop/images/18082025/10/54/image_18082025_10_54_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/10/53/image_18082025_10_54_05_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/10/53/image_18082025_10_53_55_10623.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c3b9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c3b9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c3b9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:55:17.351963
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/55/image_18082025_10_55_45_10622.jpg', 2), ('/home/nano/Desktop/images/18082025/10/55/image_18082025_10_55_34_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/10/55/image_18082025_10_55_25_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/10/55/image_18082025_10_55_14_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/10/54/image_18082025_10_55_04_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/10/54/image_18082025_10_54_55_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d634518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d634518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d634518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:55:32.356568
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/55/image_18082025_10_55_45_10622.jpg', 2), ('/home/nano/Desktop/images/18082025/10/55/image_18082025_10_55_34_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/10/55/image_18082025_10_55_25_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/10/55/image_18082025_10_55_14_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/10/54/image_18082025_10_55_04_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/10/54/image_18082025_10_54_55_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8792d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8792d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8792d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:55:47.363582
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/55/image_18082025_10_55_45_10622.jpg', 2), ('/home/nano/Desktop/images/18082025/10/55/image_18082025_10_55_34_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/10/55/image_18082025_10_55_25_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/10/55/image_18082025_10_55_14_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/10/54/image_18082025_10_55_04_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/10/54/image_18082025_10_54_55_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ab52518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ab52518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ab52518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:56:03.042660
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/55/image_18082025_10_55_45_10622.jpg', 2), ('/home/nano/Desktop/images/18082025/10/55/image_18082025_10_55_34_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/10/55/image_18082025_10_55_25_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/10/55/image_18082025_10_55_14_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/10/54/image_18082025_10_55_04_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/10/54/image_18082025_10_54_55_10650.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2235518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2235518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2235518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:56:17.488305
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/56/image_18082025_10_56_45_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/10/56/image_18082025_10_56_34_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/10/56/image_18082025_10_56_24_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/10/56/image_18082025_10_56_15_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/10/55/image_18082025_10_56_04_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/10/55/image_18082025_10_55_55_9610.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7784a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7784a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7784a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:56:32.462149
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/56/image_18082025_10_56_45_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/10/56/image_18082025_10_56_34_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/10/56/image_18082025_10_56_24_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/10/56/image_18082025_10_56_15_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/10/55/image_18082025_10_56_04_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/10/55/image_18082025_10_55_55_9610.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab4d74a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab4d74a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab4d74a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:56:47.479153
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/56/image_18082025_10_56_45_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/10/56/image_18082025_10_56_34_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/10/56/image_18082025_10_56_24_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/10/56/image_18082025_10_56_15_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/10/55/image_18082025_10_56_04_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/10/55/image_18082025_10_55_55_9610.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98fd3518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98fd3518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98fd3518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:57:03.111231
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/56/image_18082025_10_56_45_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/10/56/image_18082025_10_56_34_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/10/56/image_18082025_10_56_24_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/10/56/image_18082025_10_56_15_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/10/55/image_18082025_10_56_04_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/10/55/image_18082025_10_55_55_9610.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7933a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7933a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7933a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:57:17.568630
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/57/image_18082025_10_57_45_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/10/57/image_18082025_10_57_35_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/10/57/image_18082025_10_57_24_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/10/57/image_18082025_10_57_15_9685.jpg', 2), ('/home/nano/Desktop/images/18082025/10/56/image_18082025_10_57_05_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/10/56/image_18082025_10_56_54_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faec1d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faec1d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faec1d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:57:32.594772
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/57/image_18082025_10_57_45_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/10/57/image_18082025_10_57_35_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/10/57/image_18082025_10_57_24_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/10/57/image_18082025_10_57_15_9685.jpg', 2), ('/home/nano/Desktop/images/18082025/10/56/image_18082025_10_57_05_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/10/56/image_18082025_10_56_54_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f375518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f375518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f375518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:57:47.582636
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/57/image_18082025_10_57_45_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/10/57/image_18082025_10_57_35_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/10/57/image_18082025_10_57_24_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/10/57/image_18082025_10_57_15_9685.jpg', 2), ('/home/nano/Desktop/images/18082025/10/56/image_18082025_10_57_05_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/10/56/image_18082025_10_56_54_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7707e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7707e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7707e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:58:03.056471
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/57/image_18082025_10_57_45_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/10/57/image_18082025_10_57_35_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/10/57/image_18082025_10_57_24_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/10/57/image_18082025_10_57_15_9685.jpg', 2), ('/home/nano/Desktop/images/18082025/10/56/image_18082025_10_57_05_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/10/56/image_18082025_10_56_54_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1255518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1255518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1255518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:59:03.274856
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/57/image_18082025_10_57_45_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/10/57/image_18082025_10_57_35_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/10/57/image_18082025_10_57_24_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/10/57/image_18082025_10_57_15_9685.jpg', 2), ('/home/nano/Desktop/images/18082025/10/56/image_18082025_10_57_05_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/10/56/image_18082025_10_56_54_9619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89dc74a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89dc74a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89dc74a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:59:17.363496
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/59/image_18082025_10_59_45_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/10/59/image_18082025_10_59_35_10703.jpg', 2), ('/home/nano/Desktop/images/18082025/10/59/image_18082025_10_59_24_9685.jpg', 2), ('/home/nano/Desktop/images/18082025/10/59/image_18082025_10_59_15_9689.jpg', 2), ('/home/nano/Desktop/images/18082025/10/58/image_18082025_10_59_05_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/10/58/image_18082025_10_58_54_9718.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb609f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb609f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb609f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:59:32.360809
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/59/image_18082025_10_59_45_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/10/59/image_18082025_10_59_35_10703.jpg', 2), ('/home/nano/Desktop/images/18082025/10/59/image_18082025_10_59_24_9685.jpg', 2), ('/home/nano/Desktop/images/18082025/10/59/image_18082025_10_59_15_9689.jpg', 2), ('/home/nano/Desktop/images/18082025/10/58/image_18082025_10_59_05_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/10/58/image_18082025_10_58_54_9718.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f3e2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f3e2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f3e2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 10:59:47.307571
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/59/image_18082025_10_59_45_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/10/59/image_18082025_10_59_35_10703.jpg', 2), ('/home/nano/Desktop/images/18082025/10/59/image_18082025_10_59_24_9685.jpg', 2), ('/home/nano/Desktop/images/18082025/10/59/image_18082025_10_59_15_9689.jpg', 2), ('/home/nano/Desktop/images/18082025/10/58/image_18082025_10_59_05_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/10/58/image_18082025_10_58_54_9718.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb59af4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb59af4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb59af4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:00:02.984740
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/59/image_18082025_10_59_45_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/10/59/image_18082025_10_59_35_10703.jpg', 2), ('/home/nano/Desktop/images/18082025/10/59/image_18082025_10_59_24_9685.jpg', 2), ('/home/nano/Desktop/images/18082025/10/59/image_18082025_10_59_15_9689.jpg', 2), ('/home/nano/Desktop/images/18082025/10/58/image_18082025_10_59_05_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/10/58/image_18082025_10_58_54_9718.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7ae9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7ae9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7ae9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:00:17.416188
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/00/image_18082025_11_00_45_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/11/00/image_18082025_11_00_35_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/11/00/image_18082025_11_00_24_9727.jpg', 2), ('/home/nano/Desktop/images/18082025/11/00/image_18082025_11_00_15_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/10/59/image_18082025_11_00_05_10720.jpg', 2), ('/home/nano/Desktop/images/18082025/10/59/image_18082025_10_59_54_9653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0b00518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0b00518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0b00518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:00:32.397960
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/00/image_18082025_11_00_45_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/11/00/image_18082025_11_00_35_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/11/00/image_18082025_11_00_24_9727.jpg', 2), ('/home/nano/Desktop/images/18082025/11/00/image_18082025_11_00_15_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/10/59/image_18082025_11_00_05_10720.jpg', 2), ('/home/nano/Desktop/images/18082025/10/59/image_18082025_10_59_54_9653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f85e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f85e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f85e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:00:47.400592
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/00/image_18082025_11_00_45_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/11/00/image_18082025_11_00_35_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/11/00/image_18082025_11_00_24_9727.jpg', 2), ('/home/nano/Desktop/images/18082025/11/00/image_18082025_11_00_15_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/10/59/image_18082025_11_00_05_10720.jpg', 2), ('/home/nano/Desktop/images/18082025/10/59/image_18082025_10_59_54_9653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa1180518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1180518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa1180518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:01:03.287647
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/00/image_18082025_11_00_45_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/11/00/image_18082025_11_00_35_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/11/00/image_18082025_11_00_24_9727.jpg', 2), ('/home/nano/Desktop/images/18082025/11/00/image_18082025_11_00_15_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/10/59/image_18082025_11_00_05_10720.jpg', 2), ('/home/nano/Desktop/images/18082025/10/59/image_18082025_10_59_54_9653.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8af64518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8af64518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8af64518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:01:17.503348
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/01/image_18082025_11_01_45_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/11/01/image_18082025_11_01_34_9708.jpg', 2), ('/home/nano/Desktop/images/18082025/11/01/image_18082025_11_01_24_9703.jpg', 2), ('/home/nano/Desktop/images/18082025/11/01/image_18082025_11_01_15_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/11/00/image_18082025_11_01_05_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/11/00/image_18082025_11_00_54_9647.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f775714a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f775714a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f775714a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:01:32.506502
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/01/image_18082025_11_01_45_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/11/01/image_18082025_11_01_34_9708.jpg', 2), ('/home/nano/Desktop/images/18082025/11/01/image_18082025_11_01_24_9703.jpg', 2), ('/home/nano/Desktop/images/18082025/11/01/image_18082025_11_01_15_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/11/00/image_18082025_11_01_05_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/11/00/image_18082025_11_00_54_9647.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9707e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9707e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9707e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:01:47.514103
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/01/image_18082025_11_01_45_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/11/01/image_18082025_11_01_34_9708.jpg', 2), ('/home/nano/Desktop/images/18082025/11/01/image_18082025_11_01_24_9703.jpg', 2), ('/home/nano/Desktop/images/18082025/11/01/image_18082025_11_01_15_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/11/00/image_18082025_11_01_05_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/11/00/image_18082025_11_00_54_9647.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f87ead518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87ead518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f87ead518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:02:03.150640
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/02/image_18082025_11_02_34_9732.jpg', 2), ('/home/nano/Desktop/images/18082025/11/01/image_18082025_11_01_45_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/11/01/image_18082025_11_01_34_9708.jpg', 2), ('/home/nano/Desktop/images/18082025/11/01/image_18082025_11_01_24_9703.jpg', 2), ('/home/nano/Desktop/images/18082025/11/01/image_18082025_11_01_15_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/11/00/image_18082025_11_01_05_10669.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4a4f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4a4f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4a4f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:02:17.633110
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/02/image_18082025_11_02_45_10756.jpg', 2), ('/home/nano/Desktop/images/18082025/11/02/image_18082025_11_02_34_9732.jpg', 2), ('/home/nano/Desktop/images/18082025/11/02/image_18082025_11_02_24_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/11/02/image_18082025_11_02_15_9788.jpg', 2), ('/home/nano/Desktop/images/18082025/11/01/image_18082025_11_02_05_10684.jpg', 2), ('/home/nano/Desktop/images/18082025/11/01/image_18082025_11_01_54_9680.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6fbe518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6fbe518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6fbe518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:02:32.613764
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/02/image_18082025_11_02_45_10756.jpg', 2), ('/home/nano/Desktop/images/18082025/11/02/image_18082025_11_02_34_9732.jpg', 2), ('/home/nano/Desktop/images/18082025/11/02/image_18082025_11_02_24_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/11/02/image_18082025_11_02_15_9788.jpg', 2), ('/home/nano/Desktop/images/18082025/11/01/image_18082025_11_02_05_10684.jpg', 2), ('/home/nano/Desktop/images/18082025/11/01/image_18082025_11_01_54_9680.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faaaf3518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faaaf3518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faaaf3518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:02:47.625558
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/02/image_18082025_11_02_45_10756.jpg', 2), ('/home/nano/Desktop/images/18082025/11/02/image_18082025_11_02_34_9732.jpg', 2), ('/home/nano/Desktop/images/18082025/11/02/image_18082025_11_02_24_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/11/02/image_18082025_11_02_15_9788.jpg', 2), ('/home/nano/Desktop/images/18082025/11/01/image_18082025_11_02_05_10684.jpg', 2), ('/home/nano/Desktop/images/18082025/11/01/image_18082025_11_01_54_9680.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3dc6518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3dc6518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3dc6518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:03:03.285216
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/02/image_18082025_11_02_45_10756.jpg', 2), ('/home/nano/Desktop/images/18082025/11/02/image_18082025_11_02_34_9732.jpg', 2), ('/home/nano/Desktop/images/18082025/11/02/image_18082025_11_02_24_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/11/02/image_18082025_11_02_15_9788.jpg', 2), ('/home/nano/Desktop/images/18082025/11/01/image_18082025_11_02_05_10684.jpg', 2), ('/home/nano/Desktop/images/18082025/11/01/image_18082025_11_01_54_9680.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb5a44518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5a44518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb5a44518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:03:17.694674
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/03/image_18082025_11_03_44_9717.jpg', 2), ('/home/nano/Desktop/images/18082025/11/03/image_18082025_11_03_35_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/11/03/image_18082025_11_03_25_10741.jpg', 2), ('/home/nano/Desktop/images/18082025/11/03/image_18082025_11_03_14_9676.jpg', 2), ('/home/nano/Desktop/images/18082025/11/02/image_18082025_11_03_05_9760.jpg', 2), ('/home/nano/Desktop/images/18082025/11/02/image_18082025_11_02_55_9752.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f943c8518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f943c8518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f943c8518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:03:32.725310
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/03/image_18082025_11_03_44_9717.jpg', 2), ('/home/nano/Desktop/images/18082025/11/03/image_18082025_11_03_35_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/11/03/image_18082025_11_03_25_10741.jpg', 2), ('/home/nano/Desktop/images/18082025/11/03/image_18082025_11_03_14_9676.jpg', 2), ('/home/nano/Desktop/images/18082025/11/02/image_18082025_11_03_05_9760.jpg', 2), ('/home/nano/Desktop/images/18082025/11/02/image_18082025_11_02_55_9752.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2b2a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2b2a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2b2a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:03:47.703828
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/03/image_18082025_11_03_44_9717.jpg', 2), ('/home/nano/Desktop/images/18082025/11/03/image_18082025_11_03_35_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/11/03/image_18082025_11_03_25_10741.jpg', 2), ('/home/nano/Desktop/images/18082025/11/03/image_18082025_11_03_14_9676.jpg', 2), ('/home/nano/Desktop/images/18082025/11/02/image_18082025_11_03_05_9760.jpg', 2), ('/home/nano/Desktop/images/18082025/11/02/image_18082025_11_02_55_9752.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86538518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86538518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86538518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:04:02.670588
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/03/image_18082025_11_03_44_9717.jpg', 2), ('/home/nano/Desktop/images/18082025/11/03/image_18082025_11_03_35_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/11/03/image_18082025_11_03_25_10741.jpg', 2), ('/home/nano/Desktop/images/18082025/11/03/image_18082025_11_03_14_9676.jpg', 2), ('/home/nano/Desktop/images/18082025/11/02/image_18082025_11_03_05_9760.jpg', 2), ('/home/nano/Desktop/images/18082025/11/02/image_18082025_11_02_55_9752.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88bd5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88bd5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88bd5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:04:16.787542
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/04/image_18082025_11_04_45_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/11/04/image_18082025_11_04_35_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/11/04/image_18082025_11_04_24_9714.jpg', 2), ('/home/nano/Desktop/images/18082025/11/04/image_18082025_11_04_15_9760.jpg', 2), ('/home/nano/Desktop/images/18082025/11/03/image_18082025_11_04_05_9737.jpg', 2), ('/home/nano/Desktop/images/18082025/11/03/image_18082025_11_03_55_10739.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f543518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f543518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f543518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:04:31.823085
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/04/image_18082025_11_04_45_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/11/04/image_18082025_11_04_35_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/11/04/image_18082025_11_04_24_9714.jpg', 2), ('/home/nano/Desktop/images/18082025/11/04/image_18082025_11_04_15_9760.jpg', 2), ('/home/nano/Desktop/images/18082025/11/03/image_18082025_11_04_05_9737.jpg', 2), ('/home/nano/Desktop/images/18082025/11/03/image_18082025_11_03_55_10739.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf393550>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf393550>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf393550>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:04:46.792152
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/04/image_18082025_11_04_45_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/11/04/image_18082025_11_04_35_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/11/04/image_18082025_11_04_24_9714.jpg', 2), ('/home/nano/Desktop/images/18082025/11/04/image_18082025_11_04_15_9760.jpg', 2), ('/home/nano/Desktop/images/18082025/11/03/image_18082025_11_04_05_9737.jpg', 2), ('/home/nano/Desktop/images/18082025/11/03/image_18082025_11_03_55_10739.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9292a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9292a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9292a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:05:02.433578
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/04/image_18082025_11_04_45_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/11/04/image_18082025_11_04_35_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/11/04/image_18082025_11_04_24_9714.jpg', 2), ('/home/nano/Desktop/images/18082025/11/04/image_18082025_11_04_15_9760.jpg', 2), ('/home/nano/Desktop/images/18082025/11/03/image_18082025_11_04_05_9737.jpg', 2), ('/home/nano/Desktop/images/18082025/11/03/image_18082025_11_03_55_10739.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81fb7518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81fb7518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81fb7518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:05:16.900111
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/05/image_18082025_11_05_45_10616.jpg', 2), ('/home/nano/Desktop/images/18082025/11/05/image_18082025_11_05_34_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/11/05/image_18082025_11_05_24_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/11/05/image_18082025_11_05_15_9791.jpg', 2), ('/home/nano/Desktop/images/18082025/11/04/image_18082025_11_05_05_10755.jpg', 2), ('/home/nano/Desktop/images/18082025/11/04/image_18082025_11_04_54_9734.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9cb7e4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cb7e4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9cb7e4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:05:31.874147
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/05/image_18082025_11_05_45_10616.jpg', 2), ('/home/nano/Desktop/images/18082025/11/05/image_18082025_11_05_34_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/11/05/image_18082025_11_05_24_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/11/05/image_18082025_11_05_15_9791.jpg', 2), ('/home/nano/Desktop/images/18082025/11/04/image_18082025_11_05_05_10755.jpg', 2), ('/home/nano/Desktop/images/18082025/11/04/image_18082025_11_04_54_9734.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a576518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a576518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a576518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:05:46.877208
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/05/image_18082025_11_05_45_10616.jpg', 2), ('/home/nano/Desktop/images/18082025/11/05/image_18082025_11_05_34_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/11/05/image_18082025_11_05_24_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/11/05/image_18082025_11_05_15_9791.jpg', 2), ('/home/nano/Desktop/images/18082025/11/04/image_18082025_11_05_05_10755.jpg', 2), ('/home/nano/Desktop/images/18082025/11/04/image_18082025_11_04_54_9734.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f89361518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89361518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f89361518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:06:02.552678
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/05/image_18082025_11_05_45_10616.jpg', 2), ('/home/nano/Desktop/images/18082025/11/05/image_18082025_11_05_34_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/11/05/image_18082025_11_05_24_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/11/05/image_18082025_11_05_15_9791.jpg', 2), ('/home/nano/Desktop/images/18082025/11/04/image_18082025_11_05_05_10755.jpg', 2), ('/home/nano/Desktop/images/18082025/11/04/image_18082025_11_04_54_9734.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f784b2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f784b2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f784b2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:06:16.976924
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/06/image_18082025_11_06_45_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/11/06/image_18082025_11_06_35_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/11/06/image_18082025_11_06_24_9704.jpg', 2), ('/home/nano/Desktop/images/18082025/11/06/image_18082025_11_06_15_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/11/05/image_18082025_11_06_05_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/11/05/image_18082025_11_05_54_9676.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e7ee518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e7ee518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e7ee518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:06:31.986547
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/06/image_18082025_11_06_45_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/11/06/image_18082025_11_06_35_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/11/06/image_18082025_11_06_24_9704.jpg', 2), ('/home/nano/Desktop/images/18082025/11/06/image_18082025_11_06_15_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/11/05/image_18082025_11_06_05_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/11/05/image_18082025_11_05_54_9676.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2c47518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2c47518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2c47518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:06:47.015028
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/06/image_18082025_11_06_45_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/11/06/image_18082025_11_06_35_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/11/06/image_18082025_11_06_24_9704.jpg', 2), ('/home/nano/Desktop/images/18082025/11/06/image_18082025_11_06_15_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/11/05/image_18082025_11_06_05_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/11/05/image_18082025_11_05_54_9676.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faff26518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faff26518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faff26518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:07:02.854513
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/06/image_18082025_11_06_45_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/11/06/image_18082025_11_06_35_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/11/06/image_18082025_11_06_24_9704.jpg', 2), ('/home/nano/Desktop/images/18082025/11/06/image_18082025_11_06_15_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/11/05/image_18082025_11_06_05_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/11/05/image_18082025_11_05_54_9676.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83dde518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83dde518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83dde518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:07:17.155511
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/07/image_18082025_11_07_45_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/11/07/image_18082025_11_07_35_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/11/07/image_18082025_11_07_24_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/11/07/image_18082025_11_07_15_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/11/06/image_18082025_11_07_05_10744.jpg', 2), ('/home/nano/Desktop/images/18082025/11/06/image_18082025_11_06_54_9630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9581a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9581a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9581a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:07:32.091572
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/07/image_18082025_11_07_45_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/11/07/image_18082025_11_07_35_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/11/07/image_18082025_11_07_24_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/11/07/image_18082025_11_07_15_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/11/06/image_18082025_11_07_05_10744.jpg', 2), ('/home/nano/Desktop/images/18082025/11/06/image_18082025_11_06_54_9630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6aae518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6aae518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6aae518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:07:47.105897
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/07/image_18082025_11_07_45_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/11/07/image_18082025_11_07_35_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/11/07/image_18082025_11_07_24_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/11/07/image_18082025_11_07_15_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/11/06/image_18082025_11_07_05_10744.jpg', 2), ('/home/nano/Desktop/images/18082025/11/06/image_18082025_11_06_54_9630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9e2274a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e2274a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9e2274a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:08:02.769178
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/07/image_18082025_11_07_45_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/11/07/image_18082025_11_07_35_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/11/07/image_18082025_11_07_24_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/11/07/image_18082025_11_07_15_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/11/06/image_18082025_11_07_05_10744.jpg', 2), ('/home/nano/Desktop/images/18082025/11/06/image_18082025_11_06_54_9630.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f827ce518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f827ce518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f827ce518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:08:17.209806
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/08/image_18082025_11_08_45_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/11/08/image_18082025_11_08_35_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/11/08/image_18082025_11_08_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/11/08/image_18082025_11_08_15_9680.jpg', 2), ('/home/nano/Desktop/images/18082025/11/07/image_18082025_11_08_05_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/11/07/image_18082025_11_07_54_9633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9bc1e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bc1e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bc1e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:08:32.243748
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/08/image_18082025_11_08_45_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/11/08/image_18082025_11_08_35_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/11/08/image_18082025_11_08_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/11/08/image_18082025_11_08_15_9680.jpg', 2), ('/home/nano/Desktop/images/18082025/11/07/image_18082025_11_08_05_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/11/07/image_18082025_11_07_54_9633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95ef9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95ef9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95ef9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:08:47.181492
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/08/image_18082025_11_08_45_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/11/08/image_18082025_11_08_35_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/11/08/image_18082025_11_08_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/11/08/image_18082025_11_08_15_9680.jpg', 2), ('/home/nano/Desktop/images/18082025/11/07/image_18082025_11_08_05_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/11/07/image_18082025_11_07_54_9633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f816ef518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f816ef518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f816ef518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:09:03.174954
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/08/image_18082025_11_08_45_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/11/08/image_18082025_11_08_35_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/11/08/image_18082025_11_08_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/11/08/image_18082025_11_08_15_9680.jpg', 2), ('/home/nano/Desktop/images/18082025/11/07/image_18082025_11_08_05_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/11/07/image_18082025_11_07_54_9633.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d3be518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d3be518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d3be518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:09:17.327647
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/09/image_18082025_11_09_44_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/11/09/image_18082025_11_09_35_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/11/09/image_18082025_11_09_24_9670.jpg', 2), ('/home/nano/Desktop/images/18082025/11/09/image_18082025_11_09_15_9697.jpg', 2), ('/home/nano/Desktop/images/18082025/11/08/image_18082025_11_09_05_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/11/08/image_18082025_11_08_54_9674.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ad0a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ad0a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ad0a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:09:32.312338
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/09/image_18082025_11_09_44_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/11/09/image_18082025_11_09_35_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/11/09/image_18082025_11_09_24_9670.jpg', 2), ('/home/nano/Desktop/images/18082025/11/09/image_18082025_11_09_15_9697.jpg', 2), ('/home/nano/Desktop/images/18082025/11/08/image_18082025_11_09_05_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/11/08/image_18082025_11_08_54_9674.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb3790518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3790518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb3790518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:09:47.301879
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/09/image_18082025_11_09_44_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/11/09/image_18082025_11_09_35_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/11/09/image_18082025_11_09_24_9670.jpg', 2), ('/home/nano/Desktop/images/18082025/11/09/image_18082025_11_09_15_9697.jpg', 2), ('/home/nano/Desktop/images/18082025/11/08/image_18082025_11_09_05_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/11/08/image_18082025_11_08_54_9674.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb1763518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1763518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb1763518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:10:02.989122
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/09/image_18082025_11_09_44_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/11/09/image_18082025_11_09_35_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/11/09/image_18082025_11_09_24_9670.jpg', 2), ('/home/nano/Desktop/images/18082025/11/09/image_18082025_11_09_15_9697.jpg', 2), ('/home/nano/Desktop/images/18082025/11/08/image_18082025_11_09_05_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/11/08/image_18082025_11_08_54_9674.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85825518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85825518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85825518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:10:17.374900
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/10/image_18082025_11_10_45_9666.jpg', 2), ('/home/nano/Desktop/images/18082025/11/10/image_18082025_11_10_35_10693.jpg', 2), ('/home/nano/Desktop/images/18082025/11/10/image_18082025_11_10_24_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/11/10/image_18082025_11_10_15_9670.jpg', 2), ('/home/nano/Desktop/images/18082025/11/09/image_18082025_11_10_05_10697.jpg', 2), ('/home/nano/Desktop/images/18082025/11/09/image_18082025_11_09_54_9656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9fb67518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fb67518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fb67518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:10:32.402897
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/10/image_18082025_11_10_45_9666.jpg', 2), ('/home/nano/Desktop/images/18082025/11/10/image_18082025_11_10_35_10693.jpg', 2), ('/home/nano/Desktop/images/18082025/11/10/image_18082025_11_10_24_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/11/10/image_18082025_11_10_15_9670.jpg', 2), ('/home/nano/Desktop/images/18082025/11/09/image_18082025_11_10_05_10697.jpg', 2), ('/home/nano/Desktop/images/18082025/11/09/image_18082025_11_09_54_9656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f850cf4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f850cf4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f850cf4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:10:47.413194
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/10/image_18082025_11_10_45_9666.jpg', 2), ('/home/nano/Desktop/images/18082025/11/10/image_18082025_11_10_35_10693.jpg', 2), ('/home/nano/Desktop/images/18082025/11/10/image_18082025_11_10_24_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/11/10/image_18082025_11_10_15_9670.jpg', 2), ('/home/nano/Desktop/images/18082025/11/09/image_18082025_11_10_05_10697.jpg', 2), ('/home/nano/Desktop/images/18082025/11/09/image_18082025_11_09_54_9656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c96c4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c96c4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c96c4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:11:03.128127
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/10/image_18082025_11_10_45_9666.jpg', 2), ('/home/nano/Desktop/images/18082025/11/10/image_18082025_11_10_35_10693.jpg', 2), ('/home/nano/Desktop/images/18082025/11/10/image_18082025_11_10_24_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/11/10/image_18082025_11_10_15_9670.jpg', 2), ('/home/nano/Desktop/images/18082025/11/09/image_18082025_11_10_05_10697.jpg', 2), ('/home/nano/Desktop/images/18082025/11/09/image_18082025_11_09_54_9656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e9d7518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e9d7518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e9d7518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:11:17.546828
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/11/image_18082025_11_11_45_9742.jpg', 2), ('/home/nano/Desktop/images/18082025/11/11/image_18082025_11_11_35_10743.jpg', 2), ('/home/nano/Desktop/images/18082025/11/11/image_18082025_11_11_24_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/11/11/image_18082025_11_11_15_9704.jpg', 2), ('/home/nano/Desktop/images/18082025/11/10/image_18082025_11_11_05_10692.jpg', 2), ('/home/nano/Desktop/images/18082025/11/10/image_18082025_11_10_54_9673.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7f0d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7f0d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7f0d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:11:32.511444
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/11/image_18082025_11_11_45_9742.jpg', 2), ('/home/nano/Desktop/images/18082025/11/11/image_18082025_11_11_35_10743.jpg', 2), ('/home/nano/Desktop/images/18082025/11/11/image_18082025_11_11_24_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/11/11/image_18082025_11_11_15_9704.jpg', 2), ('/home/nano/Desktop/images/18082025/11/10/image_18082025_11_11_05_10692.jpg', 2), ('/home/nano/Desktop/images/18082025/11/10/image_18082025_11_10_54_9673.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77da7518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77da7518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77da7518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:11:47.539838
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/11/image_18082025_11_11_45_9742.jpg', 2), ('/home/nano/Desktop/images/18082025/11/11/image_18082025_11_11_35_10743.jpg', 2), ('/home/nano/Desktop/images/18082025/11/11/image_18082025_11_11_24_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/11/11/image_18082025_11_11_15_9704.jpg', 2), ('/home/nano/Desktop/images/18082025/11/10/image_18082025_11_11_05_10692.jpg', 2), ('/home/nano/Desktop/images/18082025/11/10/image_18082025_11_10_54_9673.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f801ff518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f801ff518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f801ff518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:12:03.168001
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/11/image_18082025_11_11_45_9742.jpg', 2), ('/home/nano/Desktop/images/18082025/11/11/image_18082025_11_11_35_10743.jpg', 2), ('/home/nano/Desktop/images/18082025/11/11/image_18082025_11_11_24_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/11/11/image_18082025_11_11_15_9704.jpg', 2), ('/home/nano/Desktop/images/18082025/11/10/image_18082025_11_11_05_10692.jpg', 2), ('/home/nano/Desktop/images/18082025/11/10/image_18082025_11_10_54_9673.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab5a14a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab5a14a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab5a14a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:12:17.604606
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/12/image_18082025_11_12_45_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/11/12/image_18082025_11_12_35_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/11/12/image_18082025_11_12_24_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/11/12/image_18082025_11_12_15_9678.jpg', 2), ('/home/nano/Desktop/images/18082025/11/11/image_18082025_11_12_05_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/11/11/image_18082025_11_11_54_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98035518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98035518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98035518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:12:32.678573
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/12/image_18082025_11_12_45_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/11/12/image_18082025_11_12_35_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/11/12/image_18082025_11_12_24_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/11/12/image_18082025_11_12_15_9678.jpg', 2), ('/home/nano/Desktop/images/18082025/11/11/image_18082025_11_12_05_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/11/11/image_18082025_11_11_54_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8efcb518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8efcb518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8efcb518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:12:47.699182
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/12/image_18082025_11_12_45_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/11/12/image_18082025_11_12_35_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/11/12/image_18082025_11_12_24_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/11/12/image_18082025_11_12_15_9678.jpg', 2), ('/home/nano/Desktop/images/18082025/11/11/image_18082025_11_12_05_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/11/11/image_18082025_11_11_54_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb450b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb450b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb450b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:13:02.180228
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/12/image_18082025_11_12_45_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/11/12/image_18082025_11_12_35_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/11/12/image_18082025_11_12_24_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/11/12/image_18082025_11_12_15_9678.jpg', 2), ('/home/nano/Desktop/images/18082025/11/11/image_18082025_11_12_05_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/11/11/image_18082025_11_11_54_9642.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7dfd34a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7dfd34a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7dfd34a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:13:16.796733
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/13/image_18082025_11_13_45_9688.jpg', 2), ('/home/nano/Desktop/images/18082025/11/13/image_18082025_11_13_35_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/11/13/image_18082025_11_13_24_9698.jpg', 2), ('/home/nano/Desktop/images/18082025/11/13/image_18082025_11_13_15_9678.jpg', 2), ('/home/nano/Desktop/images/18082025/11/12/image_18082025_11_13_05_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/11/12/image_18082025_11_12_54_9649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faf9a1518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf9a1518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faf9a1518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:13:31.802560
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/13/image_18082025_11_13_45_9688.jpg', 2), ('/home/nano/Desktop/images/18082025/11/13/image_18082025_11_13_35_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/11/13/image_18082025_11_13_24_9698.jpg', 2), ('/home/nano/Desktop/images/18082025/11/13/image_18082025_11_13_15_9678.jpg', 2), ('/home/nano/Desktop/images/18082025/11/12/image_18082025_11_13_05_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/11/12/image_18082025_11_12_54_9649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a3b34a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a3b34a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a3b34a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:13:46.790493
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/13/image_18082025_11_13_45_9688.jpg', 2), ('/home/nano/Desktop/images/18082025/11/13/image_18082025_11_13_35_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/11/13/image_18082025_11_13_24_9698.jpg', 2), ('/home/nano/Desktop/images/18082025/11/13/image_18082025_11_13_15_9678.jpg', 2), ('/home/nano/Desktop/images/18082025/11/12/image_18082025_11_13_05_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/11/12/image_18082025_11_12_54_9649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8f582518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f582518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8f582518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:14:02.845380
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/13/image_18082025_11_13_45_9688.jpg', 2), ('/home/nano/Desktop/images/18082025/11/13/image_18082025_11_13_35_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/11/13/image_18082025_11_13_24_9698.jpg', 2), ('/home/nano/Desktop/images/18082025/11/13/image_18082025_11_13_15_9678.jpg', 2), ('/home/nano/Desktop/images/18082025/11/12/image_18082025_11_13_05_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/11/12/image_18082025_11_12_54_9649.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f95695518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95695518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f95695518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:14:16.936573
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/14/image_18082025_11_14_45_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/11/14/image_18082025_11_14_35_10678.jpg', 2), ('/home/nano/Desktop/images/18082025/11/14/image_18082025_11_14_24_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/11/14/image_18082025_11_14_15_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/11/13/image_18082025_11_14_05_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/11/13/image_18082025_11_13_54_9652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8a420518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a420518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8a420518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:14:31.907358
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/14/image_18082025_11_14_45_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/11/14/image_18082025_11_14_35_10678.jpg', 2), ('/home/nano/Desktop/images/18082025/11/14/image_18082025_11_14_24_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/11/14/image_18082025_11_14_15_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/11/13/image_18082025_11_14_05_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/11/13/image_18082025_11_13_54_9652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81977518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81977518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81977518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:14:46.891029
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/14/image_18082025_11_14_45_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/11/14/image_18082025_11_14_35_10678.jpg', 2), ('/home/nano/Desktop/images/18082025/11/14/image_18082025_11_14_24_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/11/14/image_18082025_11_14_15_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/11/13/image_18082025_11_14_05_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/11/13/image_18082025_11_13_54_9652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7fb79518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fb79518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7fb79518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:15:02.758662
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/14/image_18082025_11_14_45_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/11/14/image_18082025_11_14_35_10678.jpg', 2), ('/home/nano/Desktop/images/18082025/11/14/image_18082025_11_14_24_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/11/14/image_18082025_11_14_15_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/11/13/image_18082025_11_14_05_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/11/13/image_18082025_11_13_54_9652.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8bff6550>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8bff6550>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8bff6550>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:15:17.016910
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/15/image_18082025_11_15_45_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/11/15/image_18082025_11_15_35_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/11/15/image_18082025_11_15_24_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/11/15/image_18082025_11_15_15_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/11/14/image_18082025_11_15_05_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/11/14/image_18082025_11_14_54_9654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa36d2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa36d2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa36d2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:15:32.003412
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/15/image_18082025_11_15_45_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/11/15/image_18082025_11_15_35_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/11/15/image_18082025_11_15_24_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/11/15/image_18082025_11_15_15_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/11/14/image_18082025_11_15_05_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/11/14/image_18082025_11_14_54_9654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81681518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81681518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81681518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:15:47.042748
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/15/image_18082025_11_15_45_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/11/15/image_18082025_11_15_35_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/11/15/image_18082025_11_15_24_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/11/15/image_18082025_11_15_15_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/11/14/image_18082025_11_15_05_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/11/14/image_18082025_11_14_54_9654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa82874a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa82874a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa82874a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:16:02.590471
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/15/image_18082025_11_15_45_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/11/15/image_18082025_11_15_35_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/11/15/image_18082025_11_15_24_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/11/15/image_18082025_11_15_15_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/11/14/image_18082025_11_15_05_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/11/14/image_18082025_11_14_54_9654.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa238f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa238f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa238f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:16:17.159966
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/16/image_18082025_11_16_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/11/16/image_18082025_11_16_35_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/11/16/image_18082025_11_16_24_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/11/16/image_18082025_11_16_15_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/11/15/image_18082025_11_16_05_10696.jpg', 2), ('/home/nano/Desktop/images/18082025/11/15/image_18082025_11_15_54_9708.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84af0518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84af0518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84af0518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:16:32.162560
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/16/image_18082025_11_16_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/11/16/image_18082025_11_16_35_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/11/16/image_18082025_11_16_24_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/11/16/image_18082025_11_16_15_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/11/15/image_18082025_11_16_05_10696.jpg', 2), ('/home/nano/Desktop/images/18082025/11/15/image_18082025_11_15_54_9708.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7b7c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7b7c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7b7c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:16:47.138945
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/16/image_18082025_11_16_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/11/16/image_18082025_11_16_35_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/11/16/image_18082025_11_16_24_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/11/16/image_18082025_11_16_15_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/11/15/image_18082025_11_16_05_10696.jpg', 2), ('/home/nano/Desktop/images/18082025/11/15/image_18082025_11_15_54_9708.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c9e3518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c9e3518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c9e3518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:17:02.856904
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/16/image_18082025_11_16_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/11/16/image_18082025_11_16_35_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/11/16/image_18082025_11_16_24_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/11/16/image_18082025_11_16_15_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/11/15/image_18082025_11_16_05_10696.jpg', 2), ('/home/nano/Desktop/images/18082025/11/15/image_18082025_11_15_54_9708.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d547518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d547518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d547518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:17:17.237368
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/17/image_18082025_11_17_44_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/11/17/image_18082025_11_17_35_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/11/17/image_18082025_11_17_25_10615.jpg', 2), ('/home/nano/Desktop/images/18082025/11/17/image_18082025_11_17_14_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/11/16/image_18082025_11_17_05_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/11/16/image_18082025_11_16_54_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac33a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac33a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac33a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:17:32.237867
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/17/image_18082025_11_17_44_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/11/17/image_18082025_11_17_35_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/11/17/image_18082025_11_17_25_10615.jpg', 2), ('/home/nano/Desktop/images/18082025/11/17/image_18082025_11_17_14_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/11/16/image_18082025_11_17_05_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/11/16/image_18082025_11_16_54_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7ec17518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ec17518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7ec17518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:17:47.247499
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/17/image_18082025_11_17_44_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/11/17/image_18082025_11_17_35_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/11/17/image_18082025_11_17_25_10615.jpg', 2), ('/home/nano/Desktop/images/18082025/11/17/image_18082025_11_17_14_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/11/16/image_18082025_11_17_05_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/11/16/image_18082025_11_16_54_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4a534a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4a534a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4a534a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:18:02.789509
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/17/image_18082025_11_17_44_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/11/17/image_18082025_11_17_35_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/11/17/image_18082025_11_17_25_10615.jpg', 2), ('/home/nano/Desktop/images/18082025/11/17/image_18082025_11_17_14_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/11/16/image_18082025_11_17_05_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/11/16/image_18082025_11_16_54_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86818518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86818518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86818518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:18:17.329158
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/18/image_18082025_11_18_44_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/11/18/image_18082025_11_18_34_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/11/18/image_18082025_11_18_25_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/11/18/image_18082025_11_18_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/11/17/image_18082025_11_18_05_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/11/17/image_18082025_11_17_55_10624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f960d84a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f960d84a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f960d84a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:18:32.358241
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/18/image_18082025_11_18_44_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/11/18/image_18082025_11_18_34_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/11/18/image_18082025_11_18_25_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/11/18/image_18082025_11_18_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/11/17/image_18082025_11_18_05_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/11/17/image_18082025_11_17_55_10624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7b941518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b941518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b941518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:18:47.394992
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/18/image_18082025_11_18_44_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/11/18/image_18082025_11_18_34_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/11/18/image_18082025_11_18_25_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/11/18/image_18082025_11_18_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/11/17/image_18082025_11_18_05_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/11/17/image_18082025_11_17_55_10624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8450e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8450e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8450e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:19:03.388824
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/18/image_18082025_11_18_44_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/11/18/image_18082025_11_18_34_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/11/18/image_18082025_11_18_25_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/11/18/image_18082025_11_18_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/11/17/image_18082025_11_18_05_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/11/17/image_18082025_11_17_55_10624.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b191518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b191518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b191518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:19:17.503609
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/19/image_18082025_11_19_45_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/11/19/image_18082025_11_19_34_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/11/19/image_18082025_11_19_25_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/11/19/image_18082025_11_19_15_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/11/18/image_18082025_11_19_04_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/11/18/image_18082025_11_18_55_10619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84f57518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84f57518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84f57518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:19:32.512623
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/19/image_18082025_11_19_45_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/11/19/image_18082025_11_19_34_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/11/19/image_18082025_11_19_25_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/11/19/image_18082025_11_19_15_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/11/18/image_18082025_11_19_04_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/11/18/image_18082025_11_18_55_10619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa104518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa104518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa104518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:19:47.502704
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/19/image_18082025_11_19_45_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/11/19/image_18082025_11_19_34_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/11/19/image_18082025_11_19_25_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/11/19/image_18082025_11_19_15_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/11/18/image_18082025_11_19_04_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/11/18/image_18082025_11_18_55_10619.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f81dd1518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81dd1518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f81dd1518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:20:03.216114
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/20/image_18082025_11_20_54_9599.jpg', 2), ('/home/nano/Desktop/images/18082025/11/19/image_18082025_11_19_45_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/11/19/image_18082025_11_19_34_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/11/19/image_18082025_11_19_25_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/11/19/image_18082025_11_19_15_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/11/18/image_18082025_11_19_04_9625.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa37dc518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa37dc518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa37dc518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:20:17.587134
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/20/image_18082025_11_20_54_9599.jpg', 2), ('/home/nano/Desktop/images/18082025/11/20/image_18082025_11_20_35_10613.jpg', 2), ('/home/nano/Desktop/images/18082025/11/20/image_18082025_11_20_24_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/11/20/image_18082025_11_20_15_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/11/19/image_18082025_11_20_04_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/11/19/image_18082025_11_19_54_9594.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f905804a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f905804a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f905804a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:20:32.579629
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/20/image_18082025_11_20_54_9599.jpg', 2), ('/home/nano/Desktop/images/18082025/11/20/image_18082025_11_20_35_10613.jpg', 2), ('/home/nano/Desktop/images/18082025/11/20/image_18082025_11_20_24_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/11/20/image_18082025_11_20_15_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/11/19/image_18082025_11_20_04_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/11/19/image_18082025_11_19_54_9594.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f872ab518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f872ab518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f872ab518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:20:47.590613
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/20/image_18082025_11_20_54_9599.jpg', 2), ('/home/nano/Desktop/images/18082025/11/20/image_18082025_11_20_35_10613.jpg', 2), ('/home/nano/Desktop/images/18082025/11/20/image_18082025_11_20_24_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/11/20/image_18082025_11_20_15_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/11/19/image_18082025_11_20_04_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/11/19/image_18082025_11_19_54_9594.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2074518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2074518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2074518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:21:03.320958
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/20/image_18082025_11_20_54_9599.jpg', 2), ('/home/nano/Desktop/images/18082025/11/20/image_18082025_11_20_35_10613.jpg', 2), ('/home/nano/Desktop/images/18082025/11/20/image_18082025_11_20_24_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/11/20/image_18082025_11_20_15_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/11/19/image_18082025_11_20_04_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/11/19/image_18082025_11_19_54_9594.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85eb3518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85eb3518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85eb3518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:21:17.685504
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/21/image_18082025_11_21_45_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/11/21/image_18082025_11_21_35_10719.jpg', 2), ('/home/nano/Desktop/images/18082025/11/21/image_18082025_11_21_24_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/11/21/image_18082025_11_21_14_9665.jpg', 2), ('/home/nano/Desktop/images/18082025/11/20/image_18082025_11_21_05_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/11/20/image_18082025_11_20_54_9599.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94f5d4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94f5d4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94f5d4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:21:32.695938
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/21/image_18082025_11_21_45_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/11/21/image_18082025_11_21_35_10719.jpg', 2), ('/home/nano/Desktop/images/18082025/11/21/image_18082025_11_21_24_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/11/21/image_18082025_11_21_14_9665.jpg', 2), ('/home/nano/Desktop/images/18082025/11/20/image_18082025_11_21_05_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/11/20/image_18082025_11_20_54_9599.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79816518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79816518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79816518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:21:47.707503
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/21/image_18082025_11_21_45_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/11/21/image_18082025_11_21_35_10719.jpg', 2), ('/home/nano/Desktop/images/18082025/11/21/image_18082025_11_21_24_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/11/21/image_18082025_11_21_14_9665.jpg', 2), ('/home/nano/Desktop/images/18082025/11/20/image_18082025_11_21_05_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/11/20/image_18082025_11_20_54_9599.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f79375518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79375518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f79375518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:22:02.241584
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/21/image_18082025_11_21_45_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/11/21/image_18082025_11_21_35_10719.jpg', 2), ('/home/nano/Desktop/images/18082025/11/21/image_18082025_11_21_24_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/11/21/image_18082025_11_21_14_9665.jpg', 2), ('/home/nano/Desktop/images/18082025/11/20/image_18082025_11_21_05_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/11/20/image_18082025_11_20_54_9599.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c67d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c67d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c67d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:22:16.787713
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/22/image_18082025_11_22_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/11/22/image_18082025_11_22_35_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/11/22/image_18082025_11_22_24_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/11/22/image_18082025_11_22_15_9695.jpg', 2), ('/home/nano/Desktop/images/18082025/11/21/image_18082025_11_22_05_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/11/21/image_18082025_11_21_54_9667.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76c04518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76c04518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76c04518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:22:31.762219
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/22/image_18082025_11_22_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/11/22/image_18082025_11_22_35_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/11/22/image_18082025_11_22_24_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/11/22/image_18082025_11_22_15_9695.jpg', 2), ('/home/nano/Desktop/images/18082025/11/21/image_18082025_11_22_05_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/11/21/image_18082025_11_21_54_9667.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7d250518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d250518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7d250518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:22:46.780440
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/22/image_18082025_11_22_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/11/22/image_18082025_11_22_35_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/11/22/image_18082025_11_22_24_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/11/22/image_18082025_11_22_15_9695.jpg', 2), ('/home/nano/Desktop/images/18082025/11/21/image_18082025_11_22_05_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/11/21/image_18082025_11_21_54_9667.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb0cf74a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0cf74a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb0cf74a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:23:02.572636
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/22/image_18082025_11_22_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/11/22/image_18082025_11_22_35_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/11/22/image_18082025_11_22_24_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/11/22/image_18082025_11_22_15_9695.jpg', 2), ('/home/nano/Desktop/images/18082025/11/21/image_18082025_11_22_05_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/11/21/image_18082025_11_21_54_9667.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9bcc6518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bcc6518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9bcc6518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:23:16.881896
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/23/image_18082025_11_23_44_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/11/23/image_18082025_11_23_35_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/11/23/image_18082025_11_23_25_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/11/23/image_18082025_11_23_14_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/11/22/image_18082025_11_23_05_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/11/22/image_18082025_11_22_55_10643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6e14518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6e14518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6e14518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:23:31.872039
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/23/image_18082025_11_23_44_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/11/23/image_18082025_11_23_35_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/11/23/image_18082025_11_23_25_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/11/23/image_18082025_11_23_14_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/11/22/image_18082025_11_23_05_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/11/22/image_18082025_11_22_55_10643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f858d6518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f858d6518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f858d6518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:23:46.882508
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/23/image_18082025_11_23_44_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/11/23/image_18082025_11_23_35_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/11/23/image_18082025_11_23_25_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/11/23/image_18082025_11_23_14_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/11/22/image_18082025_11_23_05_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/11/22/image_18082025_11_22_55_10643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4bbc518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4bbc518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4bbc518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:24:02.839028
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/23/image_18082025_11_23_44_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/11/23/image_18082025_11_23_35_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/11/23/image_18082025_11_23_25_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/11/23/image_18082025_11_23_14_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/11/22/image_18082025_11_23_05_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/11/22/image_18082025_11_22_55_10643.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a536518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a536518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a536518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:24:17.094762
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/24/image_18082025_11_24_45_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/11/24/image_18082025_11_24_34_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/11/24/image_18082025_11_24_25_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/11/24/image_18082025_11_24_14_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/11/23/image_18082025_11_24_05_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/11/23/image_18082025_11_23_55_10635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99938518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99938518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99938518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:24:32.015242
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/24/image_18082025_11_24_45_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/11/24/image_18082025_11_24_34_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/11/24/image_18082025_11_24_25_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/11/24/image_18082025_11_24_14_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/11/23/image_18082025_11_24_05_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/11/23/image_18082025_11_23_55_10635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f83060518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83060518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f83060518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:24:47.041155
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/24/image_18082025_11_24_45_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/11/24/image_18082025_11_24_34_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/11/24/image_18082025_11_24_25_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/11/24/image_18082025_11_24_14_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/11/23/image_18082025_11_24_05_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/11/23/image_18082025_11_23_55_10635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d831518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d831518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d831518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:25:02.741606
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/24/image_18082025_11_24_45_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/11/24/image_18082025_11_24_34_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/11/24/image_18082025_11_24_25_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/11/24/image_18082025_11_24_14_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/11/23/image_18082025_11_24_05_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/11/23/image_18082025_11_23_55_10635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa3e2e518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3e2e518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa3e2e518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:25:17.139260
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/25/image_18082025_11_25_45_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/11/25/image_18082025_11_25_34_9603.jpg', 2), ('/home/nano/Desktop/images/18082025/11/25/image_18082025_11_25_25_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/11/25/image_18082025_11_25_15_10674.jpg', 2), ('/home/nano/Desktop/images/18082025/11/24/image_18082025_11_25_04_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/11/24/image_18082025_11_24_55_9629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f972d24a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f972d24a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f972d24a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:25:32.222250
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/25/image_18082025_11_25_45_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/11/25/image_18082025_11_25_34_9603.jpg', 2), ('/home/nano/Desktop/images/18082025/11/25/image_18082025_11_25_25_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/11/25/image_18082025_11_25_15_10674.jpg', 2), ('/home/nano/Desktop/images/18082025/11/24/image_18082025_11_25_04_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/11/24/image_18082025_11_24_55_9629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85339518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85339518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85339518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:25:47.154433
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/25/image_18082025_11_25_45_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/11/25/image_18082025_11_25_34_9603.jpg', 2), ('/home/nano/Desktop/images/18082025/11/25/image_18082025_11_25_25_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/11/25/image_18082025_11_25_15_10674.jpg', 2), ('/home/nano/Desktop/images/18082025/11/24/image_18082025_11_25_04_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/11/24/image_18082025_11_24_55_9629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa9ba518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa9ba518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa9ba518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:26:02.773181
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/25/image_18082025_11_25_45_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/11/25/image_18082025_11_25_34_9603.jpg', 2), ('/home/nano/Desktop/images/18082025/11/25/image_18082025_11_25_25_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/11/25/image_18082025_11_25_15_10674.jpg', 2), ('/home/nano/Desktop/images/18082025/11/24/image_18082025_11_25_04_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/11/24/image_18082025_11_24_55_9629.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ff6b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ff6b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ff6b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:26:17.322309
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/26/image_18082025_11_26_45_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/11/26/image_18082025_11_26_35_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/11/26/image_18082025_11_26_24_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/11/26/image_18082025_11_26_15_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/11/25/image_18082025_11_26_04_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/11/25/image_18082025_11_25_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2b35518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2b35518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2b35518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:26:32.238651
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/26/image_18082025_11_26_45_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/11/26/image_18082025_11_26_35_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/11/26/image_18082025_11_26_24_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/11/26/image_18082025_11_26_15_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/11/25/image_18082025_11_26_04_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/11/25/image_18082025_11_25_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f950344a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f950344a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f950344a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:26:47.261575
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/26/image_18082025_11_26_45_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/11/26/image_18082025_11_26_35_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/11/26/image_18082025_11_26_24_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/11/26/image_18082025_11_26_15_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/11/25/image_18082025_11_26_04_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/11/25/image_18082025_11_25_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f86b34518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86b34518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f86b34518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:27:03.035428
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/26/image_18082025_11_26_45_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/11/26/image_18082025_11_26_35_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/11/26/image_18082025_11_26_24_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/11/26/image_18082025_11_26_15_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/11/25/image_18082025_11_26_04_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/11/25/image_18082025_11_25_54_9640.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb073a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb073a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb073a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:27:17.344949
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/27/image_18082025_11_27_45_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/11/27/image_18082025_11_27_35_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/11/27/image_18082025_11_27_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/11/27/image_18082025_11_27_15_9665.jpg', 2), ('/home/nano/Desktop/images/18082025/11/26/image_18082025_11_27_05_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/11/26/image_18082025_11_26_54_9635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82146518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82146518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82146518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:27:32.388625
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/27/image_18082025_11_27_45_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/11/27/image_18082025_11_27_35_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/11/27/image_18082025_11_27_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/11/27/image_18082025_11_27_15_9665.jpg', 2), ('/home/nano/Desktop/images/18082025/11/26/image_18082025_11_27_05_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/11/26/image_18082025_11_26_54_9635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb4f05518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4f05518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb4f05518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:27:47.377636
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/27/image_18082025_11_27_45_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/11/27/image_18082025_11_27_35_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/11/27/image_18082025_11_27_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/11/27/image_18082025_11_27_15_9665.jpg', 2), ('/home/nano/Desktop/images/18082025/11/26/image_18082025_11_27_05_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/11/26/image_18082025_11_26_54_9635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa9b47518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9b47518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9b47518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:28:03.023069
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/27/image_18082025_11_27_45_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/11/27/image_18082025_11_27_35_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/11/27/image_18082025_11_27_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/11/27/image_18082025_11_27_15_9665.jpg', 2), ('/home/nano/Desktop/images/18082025/11/26/image_18082025_11_27_05_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/11/26/image_18082025_11_26_54_9635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9898a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9898a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9898a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:28:17.468183
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/28/image_18082025_11_28_44_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/11/28/image_18082025_11_28_35_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/11/28/image_18082025_11_28_24_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/11/28/image_18082025_11_28_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/11/27/image_18082025_11_28_05_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/11/27/image_18082025_11_27_54_9632.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa75a6518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa75a6518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa75a6518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:28:32.506273
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/28/image_18082025_11_28_44_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/11/28/image_18082025_11_28_35_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/11/28/image_18082025_11_28_24_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/11/28/image_18082025_11_28_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/11/27/image_18082025_11_28_05_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/11/27/image_18082025_11_27_54_9632.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb02ef518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb02ef518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb02ef518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:28:47.464594
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/28/image_18082025_11_28_44_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/11/28/image_18082025_11_28_35_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/11/28/image_18082025_11_28_24_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/11/28/image_18082025_11_28_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/11/27/image_18082025_11_28_05_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/11/27/image_18082025_11_27_54_9632.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8794b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8794b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8794b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:29:03.477609
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/28/image_18082025_11_28_44_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/11/28/image_18082025_11_28_35_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/11/28/image_18082025_11_28_24_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/11/28/image_18082025_11_28_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/11/27/image_18082025_11_28_05_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/11/27/image_18082025_11_27_54_9632.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94fbf518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94fbf518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94fbf518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:29:17.596305
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/29/image_18082025_11_29_44_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/11/29/image_18082025_11_29_35_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/11/29/image_18082025_11_29_25_10622.jpg', 2), ('/home/nano/Desktop/images/18082025/11/29/image_18082025_11_29_14_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/11/28/image_18082025_11_29_05_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/11/28/image_18082025_11_28_55_10634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f957db518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f957db518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f957db518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:29:32.572552
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/29/image_18082025_11_29_44_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/11/29/image_18082025_11_29_35_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/11/29/image_18082025_11_29_25_10622.jpg', 2), ('/home/nano/Desktop/images/18082025/11/29/image_18082025_11_29_14_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/11/28/image_18082025_11_29_05_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/11/28/image_18082025_11_28_55_10634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9acba518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9acba518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9acba518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:29:47.587816
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/29/image_18082025_11_29_44_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/11/29/image_18082025_11_29_35_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/11/29/image_18082025_11_29_25_10622.jpg', 2), ('/home/nano/Desktop/images/18082025/11/29/image_18082025_11_29_14_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/11/28/image_18082025_11_29_05_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/11/28/image_18082025_11_28_55_10634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85a90518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85a90518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85a90518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:30:03.174312
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/29/image_18082025_11_29_44_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/11/29/image_18082025_11_29_35_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/11/29/image_18082025_11_29_25_10622.jpg', 2), ('/home/nano/Desktop/images/18082025/11/29/image_18082025_11_29_14_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/11/28/image_18082025_11_29_05_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/11/28/image_18082025_11_28_55_10634.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7abfd518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7abfd518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7abfd518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:30:17.698099
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/30/image_18082025_11_30_45_10662.jpg', 2), ('/home/nano/Desktop/images/18082025/11/30/image_18082025_11_30_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/11/30/image_18082025_11_30_25_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/11/30/image_18082025_11_30_14_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/11/29/image_18082025_11_30_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/11/29/image_18082025_11_29_55_10636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ca19518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ca19518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ca19518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:30:32.690252
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/30/image_18082025_11_30_45_10662.jpg', 2), ('/home/nano/Desktop/images/18082025/11/30/image_18082025_11_30_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/11/30/image_18082025_11_30_25_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/11/30/image_18082025_11_30_14_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/11/29/image_18082025_11_30_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/11/29/image_18082025_11_29_55_10636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f5a6518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f5a6518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f5a6518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:30:47.689791
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/30/image_18082025_11_30_45_10662.jpg', 2), ('/home/nano/Desktop/images/18082025/11/30/image_18082025_11_30_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/11/30/image_18082025_11_30_25_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/11/30/image_18082025_11_30_14_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/11/29/image_18082025_11_30_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/11/29/image_18082025_11_29_55_10636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa61a5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa61a5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa61a5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:31:02.472903
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/30/image_18082025_11_30_45_10662.jpg', 2), ('/home/nano/Desktop/images/18082025/11/30/image_18082025_11_30_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/11/30/image_18082025_11_30_25_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/11/30/image_18082025_11_30_14_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/11/29/image_18082025_11_30_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/11/29/image_18082025_11_29_55_10636.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9a9f1518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a9f1518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9a9f1518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:31:16.773143
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/31/image_18082025_11_31_45_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/11/31/image_18082025_11_31_34_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/11/31/image_18082025_11_31_25_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/11/31/image_18082025_11_31_15_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/11/30/image_18082025_11_31_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/11/30/image_18082025_11_30_55_9627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb36b4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb36b4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb36b4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:31:31.769874
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/31/image_18082025_11_31_45_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/11/31/image_18082025_11_31_34_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/11/31/image_18082025_11_31_25_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/11/31/image_18082025_11_31_15_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/11/30/image_18082025_11_31_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/11/30/image_18082025_11_30_55_9627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c66b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c66b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c66b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:31:46.789443
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/31/image_18082025_11_31_45_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/11/31/image_18082025_11_31_34_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/11/31/image_18082025_11_31_25_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/11/31/image_18082025_11_31_15_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/11/30/image_18082025_11_31_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/11/30/image_18082025_11_30_55_9627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e672518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e672518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e672518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:32:02.395432
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/31/image_18082025_11_31_45_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/11/31/image_18082025_11_31_34_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/11/31/image_18082025_11_31_25_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/11/31/image_18082025_11_31_15_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/11/30/image_18082025_11_31_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/11/30/image_18082025_11_30_55_9627.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9eb79518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9eb79518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9eb79518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:32:16.924942
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/32/image_18082025_11_32_45_10604.jpg', 2), ('/home/nano/Desktop/images/18082025/11/32/image_18082025_11_32_34_9677.jpg', 2), ('/home/nano/Desktop/images/18082025/11/32/image_18082025_11_32_24_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/11/32/image_18082025_11_32_15_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/11/31/image_18082025_11_32_04_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/11/31/image_18082025_11_31_55_9622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ad154a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ad154a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ad154a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:32:31.904673
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/32/image_18082025_11_32_45_10604.jpg', 2), ('/home/nano/Desktop/images/18082025/11/32/image_18082025_11_32_34_9677.jpg', 2), ('/home/nano/Desktop/images/18082025/11/32/image_18082025_11_32_24_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/11/32/image_18082025_11_32_15_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/11/31/image_18082025_11_32_04_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/11/31/image_18082025_11_31_55_9622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f948874a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f948874a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f948874a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:32:46.859541
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/32/image_18082025_11_32_45_10604.jpg', 2), ('/home/nano/Desktop/images/18082025/11/32/image_18082025_11_32_34_9677.jpg', 2), ('/home/nano/Desktop/images/18082025/11/32/image_18082025_11_32_24_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/11/32/image_18082025_11_32_15_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/11/31/image_18082025_11_32_04_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/11/31/image_18082025_11_31_55_9622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f4ff518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f4ff518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f4ff518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:33:02.689014
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/32/image_18082025_11_32_45_10604.jpg', 2), ('/home/nano/Desktop/images/18082025/11/32/image_18082025_11_32_34_9677.jpg', 2), ('/home/nano/Desktop/images/18082025/11/32/image_18082025_11_32_24_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/11/32/image_18082025_11_32_15_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/11/31/image_18082025_11_32_04_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/11/31/image_18082025_11_31_55_9622.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac8fc4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac8fc4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac8fc4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:33:16.945079
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/33/image_18082025_11_33_45_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/11/33/image_18082025_11_33_35_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/11/33/image_18082025_11_33_24_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/11/33/image_18082025_11_33_15_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/11/32/image_18082025_11_33_05_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/11/32/image_18082025_11_32_54_9589.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98a8c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98a8c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98a8c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:33:31.971389
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/33/image_18082025_11_33_45_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/11/33/image_18082025_11_33_35_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/11/33/image_18082025_11_33_24_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/11/33/image_18082025_11_33_15_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/11/32/image_18082025_11_33_05_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/11/32/image_18082025_11_32_54_9589.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa6063518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6063518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa6063518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:33:46.997344
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/33/image_18082025_11_33_45_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/11/33/image_18082025_11_33_35_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/11/33/image_18082025_11_33_24_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/11/33/image_18082025_11_33_15_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/11/32/image_18082025_11_33_05_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/11/32/image_18082025_11_32_54_9589.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8e82c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e82c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8e82c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:34:02.745996
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/33/image_18082025_11_33_45_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/11/33/image_18082025_11_33_35_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/11/33/image_18082025_11_33_24_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/11/33/image_18082025_11_33_15_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/11/32/image_18082025_11_33_05_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/11/32/image_18082025_11_32_54_9589.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f848518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f848518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f848518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:34:17.084728
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/34/image_18082025_11_34_44_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/11/34/image_18082025_11_34_35_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/11/34/image_18082025_11_34_24_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/11/34/image_18082025_11_34_15_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/11/33/image_18082025_11_34_05_10682.jpg', 2), ('/home/nano/Desktop/images/18082025/11/33/image_18082025_11_33_54_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f7f3518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f7f3518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f7f3518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:34:32.101705
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/34/image_18082025_11_34_44_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/11/34/image_18082025_11_34_35_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/11/34/image_18082025_11_34_24_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/11/34/image_18082025_11_34_15_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/11/33/image_18082025_11_34_05_10682.jpg', 2), ('/home/nano/Desktop/images/18082025/11/33/image_18082025_11_33_54_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa9295518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9295518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa9295518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:34:47.095947
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/34/image_18082025_11_34_44_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/11/34/image_18082025_11_34_35_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/11/34/image_18082025_11_34_24_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/11/34/image_18082025_11_34_15_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/11/33/image_18082025_11_34_05_10682.jpg', 2), ('/home/nano/Desktop/images/18082025/11/33/image_18082025_11_33_54_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb2b58518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2b58518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb2b58518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:35:02.929267
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/34/image_18082025_11_34_44_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/11/34/image_18082025_11_34_35_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/11/34/image_18082025_11_34_24_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/11/34/image_18082025_11_34_15_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/11/33/image_18082025_11_34_05_10682.jpg', 2), ('/home/nano/Desktop/images/18082025/11/33/image_18082025_11_33_54_9644.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4c7d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4c7d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4c7d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:35:17.156123
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/35/image_18082025_11_35_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/11/35/image_18082025_11_35_35_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/11/35/image_18082025_11_35_25_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/11/35/image_18082025_11_35_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/11/34/image_18082025_11_35_05_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/11/34/image_18082025_11_34_55_10626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faeddb518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faeddb518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faeddb518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:35:32.182467
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/35/image_18082025_11_35_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/11/35/image_18082025_11_35_35_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/11/35/image_18082025_11_35_25_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/11/35/image_18082025_11_35_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/11/34/image_18082025_11_35_05_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/11/34/image_18082025_11_34_55_10626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f793b0518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f793b0518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f793b0518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:35:47.181372
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/35/image_18082025_11_35_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/11/35/image_18082025_11_35_35_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/11/35/image_18082025_11_35_25_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/11/35/image_18082025_11_35_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/11/34/image_18082025_11_35_05_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/11/34/image_18082025_11_34_55_10626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f962b1518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f962b1518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f962b1518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:36:02.836304
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/35/image_18082025_11_35_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/11/35/image_18082025_11_35_35_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/11/35/image_18082025_11_35_25_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/11/35/image_18082025_11_35_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/11/34/image_18082025_11_35_05_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/11/34/image_18082025_11_34_55_10626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7c0a8518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c0a8518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7c0a8518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:36:17.283346
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/36/image_18082025_11_36_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/11/36/image_18082025_11_36_34_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/11/36/image_18082025_11_36_25_10657.jpg', 2), ('/home/nano/Desktop/images/18082025/11/36/image_18082025_11_36_14_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/11/35/image_18082025_11_36_04_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/11/35/image_18082025_11_35_55_10635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f99eec518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99eec518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f99eec518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:36:32.285028
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/36/image_18082025_11_36_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/11/36/image_18082025_11_36_34_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/11/36/image_18082025_11_36_25_10657.jpg', 2), ('/home/nano/Desktop/images/18082025/11/36/image_18082025_11_36_14_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/11/35/image_18082025_11_36_04_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/11/35/image_18082025_11_35_55_10635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8c66518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8c66518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8c66518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:36:47.282030
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/36/image_18082025_11_36_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/11/36/image_18082025_11_36_34_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/11/36/image_18082025_11_36_25_10657.jpg', 2), ('/home/nano/Desktop/images/18082025/11/36/image_18082025_11_36_14_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/11/35/image_18082025_11_36_04_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/11/35/image_18082025_11_35_55_10635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f85736518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85736518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f85736518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:37:03.107448
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/36/image_18082025_11_36_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/11/36/image_18082025_11_36_34_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/11/36/image_18082025_11_36_25_10657.jpg', 2), ('/home/nano/Desktop/images/18082025/11/36/image_18082025_11_36_14_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/11/35/image_18082025_11_36_04_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/11/35/image_18082025_11_35_55_10635.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76974518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76974518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76974518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:37:17.416714
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/37/image_18082025_11_37_45_10605.jpg', 2), ('/home/nano/Desktop/images/18082025/11/37/image_18082025_11_37_34_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/11/37/image_18082025_11_37_25_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/11/37/image_18082025_11_37_14_9722.jpg', 2), ('/home/nano/Desktop/images/18082025/11/36/image_18082025_11_37_04_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/11/36/image_18082025_11_36_55_10637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9b6b3518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b6b3518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9b6b3518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:37:32.387542
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/37/image_18082025_11_37_45_10605.jpg', 2), ('/home/nano/Desktop/images/18082025/11/37/image_18082025_11_37_34_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/11/37/image_18082025_11_37_25_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/11/37/image_18082025_11_37_14_9722.jpg', 2), ('/home/nano/Desktop/images/18082025/11/36/image_18082025_11_37_04_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/11/36/image_18082025_11_36_55_10637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fafbd6518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafbd6518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafbd6518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:37:47.402492
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/37/image_18082025_11_37_45_10605.jpg', 2), ('/home/nano/Desktop/images/18082025/11/37/image_18082025_11_37_34_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/11/37/image_18082025_11_37_25_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/11/37/image_18082025_11_37_14_9722.jpg', 2), ('/home/nano/Desktop/images/18082025/11/36/image_18082025_11_37_04_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/11/36/image_18082025_11_36_55_10637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f823e9518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f823e9518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f823e9518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:38:03.041180
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/37/image_18082025_11_37_45_10605.jpg', 2), ('/home/nano/Desktop/images/18082025/11/37/image_18082025_11_37_34_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/11/37/image_18082025_11_37_25_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/11/37/image_18082025_11_37_14_9722.jpg', 2), ('/home/nano/Desktop/images/18082025/11/36/image_18082025_11_37_04_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/11/36/image_18082025_11_36_55_10637.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa7aef518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7aef518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa7aef518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:38:17.502112
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/38/image_18082025_11_38_45_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/11/38/image_18082025_11_38_34_9596.jpg', 2), ('/home/nano/Desktop/images/18082025/11/38/image_18082025_11_38_25_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/11/38/image_18082025_11_38_15_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/11/37/image_18082025_11_38_04_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/11/37/image_18082025_11_37_55_9614.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98adf518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98adf518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98adf518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:38:32.498985
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/38/image_18082025_11_38_45_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/11/38/image_18082025_11_38_34_9596.jpg', 2), ('/home/nano/Desktop/images/18082025/11/38/image_18082025_11_38_25_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/11/38/image_18082025_11_38_15_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/11/37/image_18082025_11_38_04_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/11/37/image_18082025_11_37_55_9614.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fac588518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac588518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fac588518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:38:47.480820
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/38/image_18082025_11_38_45_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/11/38/image_18082025_11_38_34_9596.jpg', 2), ('/home/nano/Desktop/images/18082025/11/38/image_18082025_11_38_25_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/11/38/image_18082025_11_38_15_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/11/37/image_18082025_11_38_04_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/11/37/image_18082025_11_37_55_9614.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa20cf518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa20cf518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa20cf518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:39:03.427809
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/38/image_18082025_11_38_45_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/11/38/image_18082025_11_38_34_9596.jpg', 2), ('/home/nano/Desktop/images/18082025/11/38/image_18082025_11_38_25_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/11/38/image_18082025_11_38_15_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/11/37/image_18082025_11_38_04_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/11/37/image_18082025_11_37_55_9614.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8c733518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c733518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8c733518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:39:17.642213
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/39/image_18082025_11_39_45_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/11/39/image_18082025_11_39_35_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/11/39/image_18082025_11_39_24_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/11/39/image_18082025_11_39_15_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/11/38/image_18082025_11_39_05_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/11/38/image_18082025_11_38_54_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7eae6518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7eae6518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7eae6518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:39:32.599365
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/39/image_18082025_11_39_45_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/11/39/image_18082025_11_39_35_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/11/39/image_18082025_11_39_24_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/11/39/image_18082025_11_39_15_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/11/38/image_18082025_11_39_05_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/11/38/image_18082025_11_38_54_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ba5f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ba5f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ba5f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:39:47.602284
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/39/image_18082025_11_39_45_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/11/39/image_18082025_11_39_35_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/11/39/image_18082025_11_39_24_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/11/39/image_18082025_11_39_15_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/11/38/image_18082025_11_39_05_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/11/38/image_18082025_11_38_54_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faeeab4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faeeab4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faeeab4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:40:03.201833
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/39/image_18082025_11_39_45_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/11/39/image_18082025_11_39_35_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/11/39/image_18082025_11_39_24_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/11/39/image_18082025_11_39_15_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/11/38/image_18082025_11_39_05_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/11/38/image_18082025_11_38_54_9626.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa694d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa694d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa694d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:40:17.734123
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/40/image_18082025_11_40_44_9595.jpg', 2), ('/home/nano/Desktop/images/18082025/11/40/image_18082025_11_40_35_9588.jpg', 2), ('/home/nano/Desktop/images/18082025/11/40/image_18082025_11_40_25_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/11/40/image_18082025_11_40_14_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/11/39/image_18082025_11_40_05_10619.jpg', 2), ('/home/nano/Desktop/images/18082025/11/39/image_18082025_11_39_54_9585.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9f93d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f93d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9f93d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:40:32.714733
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/40/image_18082025_11_40_44_9595.jpg', 2), ('/home/nano/Desktop/images/18082025/11/40/image_18082025_11_40_35_9588.jpg', 2), ('/home/nano/Desktop/images/18082025/11/40/image_18082025_11_40_25_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/11/40/image_18082025_11_40_14_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/11/39/image_18082025_11_40_05_10619.jpg', 2), ('/home/nano/Desktop/images/18082025/11/39/image_18082025_11_39_54_9585.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f88057518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88057518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f88057518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:40:47.708866
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/40/image_18082025_11_40_44_9595.jpg', 2), ('/home/nano/Desktop/images/18082025/11/40/image_18082025_11_40_35_9588.jpg', 2), ('/home/nano/Desktop/images/18082025/11/40/image_18082025_11_40_25_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/11/40/image_18082025_11_40_14_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/11/39/image_18082025_11_40_05_10619.jpg', 2), ('/home/nano/Desktop/images/18082025/11/39/image_18082025_11_39_54_9585.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8d82c518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d82c518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8d82c518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:41:02.575007
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/40/image_18082025_11_40_44_9595.jpg', 2), ('/home/nano/Desktop/images/18082025/11/40/image_18082025_11_40_35_9588.jpg', 2), ('/home/nano/Desktop/images/18082025/11/40/image_18082025_11_40_25_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/11/40/image_18082025_11_40_14_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/11/39/image_18082025_11_40_05_10619.jpg', 2), ('/home/nano/Desktop/images/18082025/11/39/image_18082025_11_39_54_9585.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98a604a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98a604a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98a604a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:41:16.904495
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/41/image_18082025_11_41_45_10593.jpg', 2), ('/home/nano/Desktop/images/18082025/11/41/image_18082025_11_41_34_9592.jpg', 2), ('/home/nano/Desktop/images/18082025/11/41/image_18082025_11_41_25_9595.jpg', 2), ('/home/nano/Desktop/images/18082025/11/41/image_18082025_11_41_15_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/11/40/image_18082025_11_41_04_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/11/40/image_18082025_11_40_55_10607.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f98353518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98353518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f98353518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:41:31.841406
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/41/image_18082025_11_41_45_10593.jpg', 2), ('/home/nano/Desktop/images/18082025/11/41/image_18082025_11_41_34_9592.jpg', 2), ('/home/nano/Desktop/images/18082025/11/41/image_18082025_11_41_25_9595.jpg', 2), ('/home/nano/Desktop/images/18082025/11/41/image_18082025_11_41_15_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/11/40/image_18082025_11_41_04_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/11/40/image_18082025_11_40_55_10607.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9d6a5518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d6a5518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9d6a5518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:41:46.796841
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/41/image_18082025_11_41_45_10593.jpg', 2), ('/home/nano/Desktop/images/18082025/11/41/image_18082025_11_41_34_9592.jpg', 2), ('/home/nano/Desktop/images/18082025/11/41/image_18082025_11_41_25_9595.jpg', 2), ('/home/nano/Desktop/images/18082025/11/41/image_18082025_11_41_15_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/11/40/image_18082025_11_41_04_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/11/40/image_18082025_11_40_55_10607.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f8ac0b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ac0b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f8ac0b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:42:02.469707
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/41/image_18082025_11_41_45_10593.jpg', 2), ('/home/nano/Desktop/images/18082025/11/41/image_18082025_11_41_34_9592.jpg', 2), ('/home/nano/Desktop/images/18082025/11/41/image_18082025_11_41_25_9595.jpg', 2), ('/home/nano/Desktop/images/18082025/11/41/image_18082025_11_41_15_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/11/40/image_18082025_11_41_04_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/11/40/image_18082025_11_40_55_10607.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa13ea518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa13ea518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa13ea518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:42:16.916240
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/42/image_18082025_11_42_44_9592.jpg', 2), ('/home/nano/Desktop/images/18082025/11/42/image_18082025_11_42_35_10607.jpg', 2), ('/home/nano/Desktop/images/18082025/11/42/image_18082025_11_42_24_9594.jpg', 2), ('/home/nano/Desktop/images/18082025/11/42/image_18082025_11_42_15_9594.jpg', 2), ('/home/nano/Desktop/images/18082025/11/41/image_18082025_11_42_05_10611.jpg', 2), ('/home/nano/Desktop/images/18082025/11/41/image_18082025_11_41_54_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9ece4518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ece4518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9ece4518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:42:31.913325
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/42/image_18082025_11_42_44_9592.jpg', 2), ('/home/nano/Desktop/images/18082025/11/42/image_18082025_11_42_35_10607.jpg', 2), ('/home/nano/Desktop/images/18082025/11/42/image_18082025_11_42_24_9594.jpg', 2), ('/home/nano/Desktop/images/18082025/11/42/image_18082025_11_42_15_9594.jpg', 2), ('/home/nano/Desktop/images/18082025/11/41/image_18082025_11_42_05_10611.jpg', 2), ('/home/nano/Desktop/images/18082025/11/41/image_18082025_11_41_54_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa5082518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5082518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa5082518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:42:46.895710
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/42/image_18082025_11_42_44_9592.jpg', 2), ('/home/nano/Desktop/images/18082025/11/42/image_18082025_11_42_35_10607.jpg', 2), ('/home/nano/Desktop/images/18082025/11/42/image_18082025_11_42_24_9594.jpg', 2), ('/home/nano/Desktop/images/18082025/11/42/image_18082025_11_42_15_9594.jpg', 2), ('/home/nano/Desktop/images/18082025/11/41/image_18082025_11_42_05_10611.jpg', 2), ('/home/nano/Desktop/images/18082025/11/41/image_18082025_11_41_54_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa586b518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa586b518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa586b518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:43:02.728829
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/42/image_18082025_11_42_44_9592.jpg', 2), ('/home/nano/Desktop/images/18082025/11/42/image_18082025_11_42_35_10607.jpg', 2), ('/home/nano/Desktop/images/18082025/11/42/image_18082025_11_42_24_9594.jpg', 2), ('/home/nano/Desktop/images/18082025/11/42/image_18082025_11_42_15_9594.jpg', 2), ('/home/nano/Desktop/images/18082025/11/41/image_18082025_11_42_05_10611.jpg', 2), ('/home/nano/Desktop/images/18082025/11/41/image_18082025_11_41_54_9617.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fae970518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae970518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae970518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:43:17.021625
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/43/image_18082025_11_43_44_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/11/43/image_18082025_11_43_35_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/11/43/image_18082025_11_43_25_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/11/43/image_18082025_11_43_14_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/11/42/image_18082025_11_43_05_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/11/42/image_18082025_11_42_55_10603.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f97b73518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97b73518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f97b73518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:43:32.020627
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/43/image_18082025_11_43_44_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/11/43/image_18082025_11_43_35_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/11/43/image_18082025_11_43_25_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/11/43/image_18082025_11_43_14_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/11/42/image_18082025_11_43_05_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/11/42/image_18082025_11_42_55_10603.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa4893518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4893518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa4893518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:43:46.988049
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/43/image_18082025_11_43_44_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/11/43/image_18082025_11_43_35_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/11/43/image_18082025_11_43_25_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/11/43/image_18082025_11_43_14_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/11/42/image_18082025_11_43_05_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/11/42/image_18082025_11_42_55_10603.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f91ca2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91ca2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f91ca2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:44:03.023909
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/43/image_18082025_11_43_44_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/11/43/image_18082025_11_43_35_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/11/43/image_18082025_11_43_25_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/11/43/image_18082025_11_43_14_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/11/42/image_18082025_11_43_05_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/11/42/image_18082025_11_42_55_10603.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84676518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84676518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84676518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:44:17.097630
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/44/image_18082025_11_44_45_10607.jpg', 2), ('/home/nano/Desktop/images/18082025/11/44/image_18082025_11_44_34_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/11/44/image_18082025_11_44_25_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/11/44/image_18082025_11_44_14_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/11/43/image_18082025_11_44_04_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/11/43/image_18082025_11_43_55_10656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7a7c8518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a7c8518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7a7c8518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:44:32.107271
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/44/image_18082025_11_44_45_10607.jpg', 2), ('/home/nano/Desktop/images/18082025/11/44/image_18082025_11_44_34_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/11/44/image_18082025_11_44_25_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/11/44/image_18082025_11_44_14_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/11/43/image_18082025_11_44_04_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/11/43/image_18082025_11_43_55_10656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa0249518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0249518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa0249518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:44:47.080856
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/44/image_18082025_11_44_45_10607.jpg', 2), ('/home/nano/Desktop/images/18082025/11/44/image_18082025_11_44_34_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/11/44/image_18082025_11_44_25_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/11/44/image_18082025_11_44_14_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/11/43/image_18082025_11_44_04_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/11/43/image_18082025_11_43_55_10656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77a7d518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77a7d518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77a7d518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:45:02.863083
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/44/image_18082025_11_44_45_10607.jpg', 2), ('/home/nano/Desktop/images/18082025/11/44/image_18082025_11_44_34_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/11/44/image_18082025_11_44_25_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/11/44/image_18082025_11_44_14_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/11/43/image_18082025_11_44_04_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/11/43/image_18082025_11_43_55_10656.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faa5ee518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa5ee518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faa5ee518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:45:17.186990
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/45/image_18082025_11_45_45_9583.jpg', 2), ('/home/nano/Desktop/images/18082025/11/45/image_18082025_11_45_35_10593.jpg', 2), ('/home/nano/Desktop/images/18082025/11/45/image_18082025_11_45_24_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/11/45/image_18082025_11_45_15_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/11/44/image_18082025_11_45_04_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/11/44/image_18082025_11_44_55_9593.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa39a94a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa39a94a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa39a94a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:45:32.186376
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/45/image_18082025_11_45_45_9583.jpg', 2), ('/home/nano/Desktop/images/18082025/11/45/image_18082025_11_45_35_10593.jpg', 2), ('/home/nano/Desktop/images/18082025/11/45/image_18082025_11_45_24_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/11/45/image_18082025_11_45_15_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/11/44/image_18082025_11_45_04_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/11/44/image_18082025_11_44_55_9593.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb128a518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb128a518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb128a518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:45:47.174899
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/45/image_18082025_11_45_45_9583.jpg', 2), ('/home/nano/Desktop/images/18082025/11/45/image_18082025_11_45_35_10593.jpg', 2), ('/home/nano/Desktop/images/18082025/11/45/image_18082025_11_45_24_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/11/45/image_18082025_11_45_15_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/11/44/image_18082025_11_45_04_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/11/44/image_18082025_11_44_55_9593.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f92306518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92306518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f92306518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:46:02.676954
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/45/image_18082025_11_45_45_9583.jpg', 2), ('/home/nano/Desktop/images/18082025/11/45/image_18082025_11_45_35_10593.jpg', 2), ('/home/nano/Desktop/images/18082025/11/45/image_18082025_11_45_24_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/11/45/image_18082025_11_45_15_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/11/44/image_18082025_11_45_04_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/11/44/image_18082025_11_44_55_9593.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fadd93518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fadd93518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fadd93518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:46:17.274935
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/46/image_18082025_11_46_44_9583.jpg', 2), ('/home/nano/Desktop/images/18082025/11/46/image_18082025_11_46_35_9584.jpg', 2), ('/home/nano/Desktop/images/18082025/11/46/image_18082025_11_46_25_10610.jpg', 2), ('/home/nano/Desktop/images/18082025/11/46/image_18082025_11_46_14_9604.jpg', 2), ('/home/nano/Desktop/images/18082025/11/45/image_18082025_11_46_05_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/11/45/image_18082025_11_45_54_9597.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa01b2518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa01b2518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa01b2518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:46:32.345169
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/46/image_18082025_11_46_44_9583.jpg', 2), ('/home/nano/Desktop/images/18082025/11/46/image_18082025_11_46_35_9584.jpg', 2), ('/home/nano/Desktop/images/18082025/11/46/image_18082025_11_46_25_10610.jpg', 2), ('/home/nano/Desktop/images/18082025/11/46/image_18082025_11_46_14_9604.jpg', 2), ('/home/nano/Desktop/images/18082025/11/45/image_18082025_11_46_05_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/11/45/image_18082025_11_45_54_9597.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f77ce0518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77ce0518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f77ce0518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:46:47.318365
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/46/image_18082025_11_46_44_9583.jpg', 2), ('/home/nano/Desktop/images/18082025/11/46/image_18082025_11_46_35_9584.jpg', 2), ('/home/nano/Desktop/images/18082025/11/46/image_18082025_11_46_25_10610.jpg', 2), ('/home/nano/Desktop/images/18082025/11/46/image_18082025_11_46_14_9604.jpg', 2), ('/home/nano/Desktop/images/18082025/11/45/image_18082025_11_46_05_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/11/45/image_18082025_11_45_54_9597.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa52314a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa52314a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa52314a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:47:03.134498
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/46/image_18082025_11_46_44_9583.jpg', 2), ('/home/nano/Desktop/images/18082025/11/46/image_18082025_11_46_35_9584.jpg', 2), ('/home/nano/Desktop/images/18082025/11/46/image_18082025_11_46_25_10610.jpg', 2), ('/home/nano/Desktop/images/18082025/11/46/image_18082025_11_46_14_9604.jpg', 2), ('/home/nano/Desktop/images/18082025/11/45/image_18082025_11_46_05_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/11/45/image_18082025_11_45_54_9597.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7faccb0518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faccb0518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7faccb0518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:47:17.484721
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/47/image_18082025_11_47_45_10600.jpg', 2), ('/home/nano/Desktop/images/18082025/11/47/image_18082025_11_47_34_9595.jpg', 2), ('/home/nano/Desktop/images/18082025/11/47/image_18082025_11_47_25_9597.jpg', 2), ('/home/nano/Desktop/images/18082025/11/47/image_18082025_11_47_15_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/11/46/image_18082025_11_47_04_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/11/46/image_18082025_11_46_55_10604.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f94061550>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94061550>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f94061550>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:47:32.435800
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/47/image_18082025_11_47_45_10600.jpg', 2), ('/home/nano/Desktop/images/18082025/11/47/image_18082025_11_47_34_9595.jpg', 2), ('/home/nano/Desktop/images/18082025/11/47/image_18082025_11_47_25_9597.jpg', 2), ('/home/nano/Desktop/images/18082025/11/47/image_18082025_11_47_15_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/11/46/image_18082025_11_47_04_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/11/46/image_18082025_11_46_55_10604.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fb00734a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb00734a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fb00734a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:47:47.449354
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/47/image_18082025_11_47_45_10600.jpg', 2), ('/home/nano/Desktop/images/18082025/11/47/image_18082025_11_47_34_9595.jpg', 2), ('/home/nano/Desktop/images/18082025/11/47/image_18082025_11_47_25_9597.jpg', 2), ('/home/nano/Desktop/images/18082025/11/47/image_18082025_11_47_15_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/11/46/image_18082025_11_47_04_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/11/46/image_18082025_11_46_55_10604.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f801ee518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f801ee518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f801ee518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:48:03.052323
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/47/image_18082025_11_47_45_10600.jpg', 2), ('/home/nano/Desktop/images/18082025/11/47/image_18082025_11_47_34_9595.jpg', 2), ('/home/nano/Desktop/images/18082025/11/47/image_18082025_11_47_25_9597.jpg', 2), ('/home/nano/Desktop/images/18082025/11/47/image_18082025_11_47_15_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/11/46/image_18082025_11_47_04_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/11/46/image_18082025_11_46_55_10604.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fab23f518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab23f518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fab23f518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:48:17.522504
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/48/image_18082025_11_48_45_9601.jpg', 2), ('/home/nano/Desktop/images/18082025/11/48/image_18082025_11_48_35_10610.jpg', 2), ('/home/nano/Desktop/images/18082025/11/48/image_18082025_11_48_24_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/11/48/image_18082025_11_48_15_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/11/47/image_18082025_11_48_05_10620.jpg', 2), ('/home/nano/Desktop/images/18082025/11/47/image_18082025_11_47_54_9614.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9c545518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c545518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9c545518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:48:32.569707
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/48/image_18082025_11_48_45_9601.jpg', 2), ('/home/nano/Desktop/images/18082025/11/48/image_18082025_11_48_35_10610.jpg', 2), ('/home/nano/Desktop/images/18082025/11/48/image_18082025_11_48_24_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/11/48/image_18082025_11_48_15_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/11/47/image_18082025_11_48_05_10620.jpg', 2), ('/home/nano/Desktop/images/18082025/11/47/image_18082025_11_47_54_9614.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa2452550>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2452550>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa2452550>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:48:47.606866
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/48/image_18082025_11_48_45_9601.jpg', 2), ('/home/nano/Desktop/images/18082025/11/48/image_18082025_11_48_35_10610.jpg', 2), ('/home/nano/Desktop/images/18082025/11/48/image_18082025_11_48_24_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/11/48/image_18082025_11_48_15_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/11/47/image_18082025_11_48_05_10620.jpg', 2), ('/home/nano/Desktop/images/18082025/11/47/image_18082025_11_47_54_9614.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fae450518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae450518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fae450518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:49:03.541507
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/48/image_18082025_11_48_45_9601.jpg', 2), ('/home/nano/Desktop/images/18082025/11/48/image_18082025_11_48_35_10610.jpg', 2), ('/home/nano/Desktop/images/18082025/11/48/image_18082025_11_48_24_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/11/48/image_18082025_11_48_15_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/11/47/image_18082025_11_48_05_10620.jpg', 2), ('/home/nano/Desktop/images/18082025/11/47/image_18082025_11_47_54_9614.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f7f9e44a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f9e44a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7f9e44a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:49:17.747040
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/49/image_18082025_11_49_44_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/11/49/image_18082025_11_49_35_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/11/49/image_18082025_11_49_25_10615.jpg', 2), ('/home/nano/Desktop/images/18082025/11/49/image_18082025_11_49_14_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/11/48/image_18082025_11_49_05_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/11/48/image_18082025_11_48_54_9593.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f9fbe3518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fbe3518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f9fbe3518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:49:32.699970
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/49/image_18082025_11_49_44_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/11/49/image_18082025_11_49_35_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/11/49/image_18082025_11_49_25_10615.jpg', 2), ('/home/nano/Desktop/images/18082025/11/49/image_18082025_11_49_14_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/11/48/image_18082025_11_49_05_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/11/48/image_18082025_11_48_54_9593.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f82599518>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82599518>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f82599518>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u www.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:49:47.692133
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
SELECT filename, to_upload FROM mra_photos  WHERE to_upload in (2, 2)   AND day_taken_at = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/49/image_18082025_11_49_44_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/11/49/image_18082025_11_49_35_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/11/49/image_18082025_11_49_25_10615.jpg', 2), ('/home/nano/Desktop/images/18082025/11/49/image_18082025_11_49_14_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/11/48/image_18082025_11_49_05_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/11/48/image_18082025_11_48_54_9593.jpg', 2)]
Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 336, in upload_from_sqlite
    n_date = n_date[:10]
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 152, in get_port_id_and_datou_current_id
    with open(portfolio_path_local_cache_name, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/nano/.fotonower_config/port_id_18082025.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 170, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 353, in connect
    conn = self._new_conn()
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
    self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f887ba4a8>: Failed to establish a new connection: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/nano/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f887ba4a8>: Failed to establish a new connection: [Errno 113] No route to host',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 627, in <module>
    limit=x.limit_upload, status=status, order=x.order, verbose=verbose,nb_batch=x.nb_batch_upload)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 351, in upload_from_sqlite
    port_id, datou_current_id = get_port_id_and_datou_current_id(day, basename, fc, datou, fotonower_config_path, verbose)
  File "/home/nano/workarea/git/raspi-fotonower-x/python/upload_photos.py", line 176, in get_port_id_and_datou_current_id
    ret = fc.create_portfolio(new_name, verbose = verbose)
  File "/home/nano/.local/lib/python3.6/site-packages/fotonower/__init__.py", line 84, in create_portfolio
    r = requests.post(url, data=data_to_send)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/home/nano/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.fotonower.com', port=443): Max retries exceeded with url: /api/v1/portfolio/savePost (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f887ba4a8>: Failed to establish a new connection: [Errno 113] No route to host',))
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:50:02.337228
no port, creating one or fotonower_config_path unavailable : /home/nano/.fotonower_config
new_name : Sevran_3025_18082025
 fc.token : e243aac39fb012c084cfefeb2a6a3641
True
4892
3551393
4892
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/49/image_18082025_11_49_44_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/11/49/image_18082025_11_49_35_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/11/49/image_18082025_11_49_25_10615.jpg', 2), ('/home/nano/Desktop/images/18082025/11/49/image_18082025_11_49_14_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/11/48/image_18082025_11_49_05_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/11/48/image_18082025_11_48_54_9593.jpg', 2)]
{'portfolio_id': 26046296, 'actiontaken': ['Created new portfolio'], 'error': 'Photos id not exist !', 'updated_at': 1755510662000}
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/49/image_18082025_11_49_44_9615.jpg', '/home/nano/Desktop/images/18082025/11/49/image_18082025_11_49_35_9633.jpg', '/home/nano/Desktop/images/18082025/11/49/image_18082025_11_49_25_10615.jpg', '/home/nano/Desktop/images/18082025/11/49/image_18082025_11_49_14_9625.jpg', '/home/nano/Desktop/images/18082025/11/48/image_18082025_11_49_05_10623.jpg', '/home/nano/Desktop/images/18082025/11/48/image_18082025_11_48_54_9593.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/49/image_18082025_11_49_44_9615.jpg
/home/nano/Desktop/images/18082025/11/49/image_18082025_11_49_35_9633.jpg
/home/nano/Desktop/images/18082025/11/49/image_18082025_11_49_25_10615.jpg
/home/nano/Desktop/images/18082025/11/49/image_18082025_11_49_14_9625.jpg
/home/nano/Desktop/images/18082025/11/48/image_18082025_11_49_05_10623.jpg
/home/nano/Desktop/images/18082025/11/48/image_18082025_11_48_54_9593.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377696962","1377696959","1377696953","1377696956","1377696964","1377696967"],"photo_ids_order":["1377696953","1377696956","1377696959","1377696962","1377696964","1377696967"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/65d7577bfcd96f4b252c8cdc18b6e875.jpg","text":"TemporaryFile(/tmp/multipartBody6954913457551464306asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755510664503,"filename":"image_18082025_11_49_14_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fbc6d8576e1797e3de836b7196947d01.jpg","text":"TemporaryFile(/tmp/multipartBody4488097705598180251asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755510664503,"filename":"image_18082025_11_49_25_10615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2a71891fd4b5b2ec04f434d7eb86b6c7.jpg","text":"TemporaryFile(/tmp/multipartBody3647182834619989310asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755510664503,"filename":"image_18082025_11_49_44_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0d7a74e83d445a40b9a5df1990e542ad.jpg","text":"TemporaryFile(/tmp/multipartBody2216957286290634236asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755510664503,"filename":"image_18082025_11_49_35_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fdb5dbabbcca248b4e4cc5c5894daa66.jpg","text":"TemporaryFile(/tmp/multipartBody3328526204698638478asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755510664503,"filename":"image_18082025_11_49_05_10623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/27a3101ba442580dc404c97b49ad4caf.jpg","text":"TemporaryFile(/tmp/multipartBody497687701267606416asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755510664503,"filename":"image_18082025_11_48_54_9593.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377696959","file1":"1377696956","file0":"1377696953","file4":"1377696964","file5":"1377696967","file3":"1377696962"},"map_files_photo_id_array":[{"photo_id":"1377696967","filename":"file5"},{"photo_id":"1377696959","filename":"file2"},{"photo_id":"1377696964","filename":"file4"},{"photo_id":"1377696956","filename":"file1"},{"photo_id":"1377696953","filename":"file0"},{"photo_id":"1377696962","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377696962":["hashtag1","hashtag2"]},{"1377696959":["hashtag1","hashtag2"]},{"1377696953":["hashtag1","hashtag2"]},{"1377696956":["hashtag1","hashtag2"]},{"1377696964":["hashtag1","hashtag2"]},{"1377696967":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377696962, 1377696959, 1377696953, 1377696956, 1377696964, 1377696967)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.851330041885376 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:50:46.795850
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/50/image_18082025_11_50_45_10614.jpg', 2), ('/home/nano/Desktop/images/18082025/11/50/image_18082025_11_50_34_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/11/50/image_18082025_11_50_25_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/11/50/image_18082025_11_50_14_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/11/49/image_18082025_11_50_04_9603.jpg', 2), ('/home/nano/Desktop/images/18082025/11/49/image_18082025_11_49_55_10615.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/50/image_18082025_11_50_45_10614.jpg', '/home/nano/Desktop/images/18082025/11/50/image_18082025_11_50_34_9611.jpg', '/home/nano/Desktop/images/18082025/11/50/image_18082025_11_50_25_10628.jpg', '/home/nano/Desktop/images/18082025/11/50/image_18082025_11_50_14_9652.jpg', '/home/nano/Desktop/images/18082025/11/49/image_18082025_11_50_04_9603.jpg', '/home/nano/Desktop/images/18082025/11/49/image_18082025_11_49_55_10615.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/50/image_18082025_11_50_45_10614.jpg
/home/nano/Desktop/images/18082025/11/50/image_18082025_11_50_34_9611.jpg
/home/nano/Desktop/images/18082025/11/50/image_18082025_11_50_25_10628.jpg
/home/nano/Desktop/images/18082025/11/50/image_18082025_11_50_14_9652.jpg
/home/nano/Desktop/images/18082025/11/49/image_18082025_11_50_04_9603.jpg
/home/nano/Desktop/images/18082025/11/49/image_18082025_11_49_55_10615.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377696983","1377696974","1377696976","1377696979","1377696978","1377696972"],"photo_ids_order":["1377696972","1377696974","1377696976","1377696978","1377696979","1377696983"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/773d3458859e44e13a7d4e74653d6513.jpg","text":"TemporaryFile(/tmp/multipartBody8600479024166202710asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755510708030,"filename":"image_18082025_11_49_55_10615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c9f63ef57d9a075b9d9f8d71e5ffdcd8.jpg","text":"TemporaryFile(/tmp/multipartBody6437966353055205115asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755510708030,"filename":"image_18082025_11_50_34_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ae6b49ef1a53e14abcc8c0d5d38166e7.jpg","text":"TemporaryFile(/tmp/multipartBody2343684280041369030asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755510708030,"filename":"image_18082025_11_50_25_10628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b600aa77cf5e2d2e87cf3c50c1b69827.jpg","text":"TemporaryFile(/tmp/multipartBody2597591102298636854asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755510708030,"filename":"image_18082025_11_50_04_9603.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6be6381a62c6a4e7f1df2fc10a6a61e8.jpg","text":"TemporaryFile(/tmp/multipartBody4099246655965273707asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755510708030,"filename":"image_18082025_11_50_14_9652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a474f82974092f57087dda80cc0561e7.jpg","text":"TemporaryFile(/tmp/multipartBody8560382243386884997asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755510708030,"filename":"image_18082025_11_50_45_10614.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377696976","file1":"1377696974","file0":"1377696972","file4":"1377696979","file5":"1377696983","file3":"1377696978"},"map_files_photo_id_array":[{"photo_id":"1377696983","filename":"file5"},{"photo_id":"1377696976","filename":"file2"},{"photo_id":"1377696979","filename":"file4"},{"photo_id":"1377696974","filename":"file1"},{"photo_id":"1377696972","filename":"file0"},{"photo_id":"1377696978","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377696983":["hashtag1","hashtag2"]},{"1377696974":["hashtag1","hashtag2"]},{"1377696976":["hashtag1","hashtag2"]},{"1377696979":["hashtag1","hashtag2"]},{"1377696978":["hashtag1","hashtag2"]},{"1377696972":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377696983, 1377696974, 1377696976, 1377696979, 1377696978, 1377696972)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.004249334335327 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:51:31.881889
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/51/image_18082025_11_51_45_10614.jpg', 2), ('/home/nano/Desktop/images/18082025/11/51/image_18082025_11_51_34_9595.jpg', 2), ('/home/nano/Desktop/images/18082025/11/51/image_18082025_11_51_25_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/11/51/image_18082025_11_51_15_10697.jpg', 2), ('/home/nano/Desktop/images/18082025/11/50/image_18082025_11_51_04_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/11/50/image_18082025_11_50_55_9632.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/51/image_18082025_11_51_45_10614.jpg', '/home/nano/Desktop/images/18082025/11/51/image_18082025_11_51_34_9595.jpg', '/home/nano/Desktop/images/18082025/11/51/image_18082025_11_51_25_9623.jpg', '/home/nano/Desktop/images/18082025/11/51/image_18082025_11_51_15_10697.jpg', '/home/nano/Desktop/images/18082025/11/50/image_18082025_11_51_04_9622.jpg', '/home/nano/Desktop/images/18082025/11/50/image_18082025_11_50_55_9632.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/51/image_18082025_11_51_45_10614.jpg
/home/nano/Desktop/images/18082025/11/51/image_18082025_11_51_34_9595.jpg
/home/nano/Desktop/images/18082025/11/51/image_18082025_11_51_25_9623.jpg
/home/nano/Desktop/images/18082025/11/51/image_18082025_11_51_15_10697.jpg
/home/nano/Desktop/images/18082025/11/50/image_18082025_11_51_04_9622.jpg
/home/nano/Desktop/images/18082025/11/50/image_18082025_11_50_55_9632.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377697007","1377697012","1377697006","1377697015","1377697009","1377697005"],"photo_ids_order":["1377697005","1377697006","1377697007","1377697009","1377697012","1377697015"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4345f0e66323470d116a428b1789d3a5.jpg","text":"TemporaryFile(/tmp/multipartBody1355340290265765487asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755510753135,"filename":"image_18082025_11_51_25_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/974bfdaa37488d80611b0ec65636d057.jpg","text":"TemporaryFile(/tmp/multipartBody5239869562035895512asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755510753135,"filename":"image_18082025_11_51_04_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/241ef9b87ea829d72d1162fb82ba39e4.jpg","text":"TemporaryFile(/tmp/multipartBody4090237063335740272asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755510753135,"filename":"image_18082025_11_51_34_9595.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ac485ca6834f520fb71a234ed96c5ece.jpg","text":"TemporaryFile(/tmp/multipartBody5194082213526286837asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755510753135,"filename":"image_18082025_11_50_55_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/215a4d4b29dbdc1e47add551411e06b1.jpg","text":"TemporaryFile(/tmp/multipartBody5840348235550666916asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755510753135,"filename":"image_18082025_11_51_15_10697.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ead83958bfe70ce2d542f1d7949063f8.jpg","text":"TemporaryFile(/tmp/multipartBody7046496842590917260asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755510753135,"filename":"image_18082025_11_51_45_10614.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377697007","file1":"1377697006","file0":"1377697005","file4":"1377697012","file5":"1377697015","file3":"1377697009"},"map_files_photo_id_array":[{"photo_id":"1377697015","filename":"file5"},{"photo_id":"1377697007","filename":"file2"},{"photo_id":"1377697012","filename":"file4"},{"photo_id":"1377697006","filename":"file1"},{"photo_id":"1377697005","filename":"file0"},{"photo_id":"1377697009","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377697007":["hashtag1","hashtag2"]},{"1377697012":["hashtag1","hashtag2"]},{"1377697006":["hashtag1","hashtag2"]},{"1377697015":["hashtag1","hashtag2"]},{"1377697009":["hashtag1","hashtag2"]},{"1377697005":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377697007, 1377697012, 1377697006, 1377697015, 1377697009, 1377697005)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.34102201461792 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:52:16.973820
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/52/image_18082025_11_52_44_9600.jpg', 2), ('/home/nano/Desktop/images/18082025/11/52/image_18082025_11_52_35_10615.jpg', 2), ('/home/nano/Desktop/images/18082025/11/52/image_18082025_11_52_24_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/11/52/image_18082025_11_52_15_9604.jpg', 2), ('/home/nano/Desktop/images/18082025/11/51/image_18082025_11_52_05_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/11/51/image_18082025_11_51_54_9607.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/52/image_18082025_11_52_44_9600.jpg', '/home/nano/Desktop/images/18082025/11/52/image_18082025_11_52_35_10615.jpg', '/home/nano/Desktop/images/18082025/11/52/image_18082025_11_52_24_9621.jpg', '/home/nano/Desktop/images/18082025/11/52/image_18082025_11_52_15_9604.jpg', '/home/nano/Desktop/images/18082025/11/51/image_18082025_11_52_05_10637.jpg', '/home/nano/Desktop/images/18082025/11/51/image_18082025_11_51_54_9607.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/52/image_18082025_11_52_44_9600.jpg
/home/nano/Desktop/images/18082025/11/52/image_18082025_11_52_35_10615.jpg
/home/nano/Desktop/images/18082025/11/52/image_18082025_11_52_24_9621.jpg
/home/nano/Desktop/images/18082025/11/52/image_18082025_11_52_15_9604.jpg
/home/nano/Desktop/images/18082025/11/51/image_18082025_11_52_05_10637.jpg
/home/nano/Desktop/images/18082025/11/51/image_18082025_11_51_54_9607.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377697027","1377697041","1377697035","1377697029","1377697038","1377697032"],"photo_ids_order":["1377697027","1377697029","1377697032","1377697035","1377697038","1377697041"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8e482959a028cb47752b6d75e18c606b.jpg","text":"TemporaryFile(/tmp/multipartBody3928377917958035940asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755510798748,"filename":"image_18082025_11_52_44_9600.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b02a1de757ef1c377f167c83c38a5f4b.jpg","text":"TemporaryFile(/tmp/multipartBody1859925725471147026asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755510798748,"filename":"image_18082025_11_51_54_9607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8a6272bf0a14b059bbfb7a5dd6ca96ba.jpg","text":"TemporaryFile(/tmp/multipartBody6243808213461588240asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755510798748,"filename":"image_18082025_11_52_15_9604.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/aa69784c5f50d70df54c1cf84e9dfd30.jpg","text":"TemporaryFile(/tmp/multipartBody7493050621885798005asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755510798748,"filename":"image_18082025_11_52_35_10615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/26ea10b44bf5c1f7d22ee90f60bc59f0.jpg","text":"TemporaryFile(/tmp/multipartBody4082460774035585114asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755510798748,"filename":"image_18082025_11_52_05_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2548a68ab81ec16e6e470d3afa2fe79b.jpg","text":"TemporaryFile(/tmp/multipartBody1016269493685868502asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755510798748,"filename":"image_18082025_11_52_24_9621.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377697032","file1":"1377697029","file0":"1377697027","file4":"1377697038","file5":"1377697041","file3":"1377697035"},"map_files_photo_id_array":[{"photo_id":"1377697041","filename":"file5"},{"photo_id":"1377697032","filename":"file2"},{"photo_id":"1377697038","filename":"file4"},{"photo_id":"1377697029","filename":"file1"},{"photo_id":"1377697027","filename":"file0"},{"photo_id":"1377697035","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377697027":["hashtag1","hashtag2"]},{"1377697041":["hashtag1","hashtag2"]},{"1377697035":["hashtag1","hashtag2"]},{"1377697029":["hashtag1","hashtag2"]},{"1377697038":["hashtag1","hashtag2"]},{"1377697032":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377697027, 1377697041, 1377697035, 1377697029, 1377697038, 1377697032)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.314411640167236 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:53:02.871856
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/48/image_18082025_11_48_45_9601.jpg', 2), ('/home/nano/Desktop/images/18082025/11/48/image_18082025_11_48_35_10610.jpg', 2), ('/home/nano/Desktop/images/18082025/11/48/image_18082025_11_48_24_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/11/48/image_18082025_11_48_15_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/11/47/image_18082025_11_48_05_10620.jpg', 2), ('/home/nano/Desktop/images/18082025/11/47/image_18082025_11_47_54_9614.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/48/image_18082025_11_48_45_9601.jpg', '/home/nano/Desktop/images/18082025/11/48/image_18082025_11_48_35_10610.jpg', '/home/nano/Desktop/images/18082025/11/48/image_18082025_11_48_24_9623.jpg', '/home/nano/Desktop/images/18082025/11/48/image_18082025_11_48_15_9622.jpg', '/home/nano/Desktop/images/18082025/11/47/image_18082025_11_48_05_10620.jpg', '/home/nano/Desktop/images/18082025/11/47/image_18082025_11_47_54_9614.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/48/image_18082025_11_48_45_9601.jpg
/home/nano/Desktop/images/18082025/11/48/image_18082025_11_48_35_10610.jpg
/home/nano/Desktop/images/18082025/11/48/image_18082025_11_48_24_9623.jpg
/home/nano/Desktop/images/18082025/11/48/image_18082025_11_48_15_9622.jpg
/home/nano/Desktop/images/18082025/11/47/image_18082025_11_48_05_10620.jpg
/home/nano/Desktop/images/18082025/11/47/image_18082025_11_47_54_9614.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377697067","1377697049","1377697072","1377697057","1377697053","1377697062"],"photo_ids_order":["1377697049","1377697053","1377697057","1377697062","1377697067","1377697072"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ac469dc935b96a1fae0067f8cdba2b69.jpg","text":"TemporaryFile(/tmp/multipartBody2966828115028335794asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755510844107,"filename":"image_18082025_11_48_05_10620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b10c02af7c28fc83703218b042ab00d4.jpg","text":"TemporaryFile(/tmp/multipartBody7127265384400461869asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755510844107,"filename":"image_18082025_11_48_45_9601.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9380a464573ef75bb553193e56928424.jpg","text":"TemporaryFile(/tmp/multipartBody3165162448377790532asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755510844107,"filename":"image_18082025_11_47_54_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8f04981e228fa12e8d4e6b7fcadac513.jpg","text":"TemporaryFile(/tmp/multipartBody3820760341980457261asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755510844107,"filename":"image_18082025_11_48_24_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4f0a0ed11170dd326660cd24b01fe207.jpg","text":"TemporaryFile(/tmp/multipartBody4541734796642930302asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755510844107,"filename":"image_18082025_11_48_35_10610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/503fc4e547e9d4e5e75567c0afc0504a.jpg","text":"TemporaryFile(/tmp/multipartBody4512195232717136637asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755510844107,"filename":"image_18082025_11_48_15_9622.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377697057","file1":"1377697053","file0":"1377697049","file4":"1377697067","file5":"1377697072","file3":"1377697062"},"map_files_photo_id_array":[{"photo_id":"1377697072","filename":"file5"},{"photo_id":"1377697057","filename":"file2"},{"photo_id":"1377697067","filename":"file4"},{"photo_id":"1377697053","filename":"file1"},{"photo_id":"1377697049","filename":"file0"},{"photo_id":"1377697062","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377697067":["hashtag1","hashtag2"]},{"1377697049":["hashtag1","hashtag2"]},{"1377697072":["hashtag1","hashtag2"]},{"1377697057":["hashtag1","hashtag2"]},{"1377697053":["hashtag1","hashtag2"]},{"1377697062":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377697067, 1377697049, 1377697072, 1377697057, 1377697053, 1377697062)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.11503195762634 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:53:47.094749
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/53/image_18082025_11_53_44_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/11/53/image_18082025_11_53_34_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/11/53/image_18082025_11_53_25_10615.jpg', 2), ('/home/nano/Desktop/images/18082025/11/53/image_18082025_11_53_14_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/11/52/image_18082025_11_53_05_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/11/52/image_18082025_11_52_55_10616.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/53/image_18082025_11_53_44_9624.jpg', '/home/nano/Desktop/images/18082025/11/53/image_18082025_11_53_34_9611.jpg', '/home/nano/Desktop/images/18082025/11/53/image_18082025_11_53_25_10615.jpg', '/home/nano/Desktop/images/18082025/11/53/image_18082025_11_53_14_9619.jpg', '/home/nano/Desktop/images/18082025/11/52/image_18082025_11_53_05_9621.jpg', '/home/nano/Desktop/images/18082025/11/52/image_18082025_11_52_55_10616.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/53/image_18082025_11_53_44_9624.jpg
/home/nano/Desktop/images/18082025/11/53/image_18082025_11_53_34_9611.jpg
/home/nano/Desktop/images/18082025/11/53/image_18082025_11_53_25_10615.jpg
/home/nano/Desktop/images/18082025/11/53/image_18082025_11_53_14_9619.jpg
/home/nano/Desktop/images/18082025/11/52/image_18082025_11_53_05_9621.jpg
/home/nano/Desktop/images/18082025/11/52/image_18082025_11_52_55_10616.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377697090","1377697087","1377697081","1377697084","1377697095","1377697092"],"photo_ids_order":["1377697081","1377697084","1377697087","1377697090","1377697092","1377697095"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6f5bbd48e0e570a59d4daed7a62701d4.jpg","text":"TemporaryFile(/tmp/multipartBody5062466835053546953asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755510888394,"filename":"image_18082025_11_53_14_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7d1b009b4c0580cefde45bec73eeaa20.jpg","text":"TemporaryFile(/tmp/multipartBody5699756927103354234asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755510888394,"filename":"image_18082025_11_53_25_10615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ffa4da1907dbf8a2385b16ca5073d1f7.jpg","text":"TemporaryFile(/tmp/multipartBody337760710910039025asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755510888394,"filename":"image_18082025_11_53_44_9624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/97d1a1512ea9afe44dae12cef2ca7b26.jpg","text":"TemporaryFile(/tmp/multipartBody6704055585948744275asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755510888394,"filename":"image_18082025_11_53_34_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d63adca64a4ea2be315d6ff4cfeba70f.jpg","text":"TemporaryFile(/tmp/multipartBody6726033338763460169asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755510888394,"filename":"image_18082025_11_52_55_10616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1e5c54d9fa356e047b2ec7e9ceed600a.jpg","text":"TemporaryFile(/tmp/multipartBody1487994274877386579asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755510888394,"filename":"image_18082025_11_53_05_9621.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377697087","file1":"1377697084","file0":"1377697081","file4":"1377697092","file5":"1377697095","file3":"1377697090"},"map_files_photo_id_array":[{"photo_id":"1377697095","filename":"file5"},{"photo_id":"1377697087","filename":"file2"},{"photo_id":"1377697092","filename":"file4"},{"photo_id":"1377697084","filename":"file1"},{"photo_id":"1377697081","filename":"file0"},{"photo_id":"1377697090","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377697090":["hashtag1","hashtag2"]},{"1377697087":["hashtag1","hashtag2"]},{"1377697081":["hashtag1","hashtag2"]},{"1377697084":["hashtag1","hashtag2"]},{"1377697095":["hashtag1","hashtag2"]},{"1377697092":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377697090, 1377697087, 1377697081, 1377697084, 1377697095, 1377697092)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.69456434249878 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:54:32.211317
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/54/image_18082025_11_54_45_10607.jpg', 2), ('/home/nano/Desktop/images/18082025/11/54/image_18082025_11_54_34_9585.jpg', 2), ('/home/nano/Desktop/images/18082025/11/54/image_18082025_11_54_25_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/11/54/image_18082025_11_54_15_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/11/53/image_18082025_11_54_04_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/11/53/image_18082025_11_53_55_10615.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/54/image_18082025_11_54_45_10607.jpg', '/home/nano/Desktop/images/18082025/11/54/image_18082025_11_54_34_9585.jpg', '/home/nano/Desktop/images/18082025/11/54/image_18082025_11_54_25_9635.jpg', '/home/nano/Desktop/images/18082025/11/54/image_18082025_11_54_15_10653.jpg', '/home/nano/Desktop/images/18082025/11/53/image_18082025_11_54_04_9625.jpg', '/home/nano/Desktop/images/18082025/11/53/image_18082025_11_53_55_10615.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/54/image_18082025_11_54_45_10607.jpg
/home/nano/Desktop/images/18082025/11/54/image_18082025_11_54_34_9585.jpg
/home/nano/Desktop/images/18082025/11/54/image_18082025_11_54_25_9635.jpg
/home/nano/Desktop/images/18082025/11/54/image_18082025_11_54_15_10653.jpg
/home/nano/Desktop/images/18082025/11/53/image_18082025_11_54_04_9625.jpg
/home/nano/Desktop/images/18082025/11/53/image_18082025_11_53_55_10615.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377697112","1377697109","1377697117","1377697111","1377697114","1377697119"],"photo_ids_order":["1377697109","1377697111","1377697112","1377697114","1377697117","1377697119"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/37d0eb6a6e40fc5b7649e75e692a9229.jpg","text":"TemporaryFile(/tmp/multipartBody7132043989251732259asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755510933436,"filename":"image_18082025_11_54_25_9635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/51443b957c70f61de3b4799993f78292.jpg","text":"TemporaryFile(/tmp/multipartBody8873380229563344175asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755510933436,"filename":"image_18082025_11_54_45_10607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4de08b1341de5a668cecdb826d359f9f.jpg","text":"TemporaryFile(/tmp/multipartBody5771028177501180654asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755510933436,"filename":"image_18082025_11_54_04_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4f70bf1df51d65cd20ffebf0bc67b2fe.jpg","text":"TemporaryFile(/tmp/multipartBody3832343944048175411asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755510933436,"filename":"image_18082025_11_54_34_9585.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0b4cef49d705cb542664a6e9e8e919fe.jpg","text":"TemporaryFile(/tmp/multipartBody2553216374652875807asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755510933436,"filename":"image_18082025_11_54_15_10653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cf9524866e576bab538eab6010a35c98.jpg","text":"TemporaryFile(/tmp/multipartBody7090314328491326037asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755510933436,"filename":"image_18082025_11_53_55_10615.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377697112","file1":"1377697111","file0":"1377697109","file4":"1377697117","file5":"1377697119","file3":"1377697114"},"map_files_photo_id_array":[{"photo_id":"1377697119","filename":"file5"},{"photo_id":"1377697112","filename":"file2"},{"photo_id":"1377697117","filename":"file4"},{"photo_id":"1377697111","filename":"file1"},{"photo_id":"1377697109","filename":"file0"},{"photo_id":"1377697114","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377697112":["hashtag1","hashtag2"]},{"1377697109":["hashtag1","hashtag2"]},{"1377697117":["hashtag1","hashtag2"]},{"1377697111":["hashtag1","hashtag2"]},{"1377697114":["hashtag1","hashtag2"]},{"1377697119":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377697112, 1377697109, 1377697117, 1377697111, 1377697114, 1377697119)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.9185311794281 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:55:17.306448
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/55/image_18082025_11_55_45_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/11/55/image_18082025_11_55_34_9701.jpg', 2), ('/home/nano/Desktop/images/18082025/11/55/image_18082025_11_55_24_9596.jpg', 2), ('/home/nano/Desktop/images/18082025/11/55/image_18082025_11_55_15_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/11/54/image_18082025_11_55_04_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/11/54/image_18082025_11_54_55_9699.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/55/image_18082025_11_55_45_10636.jpg', '/home/nano/Desktop/images/18082025/11/55/image_18082025_11_55_34_9701.jpg', '/home/nano/Desktop/images/18082025/11/55/image_18082025_11_55_24_9596.jpg', '/home/nano/Desktop/images/18082025/11/55/image_18082025_11_55_15_10626.jpg', '/home/nano/Desktop/images/18082025/11/54/image_18082025_11_55_04_9635.jpg', '/home/nano/Desktop/images/18082025/11/54/image_18082025_11_54_55_9699.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/55/image_18082025_11_55_45_10636.jpg
/home/nano/Desktop/images/18082025/11/55/image_18082025_11_55_34_9701.jpg
/home/nano/Desktop/images/18082025/11/55/image_18082025_11_55_24_9596.jpg
/home/nano/Desktop/images/18082025/11/55/image_18082025_11_55_15_10626.jpg
/home/nano/Desktop/images/18082025/11/54/image_18082025_11_55_04_9635.jpg
/home/nano/Desktop/images/18082025/11/54/image_18082025_11_54_55_9699.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377697142","1377697139","1377697148","1377697135","1377697144","1377697146"],"photo_ids_order":["1377697135","1377697139","1377697142","1377697144","1377697146","1377697148"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cb5741792d396d7fdfa89a00323ff624.jpg","text":"TemporaryFile(/tmp/multipartBody574948961262765293asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755510978506,"filename":"image_18082025_11_55_24_9596.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8ac0321ee99384fe91ba9bded6ef70ab.jpg","text":"TemporaryFile(/tmp/multipartBody5442789646802225985asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755510978506,"filename":"image_18082025_11_55_34_9701.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d9b594edbf6541fdf6e6eca9b323eed2.jpg","text":"TemporaryFile(/tmp/multipartBody5172229449143995431asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755510978506,"filename":"image_18082025_11_54_55_9699.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ac4025cbb27bdcab567da9d5e710a469.jpg","text":"TemporaryFile(/tmp/multipartBody7479622874546667031asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755510978506,"filename":"image_18082025_11_55_45_10636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/392556bc50a325a9c28836ab88b5df00.jpg","text":"TemporaryFile(/tmp/multipartBody4977191503245306433asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755510978506,"filename":"image_18082025_11_55_15_10626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/da482f14fcf0887ed751c6d55f808a05.jpg","text":"TemporaryFile(/tmp/multipartBody6545546460095168810asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755510978506,"filename":"image_18082025_11_55_04_9635.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377697142","file1":"1377697139","file0":"1377697135","file4":"1377697146","file5":"1377697148","file3":"1377697144"},"map_files_photo_id_array":[{"photo_id":"1377697148","filename":"file5"},{"photo_id":"1377697142","filename":"file2"},{"photo_id":"1377697146","filename":"file4"},{"photo_id":"1377697139","filename":"file1"},{"photo_id":"1377697135","filename":"file0"},{"photo_id":"1377697144","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377697142":["hashtag1","hashtag2"]},{"1377697139":["hashtag1","hashtag2"]},{"1377697148":["hashtag1","hashtag2"]},{"1377697135":["hashtag1","hashtag2"]},{"1377697144":["hashtag1","hashtag2"]},{"1377697146":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377697142, 1377697139, 1377697148, 1377697135, 1377697144, 1377697146)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.48417043685913 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:56:03.063840
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/47/image_18082025_11_47_45_10600.jpg', 2), ('/home/nano/Desktop/images/18082025/11/47/image_18082025_11_47_34_9595.jpg', 2), ('/home/nano/Desktop/images/18082025/11/47/image_18082025_11_47_25_9597.jpg', 2), ('/home/nano/Desktop/images/18082025/11/47/image_18082025_11_47_15_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/11/46/image_18082025_11_47_04_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/11/46/image_18082025_11_46_55_10604.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/47/image_18082025_11_47_45_10600.jpg', '/home/nano/Desktop/images/18082025/11/47/image_18082025_11_47_34_9595.jpg', '/home/nano/Desktop/images/18082025/11/47/image_18082025_11_47_25_9597.jpg', '/home/nano/Desktop/images/18082025/11/47/image_18082025_11_47_15_10621.jpg', '/home/nano/Desktop/images/18082025/11/46/image_18082025_11_47_04_9633.jpg', '/home/nano/Desktop/images/18082025/11/46/image_18082025_11_46_55_10604.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/47/image_18082025_11_47_45_10600.jpg
/home/nano/Desktop/images/18082025/11/47/image_18082025_11_47_34_9595.jpg
/home/nano/Desktop/images/18082025/11/47/image_18082025_11_47_25_9597.jpg
/home/nano/Desktop/images/18082025/11/47/image_18082025_11_47_15_10621.jpg
/home/nano/Desktop/images/18082025/11/46/image_18082025_11_47_04_9633.jpg
/home/nano/Desktop/images/18082025/11/46/image_18082025_11_46_55_10604.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377697163","1377697166","1377697174","1377697168","1377697159","1377697170"],"photo_ids_order":["1377697159","1377697163","1377697166","1377697168","1377697170","1377697174"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/142ae1cfbec9eae8bbd370a546251dfb.jpg","text":"TemporaryFile(/tmp/multipartBody5827913136288339125asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511024044,"filename":"image_18082025_11_47_34_9595.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/78ed01e6162a6541a990fe374658b7b5.jpg","text":"TemporaryFile(/tmp/multipartBody5503723151486442060asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511024044,"filename":"image_18082025_11_47_25_9597.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0fe44c3328b973f4cb68c9a11f67864d.jpg","text":"TemporaryFile(/tmp/multipartBody4281433850360320957asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511024044,"filename":"image_18082025_11_46_55_10604.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a62d9e3f9311523d275fd9f93a277bfd.jpg","text":"TemporaryFile(/tmp/multipartBody3986069225157600047asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511024044,"filename":"image_18082025_11_47_15_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b65e8713292474cf047c99dd2650c10d.jpg","text":"TemporaryFile(/tmp/multipartBody9145727895220167155asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511024044,"filename":"image_18082025_11_47_45_10600.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a023fa6f6f1d5879e814416c451c2ee9.jpg","text":"TemporaryFile(/tmp/multipartBody6707565902469606003asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511024044,"filename":"image_18082025_11_47_04_9633.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377697166","file1":"1377697163","file0":"1377697159","file4":"1377697170","file5":"1377697174","file3":"1377697168"},"map_files_photo_id_array":[{"photo_id":"1377697174","filename":"file5"},{"photo_id":"1377697166","filename":"file2"},{"photo_id":"1377697170","filename":"file4"},{"photo_id":"1377697163","filename":"file1"},{"photo_id":"1377697159","filename":"file0"},{"photo_id":"1377697168","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377697163":["hashtag1","hashtag2"]},{"1377697166":["hashtag1","hashtag2"]},{"1377697174":["hashtag1","hashtag2"]},{"1377697168":["hashtag1","hashtag2"]},{"1377697159":["hashtag1","hashtag2"]},{"1377697170":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377697163, 1377697166, 1377697174, 1377697168, 1377697159, 1377697170)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.39433193206787 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:56:47.427190
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/56/image_18082025_11_56_45_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/11/56/image_18082025_11_56_35_10643.jpg', 2), ('/home/nano/Desktop/images/18082025/11/56/image_18082025_11_56_24_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/11/56/image_18082025_11_56_15_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/11/55/image_18082025_11_56_05_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/11/55/image_18082025_11_55_54_9649.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/56/image_18082025_11_56_45_9621.jpg', '/home/nano/Desktop/images/18082025/11/56/image_18082025_11_56_35_10643.jpg', '/home/nano/Desktop/images/18082025/11/56/image_18082025_11_56_24_9656.jpg', '/home/nano/Desktop/images/18082025/11/56/image_18082025_11_56_15_9655.jpg', '/home/nano/Desktop/images/18082025/11/55/image_18082025_11_56_05_10635.jpg', '/home/nano/Desktop/images/18082025/11/55/image_18082025_11_55_54_9649.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/56/image_18082025_11_56_45_9621.jpg
/home/nano/Desktop/images/18082025/11/56/image_18082025_11_56_35_10643.jpg
/home/nano/Desktop/images/18082025/11/56/image_18082025_11_56_24_9656.jpg
/home/nano/Desktop/images/18082025/11/56/image_18082025_11_56_15_9655.jpg
/home/nano/Desktop/images/18082025/11/55/image_18082025_11_56_05_10635.jpg
/home/nano/Desktop/images/18082025/11/55/image_18082025_11_55_54_9649.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377697206","1377697199","1377697202","1377697195","1377697194","1377697197"],"photo_ids_order":["1377697194","1377697195","1377697197","1377697199","1377697202","1377697206"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d618d132e4c0a54eb82639c4e9f5f100.jpg","text":"TemporaryFile(/tmp/multipartBody2065791037032292929asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511068512,"filename":"image_18082025_11_55_54_9649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/aa1c469f0f6c030075cd66eaf8b15ff6.jpg","text":"TemporaryFile(/tmp/multipartBody5372724176419902717asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511068512,"filename":"image_18082025_11_56_15_9655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ea9a094cc961d813eabeb976a7c376cc.jpg","text":"TemporaryFile(/tmp/multipartBody5199000581728848155asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511068512,"filename":"image_18082025_11_56_05_10635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1617e21b4a7cbb934790e2b4cc98d7b2.jpg","text":"TemporaryFile(/tmp/multipartBody2728702369111102822asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511068512,"filename":"image_18082025_11_56_35_10643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8290d997d7807b5d3c0eb733e4803a76.jpg","text":"TemporaryFile(/tmp/multipartBody1109022149333361163asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511068512,"filename":"image_18082025_11_56_45_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2c45a3aa91284ca8e3e4cc9b4e1ca7f8.jpg","text":"TemporaryFile(/tmp/multipartBody5434514276527710283asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511068512,"filename":"image_18082025_11_56_24_9656.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377697197","file1":"1377697195","file0":"1377697194","file4":"1377697202","file5":"1377697206","file3":"1377697199"},"map_files_photo_id_array":[{"photo_id":"1377697206","filename":"file5"},{"photo_id":"1377697197","filename":"file2"},{"photo_id":"1377697202","filename":"file4"},{"photo_id":"1377697195","filename":"file1"},{"photo_id":"1377697194","filename":"file0"},{"photo_id":"1377697199","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377697206":["hashtag1","hashtag2"]},{"1377697199":["hashtag1","hashtag2"]},{"1377697202":["hashtag1","hashtag2"]},{"1377697195":["hashtag1","hashtag2"]},{"1377697194":["hashtag1","hashtag2"]},{"1377697197":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377697206, 1377697199, 1377697202, 1377697195, 1377697194, 1377697197)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.02226758003235 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:57:32.521795
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/57/image_18082025_11_57_44_9600.jpg', 2), ('/home/nano/Desktop/images/18082025/11/57/image_18082025_11_57_35_10619.jpg', 2), ('/home/nano/Desktop/images/18082025/11/57/image_18082025_11_57_24_9602.jpg', 2), ('/home/nano/Desktop/images/18082025/11/57/image_18082025_11_57_14_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/11/56/image_18082025_11_57_05_10657.jpg', 2), ('/home/nano/Desktop/images/18082025/11/56/image_18082025_11_56_54_9604.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/57/image_18082025_11_57_44_9600.jpg', '/home/nano/Desktop/images/18082025/11/57/image_18082025_11_57_35_10619.jpg', '/home/nano/Desktop/images/18082025/11/57/image_18082025_11_57_24_9602.jpg', '/home/nano/Desktop/images/18082025/11/57/image_18082025_11_57_14_9627.jpg', '/home/nano/Desktop/images/18082025/11/56/image_18082025_11_57_05_10657.jpg', '/home/nano/Desktop/images/18082025/11/56/image_18082025_11_56_54_9604.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/57/image_18082025_11_57_44_9600.jpg
/home/nano/Desktop/images/18082025/11/57/image_18082025_11_57_35_10619.jpg
/home/nano/Desktop/images/18082025/11/57/image_18082025_11_57_24_9602.jpg
/home/nano/Desktop/images/18082025/11/57/image_18082025_11_57_14_9627.jpg
/home/nano/Desktop/images/18082025/11/56/image_18082025_11_57_05_10657.jpg
/home/nano/Desktop/images/18082025/11/56/image_18082025_11_56_54_9604.jpg
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:59:03.717681
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/57/image_18082025_11_57_44_9600.jpg', 2), ('/home/nano/Desktop/images/18082025/11/57/image_18082025_11_57_35_10619.jpg', 2), ('/home/nano/Desktop/images/18082025/11/57/image_18082025_11_57_24_9602.jpg', 2), ('/home/nano/Desktop/images/18082025/11/57/image_18082025_11_57_14_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/11/56/image_18082025_11_57_05_10657.jpg', 2), ('/home/nano/Desktop/images/18082025/11/56/image_18082025_11_56_54_9604.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/57/image_18082025_11_57_44_9600.jpg', '/home/nano/Desktop/images/18082025/11/57/image_18082025_11_57_35_10619.jpg', '/home/nano/Desktop/images/18082025/11/57/image_18082025_11_57_24_9602.jpg', '/home/nano/Desktop/images/18082025/11/57/image_18082025_11_57_14_9627.jpg', '/home/nano/Desktop/images/18082025/11/56/image_18082025_11_57_05_10657.jpg', '/home/nano/Desktop/images/18082025/11/56/image_18082025_11_56_54_9604.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/57/image_18082025_11_57_44_9600.jpg
/home/nano/Desktop/images/18082025/11/57/image_18082025_11_57_35_10619.jpg
/home/nano/Desktop/images/18082025/11/57/image_18082025_11_57_24_9602.jpg
/home/nano/Desktop/images/18082025/11/57/image_18082025_11_57_14_9627.jpg
/home/nano/Desktop/images/18082025/11/56/image_18082025_11_57_05_10657.jpg
/home/nano/Desktop/images/18082025/11/56/image_18082025_11_56_54_9604.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377697262","1377697265","1377697273","1377697255","1377697258","1377697269"],"photo_ids_order":["1377697255","1377697258","1377697262","1377697265","1377697269","1377697273"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/27bba64930329315629d86318f448901.jpg","text":"TemporaryFile(/tmp/multipartBody5836757884937605877asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511204832,"filename":"image_18082025_11_57_24_9602.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8b6b8bb4301217ef6139076f298c2f58.jpg","text":"TemporaryFile(/tmp/multipartBody8141256581290355077asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511204832,"filename":"image_18082025_11_57_14_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7733348b37828cec9d3f9ab798445648.jpg","text":"TemporaryFile(/tmp/multipartBody2712076767777482618asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511204832,"filename":"image_18082025_11_56_54_9604.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f96470871527402a97ad00d081c0fd5d.jpg","text":"TemporaryFile(/tmp/multipartBody7722535685533062742asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511204832,"filename":"image_18082025_11_57_44_9600.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c083798217f058792ea28b74308dfd15.jpg","text":"TemporaryFile(/tmp/multipartBody8600075837496102392asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511204832,"filename":"image_18082025_11_57_35_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/33c3f724288eda80f77657daf89c139b.jpg","text":"TemporaryFile(/tmp/multipartBody3507771793689996657asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511204832,"filename":"image_18082025_11_57_05_10657.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377697262","file1":"1377697258","file0":"1377697255","file4":"1377697269","file5":"1377697273","file3":"1377697265"},"map_files_photo_id_array":[{"photo_id":"1377697273","filename":"file5"},{"photo_id":"1377697262","filename":"file2"},{"photo_id":"1377697269","filename":"file4"},{"photo_id":"1377697258","filename":"file1"},{"photo_id":"1377697255","filename":"file0"},{"photo_id":"1377697265","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377697262":["hashtag1","hashtag2"]},{"1377697265":["hashtag1","hashtag2"]},{"1377697273":["hashtag1","hashtag2"]},{"1377697255":["hashtag1","hashtag2"]},{"1377697258":["hashtag1","hashtag2"]},{"1377697269":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377697262, 1377697265, 1377697273, 1377697255, 1377697258, 1377697269)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.19156622886658 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 11:59:47.776746
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/59/image_18082025_11_59_45_10616.jpg', 2), ('/home/nano/Desktop/images/18082025/11/59/image_18082025_11_59_34_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/11/59/image_18082025_11_59_25_9602.jpg', 2), ('/home/nano/Desktop/images/18082025/11/59/image_18082025_11_59_15_10622.jpg', 2), ('/home/nano/Desktop/images/18082025/11/58/image_18082025_11_59_04_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/11/58/image_18082025_11_58_55_10612.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/59/image_18082025_11_59_45_10616.jpg', '/home/nano/Desktop/images/18082025/11/59/image_18082025_11_59_34_9608.jpg', '/home/nano/Desktop/images/18082025/11/59/image_18082025_11_59_25_9602.jpg', '/home/nano/Desktop/images/18082025/11/59/image_18082025_11_59_15_10622.jpg', '/home/nano/Desktop/images/18082025/11/58/image_18082025_11_59_04_9614.jpg', '/home/nano/Desktop/images/18082025/11/58/image_18082025_11_58_55_10612.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/59/image_18082025_11_59_45_10616.jpg
/home/nano/Desktop/images/18082025/11/59/image_18082025_11_59_34_9608.jpg
/home/nano/Desktop/images/18082025/11/59/image_18082025_11_59_25_9602.jpg
/home/nano/Desktop/images/18082025/11/59/image_18082025_11_59_15_10622.jpg
/home/nano/Desktop/images/18082025/11/58/image_18082025_11_59_04_9614.jpg
/home/nano/Desktop/images/18082025/11/58/image_18082025_11_58_55_10612.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377697310","1377697313","1377697316","1377697303","1377697306","1377697299"],"photo_ids_order":["1377697299","1377697303","1377697306","1377697310","1377697313","1377697316"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b8f093376e99687013c0725b0392b7f8.jpg","text":"TemporaryFile(/tmp/multipartBody5702086840806565056asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511249117,"filename":"image_18082025_11_59_15_10622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/12561a568836c7e38e6ee9a7f9ae7a9c.jpg","text":"TemporaryFile(/tmp/multipartBody5979791625267012504asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511249117,"filename":"image_18082025_11_59_04_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a5091b1e4bd6540924ad49b01b4e4c73.jpg","text":"TemporaryFile(/tmp/multipartBody4206792112978809639asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511249117,"filename":"image_18082025_11_58_55_10612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b3d59a667a5a6a08e1875cb63f46961f.jpg","text":"TemporaryFile(/tmp/multipartBody6604491521929815099asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511249117,"filename":"image_18082025_11_59_34_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/84b057c05b72a20f2747f7f2a4280028.jpg","text":"TemporaryFile(/tmp/multipartBody4906458526910801871asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511249117,"filename":"image_18082025_11_59_25_9602.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b57f60a9da5ee9c8d4e18fb23efa0460.jpg","text":"TemporaryFile(/tmp/multipartBody188449223720273135asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511249117,"filename":"image_18082025_11_59_45_10616.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377697306","file1":"1377697303","file0":"1377697299","file4":"1377697313","file5":"1377697316","file3":"1377697310"},"map_files_photo_id_array":[{"photo_id":"1377697316","filename":"file5"},{"photo_id":"1377697306","filename":"file2"},{"photo_id":"1377697313","filename":"file4"},{"photo_id":"1377697303","filename":"file1"},{"photo_id":"1377697299","filename":"file0"},{"photo_id":"1377697310","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377697310":["hashtag1","hashtag2"]},{"1377697313":["hashtag1","hashtag2"]},{"1377697316":["hashtag1","hashtag2"]},{"1377697303":["hashtag1","hashtag2"]},{"1377697306":["hashtag1","hashtag2"]},{"1377697299":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377697310, 1377697313, 1377697316, 1377697303, 1377697306, 1377697299)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.33021521568298 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:00:31.859447
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/00/image_18082025_12_00_45_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/12/00/image_18082025_12_00_35_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/12/00/image_18082025_12_00_24_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/12/00/image_18082025_12_00_15_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/11/59/image_18082025_12_00_05_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/11/59/image_18082025_11_59_54_9607.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/00/image_18082025_12_00_45_9622.jpg', '/home/nano/Desktop/images/18082025/12/00/image_18082025_12_00_35_10631.jpg', '/home/nano/Desktop/images/18082025/12/00/image_18082025_12_00_24_9628.jpg', '/home/nano/Desktop/images/18082025/12/00/image_18082025_12_00_15_9632.jpg', '/home/nano/Desktop/images/18082025/11/59/image_18082025_12_00_05_10649.jpg', '/home/nano/Desktop/images/18082025/11/59/image_18082025_11_59_54_9607.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/00/image_18082025_12_00_45_9622.jpg
/home/nano/Desktop/images/18082025/12/00/image_18082025_12_00_35_10631.jpg
/home/nano/Desktop/images/18082025/12/00/image_18082025_12_00_24_9628.jpg
/home/nano/Desktop/images/18082025/12/00/image_18082025_12_00_15_9632.jpg
/home/nano/Desktop/images/18082025/11/59/image_18082025_12_00_05_10649.jpg
/home/nano/Desktop/images/18082025/11/59/image_18082025_11_59_54_9607.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377697340","1377697346","1377697333","1377697336","1377697339","1377697344"],"photo_ids_order":["1377697333","1377697336","1377697339","1377697340","1377697344","1377697346"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ad4dce2b84f4a8bf0a963964794cdf8b.jpg","text":"TemporaryFile(/tmp/multipartBody4175060110657239847asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511293213,"filename":"image_18082025_12_00_15_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d727454b33a79c0f4353d0c8fb4755aa.jpg","text":"TemporaryFile(/tmp/multipartBody8341358787447656054asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511293213,"filename":"image_18082025_11_59_54_9607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a3119e6944ee02c0fd6c0ffb0551a5b9.jpg","text":"TemporaryFile(/tmp/multipartBody4326317554151782097asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511293213,"filename":"image_18082025_12_00_45_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fe35c9e9a87c6def8112e8ed4fbbdeee.jpg","text":"TemporaryFile(/tmp/multipartBody3031534595109628535asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511293213,"filename":"image_18082025_12_00_35_10631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/91f21bef9d583b98567656c53c27d8f4.jpg","text":"TemporaryFile(/tmp/multipartBody4356037072519973818asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511293213,"filename":"image_18082025_12_00_24_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b8b1b5ea463c124a7db0e697575bb800.jpg","text":"TemporaryFile(/tmp/multipartBody413606925012346599asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511293213,"filename":"image_18082025_12_00_05_10649.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377697339","file1":"1377697336","file0":"1377697333","file4":"1377697344","file5":"1377697346","file3":"1377697340"},"map_files_photo_id_array":[{"photo_id":"1377697346","filename":"file5"},{"photo_id":"1377697339","filename":"file2"},{"photo_id":"1377697344","filename":"file4"},{"photo_id":"1377697336","filename":"file1"},{"photo_id":"1377697333","filename":"file0"},{"photo_id":"1377697340","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377697340":["hashtag1","hashtag2"]},{"1377697346":["hashtag1","hashtag2"]},{"1377697333":["hashtag1","hashtag2"]},{"1377697336":["hashtag1","hashtag2"]},{"1377697339":["hashtag1","hashtag2"]},{"1377697344":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377697340, 1377697346, 1377697333, 1377697336, 1377697339, 1377697344)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.672237396240234 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:01:17.040312
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/01/image_18082025_12_01_44_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/12/01/image_18082025_12_01_35_9604.jpg', 2), ('/home/nano/Desktop/images/18082025/12/01/image_18082025_12_01_25_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/12/01/image_18082025_12_01_14_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/12/00/image_18082025_12_01_05_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/12/00/image_18082025_12_00_54_9608.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/01/image_18082025_12_01_44_9610.jpg', '/home/nano/Desktop/images/18082025/12/01/image_18082025_12_01_35_9604.jpg', '/home/nano/Desktop/images/18082025/12/01/image_18082025_12_01_25_10618.jpg', '/home/nano/Desktop/images/18082025/12/01/image_18082025_12_01_14_9612.jpg', '/home/nano/Desktop/images/18082025/12/00/image_18082025_12_01_05_10641.jpg', '/home/nano/Desktop/images/18082025/12/00/image_18082025_12_00_54_9608.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/01/image_18082025_12_01_44_9610.jpg
/home/nano/Desktop/images/18082025/12/01/image_18082025_12_01_35_9604.jpg
/home/nano/Desktop/images/18082025/12/01/image_18082025_12_01_25_10618.jpg
/home/nano/Desktop/images/18082025/12/01/image_18082025_12_01_14_9612.jpg
/home/nano/Desktop/images/18082025/12/00/image_18082025_12_01_05_10641.jpg
/home/nano/Desktop/images/18082025/12/00/image_18082025_12_00_54_9608.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377697364","1377697369","1377697360","1377697374","1377697377","1377697371"],"photo_ids_order":["1377697360","1377697364","1377697369","1377697371","1377697374","1377697377"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/836e56b1761ad8c1c17a7c03f43d1568.jpg","text":"TemporaryFile(/tmp/multipartBody6452775562258760204asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511338155,"filename":"image_18082025_12_01_35_9604.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/990db922162ad670df071c180face8a2.jpg","text":"TemporaryFile(/tmp/multipartBody1526191955337042060asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511338155,"filename":"image_18082025_12_01_25_10618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7d6aead25d30685399cf0640a540fd84.jpg","text":"TemporaryFile(/tmp/multipartBody2670084064378205186asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511338155,"filename":"image_18082025_12_01_44_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2c2b68b946d5fd04cb72a54bbaf4c7f8.jpg","text":"TemporaryFile(/tmp/multipartBody4157371960949028600asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511338155,"filename":"image_18082025_12_01_05_10641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ede75b68b729b2f3c350c342100920d3.jpg","text":"TemporaryFile(/tmp/multipartBody3682094361213047627asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511338155,"filename":"image_18082025_12_00_54_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0278ba61ff41f8edd6350369ffcb5040.jpg","text":"TemporaryFile(/tmp/multipartBody3917293138473042512asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511338155,"filename":"image_18082025_12_01_14_9612.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377697369","file1":"1377697364","file0":"1377697360","file4":"1377697374","file5":"1377697377","file3":"1377697371"},"map_files_photo_id_array":[{"photo_id":"1377697377","filename":"file5"},{"photo_id":"1377697369","filename":"file2"},{"photo_id":"1377697374","filename":"file4"},{"photo_id":"1377697364","filename":"file1"},{"photo_id":"1377697360","filename":"file0"},{"photo_id":"1377697371","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377697364":["hashtag1","hashtag2"]},{"1377697369":["hashtag1","hashtag2"]},{"1377697360":["hashtag1","hashtag2"]},{"1377697374":["hashtag1","hashtag2"]},{"1377697377":["hashtag1","hashtag2"]},{"1377697371":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377697364, 1377697369, 1377697360, 1377697374, 1377697377, 1377697371)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.712326526641846 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:02:02.644554
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/58/image_18082025_11_58_44_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/11/58/image_18082025_11_58_34_9604.jpg', 2), ('/home/nano/Desktop/images/18082025/11/58/image_18082025_11_58_25_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/11/58/image_18082025_11_58_14_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/11/57/image_18082025_11_58_05_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/11/57/image_18082025_11_57_55_10631.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/58/image_18082025_11_58_44_9631.jpg', '/home/nano/Desktop/images/18082025/11/58/image_18082025_11_58_34_9604.jpg', '/home/nano/Desktop/images/18082025/11/58/image_18082025_11_58_25_10630.jpg', '/home/nano/Desktop/images/18082025/11/58/image_18082025_11_58_14_9659.jpg', '/home/nano/Desktop/images/18082025/11/57/image_18082025_11_58_05_9608.jpg', '/home/nano/Desktop/images/18082025/11/57/image_18082025_11_57_55_10631.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/58/image_18082025_11_58_44_9631.jpg
/home/nano/Desktop/images/18082025/11/58/image_18082025_11_58_34_9604.jpg
/home/nano/Desktop/images/18082025/11/58/image_18082025_11_58_25_10630.jpg
/home/nano/Desktop/images/18082025/11/58/image_18082025_11_58_14_9659.jpg
/home/nano/Desktop/images/18082025/11/57/image_18082025_11_58_05_9608.jpg
/home/nano/Desktop/images/18082025/11/57/image_18082025_11_57_55_10631.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377697404","1377697399","1377697402","1377697392","1377697395","1377697389"],"photo_ids_order":["1377697389","1377697392","1377697395","1377697399","1377697402","1377697404"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f250a39aa05c178a0f7d31ed4fed8145.jpg","text":"TemporaryFile(/tmp/multipartBody3742081468221068084asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511383914,"filename":"image_18082025_11_57_55_10631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d6cee5a159156a4af7b293bf743cc7ed.jpg","text":"TemporaryFile(/tmp/multipartBody2964332353865230290asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511383914,"filename":"image_18082025_11_58_14_9659.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d2e6f2faa868d8a0da12ef9a9cdf59bd.jpg","text":"TemporaryFile(/tmp/multipartBody4960355438572810977asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511383914,"filename":"image_18082025_11_58_05_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0833ad6117e5630e54feff1c4c2ce6c4.jpg","text":"TemporaryFile(/tmp/multipartBody1918852199930719083asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511383914,"filename":"image_18082025_11_58_34_9604.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ebc647e6f854cc9827a13383bd670e21.jpg","text":"TemporaryFile(/tmp/multipartBody8396679871630362772asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511383914,"filename":"image_18082025_11_58_25_10630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9f4789116f85c307f04a16087f31c3ba.jpg","text":"TemporaryFile(/tmp/multipartBody8832732685053791423asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511383914,"filename":"image_18082025_11_58_44_9631.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377697395","file1":"1377697392","file0":"1377697389","file4":"1377697402","file5":"1377697404","file3":"1377697399"},"map_files_photo_id_array":[{"photo_id":"1377697404","filename":"file5"},{"photo_id":"1377697395","filename":"file2"},{"photo_id":"1377697402","filename":"file4"},{"photo_id":"1377697392","filename":"file1"},{"photo_id":"1377697389","filename":"file0"},{"photo_id":"1377697399","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377697404":["hashtag1","hashtag2"]},{"1377697399":["hashtag1","hashtag2"]},{"1377697402":["hashtag1","hashtag2"]},{"1377697392":["hashtag1","hashtag2"]},{"1377697395":["hashtag1","hashtag2"]},{"1377697389":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377697404, 1377697399, 1377697402, 1377697392, 1377697395, 1377697389)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.917328357696533 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:02:47.126176
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/02/image_18082025_12_02_45_10617.jpg', 2), ('/home/nano/Desktop/images/18082025/12/02/image_18082025_12_02_34_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/12/02/image_18082025_12_02_25_10614.jpg', 2), ('/home/nano/Desktop/images/18082025/12/02/image_18082025_12_02_14_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/12/01/image_18082025_12_02_04_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/12/01/image_18082025_12_01_55_10624.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/02/image_18082025_12_02_45_10617.jpg', '/home/nano/Desktop/images/18082025/12/02/image_18082025_12_02_34_9611.jpg', '/home/nano/Desktop/images/18082025/12/02/image_18082025_12_02_25_10614.jpg', '/home/nano/Desktop/images/18082025/12/02/image_18082025_12_02_14_9637.jpg', '/home/nano/Desktop/images/18082025/12/01/image_18082025_12_02_04_9619.jpg', '/home/nano/Desktop/images/18082025/12/01/image_18082025_12_01_55_10624.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/02/image_18082025_12_02_45_10617.jpg
/home/nano/Desktop/images/18082025/12/02/image_18082025_12_02_34_9611.jpg
/home/nano/Desktop/images/18082025/12/02/image_18082025_12_02_25_10614.jpg
/home/nano/Desktop/images/18082025/12/02/image_18082025_12_02_14_9637.jpg
/home/nano/Desktop/images/18082025/12/01/image_18082025_12_02_04_9619.jpg
/home/nano/Desktop/images/18082025/12/01/image_18082025_12_01_55_10624.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377697421","1377697424","1377697418","1377697420","1377697419","1377697416"],"photo_ids_order":["1377697416","1377697418","1377697419","1377697420","1377697421","1377697424"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ae8f72358b982f590d92176a5700c5db.jpg","text":"TemporaryFile(/tmp/multipartBody4294106364579086046asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511428198,"filename":"image_18082025_12_02_04_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/53fc07dbf1a2f0d7c3a716a60bab3b52.jpg","text":"TemporaryFile(/tmp/multipartBody4270093846109575492asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511428198,"filename":"image_18082025_12_01_55_10624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/61d827a8f4e8a672814e2b8e2e63100a.jpg","text":"TemporaryFile(/tmp/multipartBody1893112153398079769asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511428198,"filename":"image_18082025_12_02_34_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/35b43d82f4af85c023f024d020924576.jpg","text":"TemporaryFile(/tmp/multipartBody2806826611782828266asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511428198,"filename":"image_18082025_12_02_14_9637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b42a3d4ab4b573b5223ec69d37d344a4.jpg","text":"TemporaryFile(/tmp/multipartBody7478678239693289361asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511428198,"filename":"image_18082025_12_02_25_10614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bd2270505025354cdf49d4b6166c8a0a.jpg","text":"TemporaryFile(/tmp/multipartBody7047732039750243852asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511428198,"filename":"image_18082025_12_02_45_10617.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377697419","file1":"1377697418","file0":"1377697416","file4":"1377697421","file5":"1377697424","file3":"1377697420"},"map_files_photo_id_array":[{"photo_id":"1377697424","filename":"file5"},{"photo_id":"1377697419","filename":"file2"},{"photo_id":"1377697421","filename":"file4"},{"photo_id":"1377697418","filename":"file1"},{"photo_id":"1377697416","filename":"file0"},{"photo_id":"1377697420","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377697421":["hashtag1","hashtag2"]},{"1377697424":["hashtag1","hashtag2"]},{"1377697418":["hashtag1","hashtag2"]},{"1377697420":["hashtag1","hashtag2"]},{"1377697419":["hashtag1","hashtag2"]},{"1377697416":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377697421, 1377697424, 1377697418, 1377697420, 1377697419, 1377697416)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.688205242156982 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:03:32.263848
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/03/image_18082025_12_03_45_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/12/03/image_18082025_12_03_34_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/12/03/image_18082025_12_03_25_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/12/03/image_18082025_12_03_15_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/12/02/image_18082025_12_03_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/12/02/image_18082025_12_02_55_9631.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/03/image_18082025_12_03_45_10628.jpg', '/home/nano/Desktop/images/18082025/12/03/image_18082025_12_03_34_9647.jpg', '/home/nano/Desktop/images/18082025/12/03/image_18082025_12_03_25_9632.jpg', '/home/nano/Desktop/images/18082025/12/03/image_18082025_12_03_15_10656.jpg', '/home/nano/Desktop/images/18082025/12/02/image_18082025_12_03_04_9645.jpg', '/home/nano/Desktop/images/18082025/12/02/image_18082025_12_02_55_9631.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/03/image_18082025_12_03_45_10628.jpg
/home/nano/Desktop/images/18082025/12/03/image_18082025_12_03_34_9647.jpg
/home/nano/Desktop/images/18082025/12/03/image_18082025_12_03_25_9632.jpg
/home/nano/Desktop/images/18082025/12/03/image_18082025_12_03_15_10656.jpg
/home/nano/Desktop/images/18082025/12/02/image_18082025_12_03_04_9645.jpg
/home/nano/Desktop/images/18082025/12/02/image_18082025_12_02_55_9631.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377697451","1377697454","1377697458","1377697443","1377697446","1377697449"],"photo_ids_order":["1377697443","1377697446","1377697449","1377697451","1377697454","1377697458"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b6e99765e07ecdbf6af5ccb907118e59.jpg","text":"TemporaryFile(/tmp/multipartBody8219389815964211403asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511473590,"filename":"image_18082025_12_03_15_10656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f6067597849546b938a1f4435e06cef8.jpg","text":"TemporaryFile(/tmp/multipartBody5433821556025205167asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511473590,"filename":"image_18082025_12_03_04_9645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/88fb578c586a39ea1f85fe1023282ff0.jpg","text":"TemporaryFile(/tmp/multipartBody5760974315580691014asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511473590,"filename":"image_18082025_12_02_55_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3c55d859c9c88336c080150c12f70296.jpg","text":"TemporaryFile(/tmp/multipartBody3348529488317343345asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511473590,"filename":"image_18082025_12_03_45_10628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/54f4a686315f5ab696bc3c1cd95e32c8.jpg","text":"TemporaryFile(/tmp/multipartBody1199826992187260292asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511473590,"filename":"image_18082025_12_03_34_9647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6335601e0eccc5e3c411228bc00486f0.jpg","text":"TemporaryFile(/tmp/multipartBody289649421562643901asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511473590,"filename":"image_18082025_12_03_25_9632.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377697449","file1":"1377697446","file0":"1377697443","file4":"1377697454","file5":"1377697458","file3":"1377697451"},"map_files_photo_id_array":[{"photo_id":"1377697458","filename":"file5"},{"photo_id":"1377697449","filename":"file2"},{"photo_id":"1377697454","filename":"file4"},{"photo_id":"1377697446","filename":"file1"},{"photo_id":"1377697443","filename":"file0"},{"photo_id":"1377697451","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377697451":["hashtag1","hashtag2"]},{"1377697454":["hashtag1","hashtag2"]},{"1377697458":["hashtag1","hashtag2"]},{"1377697443":["hashtag1","hashtag2"]},{"1377697446":["hashtag1","hashtag2"]},{"1377697449":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377697451, 1377697454, 1377697458, 1377697443, 1377697446, 1377697449)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.75782012939453 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:04:17.358091
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/04/image_18082025_12_04_45_10688.jpg', 2), ('/home/nano/Desktop/images/18082025/12/04/image_18082025_12_04_34_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/12/04/image_18082025_12_04_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/12/04/image_18082025_12_04_15_10702.jpg', 2), ('/home/nano/Desktop/images/18082025/12/03/image_18082025_12_04_04_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/12/03/image_18082025_12_03_54_9643.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/04/image_18082025_12_04_45_10688.jpg', '/home/nano/Desktop/images/18082025/12/04/image_18082025_12_04_34_9650.jpg', '/home/nano/Desktop/images/18082025/12/04/image_18082025_12_04_24_9640.jpg', '/home/nano/Desktop/images/18082025/12/04/image_18082025_12_04_15_10702.jpg', '/home/nano/Desktop/images/18082025/12/03/image_18082025_12_04_04_9638.jpg', '/home/nano/Desktop/images/18082025/12/03/image_18082025_12_03_54_9643.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/04/image_18082025_12_04_45_10688.jpg
/home/nano/Desktop/images/18082025/12/04/image_18082025_12_04_34_9650.jpg
/home/nano/Desktop/images/18082025/12/04/image_18082025_12_04_24_9640.jpg
/home/nano/Desktop/images/18082025/12/04/image_18082025_12_04_15_10702.jpg
/home/nano/Desktop/images/18082025/12/03/image_18082025_12_04_04_9638.jpg
/home/nano/Desktop/images/18082025/12/03/image_18082025_12_03_54_9643.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377697480","1377697483","1377697477","1377697486","1377697471","1377697474"],"photo_ids_order":["1377697471","1377697474","1377697477","1377697480","1377697483","1377697486"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/42423d781ef9da0d477607b624bf9298.jpg","text":"TemporaryFile(/tmp/multipartBody474507327288106627asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511518832,"filename":"image_18082025_12_04_15_10702.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ede49a1ec1c67e1fb64558a571aa3db2.jpg","text":"TemporaryFile(/tmp/multipartBody3933987092994551104asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511518832,"filename":"image_18082025_12_04_04_9638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/67b6c796a0a5cee99782a703857c131c.jpg","text":"TemporaryFile(/tmp/multipartBody5676485878665288104asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511518832,"filename":"image_18082025_12_04_24_9640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c3d22ba7fcb2810eada27723e52b449d.jpg","text":"TemporaryFile(/tmp/multipartBody5033786954056771278asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511518832,"filename":"image_18082025_12_03_54_9643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d79eb1eab497bddab980dea9b140a8e0.jpg","text":"TemporaryFile(/tmp/multipartBody5374412973116802460asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511518832,"filename":"image_18082025_12_04_45_10688.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3056928920d8f16b60c478d674db47ac.jpg","text":"TemporaryFile(/tmp/multipartBody3417745643589569626asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511518832,"filename":"image_18082025_12_04_34_9650.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377697477","file1":"1377697474","file0":"1377697471","file4":"1377697483","file5":"1377697486","file3":"1377697480"},"map_files_photo_id_array":[{"photo_id":"1377697486","filename":"file5"},{"photo_id":"1377697477","filename":"file2"},{"photo_id":"1377697483","filename":"file4"},{"photo_id":"1377697474","filename":"file1"},{"photo_id":"1377697471","filename":"file0"},{"photo_id":"1377697480","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377697480":["hashtag1","hashtag2"]},{"1377697483":["hashtag1","hashtag2"]},{"1377697477":["hashtag1","hashtag2"]},{"1377697486":["hashtag1","hashtag2"]},{"1377697471":["hashtag1","hashtag2"]},{"1377697474":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377697480, 1377697483, 1377697477, 1377697486, 1377697471, 1377697474)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.456623792648315 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:05:03.106918
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/46/image_18082025_11_46_44_9583.jpg', 2), ('/home/nano/Desktop/images/18082025/11/46/image_18082025_11_46_35_9584.jpg', 2), ('/home/nano/Desktop/images/18082025/11/46/image_18082025_11_46_25_10610.jpg', 2), ('/home/nano/Desktop/images/18082025/11/46/image_18082025_11_46_14_9604.jpg', 2), ('/home/nano/Desktop/images/18082025/11/45/image_18082025_11_46_05_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/11/45/image_18082025_11_45_54_9597.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/46/image_18082025_11_46_44_9583.jpg', '/home/nano/Desktop/images/18082025/11/46/image_18082025_11_46_35_9584.jpg', '/home/nano/Desktop/images/18082025/11/46/image_18082025_11_46_25_10610.jpg', '/home/nano/Desktop/images/18082025/11/46/image_18082025_11_46_14_9604.jpg', '/home/nano/Desktop/images/18082025/11/45/image_18082025_11_46_05_10623.jpg', '/home/nano/Desktop/images/18082025/11/45/image_18082025_11_45_54_9597.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/46/image_18082025_11_46_44_9583.jpg
/home/nano/Desktop/images/18082025/11/46/image_18082025_11_46_35_9584.jpg
/home/nano/Desktop/images/18082025/11/46/image_18082025_11_46_25_10610.jpg
/home/nano/Desktop/images/18082025/11/46/image_18082025_11_46_14_9604.jpg
/home/nano/Desktop/images/18082025/11/45/image_18082025_11_46_05_10623.jpg
/home/nano/Desktop/images/18082025/11/45/image_18082025_11_45_54_9597.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377697503","1377697511","1377697507","1377697494","1377697497","1377697500"],"photo_ids_order":["1377697494","1377697497","1377697500","1377697503","1377697507","1377697511"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/27beba541acc29f0afd1b5466e762ea8.jpg","text":"TemporaryFile(/tmp/multipartBody1558911881707893958asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511564154,"filename":"image_18082025_11_46_14_9604.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d49e8dd1c6adaa0616bb364e4a5af791.jpg","text":"TemporaryFile(/tmp/multipartBody6286582090891405685asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511564154,"filename":"image_18082025_11_45_54_9597.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/570b551841ce433a1a5479447ecc6778.jpg","text":"TemporaryFile(/tmp/multipartBody7097944862328152675asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511564154,"filename":"image_18082025_11_46_05_10623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1352c746ce1093138919ebbceee975bb.jpg","text":"TemporaryFile(/tmp/multipartBody6934694784741221268asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511564154,"filename":"image_18082025_11_46_44_9583.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/041631effd94811b96dec9bfd38e4027.jpg","text":"TemporaryFile(/tmp/multipartBody2034508073031260643asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511564154,"filename":"image_18082025_11_46_35_9584.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c5084da7b06799509151668d3b283ce6.jpg","text":"TemporaryFile(/tmp/multipartBody96607941758276779asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511564154,"filename":"image_18082025_11_46_25_10610.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377697500","file1":"1377697497","file0":"1377697494","file4":"1377697507","file5":"1377697511","file3":"1377697503"},"map_files_photo_id_array":[{"photo_id":"1377697511","filename":"file5"},{"photo_id":"1377697500","filename":"file2"},{"photo_id":"1377697507","filename":"file4"},{"photo_id":"1377697497","filename":"file1"},{"photo_id":"1377697494","filename":"file0"},{"photo_id":"1377697503","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377697503":["hashtag1","hashtag2"]},{"1377697511":["hashtag1","hashtag2"]},{"1377697507":["hashtag1","hashtag2"]},{"1377697494":["hashtag1","hashtag2"]},{"1377697497":["hashtag1","hashtag2"]},{"1377697500":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377697503, 1377697511, 1377697507, 1377697494, 1377697497, 1377697500)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.156062841415405 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:05:47.440195
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/05/image_18082025_12_05_45_10687.jpg', 2), ('/home/nano/Desktop/images/18082025/12/05/image_18082025_12_05_34_9808.jpg', 2), ('/home/nano/Desktop/images/18082025/12/05/image_18082025_12_05_24_9603.jpg', 2), ('/home/nano/Desktop/images/18082025/12/05/image_18082025_12_05_15_10714.jpg', 2), ('/home/nano/Desktop/images/18082025/12/04/image_18082025_12_05_04_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/12/04/image_18082025_12_04_54_9685.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/05/image_18082025_12_05_45_10687.jpg', '/home/nano/Desktop/images/18082025/12/05/image_18082025_12_05_34_9808.jpg', '/home/nano/Desktop/images/18082025/12/05/image_18082025_12_05_24_9603.jpg', '/home/nano/Desktop/images/18082025/12/05/image_18082025_12_05_15_10714.jpg', '/home/nano/Desktop/images/18082025/12/04/image_18082025_12_05_04_9643.jpg', '/home/nano/Desktop/images/18082025/12/04/image_18082025_12_04_54_9685.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/05/image_18082025_12_05_45_10687.jpg
/home/nano/Desktop/images/18082025/12/05/image_18082025_12_05_34_9808.jpg
/home/nano/Desktop/images/18082025/12/05/image_18082025_12_05_24_9603.jpg
/home/nano/Desktop/images/18082025/12/05/image_18082025_12_05_15_10714.jpg
/home/nano/Desktop/images/18082025/12/04/image_18082025_12_05_04_9643.jpg
/home/nano/Desktop/images/18082025/12/04/image_18082025_12_04_54_9685.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377697532","1377697541","1377697528","1377697537","1377697522","1377697524"],"photo_ids_order":["1377697522","1377697524","1377697528","1377697532","1377697537","1377697541"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f8360995790ab966e25195a49d427ed4.jpg","text":"TemporaryFile(/tmp/multipartBody5628165719630258927asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511609051,"filename":"image_18082025_12_05_15_10714.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/607bf1b323b0239c978e6abc18af7b34.jpg","text":"TemporaryFile(/tmp/multipartBody3756772864557494013asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511609051,"filename":"image_18082025_12_04_54_9685.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d4214414670748dedc85e016c2174383.jpg","text":"TemporaryFile(/tmp/multipartBody8245415474966460103asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511609051,"filename":"image_18082025_12_05_24_9603.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0b9721c138db1cae7998dfe351a8f8e5.jpg","text":"TemporaryFile(/tmp/multipartBody196313370086638226asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511609051,"filename":"image_18082025_12_05_04_9643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2a6f14044a01f7fee5a610cdc2c3b154.jpg","text":"TemporaryFile(/tmp/multipartBody218557504383895779asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511609051,"filename":"image_18082025_12_05_45_10687.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/efe3aa1e1a274d5324f34a8bed3cb1ea.jpg","text":"TemporaryFile(/tmp/multipartBody5221667329157960540asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511609051,"filename":"image_18082025_12_05_34_9808.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377697528","file1":"1377697524","file0":"1377697522","file4":"1377697537","file5":"1377697541","file3":"1377697532"},"map_files_photo_id_array":[{"photo_id":"1377697541","filename":"file5"},{"photo_id":"1377697528","filename":"file2"},{"photo_id":"1377697537","filename":"file4"},{"photo_id":"1377697524","filename":"file1"},{"photo_id":"1377697522","filename":"file0"},{"photo_id":"1377697532","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377697532":["hashtag1","hashtag2"]},{"1377697541":["hashtag1","hashtag2"]},{"1377697528":["hashtag1","hashtag2"]},{"1377697537":["hashtag1","hashtag2"]},{"1377697522":["hashtag1","hashtag2"]},{"1377697524":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377697532, 1377697541, 1377697528, 1377697537, 1377697522, 1377697524)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.702778100967407 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:06:32.538917
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/06/image_18082025_12_06_44_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/12/06/image_18082025_12_06_34_9744.jpg', 2), ('/home/nano/Desktop/images/18082025/12/06/image_18082025_12_06_25_9755.jpg', 2), ('/home/nano/Desktop/images/18082025/12/06/image_18082025_12_06_15_10671.jpg', 2), ('/home/nano/Desktop/images/18082025/12/05/image_18082025_12_06_04_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/12/05/image_18082025_12_05_55_9757.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/06/image_18082025_12_06_44_9668.jpg', '/home/nano/Desktop/images/18082025/12/06/image_18082025_12_06_34_9744.jpg', '/home/nano/Desktop/images/18082025/12/06/image_18082025_12_06_25_9755.jpg', '/home/nano/Desktop/images/18082025/12/06/image_18082025_12_06_15_10671.jpg', '/home/nano/Desktop/images/18082025/12/05/image_18082025_12_06_04_9649.jpg', '/home/nano/Desktop/images/18082025/12/05/image_18082025_12_05_55_9757.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/06/image_18082025_12_06_44_9668.jpg
/home/nano/Desktop/images/18082025/12/06/image_18082025_12_06_34_9744.jpg
/home/nano/Desktop/images/18082025/12/06/image_18082025_12_06_25_9755.jpg
/home/nano/Desktop/images/18082025/12/06/image_18082025_12_06_15_10671.jpg
/home/nano/Desktop/images/18082025/12/05/image_18082025_12_06_04_9649.jpg
/home/nano/Desktop/images/18082025/12/05/image_18082025_12_05_55_9757.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377697565","1377697559","1377697553","1377697556","1377697561","1377697564"],"photo_ids_order":["1377697553","1377697556","1377697559","1377697561","1377697564","1377697565"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9ac009afa0a332af5978559b7bd416b7.jpg","text":"TemporaryFile(/tmp/multipartBody1507977096075098065asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511654023,"filename":"image_18082025_12_05_55_9757.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8b382ab471e693765fb563a8527c55b9.jpg","text":"TemporaryFile(/tmp/multipartBody980261479441846871asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511654023,"filename":"image_18082025_12_06_25_9755.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/514bac56382a77c959bc05e57ea347da.jpg","text":"TemporaryFile(/tmp/multipartBody7373599129853336611asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511654023,"filename":"image_18082025_12_06_44_9668.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3e4107e311bb037c024053439ecd91f4.jpg","text":"TemporaryFile(/tmp/multipartBody171772672059352410asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511654023,"filename":"image_18082025_12_06_34_9744.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a7f644d887318f429c5244066a4cdfac.jpg","text":"TemporaryFile(/tmp/multipartBody1340441819122874851asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511654023,"filename":"image_18082025_12_06_15_10671.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/30576756bc93d32428360e58f02f3bd9.jpg","text":"TemporaryFile(/tmp/multipartBody3301172531563052461asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511654023,"filename":"image_18082025_12_06_04_9649.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377697559","file1":"1377697556","file0":"1377697553","file4":"1377697564","file5":"1377697565","file3":"1377697561"},"map_files_photo_id_array":[{"photo_id":"1377697565","filename":"file5"},{"photo_id":"1377697559","filename":"file2"},{"photo_id":"1377697564","filename":"file4"},{"photo_id":"1377697556","filename":"file1"},{"photo_id":"1377697553","filename":"file0"},{"photo_id":"1377697561","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377697565":["hashtag1","hashtag2"]},{"1377697559":["hashtag1","hashtag2"]},{"1377697553":["hashtag1","hashtag2"]},{"1377697556":["hashtag1","hashtag2"]},{"1377697561":["hashtag1","hashtag2"]},{"1377697564":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377697565, 1377697559, 1377697553, 1377697556, 1377697561, 1377697564)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.885831117630005 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:07:17.673867
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/07/image_18082025_12_07_44_9605.jpg', 2), ('/home/nano/Desktop/images/18082025/12/07/image_18082025_12_07_35_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/12/07/image_18082025_12_07_25_10780.jpg', 2), ('/home/nano/Desktop/images/18082025/12/07/image_18082025_12_07_14_9665.jpg', 2), ('/home/nano/Desktop/images/18082025/12/06/image_18082025_12_07_05_9718.jpg', 2), ('/home/nano/Desktop/images/18082025/12/06/image_18082025_12_06_55_10630.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/07/image_18082025_12_07_44_9605.jpg', '/home/nano/Desktop/images/18082025/12/07/image_18082025_12_07_35_9660.jpg', '/home/nano/Desktop/images/18082025/12/07/image_18082025_12_07_25_10780.jpg', '/home/nano/Desktop/images/18082025/12/07/image_18082025_12_07_14_9665.jpg', '/home/nano/Desktop/images/18082025/12/06/image_18082025_12_07_05_9718.jpg', '/home/nano/Desktop/images/18082025/12/06/image_18082025_12_06_55_10630.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/07/image_18082025_12_07_44_9605.jpg
/home/nano/Desktop/images/18082025/12/07/image_18082025_12_07_35_9660.jpg
/home/nano/Desktop/images/18082025/12/07/image_18082025_12_07_25_10780.jpg
/home/nano/Desktop/images/18082025/12/07/image_18082025_12_07_14_9665.jpg
/home/nano/Desktop/images/18082025/12/06/image_18082025_12_07_05_9718.jpg
/home/nano/Desktop/images/18082025/12/06/image_18082025_12_06_55_10630.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377697589","1377697591","1377697579","1377697593","1377697587","1377697583"],"photo_ids_order":["1377697579","1377697583","1377697587","1377697589","1377697591","1377697593"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e2f32baf150baf5974eb599aaa7f7b7b.jpg","text":"TemporaryFile(/tmp/multipartBody5816337095253512972asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511699155,"filename":"image_18082025_12_07_14_9665.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ab008040ba64bf5ed7daeb67d190b43b.jpg","text":"TemporaryFile(/tmp/multipartBody1218908607207470345asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511699155,"filename":"image_18082025_12_07_05_9718.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8a27a26f6d8660c5c753cb588a803a99.jpg","text":"TemporaryFile(/tmp/multipartBody6202053666604126207asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511699155,"filename":"image_18082025_12_07_44_9605.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/12642138de5f21edeb498291b317bbde.jpg","text":"TemporaryFile(/tmp/multipartBody196213648603963206asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511699155,"filename":"image_18082025_12_06_55_10630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4c882d686f75628d43d0d5d89e458b11.jpg","text":"TemporaryFile(/tmp/multipartBody6751505538227321619asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511699155,"filename":"image_18082025_12_07_25_10780.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a21b8bea0f376a608587dc6a091cfb2b.jpg","text":"TemporaryFile(/tmp/multipartBody6536530243777582436asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511699155,"filename":"image_18082025_12_07_35_9660.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377697587","file1":"1377697583","file0":"1377697579","file4":"1377697591","file5":"1377697593","file3":"1377697589"},"map_files_photo_id_array":[{"photo_id":"1377697593","filename":"file5"},{"photo_id":"1377697587","filename":"file2"},{"photo_id":"1377697591","filename":"file4"},{"photo_id":"1377697583","filename":"file1"},{"photo_id":"1377697579","filename":"file0"},{"photo_id":"1377697589","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377697589":["hashtag1","hashtag2"]},{"1377697591":["hashtag1","hashtag2"]},{"1377697579":["hashtag1","hashtag2"]},{"1377697593":["hashtag1","hashtag2"]},{"1377697587":["hashtag1","hashtag2"]},{"1377697583":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377697589, 1377697591, 1377697579, 1377697593, 1377697587, 1377697583)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.756176471710205 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:08:02.341359
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/45/image_18082025_11_45_45_9583.jpg', 2), ('/home/nano/Desktop/images/18082025/11/45/image_18082025_11_45_35_10593.jpg', 2), ('/home/nano/Desktop/images/18082025/11/45/image_18082025_11_45_24_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/11/45/image_18082025_11_45_15_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/11/44/image_18082025_11_45_04_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/11/44/image_18082025_11_44_55_9593.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/45/image_18082025_11_45_45_9583.jpg', '/home/nano/Desktop/images/18082025/11/45/image_18082025_11_45_35_10593.jpg', '/home/nano/Desktop/images/18082025/11/45/image_18082025_11_45_24_9617.jpg', '/home/nano/Desktop/images/18082025/11/45/image_18082025_11_45_15_10626.jpg', '/home/nano/Desktop/images/18082025/11/44/image_18082025_11_45_04_9615.jpg', '/home/nano/Desktop/images/18082025/11/44/image_18082025_11_44_55_9593.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/45/image_18082025_11_45_45_9583.jpg
/home/nano/Desktop/images/18082025/11/45/image_18082025_11_45_35_10593.jpg
/home/nano/Desktop/images/18082025/11/45/image_18082025_11_45_24_9617.jpg
/home/nano/Desktop/images/18082025/11/45/image_18082025_11_45_15_10626.jpg
/home/nano/Desktop/images/18082025/11/44/image_18082025_11_45_04_9615.jpg
/home/nano/Desktop/images/18082025/11/44/image_18082025_11_44_55_9593.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377697613","1377697625","1377697610","1377697606","1377697621","1377697617"],"photo_ids_order":["1377697606","1377697610","1377697613","1377697617","1377697621","1377697625"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3a769c423893a195f5edfa974471f601.jpg","text":"TemporaryFile(/tmp/multipartBody1320049867925241607asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511743311,"filename":"image_18082025_11_45_24_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/587b290504145dcdb0bd05c0942edf47.jpg","text":"TemporaryFile(/tmp/multipartBody8530556814767204504asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511743311,"filename":"image_18082025_11_44_55_9593.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3a23f79f8a584585080f9c25ec414147.jpg","text":"TemporaryFile(/tmp/multipartBody5628453991368211461asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511743311,"filename":"image_18082025_11_45_35_10593.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d21159d26a479d2556369a6e39e8ca98.jpg","text":"TemporaryFile(/tmp/multipartBody6579895854543097121asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511743311,"filename":"image_18082025_11_45_45_9583.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b79b3fc419f596747f94ddc2b9dee528.jpg","text":"TemporaryFile(/tmp/multipartBody4504204503582495883asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511743311,"filename":"image_18082025_11_45_04_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f2238aab95186748cf86b2c9dbe77360.jpg","text":"TemporaryFile(/tmp/multipartBody3653122485835441974asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511743311,"filename":"image_18082025_11_45_15_10626.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377697613","file1":"1377697610","file0":"1377697606","file4":"1377697621","file5":"1377697625","file3":"1377697617"},"map_files_photo_id_array":[{"photo_id":"1377697625","filename":"file5"},{"photo_id":"1377697613","filename":"file2"},{"photo_id":"1377697621","filename":"file4"},{"photo_id":"1377697610","filename":"file1"},{"photo_id":"1377697606","filename":"file0"},{"photo_id":"1377697617","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377697613":["hashtag1","hashtag2"]},{"1377697625":["hashtag1","hashtag2"]},{"1377697610":["hashtag1","hashtag2"]},{"1377697606":["hashtag1","hashtag2"]},{"1377697621":["hashtag1","hashtag2"]},{"1377697617":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377697613, 1377697625, 1377697610, 1377697606, 1377697621, 1377697617)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.1975622177124 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:08:46.751269
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/08/image_18082025_12_08_45_9794.jpg', 2), ('/home/nano/Desktop/images/18082025/12/08/image_18082025_12_08_35_10797.jpg', 2), ('/home/nano/Desktop/images/18082025/12/08/image_18082025_12_08_24_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/12/08/image_18082025_12_08_15_9843.jpg', 2), ('/home/nano/Desktop/images/18082025/12/07/image_18082025_12_08_05_9713.jpg', 2), ('/home/nano/Desktop/images/18082025/12/07/image_18082025_12_07_55_10744.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/08/image_18082025_12_08_45_9794.jpg', '/home/nano/Desktop/images/18082025/12/08/image_18082025_12_08_35_10797.jpg', '/home/nano/Desktop/images/18082025/12/08/image_18082025_12_08_24_9659.jpg', '/home/nano/Desktop/images/18082025/12/08/image_18082025_12_08_15_9843.jpg', '/home/nano/Desktop/images/18082025/12/07/image_18082025_12_08_05_9713.jpg', '/home/nano/Desktop/images/18082025/12/07/image_18082025_12_07_55_10744.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/08/image_18082025_12_08_45_9794.jpg
/home/nano/Desktop/images/18082025/12/08/image_18082025_12_08_35_10797.jpg
/home/nano/Desktop/images/18082025/12/08/image_18082025_12_08_24_9659.jpg
/home/nano/Desktop/images/18082025/12/08/image_18082025_12_08_15_9843.jpg
/home/nano/Desktop/images/18082025/12/07/image_18082025_12_08_05_9713.jpg
/home/nano/Desktop/images/18082025/12/07/image_18082025_12_07_55_10744.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.8506972789764404 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:09:02.947394
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/08/image_18082025_12_08_45_9794.jpg', 2), ('/home/nano/Desktop/images/18082025/12/08/image_18082025_12_08_35_10797.jpg', 2), ('/home/nano/Desktop/images/18082025/12/08/image_18082025_12_08_24_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/12/08/image_18082025_12_08_15_9843.jpg', 2), ('/home/nano/Desktop/images/18082025/12/07/image_18082025_12_08_05_9713.jpg', 2), ('/home/nano/Desktop/images/18082025/12/07/image_18082025_12_07_55_10744.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/08/image_18082025_12_08_45_9794.jpg', '/home/nano/Desktop/images/18082025/12/08/image_18082025_12_08_35_10797.jpg', '/home/nano/Desktop/images/18082025/12/08/image_18082025_12_08_24_9659.jpg', '/home/nano/Desktop/images/18082025/12/08/image_18082025_12_08_15_9843.jpg', '/home/nano/Desktop/images/18082025/12/07/image_18082025_12_08_05_9713.jpg', '/home/nano/Desktop/images/18082025/12/07/image_18082025_12_07_55_10744.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/08/image_18082025_12_08_45_9794.jpg
/home/nano/Desktop/images/18082025/12/08/image_18082025_12_08_35_10797.jpg
/home/nano/Desktop/images/18082025/12/08/image_18082025_12_08_24_9659.jpg
/home/nano/Desktop/images/18082025/12/08/image_18082025_12_08_15_9843.jpg
/home/nano/Desktop/images/18082025/12/07/image_18082025_12_08_05_9713.jpg
/home/nano/Desktop/images/18082025/12/07/image_18082025_12_07_55_10744.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377697652","1377697660","1377697645","1377697654","1377697656","1377697650"],"photo_ids_order":["1377697645","1377697650","1377697652","1377697654","1377697656","1377697660"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f5b19966d12efd5a35b8fe5f84781d00.jpg","text":"TemporaryFile(/tmp/multipartBody8003372982760385454asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511804450,"filename":"image_18082025_12_08_24_9659.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/437b17eb6631ee77aaadfe5b9c2a9dd9.jpg","text":"TemporaryFile(/tmp/multipartBody7116613325963733496asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511804450,"filename":"image_18082025_12_07_55_10744.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4f4e9b796233bca6aff965998cc7abff.jpg","text":"TemporaryFile(/tmp/multipartBody4256091282786505033asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511804450,"filename":"image_18082025_12_08_45_9794.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d4c69eba11816e5b5c07ad806c8af292.jpg","text":"TemporaryFile(/tmp/multipartBody6073655963674405151asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511804450,"filename":"image_18082025_12_08_15_9843.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/65133d8e224c471f71f10304206b2810.jpg","text":"TemporaryFile(/tmp/multipartBody4220845025739413885asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511804450,"filename":"image_18082025_12_08_05_9713.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/87af5a474ea432961183dc48855ed11f.jpg","text":"TemporaryFile(/tmp/multipartBody4204773537427130830asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511804450,"filename":"image_18082025_12_08_35_10797.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377697652","file1":"1377697650","file0":"1377697645","file4":"1377697656","file5":"1377697660","file3":"1377697654"},"map_files_photo_id_array":[{"photo_id":"1377697660","filename":"file5"},{"photo_id":"1377697652","filename":"file2"},{"photo_id":"1377697656","filename":"file4"},{"photo_id":"1377697650","filename":"file1"},{"photo_id":"1377697645","filename":"file0"},{"photo_id":"1377697654","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377697652":["hashtag1","hashtag2"]},{"1377697660":["hashtag1","hashtag2"]},{"1377697645":["hashtag1","hashtag2"]},{"1377697654":["hashtag1","hashtag2"]},{"1377697656":["hashtag1","hashtag2"]},{"1377697650":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377697652, 1377697660, 1377697645, 1377697654, 1377697656, 1377697650)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.05198836326599 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:09:46.859818
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/09/image_18082025_12_09_45_10741.jpg', 2), ('/home/nano/Desktop/images/18082025/12/09/image_18082025_12_09_34_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/12/09/image_18082025_12_09_25_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/12/09/image_18082025_12_09_15_10800.jpg', 2), ('/home/nano/Desktop/images/18082025/12/08/image_18082025_12_09_04_9750.jpg', 2), ('/home/nano/Desktop/images/18082025/12/08/image_18082025_12_08_54_9696.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/09/image_18082025_12_09_45_10741.jpg', '/home/nano/Desktop/images/18082025/12/09/image_18082025_12_09_34_9643.jpg', '/home/nano/Desktop/images/18082025/12/09/image_18082025_12_09_25_9646.jpg', '/home/nano/Desktop/images/18082025/12/09/image_18082025_12_09_15_10800.jpg', '/home/nano/Desktop/images/18082025/12/08/image_18082025_12_09_04_9750.jpg', '/home/nano/Desktop/images/18082025/12/08/image_18082025_12_08_54_9696.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/09/image_18082025_12_09_45_10741.jpg
/home/nano/Desktop/images/18082025/12/09/image_18082025_12_09_34_9643.jpg
/home/nano/Desktop/images/18082025/12/09/image_18082025_12_09_25_9646.jpg
/home/nano/Desktop/images/18082025/12/09/image_18082025_12_09_15_10800.jpg
/home/nano/Desktop/images/18082025/12/08/image_18082025_12_09_04_9750.jpg
/home/nano/Desktop/images/18082025/12/08/image_18082025_12_08_54_9696.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377697691","1377697699","1377697693","1377697687","1377697690","1377697689"],"photo_ids_order":["1377697687","1377697689","1377697690","1377697691","1377697693","1377697699"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f2d994c14065096cfc2b8e26bfd865fc.jpg","text":"TemporaryFile(/tmp/multipartBody4222954258235206964asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511848497,"filename":"image_18082025_12_09_15_10800.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/10b90e3312b141acc0ebbf346351f042.jpg","text":"TemporaryFile(/tmp/multipartBody1599095327029259165asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511848497,"filename":"image_18082025_12_08_54_9696.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3b389556af9af352da4cbe92da0df1b9.jpg","text":"TemporaryFile(/tmp/multipartBody4067357609391491416asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511848497,"filename":"image_18082025_12_09_04_9750.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c53bd237e02120160a77b877fa1c3be8.jpg","text":"TemporaryFile(/tmp/multipartBody3336378022674620025asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511848497,"filename":"image_18082025_12_09_45_10741.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/25a7c740f759183fc4be2d067b9c4f80.jpg","text":"TemporaryFile(/tmp/multipartBody4953760957569610078asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511848497,"filename":"image_18082025_12_09_25_9646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8e39db67e34daf4793cff0b805630829.jpg","text":"TemporaryFile(/tmp/multipartBody1398820711624273120asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511848497,"filename":"image_18082025_12_09_34_9643.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377697690","file1":"1377697689","file0":"1377697687","file4":"1377697693","file5":"1377697699","file3":"1377697691"},"map_files_photo_id_array":[{"photo_id":"1377697699","filename":"file5"},{"photo_id":"1377697690","filename":"file2"},{"photo_id":"1377697693","filename":"file4"},{"photo_id":"1377697689","filename":"file1"},{"photo_id":"1377697687","filename":"file0"},{"photo_id":"1377697691","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377697691":["hashtag1","hashtag2"]},{"1377697699":["hashtag1","hashtag2"]},{"1377697693":["hashtag1","hashtag2"]},{"1377697687":["hashtag1","hashtag2"]},{"1377697690":["hashtag1","hashtag2"]},{"1377697689":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377697691, 1377697699, 1377697693, 1377697687, 1377697690, 1377697689)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.39482569694519 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:10:31.966263
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/10/image_18082025_12_10_45_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/12/10/image_18082025_12_10_34_9604.jpg', 2), ('/home/nano/Desktop/images/18082025/12/10/image_18082025_12_10_25_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/12/10/image_18082025_12_10_15_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/12/09/image_18082025_12_10_04_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/12/09/image_18082025_12_09_55_9664.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/10/image_18082025_12_10_45_10623.jpg', '/home/nano/Desktop/images/18082025/12/10/image_18082025_12_10_34_9604.jpg', '/home/nano/Desktop/images/18082025/12/10/image_18082025_12_10_25_9630.jpg', '/home/nano/Desktop/images/18082025/12/10/image_18082025_12_10_15_10646.jpg', '/home/nano/Desktop/images/18082025/12/09/image_18082025_12_10_04_9654.jpg', '/home/nano/Desktop/images/18082025/12/09/image_18082025_12_09_55_9664.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/10/image_18082025_12_10_45_10623.jpg
/home/nano/Desktop/images/18082025/12/10/image_18082025_12_10_34_9604.jpg
/home/nano/Desktop/images/18082025/12/10/image_18082025_12_10_25_9630.jpg
/home/nano/Desktop/images/18082025/12/10/image_18082025_12_10_15_10646.jpg
/home/nano/Desktop/images/18082025/12/09/image_18082025_12_10_04_9654.jpg
/home/nano/Desktop/images/18082025/12/09/image_18082025_12_09_55_9664.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377697718","1377697723","1377697726","1377697720","1377697717","1377697728"],"photo_ids_order":["1377697717","1377697718","1377697720","1377697723","1377697726","1377697728"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/47ea396d4efe49938088801dc523b648.jpg","text":"TemporaryFile(/tmp/multipartBody4990158452658300328asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511893037,"filename":"image_18082025_12_10_34_9604.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1dd1968d77753e835b842845a5c84a0b.jpg","text":"TemporaryFile(/tmp/multipartBody719694928777851334asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511893037,"filename":"image_18082025_12_10_15_10646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0430c2285f2b19acb0cfcdefa5f06f60.jpg","text":"TemporaryFile(/tmp/multipartBody4916231358133229710asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511893037,"filename":"image_18082025_12_10_04_9654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9eaad9474c758f3856d1c01993eaaf3f.jpg","text":"TemporaryFile(/tmp/multipartBody6655419312963112261asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511893037,"filename":"image_18082025_12_10_25_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/47042b2040b41e066d7ccd8e3ae5b46f.jpg","text":"TemporaryFile(/tmp/multipartBody7134703882991117681asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511893037,"filename":"image_18082025_12_10_45_10623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/eec194a275b6582a8fbefa9422518d71.jpg","text":"TemporaryFile(/tmp/multipartBody7330188259788365571asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511893037,"filename":"image_18082025_12_09_55_9664.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377697720","file1":"1377697718","file0":"1377697717","file4":"1377697726","file5":"1377697728","file3":"1377697723"},"map_files_photo_id_array":[{"photo_id":"1377697728","filename":"file5"},{"photo_id":"1377697720","filename":"file2"},{"photo_id":"1377697726","filename":"file4"},{"photo_id":"1377697718","filename":"file1"},{"photo_id":"1377697717","filename":"file0"},{"photo_id":"1377697723","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377697718":["hashtag1","hashtag2"]},{"1377697723":["hashtag1","hashtag2"]},{"1377697726":["hashtag1","hashtag2"]},{"1377697720":["hashtag1","hashtag2"]},{"1377697717":["hashtag1","hashtag2"]},{"1377697728":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377697718, 1377697723, 1377697726, 1377697720, 1377697717, 1377697728)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.718148708343506 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:11:17.083010
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/11/image_18082025_12_11_45_9605.jpg', 2), ('/home/nano/Desktop/images/18082025/12/11/image_18082025_12_11_35_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/12/11/image_18082025_12_11_24_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/12/11/image_18082025_12_11_15_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/12/10/image_18082025_12_11_04_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/12/10/image_18082025_12_10_54_9609.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/11/image_18082025_12_11_45_9605.jpg', '/home/nano/Desktop/images/18082025/12/11/image_18082025_12_11_35_10625.jpg', '/home/nano/Desktop/images/18082025/12/11/image_18082025_12_11_24_9611.jpg', '/home/nano/Desktop/images/18082025/12/11/image_18082025_12_11_15_10665.jpg', '/home/nano/Desktop/images/18082025/12/10/image_18082025_12_11_04_9621.jpg', '/home/nano/Desktop/images/18082025/12/10/image_18082025_12_10_54_9609.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/11/image_18082025_12_11_45_9605.jpg
/home/nano/Desktop/images/18082025/12/11/image_18082025_12_11_35_10625.jpg
/home/nano/Desktop/images/18082025/12/11/image_18082025_12_11_24_9611.jpg
/home/nano/Desktop/images/18082025/12/11/image_18082025_12_11_15_10665.jpg
/home/nano/Desktop/images/18082025/12/10/image_18082025_12_11_04_9621.jpg
/home/nano/Desktop/images/18082025/12/10/image_18082025_12_10_54_9609.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377697751","1377697748","1377697741","1377697744","1377697753","1377697755"],"photo_ids_order":["1377697741","1377697744","1377697748","1377697751","1377697753","1377697755"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ed0bb5b27c7113042369338360f20bd5.jpg","text":"TemporaryFile(/tmp/multipartBody7710519755898861478asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511938329,"filename":"image_18082025_12_11_15_10665.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1b5fc2971200ecba892cfda6f97c1499.jpg","text":"TemporaryFile(/tmp/multipartBody8264706865983779212asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511938329,"filename":"image_18082025_12_11_24_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/480627ad030989a618ed154f936ff2a4.jpg","text":"TemporaryFile(/tmp/multipartBody590644953306595964asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511938329,"filename":"image_18082025_12_11_45_9605.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/44b59e777f7652f8b5f331354721414d.jpg","text":"TemporaryFile(/tmp/multipartBody3404330738521238995asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511938329,"filename":"image_18082025_12_11_35_10625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/032c0fea79cf2725f62297c405d93fe9.jpg","text":"TemporaryFile(/tmp/multipartBody5002028615549920722asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511938329,"filename":"image_18082025_12_11_04_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1926976334e644d93d855544539d38ec.jpg","text":"TemporaryFile(/tmp/multipartBody1488052635602522648asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511938329,"filename":"image_18082025_12_10_54_9609.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377697748","file1":"1377697744","file0":"1377697741","file4":"1377697753","file5":"1377697755","file3":"1377697751"},"map_files_photo_id_array":[{"photo_id":"1377697755","filename":"file5"},{"photo_id":"1377697748","filename":"file2"},{"photo_id":"1377697753","filename":"file4"},{"photo_id":"1377697744","filename":"file1"},{"photo_id":"1377697741","filename":"file0"},{"photo_id":"1377697751","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377697751":["hashtag1","hashtag2"]},{"1377697748":["hashtag1","hashtag2"]},{"1377697741":["hashtag1","hashtag2"]},{"1377697744":["hashtag1","hashtag2"]},{"1377697753":["hashtag1","hashtag2"]},{"1377697755":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377697751, 1377697748, 1377697741, 1377697744, 1377697753, 1377697755)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.709245681762695 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:12:02.728394
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/44/image_18082025_11_44_45_10607.jpg', 2), ('/home/nano/Desktop/images/18082025/11/44/image_18082025_11_44_34_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/11/44/image_18082025_11_44_25_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/11/44/image_18082025_11_44_14_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/11/43/image_18082025_11_44_04_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/11/43/image_18082025_11_43_55_10656.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/44/image_18082025_11_44_45_10607.jpg', '/home/nano/Desktop/images/18082025/11/44/image_18082025_11_44_34_9611.jpg', '/home/nano/Desktop/images/18082025/11/44/image_18082025_11_44_25_10624.jpg', '/home/nano/Desktop/images/18082025/11/44/image_18082025_11_44_14_9633.jpg', '/home/nano/Desktop/images/18082025/11/43/image_18082025_11_44_04_9641.jpg', '/home/nano/Desktop/images/18082025/11/43/image_18082025_11_43_55_10656.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/44/image_18082025_11_44_45_10607.jpg
/home/nano/Desktop/images/18082025/11/44/image_18082025_11_44_34_9611.jpg
/home/nano/Desktop/images/18082025/11/44/image_18082025_11_44_25_10624.jpg
/home/nano/Desktop/images/18082025/11/44/image_18082025_11_44_14_9633.jpg
/home/nano/Desktop/images/18082025/11/43/image_18082025_11_44_04_9641.jpg
/home/nano/Desktop/images/18082025/11/43/image_18082025_11_43_55_10656.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377697774","1377697768","1377697777","1377697771","1377697764","1377697781"],"photo_ids_order":["1377697764","1377697768","1377697771","1377697774","1377697777","1377697781"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/98b9e305ee97b20e00f224ce0dd8b9a7.jpg","text":"TemporaryFile(/tmp/multipartBody4311755062481923641asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511983915,"filename":"image_18082025_11_44_14_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/302ff762119b0e381801706c2ebde177.jpg","text":"TemporaryFile(/tmp/multipartBody9061474042267598272asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511983915,"filename":"image_18082025_11_44_34_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3dc06319e0da1dd6d4824c4fb242ee84.jpg","text":"TemporaryFile(/tmp/multipartBody8808920483141029587asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511983915,"filename":"image_18082025_11_44_04_9641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8dead0ff485e83c15783b7977e26bf8d.jpg","text":"TemporaryFile(/tmp/multipartBody861111554209088228asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511983915,"filename":"image_18082025_11_44_25_10624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9a5b613c7f5156e4abf1cfc4a5ad7aab.jpg","text":"TemporaryFile(/tmp/multipartBody4415729749790450833asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511983915,"filename":"image_18082025_11_44_45_10607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/349957e729d7ae583309b2e500425629.jpg","text":"TemporaryFile(/tmp/multipartBody222209360306701513asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755511983915,"filename":"image_18082025_11_43_55_10656.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377697771","file1":"1377697768","file0":"1377697764","file4":"1377697777","file5":"1377697781","file3":"1377697774"},"map_files_photo_id_array":[{"photo_id":"1377697781","filename":"file5"},{"photo_id":"1377697771","filename":"file2"},{"photo_id":"1377697777","filename":"file4"},{"photo_id":"1377697768","filename":"file1"},{"photo_id":"1377697764","filename":"file0"},{"photo_id":"1377697774","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377697774":["hashtag1","hashtag2"]},{"1377697768":["hashtag1","hashtag2"]},{"1377697777":["hashtag1","hashtag2"]},{"1377697771":["hashtag1","hashtag2"]},{"1377697764":["hashtag1","hashtag2"]},{"1377697781":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377697774, 1377697768, 1377697777, 1377697771, 1377697764, 1377697781)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.644726514816284 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:12:47.173088
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/12/image_18082025_12_12_44_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/12/12/image_18082025_12_12_35_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/12/12/image_18082025_12_12_24_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/12/12/image_18082025_12_12_15_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/12/11/image_18082025_12_12_05_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/12/11/image_18082025_12_11_54_9621.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/12/image_18082025_12_12_44_9634.jpg', '/home/nano/Desktop/images/18082025/12/12/image_18082025_12_12_35_10625.jpg', '/home/nano/Desktop/images/18082025/12/12/image_18082025_12_12_24_9647.jpg', '/home/nano/Desktop/images/18082025/12/12/image_18082025_12_12_15_9643.jpg', '/home/nano/Desktop/images/18082025/12/11/image_18082025_12_12_05_10640.jpg', '/home/nano/Desktop/images/18082025/12/11/image_18082025_12_11_54_9621.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/12/image_18082025_12_12_44_9634.jpg
/home/nano/Desktop/images/18082025/12/12/image_18082025_12_12_35_10625.jpg
/home/nano/Desktop/images/18082025/12/12/image_18082025_12_12_24_9647.jpg
/home/nano/Desktop/images/18082025/12/12/image_18082025_12_12_15_9643.jpg
/home/nano/Desktop/images/18082025/12/11/image_18082025_12_12_05_10640.jpg
/home/nano/Desktop/images/18082025/12/11/image_18082025_12_11_54_9621.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377697804","1377697797","1377697791","1377697794","1377697800","1377697793"],"photo_ids_order":["1377697791","1377697793","1377697794","1377697797","1377697800","1377697804"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/13157d670b3d30aa5059c7e345b3590b.jpg","text":"TemporaryFile(/tmp/multipartBody1695430740668200379asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512028580,"filename":"image_18082025_12_11_54_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9c271555e7430293d2119482ccdeb6ac.jpg","text":"TemporaryFile(/tmp/multipartBody4970243023091938907asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512028580,"filename":"image_18082025_12_12_15_9643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/043be4db8c6a40e3c2e73e7bd6eaa936.jpg","text":"TemporaryFile(/tmp/multipartBody605027268387152856asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512028580,"filename":"image_18082025_12_12_44_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/84afae2a8dff4987b3a6f4b48a888fea.jpg","text":"TemporaryFile(/tmp/multipartBody4405900834094668194asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512028580,"filename":"image_18082025_12_12_24_9647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/999b8871f6d17300f5e4353255b2a0dc.jpg","text":"TemporaryFile(/tmp/multipartBody6251889574964761662asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512028580,"filename":"image_18082025_12_12_05_10640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0094e6ca388ca0d1a4d6601ec62c5aed.jpg","text":"TemporaryFile(/tmp/multipartBody868611582305596120asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512028580,"filename":"image_18082025_12_12_35_10625.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377697794","file1":"1377697793","file0":"1377697791","file4":"1377697800","file5":"1377697804","file3":"1377697797"},"map_files_photo_id_array":[{"photo_id":"1377697804","filename":"file5"},{"photo_id":"1377697794","filename":"file2"},{"photo_id":"1377697800","filename":"file4"},{"photo_id":"1377697793","filename":"file1"},{"photo_id":"1377697791","filename":"file0"},{"photo_id":"1377697797","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377697804":["hashtag1","hashtag2"]},{"1377697797":["hashtag1","hashtag2"]},{"1377697791":["hashtag1","hashtag2"]},{"1377697794":["hashtag1","hashtag2"]},{"1377697800":["hashtag1","hashtag2"]},{"1377697793":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377697804, 1377697797, 1377697791, 1377697794, 1377697800, 1377697793)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.505030870437622 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:13:32.281692
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/13/image_18082025_12_13_44_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/12/13/image_18082025_12_13_35_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/12/13/image_18082025_12_13_25_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/12/13/image_18082025_12_13_14_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/12/12/image_18082025_12_13_05_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/12/12/image_18082025_12_12_55_10629.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/13/image_18082025_12_13_44_9610.jpg', '/home/nano/Desktop/images/18082025/12/13/image_18082025_12_13_35_9621.jpg', '/home/nano/Desktop/images/18082025/12/13/image_18082025_12_13_25_10630.jpg', '/home/nano/Desktop/images/18082025/12/13/image_18082025_12_13_14_9642.jpg', '/home/nano/Desktop/images/18082025/12/12/image_18082025_12_13_05_9636.jpg', '/home/nano/Desktop/images/18082025/12/12/image_18082025_12_12_55_10629.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/13/image_18082025_12_13_44_9610.jpg
/home/nano/Desktop/images/18082025/12/13/image_18082025_12_13_35_9621.jpg
/home/nano/Desktop/images/18082025/12/13/image_18082025_12_13_25_10630.jpg
/home/nano/Desktop/images/18082025/12/13/image_18082025_12_13_14_9642.jpg
/home/nano/Desktop/images/18082025/12/12/image_18082025_12_13_05_9636.jpg
/home/nano/Desktop/images/18082025/12/12/image_18082025_12_12_55_10629.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377697832","1377697823","1377697840","1377697828","1377697842","1377697836"],"photo_ids_order":["1377697823","1377697828","1377697832","1377697836","1377697840","1377697842"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b901968a583804f1acc58ffeb9aef29f.jpg","text":"TemporaryFile(/tmp/multipartBody3274252224032886569asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512074993,"filename":"image_18082025_12_13_25_10630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f34c30b59403e789ef8b4d60cccdc6c1.jpg","text":"TemporaryFile(/tmp/multipartBody6805116754800659988asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512074993,"filename":"image_18082025_12_13_44_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/184fff35a25a6e523dfec39933b48857.jpg","text":"TemporaryFile(/tmp/multipartBody8767213724294658498asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512074993,"filename":"image_18082025_12_13_05_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c54b59036dd2b96491a86404f09b6ce3.jpg","text":"TemporaryFile(/tmp/multipartBody4971696812936638301asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512074993,"filename":"image_18082025_12_13_35_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/03d5c04c9441775926e59f24d925156a.jpg","text":"TemporaryFile(/tmp/multipartBody8826471816291039030asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512074993,"filename":"image_18082025_12_12_55_10629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dac97291c2a8677b61459d001b9d67f5.jpg","text":"TemporaryFile(/tmp/multipartBody5761221448719544782asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512074993,"filename":"image_18082025_12_13_14_9642.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377697832","file1":"1377697828","file0":"1377697823","file4":"1377697840","file5":"1377697842","file3":"1377697836"},"map_files_photo_id_array":[{"photo_id":"1377697842","filename":"file5"},{"photo_id":"1377697832","filename":"file2"},{"photo_id":"1377697840","filename":"file4"},{"photo_id":"1377697828","filename":"file1"},{"photo_id":"1377697823","filename":"file0"},{"photo_id":"1377697836","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377697832":["hashtag1","hashtag2"]},{"1377697823":["hashtag1","hashtag2"]},{"1377697840":["hashtag1","hashtag2"]},{"1377697828":["hashtag1","hashtag2"]},{"1377697842":["hashtag1","hashtag2"]},{"1377697836":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377697832, 1377697823, 1377697840, 1377697828, 1377697842, 1377697836)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.111783027648926 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:14:17.417785
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/14/image_18082025_12_14_45_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/12/14/image_18082025_12_14_34_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/12/14/image_18082025_12_14_25_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/12/14/image_18082025_12_14_14_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/12/13/image_18082025_12_14_04_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/12/13/image_18082025_12_13_55_10629.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/14/image_18082025_12_14_45_10644.jpg', '/home/nano/Desktop/images/18082025/12/14/image_18082025_12_14_34_9620.jpg', '/home/nano/Desktop/images/18082025/12/14/image_18082025_12_14_25_10637.jpg', '/home/nano/Desktop/images/18082025/12/14/image_18082025_12_14_14_9645.jpg', '/home/nano/Desktop/images/18082025/12/13/image_18082025_12_14_04_9629.jpg', '/home/nano/Desktop/images/18082025/12/13/image_18082025_12_13_55_10629.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/14/image_18082025_12_14_45_10644.jpg
/home/nano/Desktop/images/18082025/12/14/image_18082025_12_14_34_9620.jpg
/home/nano/Desktop/images/18082025/12/14/image_18082025_12_14_25_10637.jpg
/home/nano/Desktop/images/18082025/12/14/image_18082025_12_14_14_9645.jpg
/home/nano/Desktop/images/18082025/12/13/image_18082025_12_14_04_9629.jpg
/home/nano/Desktop/images/18082025/12/13/image_18082025_12_13_55_10629.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377697862","1377697865","1377697859","1377697852","1377697855","1377697858"],"photo_ids_order":["1377697852","1377697855","1377697858","1377697859","1377697862","1377697865"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bb7638fcf7bb36dce4a6f4f5117e62fe.jpg","text":"TemporaryFile(/tmp/multipartBody4796637323649504507asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512118826,"filename":"image_18082025_12_14_04_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fd015ec78a69cb9cf0afa4fe2343baf6.jpg","text":"TemporaryFile(/tmp/multipartBody190562389452030684asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512118826,"filename":"image_18082025_12_13_55_10629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bc08aea3f31ed0253e92b4bdd6e2860c.jpg","text":"TemporaryFile(/tmp/multipartBody8249075306122509933asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512118826,"filename":"image_18082025_12_14_14_9645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1363b373bbf76ad1a91c68a12c90a52c.jpg","text":"TemporaryFile(/tmp/multipartBody2432227849467618509asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512118826,"filename":"image_18082025_12_14_45_10644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ce491627cce100b6e4048f28608e1786.jpg","text":"TemporaryFile(/tmp/multipartBody5351602446027468934asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512118826,"filename":"image_18082025_12_14_34_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7c5d70ed2a4dfb4f6bcb4f55d0bf4040.jpg","text":"TemporaryFile(/tmp/multipartBody6175623740903385543asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512118826,"filename":"image_18082025_12_14_25_10637.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377697858","file1":"1377697855","file0":"1377697852","file4":"1377697862","file5":"1377697865","file3":"1377697859"},"map_files_photo_id_array":[{"photo_id":"1377697865","filename":"file5"},{"photo_id":"1377697858","filename":"file2"},{"photo_id":"1377697862","filename":"file4"},{"photo_id":"1377697855","filename":"file1"},{"photo_id":"1377697852","filename":"file0"},{"photo_id":"1377697859","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377697862":["hashtag1","hashtag2"]},{"1377697865":["hashtag1","hashtag2"]},{"1377697859":["hashtag1","hashtag2"]},{"1377697852":["hashtag1","hashtag2"]},{"1377697855":["hashtag1","hashtag2"]},{"1377697858":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377697862, 1377697865, 1377697859, 1377697852, 1377697855, 1377697858)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.81938886642456 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:15:03.145205
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/43/image_18082025_11_43_44_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/11/43/image_18082025_11_43_35_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/11/43/image_18082025_11_43_25_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/11/43/image_18082025_11_43_14_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/11/42/image_18082025_11_43_05_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/11/42/image_18082025_11_42_55_10603.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/43/image_18082025_11_43_44_9629.jpg', '/home/nano/Desktop/images/18082025/11/43/image_18082025_11_43_35_9624.jpg', '/home/nano/Desktop/images/18082025/11/43/image_18082025_11_43_25_10626.jpg', '/home/nano/Desktop/images/18082025/11/43/image_18082025_11_43_14_9646.jpg', '/home/nano/Desktop/images/18082025/11/42/image_18082025_11_43_05_9607.jpg', '/home/nano/Desktop/images/18082025/11/42/image_18082025_11_42_55_10603.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/43/image_18082025_11_43_44_9629.jpg
/home/nano/Desktop/images/18082025/11/43/image_18082025_11_43_35_9624.jpg
/home/nano/Desktop/images/18082025/11/43/image_18082025_11_43_25_10626.jpg
/home/nano/Desktop/images/18082025/11/43/image_18082025_11_43_14_9646.jpg
/home/nano/Desktop/images/18082025/11/42/image_18082025_11_43_05_9607.jpg
/home/nano/Desktop/images/18082025/11/42/image_18082025_11_42_55_10603.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377697898","1377697885","1377697903","1377697892","1377697895","1377697889"],"photo_ids_order":["1377697885","1377697889","1377697892","1377697895","1377697898","1377697903"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c312b1bd94cab72cc2b3e7af542e1772.jpg","text":"TemporaryFile(/tmp/multipartBody5208801652363315097asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512164562,"filename":"image_18082025_11_43_05_9607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cbe34bdb923483c2d3a9447b4d3bced3.jpg","text":"TemporaryFile(/tmp/multipartBody8803991327006240847asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512164562,"filename":"image_18082025_11_43_44_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3923e7b5a54cdf6046d95a47f6ec1e46.jpg","text":"TemporaryFile(/tmp/multipartBody4966278543522822894asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512164562,"filename":"image_18082025_11_42_55_10603.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e090c0dc7d16938e40364546ca042915.jpg","text":"TemporaryFile(/tmp/multipartBody7857389250411532977asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512164562,"filename":"image_18082025_11_43_25_10626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fa0ce81efe427e1936dc3968b1415d1c.jpg","text":"TemporaryFile(/tmp/multipartBody7286254212872493103asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512164562,"filename":"image_18082025_11_43_14_9646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3f4624c5222125d01f7074dc6aa4356a.jpg","text":"TemporaryFile(/tmp/multipartBody7963485621766187053asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512164562,"filename":"image_18082025_11_43_35_9624.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377697892","file1":"1377697889","file0":"1377697885","file4":"1377697898","file5":"1377697903","file3":"1377697895"},"map_files_photo_id_array":[{"photo_id":"1377697903","filename":"file5"},{"photo_id":"1377697892","filename":"file2"},{"photo_id":"1377697898","filename":"file4"},{"photo_id":"1377697889","filename":"file1"},{"photo_id":"1377697885","filename":"file0"},{"photo_id":"1377697895","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377697898":["hashtag1","hashtag2"]},{"1377697885":["hashtag1","hashtag2"]},{"1377697903":["hashtag1","hashtag2"]},{"1377697892":["hashtag1","hashtag2"]},{"1377697895":["hashtag1","hashtag2"]},{"1377697889":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377697898, 1377697885, 1377697903, 1377697892, 1377697895, 1377697889)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.80044436454773 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:15:47.494090
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/15/image_18082025_12_15_45_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/12/15/image_18082025_12_15_34_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/12/15/image_18082025_12_15_25_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/12/15/image_18082025_12_15_15_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/12/14/image_18082025_12_15_04_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/12/14/image_18082025_12_14_55_9615.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/15/image_18082025_12_15_45_10632.jpg', '/home/nano/Desktop/images/18082025/12/15/image_18082025_12_15_34_9613.jpg', '/home/nano/Desktop/images/18082025/12/15/image_18082025_12_15_25_9607.jpg', '/home/nano/Desktop/images/18082025/12/15/image_18082025_12_15_15_10651.jpg', '/home/nano/Desktop/images/18082025/12/14/image_18082025_12_15_04_9637.jpg', '/home/nano/Desktop/images/18082025/12/14/image_18082025_12_14_55_9615.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/15/image_18082025_12_15_45_10632.jpg
/home/nano/Desktop/images/18082025/12/15/image_18082025_12_15_34_9613.jpg
/home/nano/Desktop/images/18082025/12/15/image_18082025_12_15_25_9607.jpg
/home/nano/Desktop/images/18082025/12/15/image_18082025_12_15_15_10651.jpg
/home/nano/Desktop/images/18082025/12/14/image_18082025_12_15_04_9637.jpg
/home/nano/Desktop/images/18082025/12/14/image_18082025_12_14_55_9615.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377697916","1377697924","1377697918","1377697927","1377697920","1377697914"],"photo_ids_order":["1377697914","1377697916","1377697918","1377697920","1377697924","1377697927"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9d0e2976f2540bd0d89ba9a89690c6ce.jpg","text":"TemporaryFile(/tmp/multipartBody7658212818690618302asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512208815,"filename":"image_18082025_12_15_34_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/880597327bde9f438151454f772eb288.jpg","text":"TemporaryFile(/tmp/multipartBody3647695486565728576asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512208815,"filename":"image_18082025_12_15_04_9637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a43904314b75648680e7931a7515c2f6.jpg","text":"TemporaryFile(/tmp/multipartBody5862560783254097298asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512208815,"filename":"image_18082025_12_15_25_9607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/36479a07acada844a2247d4eff9fa74a.jpg","text":"TemporaryFile(/tmp/multipartBody8540161174919890213asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512208815,"filename":"image_18082025_12_14_55_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b0db633a470f733860d6af651a092f37.jpg","text":"TemporaryFile(/tmp/multipartBody7219753956393790890asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512208815,"filename":"image_18082025_12_15_15_10651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/36ef6cfc7a16fea6ea902a14d4efb30b.jpg","text":"TemporaryFile(/tmp/multipartBody860294589414158410asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512208815,"filename":"image_18082025_12_15_45_10632.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377697918","file1":"1377697916","file0":"1377697914","file4":"1377697924","file5":"1377697927","file3":"1377697920"},"map_files_photo_id_array":[{"photo_id":"1377697927","filename":"file5"},{"photo_id":"1377697918","filename":"file2"},{"photo_id":"1377697924","filename":"file4"},{"photo_id":"1377697916","filename":"file1"},{"photo_id":"1377697914","filename":"file0"},{"photo_id":"1377697920","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377697916":["hashtag1","hashtag2"]},{"1377697924":["hashtag1","hashtag2"]},{"1377697918":["hashtag1","hashtag2"]},{"1377697927":["hashtag1","hashtag2"]},{"1377697920":["hashtag1","hashtag2"]},{"1377697914":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377697916, 1377697924, 1377697918, 1377697927, 1377697920, 1377697914)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.651371717453003 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:16:32.591586
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/16/image_18082025_12_16_44_9733.jpg', 2), ('/home/nano/Desktop/images/18082025/12/16/image_18082025_12_16_34_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/12/16/image_18082025_12_16_25_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/12/16/image_18082025_12_16_14_9036.jpg', 2), ('/home/nano/Desktop/images/18082025/12/15/image_18082025_12_16_05_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/12/15/image_18082025_12_15_54_9642.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/16/image_18082025_12_16_44_9733.jpg', '/home/nano/Desktop/images/18082025/12/16/image_18082025_12_16_34_9663.jpg', '/home/nano/Desktop/images/18082025/12/16/image_18082025_12_16_25_10650.jpg', '/home/nano/Desktop/images/18082025/12/16/image_18082025_12_16_14_9036.jpg', '/home/nano/Desktop/images/18082025/12/15/image_18082025_12_16_05_10669.jpg', '/home/nano/Desktop/images/18082025/12/15/image_18082025_12_15_54_9642.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/16/image_18082025_12_16_44_9733.jpg
/home/nano/Desktop/images/18082025/12/16/image_18082025_12_16_34_9663.jpg
/home/nano/Desktop/images/18082025/12/16/image_18082025_12_16_25_10650.jpg
/home/nano/Desktop/images/18082025/12/16/image_18082025_12_16_14_9036.jpg
/home/nano/Desktop/images/18082025/12/15/image_18082025_12_16_05_10669.jpg
/home/nano/Desktop/images/18082025/12/15/image_18082025_12_15_54_9642.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377697952","1377697954","1377697948","1377697945","1377697950","1377697956"],"photo_ids_order":["1377697945","1377697948","1377697950","1377697952","1377697954","1377697956"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1e94f97791a05622698044fab56c1f15.jpg","text":"TemporaryFile(/tmp/multipartBody4405144522458236786asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512254208,"filename":"image_18082025_12_16_14_9036.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/11b6acf08733b6c5edfc3d314485a983.jpg","text":"TemporaryFile(/tmp/multipartBody1603225660587609249asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512254208,"filename":"image_18082025_12_16_05_10669.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/541a8fb7154a50515f17394635373cd0.jpg","text":"TemporaryFile(/tmp/multipartBody1119233432674235276asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512254208,"filename":"image_18082025_12_16_34_9663.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/46f11b47fc4e9f2b3a2af99148879641.jpg","text":"TemporaryFile(/tmp/multipartBody2357204526950688971asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512254208,"filename":"image_18082025_12_16_44_9733.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/19b4d2f1cb6faada0e2dc509123f0263.jpg","text":"TemporaryFile(/tmp/multipartBody8017216917345531118asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512254208,"filename":"image_18082025_12_16_25_10650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2bb92fbfd34ce0b194dd9ef832c58627.jpg","text":"TemporaryFile(/tmp/multipartBody206202891763038125asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512254208,"filename":"image_18082025_12_15_54_9642.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377697950","file1":"1377697948","file0":"1377697945","file4":"1377697954","file5":"1377697956","file3":"1377697952"},"map_files_photo_id_array":[{"photo_id":"1377697956","filename":"file5"},{"photo_id":"1377697950","filename":"file2"},{"photo_id":"1377697954","filename":"file4"},{"photo_id":"1377697948","filename":"file1"},{"photo_id":"1377697945","filename":"file0"},{"photo_id":"1377697952","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377697952":["hashtag1","hashtag2"]},{"1377697954":["hashtag1","hashtag2"]},{"1377697948":["hashtag1","hashtag2"]},{"1377697945":["hashtag1","hashtag2"]},{"1377697950":["hashtag1","hashtag2"]},{"1377697956":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377697952, 1377697954, 1377697948, 1377697945, 1377697950, 1377697956)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.05678629875183 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:17:17.698187
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/17/image_18082025_12_17_45_9735.jpg', 2), ('/home/nano/Desktop/images/18082025/12/17/image_18082025_12_17_35_10750.jpg', 2), ('/home/nano/Desktop/images/18082025/12/17/image_18082025_12_17_24_9729.jpg', 2), ('/home/nano/Desktop/images/18082025/12/17/image_18082025_12_17_15_9849.jpg', 2), ('/home/nano/Desktop/images/18082025/12/16/image_18082025_12_17_05_9769.jpg', 2), ('/home/nano/Desktop/images/18082025/12/16/image_18082025_12_16_55_10792.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/17/image_18082025_12_17_45_9735.jpg', '/home/nano/Desktop/images/18082025/12/17/image_18082025_12_17_35_10750.jpg', '/home/nano/Desktop/images/18082025/12/17/image_18082025_12_17_24_9729.jpg', '/home/nano/Desktop/images/18082025/12/17/image_18082025_12_17_15_9849.jpg', '/home/nano/Desktop/images/18082025/12/16/image_18082025_12_17_05_9769.jpg', '/home/nano/Desktop/images/18082025/12/16/image_18082025_12_16_55_10792.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/17/image_18082025_12_17_45_9735.jpg
/home/nano/Desktop/images/18082025/12/17/image_18082025_12_17_35_10750.jpg
/home/nano/Desktop/images/18082025/12/17/image_18082025_12_17_24_9729.jpg
/home/nano/Desktop/images/18082025/12/17/image_18082025_12_17_15_9849.jpg
/home/nano/Desktop/images/18082025/12/16/image_18082025_12_17_05_9769.jpg
/home/nano/Desktop/images/18082025/12/16/image_18082025_12_16_55_10792.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377697970","1377697984","1377697978","1377697981","1377697975","1377697973"],"photo_ids_order":["1377697970","1377697973","1377697975","1377697978","1377697981","1377697984"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5e7db53343b4f71867edb26d5f0fb090.jpg","text":"TemporaryFile(/tmp/multipartBody1759279447416686829asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512299322,"filename":"image_18082025_12_17_45_9735.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d6927fb242a6f5b1b917e7259146e1f2.jpg","text":"TemporaryFile(/tmp/multipartBody6528723715854802037asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512299322,"filename":"image_18082025_12_16_55_10792.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/39ed4db4eafe8f4f0cfa13bc98dee8d4.jpg","text":"TemporaryFile(/tmp/multipartBody1181145591895681099asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512299322,"filename":"image_18082025_12_17_15_9849.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/feee47b2ab9b8561160d7c9d237551be.jpg","text":"TemporaryFile(/tmp/multipartBody6393683783584321601asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512299322,"filename":"image_18082025_12_17_05_9769.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3e3b4209fd76b9eac1bb3ff3c4c07f03.jpg","text":"TemporaryFile(/tmp/multipartBody7260882422904558241asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512299322,"filename":"image_18082025_12_17_24_9729.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/43d78ead187d75c6ef3af7222002f355.jpg","text":"TemporaryFile(/tmp/multipartBody9193477941647428031asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512299322,"filename":"image_18082025_12_17_35_10750.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377697975","file1":"1377697973","file0":"1377697970","file4":"1377697981","file5":"1377697984","file3":"1377697978"},"map_files_photo_id_array":[{"photo_id":"1377697984","filename":"file5"},{"photo_id":"1377697975","filename":"file2"},{"photo_id":"1377697981","filename":"file4"},{"photo_id":"1377697973","filename":"file1"},{"photo_id":"1377697970","filename":"file0"},{"photo_id":"1377697978","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377697970":["hashtag1","hashtag2"]},{"1377697984":["hashtag1","hashtag2"]},{"1377697978":["hashtag1","hashtag2"]},{"1377697981":["hashtag1","hashtag2"]},{"1377697975":["hashtag1","hashtag2"]},{"1377697973":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377697970, 1377697984, 1377697978, 1377697981, 1377697975, 1377697973)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.802075147628784 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:18:02.282373
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/42/image_18082025_11_42_44_9592.jpg', 2), ('/home/nano/Desktop/images/18082025/11/42/image_18082025_11_42_35_10607.jpg', 2), ('/home/nano/Desktop/images/18082025/11/42/image_18082025_11_42_24_9594.jpg', 2), ('/home/nano/Desktop/images/18082025/11/42/image_18082025_11_42_15_9594.jpg', 2), ('/home/nano/Desktop/images/18082025/11/41/image_18082025_11_42_05_10611.jpg', 2), ('/home/nano/Desktop/images/18082025/11/41/image_18082025_11_41_54_9617.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/42/image_18082025_11_42_44_9592.jpg', '/home/nano/Desktop/images/18082025/11/42/image_18082025_11_42_35_10607.jpg', '/home/nano/Desktop/images/18082025/11/42/image_18082025_11_42_24_9594.jpg', '/home/nano/Desktop/images/18082025/11/42/image_18082025_11_42_15_9594.jpg', '/home/nano/Desktop/images/18082025/11/41/image_18082025_11_42_05_10611.jpg', '/home/nano/Desktop/images/18082025/11/41/image_18082025_11_41_54_9617.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/42/image_18082025_11_42_44_9592.jpg
/home/nano/Desktop/images/18082025/11/42/image_18082025_11_42_35_10607.jpg
/home/nano/Desktop/images/18082025/11/42/image_18082025_11_42_24_9594.jpg
/home/nano/Desktop/images/18082025/11/42/image_18082025_11_42_15_9594.jpg
/home/nano/Desktop/images/18082025/11/41/image_18082025_11_42_05_10611.jpg
/home/nano/Desktop/images/18082025/11/41/image_18082025_11_41_54_9617.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377698003","1377697999","1377698011","1377697995","1377698007","1377697991"],"photo_ids_order":["1377697991","1377697995","1377697999","1377698003","1377698007","1377698011"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/18227cf2dbc7c3bc302228b60bc46d5f.jpg","text":"TemporaryFile(/tmp/multipartBody1060297809197529353asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512343449,"filename":"image_18082025_11_42_15_9594.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b0807c4467db465e305d920e871a54f2.jpg","text":"TemporaryFile(/tmp/multipartBody2582142352689562003asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512343449,"filename":"image_18082025_11_42_24_9594.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f04edb67822359e8c8230ab7de5e97b7.jpg","text":"TemporaryFile(/tmp/multipartBody6336142972622831999asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512343449,"filename":"image_18082025_11_41_54_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e9a225555e6e07b380aec476bad82c4b.jpg","text":"TemporaryFile(/tmp/multipartBody411117224986700734asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512343449,"filename":"image_18082025_11_42_35_10607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/94f5e78ea37eca9bd8eef93a69e9cf02.jpg","text":"TemporaryFile(/tmp/multipartBody174586757376725048asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512343449,"filename":"image_18082025_11_42_05_10611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e7c7e94d1cd054b9edeba648b1243934.jpg","text":"TemporaryFile(/tmp/multipartBody8785696544686872893asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512343449,"filename":"image_18082025_11_42_44_9592.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377697999","file1":"1377697995","file0":"1377697991","file4":"1377698007","file5":"1377698011","file3":"1377698003"},"map_files_photo_id_array":[{"photo_id":"1377698011","filename":"file5"},{"photo_id":"1377697999","filename":"file2"},{"photo_id":"1377698007","filename":"file4"},{"photo_id":"1377697995","filename":"file1"},{"photo_id":"1377697991","filename":"file0"},{"photo_id":"1377698003","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377698003":["hashtag1","hashtag2"]},{"1377697999":["hashtag1","hashtag2"]},{"1377698011":["hashtag1","hashtag2"]},{"1377697995":["hashtag1","hashtag2"]},{"1377698007":["hashtag1","hashtag2"]},{"1377697991":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377698003, 1377697999, 1377698011, 1377697995, 1377698007, 1377697991)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.548123359680176 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:18:46.798353
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/18/image_18082025_12_18_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/12/18/image_18082025_12_18_35_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/12/18/image_18082025_12_18_25_10778.jpg', 2), ('/home/nano/Desktop/images/18082025/12/18/image_18082025_12_18_14_9809.jpg', 2), ('/home/nano/Desktop/images/18082025/12/17/image_18082025_12_18_04_9782.jpg', 2), ('/home/nano/Desktop/images/18082025/12/17/image_18082025_12_17_55_9734.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/18/image_18082025_12_18_44_9643.jpg', '/home/nano/Desktop/images/18082025/12/18/image_18082025_12_18_35_9652.jpg', '/home/nano/Desktop/images/18082025/12/18/image_18082025_12_18_25_10778.jpg', '/home/nano/Desktop/images/18082025/12/18/image_18082025_12_18_14_9809.jpg', '/home/nano/Desktop/images/18082025/12/17/image_18082025_12_18_04_9782.jpg', '/home/nano/Desktop/images/18082025/12/17/image_18082025_12_17_55_9734.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/18/image_18082025_12_18_44_9643.jpg
/home/nano/Desktop/images/18082025/12/18/image_18082025_12_18_35_9652.jpg
/home/nano/Desktop/images/18082025/12/18/image_18082025_12_18_25_10778.jpg
/home/nano/Desktop/images/18082025/12/18/image_18082025_12_18_14_9809.jpg
/home/nano/Desktop/images/18082025/12/17/image_18082025_12_18_04_9782.jpg
/home/nano/Desktop/images/18082025/12/17/image_18082025_12_17_55_9734.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377698039","1377698024","1377698027","1377698035","1377698020","1377698031"],"photo_ids_order":["1377698020","1377698024","1377698027","1377698031","1377698035","1377698039"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/aef09cd759b037eed216f995460487a5.jpg","text":"TemporaryFile(/tmp/multipartBody5733344702111061936asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512388301,"filename":"image_18082025_12_17_55_9734.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/74a06e25ea1b7c9409d90e883151b59d.jpg","text":"TemporaryFile(/tmp/multipartBody6713174052719421533asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512388301,"filename":"image_18082025_12_18_35_9652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1fcb2948dc87b744250bae14e0341d26.jpg","text":"TemporaryFile(/tmp/multipartBody2896903577972796212asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512388301,"filename":"image_18082025_12_18_25_10778.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/80c75d135c56d586e61ac33d5b5d0b4b.jpg","text":"TemporaryFile(/tmp/multipartBody7098370455760176509asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512388301,"filename":"image_18082025_12_18_04_9782.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a793bf29a36803df3494935ff1aba31f.jpg","text":"TemporaryFile(/tmp/multipartBody444089165366451736asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512388301,"filename":"image_18082025_12_18_44_9643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ed19109d44ce1e60367420b0558a8474.jpg","text":"TemporaryFile(/tmp/multipartBody1790927936734702402asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512388301,"filename":"image_18082025_12_18_14_9809.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377698027","file1":"1377698024","file0":"1377698020","file4":"1377698035","file5":"1377698039","file3":"1377698031"},"map_files_photo_id_array":[{"photo_id":"1377698039","filename":"file5"},{"photo_id":"1377698027","filename":"file2"},{"photo_id":"1377698035","filename":"file4"},{"photo_id":"1377698024","filename":"file1"},{"photo_id":"1377698020","filename":"file0"},{"photo_id":"1377698031","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377698039":["hashtag1","hashtag2"]},{"1377698024":["hashtag1","hashtag2"]},{"1377698027":["hashtag1","hashtag2"]},{"1377698035":["hashtag1","hashtag2"]},{"1377698020":["hashtag1","hashtag2"]},{"1377698031":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377698039, 1377698024, 1377698027, 1377698035, 1377698020, 1377698031)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.24942398071289 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:19:31.909980
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/19/image_18082025_12_19_44_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/12/19/image_18082025_12_19_35_9694.jpg', 2), ('/home/nano/Desktop/images/18082025/12/19/image_18082025_12_19_25_10715.jpg', 2), ('/home/nano/Desktop/images/18082025/12/19/image_18082025_12_19_14_9665.jpg', 2), ('/home/nano/Desktop/images/18082025/12/18/image_18082025_12_19_05_9690.jpg', 2), ('/home/nano/Desktop/images/18082025/12/18/image_18082025_12_18_55_10642.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/19/image_18082025_12_19_44_9611.jpg', '/home/nano/Desktop/images/18082025/12/19/image_18082025_12_19_35_9694.jpg', '/home/nano/Desktop/images/18082025/12/19/image_18082025_12_19_25_10715.jpg', '/home/nano/Desktop/images/18082025/12/19/image_18082025_12_19_14_9665.jpg', '/home/nano/Desktop/images/18082025/12/18/image_18082025_12_19_05_9690.jpg', '/home/nano/Desktop/images/18082025/12/18/image_18082025_12_18_55_10642.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/19/image_18082025_12_19_44_9611.jpg
/home/nano/Desktop/images/18082025/12/19/image_18082025_12_19_35_9694.jpg
/home/nano/Desktop/images/18082025/12/19/image_18082025_12_19_25_10715.jpg
/home/nano/Desktop/images/18082025/12/19/image_18082025_12_19_14_9665.jpg
/home/nano/Desktop/images/18082025/12/18/image_18082025_12_19_05_9690.jpg
/home/nano/Desktop/images/18082025/12/18/image_18082025_12_18_55_10642.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377698074","1377698056","1377698058","1377698072","1377698060","1377698054"],"photo_ids_order":["1377698054","1377698056","1377698058","1377698060","1377698072","1377698074"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c54c8cef14a7801d96c388fe0c6bc6c2.jpg","text":"TemporaryFile(/tmp/multipartBody1974994468607782885asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512433182,"filename":"image_18082025_12_18_55_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fd1465a09729d9ceb1741d7889009378.jpg","text":"TemporaryFile(/tmp/multipartBody5642312243208674090asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512433182,"filename":"image_18082025_12_19_35_9694.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/23300d1b9ab67801af79376b44ade8d8.jpg","text":"TemporaryFile(/tmp/multipartBody2087501698434915322asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512433182,"filename":"image_18082025_12_19_25_10715.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ff3b168a3e60f270904ae3d2a8cfe509.jpg","text":"TemporaryFile(/tmp/multipartBody5647832440950363002asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512433182,"filename":"image_18082025_12_19_05_9690.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a3b55dc7606763acff7d04a3b3607614.jpg","text":"TemporaryFile(/tmp/multipartBody6045312121069147421asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512433182,"filename":"image_18082025_12_19_14_9665.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b65a09fe131ae742747dedcf358769f7.jpg","text":"TemporaryFile(/tmp/multipartBody7396240865482684881asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512433182,"filename":"image_18082025_12_19_44_9611.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377698058","file1":"1377698056","file0":"1377698054","file4":"1377698072","file5":"1377698074","file3":"1377698060"},"map_files_photo_id_array":[{"photo_id":"1377698074","filename":"file5"},{"photo_id":"1377698058","filename":"file2"},{"photo_id":"1377698072","filename":"file4"},{"photo_id":"1377698056","filename":"file1"},{"photo_id":"1377698054","filename":"file0"},{"photo_id":"1377698060","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377698074":["hashtag1","hashtag2"]},{"1377698056":["hashtag1","hashtag2"]},{"1377698058":["hashtag1","hashtag2"]},{"1377698072":["hashtag1","hashtag2"]},{"1377698060":["hashtag1","hashtag2"]},{"1377698054":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377698074, 1377698056, 1377698058, 1377698072, 1377698060, 1377698054)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.54702615737915 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:20:16.980632
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/20/image_18082025_12_20_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/12/20/image_18082025_12_20_35_9706.jpg', 2), ('/home/nano/Desktop/images/18082025/12/20/image_18082025_12_20_25_10619.jpg', 2), ('/home/nano/Desktop/images/18082025/12/20/image_18082025_12_20_14_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/12/19/image_18082025_12_20_05_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/12/19/image_18082025_12_19_55_10696.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/20/image_18082025_12_20_44_9638.jpg', '/home/nano/Desktop/images/18082025/12/20/image_18082025_12_20_35_9706.jpg', '/home/nano/Desktop/images/18082025/12/20/image_18082025_12_20_25_10619.jpg', '/home/nano/Desktop/images/18082025/12/20/image_18082025_12_20_14_9661.jpg', '/home/nano/Desktop/images/18082025/12/19/image_18082025_12_20_05_9664.jpg', '/home/nano/Desktop/images/18082025/12/19/image_18082025_12_19_55_10696.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/20/image_18082025_12_20_44_9638.jpg
/home/nano/Desktop/images/18082025/12/20/image_18082025_12_20_35_9706.jpg
/home/nano/Desktop/images/18082025/12/20/image_18082025_12_20_25_10619.jpg
/home/nano/Desktop/images/18082025/12/20/image_18082025_12_20_14_9661.jpg
/home/nano/Desktop/images/18082025/12/19/image_18082025_12_20_05_9664.jpg
/home/nano/Desktop/images/18082025/12/19/image_18082025_12_19_55_10696.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377698101","1377698094","1377698088","1377698091","1377698099","1377698096"],"photo_ids_order":["1377698088","1377698091","1377698094","1377698096","1377698099","1377698101"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d756e94f661046bb01a31ad406943031.jpg","text":"TemporaryFile(/tmp/multipartBody7605193879314754350asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512478458,"filename":"image_18082025_12_19_55_10696.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b1f8587c7949009d6d3a594e2e3f886d.jpg","text":"TemporaryFile(/tmp/multipartBody2835840643258383019asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512478458,"filename":"image_18082025_12_20_25_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7b7048d895c34376dfaf93cb6cb72a86.jpg","text":"TemporaryFile(/tmp/multipartBody6503907194969427697asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512478458,"filename":"image_18082025_12_20_44_9638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5eb76a2b372913faaac49f6082a86330.jpg","text":"TemporaryFile(/tmp/multipartBody3465784227135877275asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512478458,"filename":"image_18082025_12_20_35_9706.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7a8c566d3345267f6a225d1031926c90.jpg","text":"TemporaryFile(/tmp/multipartBody4374952397742668558asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512478458,"filename":"image_18082025_12_20_05_9664.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7320e96c7e0d7bea3f6c540167ef504c.jpg","text":"TemporaryFile(/tmp/multipartBody2513941811807276298asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512478458,"filename":"image_18082025_12_20_14_9661.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377698094","file1":"1377698091","file0":"1377698088","file4":"1377698099","file5":"1377698101","file3":"1377698096"},"map_files_photo_id_array":[{"photo_id":"1377698101","filename":"file5"},{"photo_id":"1377698094","filename":"file2"},{"photo_id":"1377698099","filename":"file4"},{"photo_id":"1377698091","filename":"file1"},{"photo_id":"1377698088","filename":"file0"},{"photo_id":"1377698096","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377698101":["hashtag1","hashtag2"]},{"1377698094":["hashtag1","hashtag2"]},{"1377698088":["hashtag1","hashtag2"]},{"1377698091":["hashtag1","hashtag2"]},{"1377698099":["hashtag1","hashtag2"]},{"1377698096":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377698101, 1377698094, 1377698088, 1377698091, 1377698099, 1377698096)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.25489282608032 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:21:02.854073
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/41/image_18082025_11_41_45_10593.jpg', 2), ('/home/nano/Desktop/images/18082025/11/41/image_18082025_11_41_34_9592.jpg', 2), ('/home/nano/Desktop/images/18082025/11/41/image_18082025_11_41_25_9595.jpg', 2), ('/home/nano/Desktop/images/18082025/11/41/image_18082025_11_41_15_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/11/40/image_18082025_11_41_04_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/11/40/image_18082025_11_40_55_10607.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/41/image_18082025_11_41_45_10593.jpg', '/home/nano/Desktop/images/18082025/11/41/image_18082025_11_41_34_9592.jpg', '/home/nano/Desktop/images/18082025/11/41/image_18082025_11_41_25_9595.jpg', '/home/nano/Desktop/images/18082025/11/41/image_18082025_11_41_15_10627.jpg', '/home/nano/Desktop/images/18082025/11/40/image_18082025_11_41_04_9616.jpg', '/home/nano/Desktop/images/18082025/11/40/image_18082025_11_40_55_10607.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/41/image_18082025_11_41_45_10593.jpg
/home/nano/Desktop/images/18082025/11/41/image_18082025_11_41_34_9592.jpg
/home/nano/Desktop/images/18082025/11/41/image_18082025_11_41_25_9595.jpg
/home/nano/Desktop/images/18082025/11/41/image_18082025_11_41_15_10627.jpg
/home/nano/Desktop/images/18082025/11/40/image_18082025_11_41_04_9616.jpg
/home/nano/Desktop/images/18082025/11/40/image_18082025_11_40_55_10607.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377698111","1377698128","1377698124","1377698121","1377698115","1377698118"],"photo_ids_order":["1377698111","1377698115","1377698118","1377698121","1377698124","1377698128"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a5b0600b2880526f1ad3e381df7e118d.jpg","text":"TemporaryFile(/tmp/multipartBody4917437191711744648asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512523826,"filename":"image_18082025_11_41_45_10593.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f73005a46eba89861cdb4c4600d4d183.jpg","text":"TemporaryFile(/tmp/multipartBody1889065823893453174asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512523826,"filename":"image_18082025_11_40_55_10607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c1167f46e94e212659e58d0b937a5442.jpg","text":"TemporaryFile(/tmp/multipartBody7160870217969199090asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512523826,"filename":"image_18082025_11_41_04_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b21cbfa816e6f254f75f1585a815e036.jpg","text":"TemporaryFile(/tmp/multipartBody9158951393990697687asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512523826,"filename":"image_18082025_11_41_15_10627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/55e9f8bf31916d632d82660e45b02bb7.jpg","text":"TemporaryFile(/tmp/multipartBody920970980276215885asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512523826,"filename":"image_18082025_11_41_34_9592.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6a7bfcb6dbc7ecc8705caf54d1305bfe.jpg","text":"TemporaryFile(/tmp/multipartBody6212617053096435311asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512523826,"filename":"image_18082025_11_41_25_9595.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377698118","file1":"1377698115","file0":"1377698111","file4":"1377698124","file5":"1377698128","file3":"1377698121"},"map_files_photo_id_array":[{"photo_id":"1377698128","filename":"file5"},{"photo_id":"1377698118","filename":"file2"},{"photo_id":"1377698124","filename":"file4"},{"photo_id":"1377698115","filename":"file1"},{"photo_id":"1377698111","filename":"file0"},{"photo_id":"1377698121","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377698111":["hashtag1","hashtag2"]},{"1377698128":["hashtag1","hashtag2"]},{"1377698124":["hashtag1","hashtag2"]},{"1377698121":["hashtag1","hashtag2"]},{"1377698115":["hashtag1","hashtag2"]},{"1377698118":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377698111, 1377698128, 1377698124, 1377698121, 1377698115, 1377698118)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.96503829956055 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:21:47.079971
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/21/image_18082025_12_21_45_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/12/21/image_18082025_12_21_34_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/12/21/image_18082025_12_21_25_10620.jpg', 2), ('/home/nano/Desktop/images/18082025/12/21/image_18082025_12_21_14_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/12/20/image_18082025_12_21_04_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/12/20/image_18082025_12_20_55_10630.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/21/image_18082025_12_21_45_10624.jpg', '/home/nano/Desktop/images/18082025/12/21/image_18082025_12_21_34_9612.jpg', '/home/nano/Desktop/images/18082025/12/21/image_18082025_12_21_25_10620.jpg', '/home/nano/Desktop/images/18082025/12/21/image_18082025_12_21_14_9641.jpg', '/home/nano/Desktop/images/18082025/12/20/image_18082025_12_21_04_9607.jpg', '/home/nano/Desktop/images/18082025/12/20/image_18082025_12_20_55_10630.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/21/image_18082025_12_21_45_10624.jpg
/home/nano/Desktop/images/18082025/12/21/image_18082025_12_21_34_9612.jpg
/home/nano/Desktop/images/18082025/12/21/image_18082025_12_21_25_10620.jpg
/home/nano/Desktop/images/18082025/12/21/image_18082025_12_21_14_9641.jpg
/home/nano/Desktop/images/18082025/12/20/image_18082025_12_21_04_9607.jpg
/home/nano/Desktop/images/18082025/12/20/image_18082025_12_20_55_10630.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377698144","1377698138","1377698146","1377698149","1377698140","1377698142"],"photo_ids_order":["1377698138","1377698140","1377698142","1377698144","1377698146","1377698149"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2bd0888c9401077b9c05aa7b2a189af8.jpg","text":"TemporaryFile(/tmp/multipartBody6509751548706114899asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512568365,"filename":"image_18082025_12_21_14_9641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d04236ce0d3dff76c74f9933879b3757.jpg","text":"TemporaryFile(/tmp/multipartBody3023611515038521599asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512568365,"filename":"image_18082025_12_21_45_10624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/60e52069ca4005d67a7e7d6ac6f4fc72.jpg","text":"TemporaryFile(/tmp/multipartBody1504475969081272041asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512568365,"filename":"image_18082025_12_21_04_9607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e0272494f6a4af253e3832d172606417.jpg","text":"TemporaryFile(/tmp/multipartBody785801537310968195asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512568365,"filename":"image_18082025_12_20_55_10630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6494ee7915a45c3f3c4e4c9c51ad87a6.jpg","text":"TemporaryFile(/tmp/multipartBody3530628106870955085asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512568365,"filename":"image_18082025_12_21_34_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/be20016f3a24aecad65a5951b7526386.jpg","text":"TemporaryFile(/tmp/multipartBody6421415147395964444asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512568365,"filename":"image_18082025_12_21_25_10620.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377698142","file1":"1377698140","file0":"1377698138","file4":"1377698146","file5":"1377698149","file3":"1377698144"},"map_files_photo_id_array":[{"photo_id":"1377698149","filename":"file5"},{"photo_id":"1377698142","filename":"file2"},{"photo_id":"1377698146","filename":"file4"},{"photo_id":"1377698140","filename":"file1"},{"photo_id":"1377698138","filename":"file0"},{"photo_id":"1377698144","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377698144":["hashtag1","hashtag2"]},{"1377698138":["hashtag1","hashtag2"]},{"1377698146":["hashtag1","hashtag2"]},{"1377698149":["hashtag1","hashtag2"]},{"1377698140":["hashtag1","hashtag2"]},{"1377698142":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377698144, 1377698138, 1377698146, 1377698149, 1377698140, 1377698142)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.409085512161255 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:22:32.184644
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/22/image_18082025_12_22_44_9767.jpg', 2), ('/home/nano/Desktop/images/18082025/12/22/image_18082025_12_22_34_9775.jpg', 2), ('/home/nano/Desktop/images/18082025/12/22/image_18082025_12_22_25_9777.jpg', 2), ('/home/nano/Desktop/images/18082025/12/22/image_18082025_12_22_15_10690.jpg', 2), ('/home/nano/Desktop/images/18082025/12/21/image_18082025_12_22_04_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/12/21/image_18082025_12_21_55_9614.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/22/image_18082025_12_22_44_9767.jpg', '/home/nano/Desktop/images/18082025/12/22/image_18082025_12_22_34_9775.jpg', '/home/nano/Desktop/images/18082025/12/22/image_18082025_12_22_25_9777.jpg', '/home/nano/Desktop/images/18082025/12/22/image_18082025_12_22_15_10690.jpg', '/home/nano/Desktop/images/18082025/12/21/image_18082025_12_22_04_9615.jpg', '/home/nano/Desktop/images/18082025/12/21/image_18082025_12_21_55_9614.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/22/image_18082025_12_22_44_9767.jpg
/home/nano/Desktop/images/18082025/12/22/image_18082025_12_22_34_9775.jpg
/home/nano/Desktop/images/18082025/12/22/image_18082025_12_22_25_9777.jpg
/home/nano/Desktop/images/18082025/12/22/image_18082025_12_22_15_10690.jpg
/home/nano/Desktop/images/18082025/12/21/image_18082025_12_22_04_9615.jpg
/home/nano/Desktop/images/18082025/12/21/image_18082025_12_21_55_9614.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377698176","1377698181","1377698184","1377698178","1377698186","1377698180"],"photo_ids_order":["1377698176","1377698178","1377698180","1377698181","1377698184","1377698186"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/83bacff7a34a23e23d5e7652669fcab4.jpg","text":"TemporaryFile(/tmp/multipartBody3102188057500425380asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512613804,"filename":"image_18082025_12_22_44_9767.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/30fb6c4cf0f3f79c9ae748855446fee8.jpg","text":"TemporaryFile(/tmp/multipartBody5256059672148462934asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512613804,"filename":"image_18082025_12_22_15_10690.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e851f79145b79690052f416644081d49.jpg","text":"TemporaryFile(/tmp/multipartBody1839672211829918675asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512613804,"filename":"image_18082025_12_22_04_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/826c5073bf80cf4f237ef94f8ae4c127.jpg","text":"TemporaryFile(/tmp/multipartBody1517526134373315907asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512613804,"filename":"image_18082025_12_22_34_9775.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4d5ca973e4508f9bfff065c0186af7f8.jpg","text":"TemporaryFile(/tmp/multipartBody5934747906567102401asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512613804,"filename":"image_18082025_12_21_55_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c5c756b170bbd053053fe36669ecca1b.jpg","text":"TemporaryFile(/tmp/multipartBody4009891486579606998asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512613804,"filename":"image_18082025_12_22_25_9777.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377698180","file1":"1377698178","file0":"1377698176","file4":"1377698184","file5":"1377698186","file3":"1377698181"},"map_files_photo_id_array":[{"photo_id":"1377698186","filename":"file5"},{"photo_id":"1377698180","filename":"file2"},{"photo_id":"1377698184","filename":"file4"},{"photo_id":"1377698178","filename":"file1"},{"photo_id":"1377698176","filename":"file0"},{"photo_id":"1377698181","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377698176":["hashtag1","hashtag2"]},{"1377698181":["hashtag1","hashtag2"]},{"1377698184":["hashtag1","hashtag2"]},{"1377698178":["hashtag1","hashtag2"]},{"1377698186":["hashtag1","hashtag2"]},{"1377698180":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377698176, 1377698181, 1377698184, 1377698178, 1377698186, 1377698180)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.467853784561157 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:23:17.309667
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/23/image_18082025_12_23_44_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/12/23/image_18082025_12_23_34_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/12/23/image_18082025_12_23_25_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/12/23/image_18082025_12_23_14_9692.jpg', 2), ('/home/nano/Desktop/images/18082025/12/22/image_18082025_12_23_05_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/12/22/image_18082025_12_22_55_10668.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/23/image_18082025_12_23_44_9613.jpg', '/home/nano/Desktop/images/18082025/12/23/image_18082025_12_23_34_9606.jpg', '/home/nano/Desktop/images/18082025/12/23/image_18082025_12_23_25_10648.jpg', '/home/nano/Desktop/images/18082025/12/23/image_18082025_12_23_14_9692.jpg', '/home/nano/Desktop/images/18082025/12/22/image_18082025_12_23_05_9669.jpg', '/home/nano/Desktop/images/18082025/12/22/image_18082025_12_22_55_10668.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/23/image_18082025_12_23_44_9613.jpg
/home/nano/Desktop/images/18082025/12/23/image_18082025_12_23_34_9606.jpg
/home/nano/Desktop/images/18082025/12/23/image_18082025_12_23_25_10648.jpg
/home/nano/Desktop/images/18082025/12/23/image_18082025_12_23_14_9692.jpg
/home/nano/Desktop/images/18082025/12/22/image_18082025_12_23_05_9669.jpg
/home/nano/Desktop/images/18082025/12/22/image_18082025_12_22_55_10668.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377698210","1377698212","1377698199","1377698206","1377698208","1377698202"],"photo_ids_order":["1377698199","1377698202","1377698206","1377698208","1377698210","1377698212"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d6b8f9fa0a718d8b2e370eaca2bae469.jpg","text":"TemporaryFile(/tmp/multipartBody4353806858689808051asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512658538,"filename":"image_18082025_12_23_05_9669.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a27b088bfeccc6acbb502a97afa0f11b.jpg","text":"TemporaryFile(/tmp/multipartBody7698023544381311695asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512658538,"filename":"image_18082025_12_22_55_10668.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0897c1d32cda598fc13df5aa03a81f59.jpg","text":"TemporaryFile(/tmp/multipartBody893222409394240663asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512658538,"filename":"image_18082025_12_23_44_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/82feb97e0089eac695b95a551e62750f.jpg","text":"TemporaryFile(/tmp/multipartBody1663160476025075709asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512658538,"filename":"image_18082025_12_23_25_10648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9498e09c1506a05910ec356d67357868.jpg","text":"TemporaryFile(/tmp/multipartBody6617382119944531823asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512658538,"filename":"image_18082025_12_23_14_9692.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6ad80ce0d3ba5992e1dcba0ce086d1ec.jpg","text":"TemporaryFile(/tmp/multipartBody5812847949002321407asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512658538,"filename":"image_18082025_12_23_34_9606.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377698206","file1":"1377698202","file0":"1377698199","file4":"1377698210","file5":"1377698212","file3":"1377698208"},"map_files_photo_id_array":[{"photo_id":"1377698212","filename":"file5"},{"photo_id":"1377698206","filename":"file2"},{"photo_id":"1377698210","filename":"file4"},{"photo_id":"1377698202","filename":"file1"},{"photo_id":"1377698199","filename":"file0"},{"photo_id":"1377698208","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377698210":["hashtag1","hashtag2"]},{"1377698212":["hashtag1","hashtag2"]},{"1377698199":["hashtag1","hashtag2"]},{"1377698206":["hashtag1","hashtag2"]},{"1377698208":["hashtag1","hashtag2"]},{"1377698202":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377698210, 1377698212, 1377698199, 1377698206, 1377698208, 1377698202)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.805415630340576 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:24:03.238471
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/40/image_18082025_11_40_44_9595.jpg', 2), ('/home/nano/Desktop/images/18082025/11/40/image_18082025_11_40_35_9588.jpg', 2), ('/home/nano/Desktop/images/18082025/11/40/image_18082025_11_40_25_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/11/40/image_18082025_11_40_14_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/11/39/image_18082025_11_40_05_10619.jpg', 2), ('/home/nano/Desktop/images/18082025/11/39/image_18082025_11_39_54_9585.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/40/image_18082025_11_40_44_9595.jpg', '/home/nano/Desktop/images/18082025/11/40/image_18082025_11_40_35_9588.jpg', '/home/nano/Desktop/images/18082025/11/40/image_18082025_11_40_25_10624.jpg', '/home/nano/Desktop/images/18082025/11/40/image_18082025_11_40_14_9607.jpg', '/home/nano/Desktop/images/18082025/11/39/image_18082025_11_40_05_10619.jpg', '/home/nano/Desktop/images/18082025/11/39/image_18082025_11_39_54_9585.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/40/image_18082025_11_40_44_9595.jpg
/home/nano/Desktop/images/18082025/11/40/image_18082025_11_40_35_9588.jpg
/home/nano/Desktop/images/18082025/11/40/image_18082025_11_40_25_10624.jpg
/home/nano/Desktop/images/18082025/11/40/image_18082025_11_40_14_9607.jpg
/home/nano/Desktop/images/18082025/11/39/image_18082025_11_40_05_10619.jpg
/home/nano/Desktop/images/18082025/11/39/image_18082025_11_39_54_9585.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377698231","1377698224","1377698223","1377698226","1377698234","1377698228"],"photo_ids_order":["1377698223","1377698224","1377698226","1377698228","1377698231","1377698234"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6f825f0fa99fe3911dcc50ac648dad57.jpg","text":"TemporaryFile(/tmp/multipartBody2481759778147688363asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512704417,"filename":"image_18082025_11_40_05_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fcbd9a7881cae4e2bc44ab2efb0c6693.jpg","text":"TemporaryFile(/tmp/multipartBody649040122878766667asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512704417,"filename":"image_18082025_11_40_35_9588.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0230c9be19b3dad680f678f25a7f45ce.jpg","text":"TemporaryFile(/tmp/multipartBody4897861077673780615asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512704417,"filename":"image_18082025_11_40_44_9595.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c5e85733180b06b4c4027973a41a2cef.jpg","text":"TemporaryFile(/tmp/multipartBody3200457373163559268asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512704417,"filename":"image_18082025_11_40_25_10624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4bd84271cf2bbb402aa8681ea8e49072.jpg","text":"TemporaryFile(/tmp/multipartBody5930260378711283089asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512704417,"filename":"image_18082025_11_39_54_9585.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d88085ceb065c5ef2832ec5306b1a7ee.jpg","text":"TemporaryFile(/tmp/multipartBody795528768627638954asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512704417,"filename":"image_18082025_11_40_14_9607.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377698226","file1":"1377698224","file0":"1377698223","file4":"1377698231","file5":"1377698234","file3":"1377698228"},"map_files_photo_id_array":[{"photo_id":"1377698234","filename":"file5"},{"photo_id":"1377698226","filename":"file2"},{"photo_id":"1377698231","filename":"file4"},{"photo_id":"1377698224","filename":"file1"},{"photo_id":"1377698223","filename":"file0"},{"photo_id":"1377698228","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377698231":["hashtag1","hashtag2"]},{"1377698224":["hashtag1","hashtag2"]},{"1377698223":["hashtag1","hashtag2"]},{"1377698226":["hashtag1","hashtag2"]},{"1377698234":["hashtag1","hashtag2"]},{"1377698228":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377698231, 1377698224, 1377698223, 1377698226, 1377698234, 1377698228)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.20699596405029 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:24:47.468909
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/24/image_18082025_12_24_45_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/12/24/image_18082025_12_24_34_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/12/24/image_18082025_12_24_25_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/12/24/image_18082025_12_24_15_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/12/23/image_18082025_12_24_04_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/12/23/image_18082025_12_23_55_10622.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/24/image_18082025_12_24_45_10636.jpg', '/home/nano/Desktop/images/18082025/12/24/image_18082025_12_24_34_9628.jpg', '/home/nano/Desktop/images/18082025/12/24/image_18082025_12_24_25_9643.jpg', '/home/nano/Desktop/images/18082025/12/24/image_18082025_12_24_15_10653.jpg', '/home/nano/Desktop/images/18082025/12/23/image_18082025_12_24_04_9636.jpg', '/home/nano/Desktop/images/18082025/12/23/image_18082025_12_23_55_10622.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/24/image_18082025_12_24_45_10636.jpg
/home/nano/Desktop/images/18082025/12/24/image_18082025_12_24_34_9628.jpg
/home/nano/Desktop/images/18082025/12/24/image_18082025_12_24_25_9643.jpg
/home/nano/Desktop/images/18082025/12/24/image_18082025_12_24_15_10653.jpg
/home/nano/Desktop/images/18082025/12/23/image_18082025_12_24_04_9636.jpg
/home/nano/Desktop/images/18082025/12/23/image_18082025_12_23_55_10622.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377698257","1377698248","1377698250","1377698253","1377698247","1377698249"],"photo_ids_order":["1377698247","1377698248","1377698249","1377698250","1377698253","1377698257"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4725d78c0c340adf0893372402f03b66.jpg","text":"TemporaryFile(/tmp/multipartBody4827955279712395766asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512748847,"filename":"image_18082025_12_23_55_10622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/130a82a64c895af530041654a487aecc.jpg","text":"TemporaryFile(/tmp/multipartBody974779281692144920asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512748847,"filename":"image_18082025_12_24_34_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e27461c14a6cb07f55af810ac6f1f4ef.jpg","text":"TemporaryFile(/tmp/multipartBody6228939435499210637asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512748847,"filename":"image_18082025_12_24_15_10653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/61d4fcddce3d710a72a19c55fd35487e.jpg","text":"TemporaryFile(/tmp/multipartBody4800340540262941199asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512748847,"filename":"image_18082025_12_24_04_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0d3513afdfbf376c333fcca3600feb2e.jpg","text":"TemporaryFile(/tmp/multipartBody166594367293389279asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512748847,"filename":"image_18082025_12_24_45_10636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c9d48a05e6f522a94f5e9ac2a210eef2.jpg","text":"TemporaryFile(/tmp/multipartBody3080426813196841503asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512748847,"filename":"image_18082025_12_24_25_9643.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377698249","file1":"1377698248","file0":"1377698247","file4":"1377698253","file5":"1377698257","file3":"1377698250"},"map_files_photo_id_array":[{"photo_id":"1377698257","filename":"file5"},{"photo_id":"1377698249","filename":"file2"},{"photo_id":"1377698253","filename":"file4"},{"photo_id":"1377698248","filename":"file1"},{"photo_id":"1377698247","filename":"file0"},{"photo_id":"1377698250","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377698257":["hashtag1","hashtag2"]},{"1377698248":["hashtag1","hashtag2"]},{"1377698250":["hashtag1","hashtag2"]},{"1377698253":["hashtag1","hashtag2"]},{"1377698247":["hashtag1","hashtag2"]},{"1377698249":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377698257, 1377698248, 1377698250, 1377698253, 1377698247, 1377698249)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.93923568725586 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:25:32.636151
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/25/image_18082025_12_25_45_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/12/25/image_18082025_12_25_34_9697.jpg', 2), ('/home/nano/Desktop/images/18082025/12/25/image_18082025_12_25_25_9593.jpg', 2), ('/home/nano/Desktop/images/18082025/12/25/image_18082025_12_25_15_10726.jpg', 2), ('/home/nano/Desktop/images/18082025/12/24/image_18082025_12_25_04_9733.jpg', 2), ('/home/nano/Desktop/images/18082025/12/24/image_18082025_12_24_55_9717.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/25/image_18082025_12_25_45_10639.jpg', '/home/nano/Desktop/images/18082025/12/25/image_18082025_12_25_34_9697.jpg', '/home/nano/Desktop/images/18082025/12/25/image_18082025_12_25_25_9593.jpg', '/home/nano/Desktop/images/18082025/12/25/image_18082025_12_25_15_10726.jpg', '/home/nano/Desktop/images/18082025/12/24/image_18082025_12_25_04_9733.jpg', '/home/nano/Desktop/images/18082025/12/24/image_18082025_12_24_55_9717.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/25/image_18082025_12_25_45_10639.jpg
/home/nano/Desktop/images/18082025/12/25/image_18082025_12_25_34_9697.jpg
/home/nano/Desktop/images/18082025/12/25/image_18082025_12_25_25_9593.jpg
/home/nano/Desktop/images/18082025/12/25/image_18082025_12_25_15_10726.jpg
/home/nano/Desktop/images/18082025/12/24/image_18082025_12_25_04_9733.jpg
/home/nano/Desktop/images/18082025/12/24/image_18082025_12_24_55_9717.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377698275","1377698272","1377698286","1377698283","1377698279","1377698273"],"photo_ids_order":["1377698272","1377698273","1377698275","1377698279","1377698283","1377698286"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3a8974130fd0f3b335a484e993967e0d.jpg","text":"TemporaryFile(/tmp/multipartBody7962022948114130257asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512794024,"filename":"image_18082025_12_25_25_9593.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/06cd6dcf6c409de714ca4d77f251617d.jpg","text":"TemporaryFile(/tmp/multipartBody1175385113052334649asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512794024,"filename":"image_18082025_12_25_45_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8c024e4bfb5b7fddfe32864fe293807b.jpg","text":"TemporaryFile(/tmp/multipartBody7923514201764806214asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512794024,"filename":"image_18082025_12_24_55_9717.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4c231a926b96812db79316891964467b.jpg","text":"TemporaryFile(/tmp/multipartBody4576654936911305572asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512794024,"filename":"image_18082025_12_25_04_9733.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7c7eb48eed7daa58a8e1f11133d4448b.jpg","text":"TemporaryFile(/tmp/multipartBody9091485941440739872asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512794024,"filename":"image_18082025_12_25_15_10726.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/804518292e68facda2f9bb2b3fc4811f.jpg","text":"TemporaryFile(/tmp/multipartBody7800396122379581051asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512794024,"filename":"image_18082025_12_25_34_9697.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377698275","file1":"1377698273","file0":"1377698272","file4":"1377698283","file5":"1377698286","file3":"1377698279"},"map_files_photo_id_array":[{"photo_id":"1377698286","filename":"file5"},{"photo_id":"1377698275","filename":"file2"},{"photo_id":"1377698283","filename":"file4"},{"photo_id":"1377698273","filename":"file1"},{"photo_id":"1377698272","filename":"file0"},{"photo_id":"1377698279","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377698275":["hashtag1","hashtag2"]},{"1377698272":["hashtag1","hashtag2"]},{"1377698286":["hashtag1","hashtag2"]},{"1377698283":["hashtag1","hashtag2"]},{"1377698279":["hashtag1","hashtag2"]},{"1377698273":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377698275, 1377698272, 1377698286, 1377698283, 1377698279, 1377698273)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.75581169128418 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:26:17.649960
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/26/image_18082025_12_26_45_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/12/26/image_18082025_12_26_34_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/12/26/image_18082025_12_26_25_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/12/26/image_18082025_12_26_15_10657.jpg', 2), ('/home/nano/Desktop/images/18082025/12/25/image_18082025_12_26_04_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/12/25/image_18082025_12_25_55_9620.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/26/image_18082025_12_26_45_10656.jpg', '/home/nano/Desktop/images/18082025/12/26/image_18082025_12_26_34_9618.jpg', '/home/nano/Desktop/images/18082025/12/26/image_18082025_12_26_25_9630.jpg', '/home/nano/Desktop/images/18082025/12/26/image_18082025_12_26_15_10657.jpg', '/home/nano/Desktop/images/18082025/12/25/image_18082025_12_26_04_9606.jpg', '/home/nano/Desktop/images/18082025/12/25/image_18082025_12_25_55_9620.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/26/image_18082025_12_26_45_10656.jpg
/home/nano/Desktop/images/18082025/12/26/image_18082025_12_26_34_9618.jpg
/home/nano/Desktop/images/18082025/12/26/image_18082025_12_26_25_9630.jpg
/home/nano/Desktop/images/18082025/12/26/image_18082025_12_26_15_10657.jpg
/home/nano/Desktop/images/18082025/12/25/image_18082025_12_26_04_9606.jpg
/home/nano/Desktop/images/18082025/12/25/image_18082025_12_25_55_9620.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377698311","1377698314","1377698308","1377698298","1377698316","1377698304"],"photo_ids_order":["1377698298","1377698304","1377698308","1377698311","1377698314","1377698316"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/93c3c272762962c56829dd762ef0fe77.jpg","text":"TemporaryFile(/tmp/multipartBody1002965688879156618asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512838945,"filename":"image_18082025_12_26_15_10657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f9a9acbe7b8bb21edc49aea5443396e1.jpg","text":"TemporaryFile(/tmp/multipartBody2858786936610178206asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512838945,"filename":"image_18082025_12_26_04_9606.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/95f47a4f3c7d41a2e8c4451e4ec0e44f.jpg","text":"TemporaryFile(/tmp/multipartBody4575898013214962349asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512838945,"filename":"image_18082025_12_26_25_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5be59a7c40d56a61fc35fc8f191c3b88.jpg","text":"TemporaryFile(/tmp/multipartBody3234793711619119323asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512838945,"filename":"image_18082025_12_26_45_10656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f3e72cea1f2c848e43d8eb5efca56921.jpg","text":"TemporaryFile(/tmp/multipartBody229310399403030090asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512838945,"filename":"image_18082025_12_25_55_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/714d017b0e4fb4c63e39e5343dbf0554.jpg","text":"TemporaryFile(/tmp/multipartBody8011010347719581762asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512838945,"filename":"image_18082025_12_26_34_9618.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377698308","file1":"1377698304","file0":"1377698298","file4":"1377698314","file5":"1377698316","file3":"1377698311"},"map_files_photo_id_array":[{"photo_id":"1377698316","filename":"file5"},{"photo_id":"1377698308","filename":"file2"},{"photo_id":"1377698314","filename":"file4"},{"photo_id":"1377698304","filename":"file1"},{"photo_id":"1377698298","filename":"file0"},{"photo_id":"1377698311","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377698311":["hashtag1","hashtag2"]},{"1377698314":["hashtag1","hashtag2"]},{"1377698308":["hashtag1","hashtag2"]},{"1377698298":["hashtag1","hashtag2"]},{"1377698316":["hashtag1","hashtag2"]},{"1377698304":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377698311, 1377698314, 1377698308, 1377698298, 1377698316, 1377698304)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.270694732666016 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:27:03.536128
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/39/image_18082025_11_39_45_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/11/39/image_18082025_11_39_35_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/11/39/image_18082025_11_39_24_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/11/39/image_18082025_11_39_15_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/11/38/image_18082025_11_39_05_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/11/38/image_18082025_11_38_54_9626.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/39/image_18082025_11_39_45_9618.jpg', '/home/nano/Desktop/images/18082025/11/39/image_18082025_11_39_35_10621.jpg', '/home/nano/Desktop/images/18082025/11/39/image_18082025_11_39_24_9620.jpg', '/home/nano/Desktop/images/18082025/11/39/image_18082025_11_39_15_9641.jpg', '/home/nano/Desktop/images/18082025/11/38/image_18082025_11_39_05_10636.jpg', '/home/nano/Desktop/images/18082025/11/38/image_18082025_11_38_54_9626.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/39/image_18082025_11_39_45_9618.jpg
/home/nano/Desktop/images/18082025/11/39/image_18082025_11_39_35_10621.jpg
/home/nano/Desktop/images/18082025/11/39/image_18082025_11_39_24_9620.jpg
/home/nano/Desktop/images/18082025/11/39/image_18082025_11_39_15_9641.jpg
/home/nano/Desktop/images/18082025/11/38/image_18082025_11_39_05_10636.jpg
/home/nano/Desktop/images/18082025/11/38/image_18082025_11_38_54_9626.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377698330","1377698326","1377698340","1377698337","1377698346","1377698333"],"photo_ids_order":["1377698326","1377698330","1377698333","1377698337","1377698340","1377698346"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/12d34e30bc4102268a3d133651e44eb2.jpg","text":"TemporaryFile(/tmp/multipartBody1065277153226679058asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512884755,"filename":"image_18082025_11_39_35_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a7f905d47a97eb4b0c4449fc0773fe55.jpg","text":"TemporaryFile(/tmp/multipartBody3185260387596369929asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512884755,"filename":"image_18082025_11_39_45_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b55ced0451772559dba20d613d2cebc4.jpg","text":"TemporaryFile(/tmp/multipartBody6301880024382217978asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512884755,"filename":"image_18082025_11_39_05_10636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/137b049bb3742308df924f73f36a3d7f.jpg","text":"TemporaryFile(/tmp/multipartBody4988314282796470636asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512884755,"filename":"image_18082025_11_39_15_9641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/67e124c99a3505c46d15a24d3d5c54f2.jpg","text":"TemporaryFile(/tmp/multipartBody3089861044189611124asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512884755,"filename":"image_18082025_11_38_54_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/866c8f88c99138aa81209bd5447d7285.jpg","text":"TemporaryFile(/tmp/multipartBody1372591533961521881asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512884755,"filename":"image_18082025_11_39_24_9620.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377698333","file1":"1377698330","file0":"1377698326","file4":"1377698340","file5":"1377698346","file3":"1377698337"},"map_files_photo_id_array":[{"photo_id":"1377698346","filename":"file5"},{"photo_id":"1377698333","filename":"file2"},{"photo_id":"1377698340","filename":"file4"},{"photo_id":"1377698330","filename":"file1"},{"photo_id":"1377698326","filename":"file0"},{"photo_id":"1377698337","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377698330":["hashtag1","hashtag2"]},{"1377698326":["hashtag1","hashtag2"]},{"1377698340":["hashtag1","hashtag2"]},{"1377698337":["hashtag1","hashtag2"]},{"1377698346":["hashtag1","hashtag2"]},{"1377698333":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377698330, 1377698326, 1377698340, 1377698337, 1377698346, 1377698333)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.763293027877808 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:27:47.755903
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/27/image_18082025_12_27_45_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/12/27/image_18082025_12_27_35_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/12/27/image_18082025_12_27_24_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/12/27/image_18082025_12_27_15_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/12/26/image_18082025_12_27_05_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/12/26/image_18082025_12_26_54_9623.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/27/image_18082025_12_27_45_9616.jpg', '/home/nano/Desktop/images/18082025/12/27/image_18082025_12_27_35_10624.jpg', '/home/nano/Desktop/images/18082025/12/27/image_18082025_12_27_24_9623.jpg', '/home/nano/Desktop/images/18082025/12/27/image_18082025_12_27_15_9655.jpg', '/home/nano/Desktop/images/18082025/12/26/image_18082025_12_27_05_10642.jpg', '/home/nano/Desktop/images/18082025/12/26/image_18082025_12_26_54_9623.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/27/image_18082025_12_27_45_9616.jpg
/home/nano/Desktop/images/18082025/12/27/image_18082025_12_27_35_10624.jpg
/home/nano/Desktop/images/18082025/12/27/image_18082025_12_27_24_9623.jpg
/home/nano/Desktop/images/18082025/12/27/image_18082025_12_27_15_9655.jpg
/home/nano/Desktop/images/18082025/12/26/image_18082025_12_27_05_10642.jpg
/home/nano/Desktop/images/18082025/12/26/image_18082025_12_26_54_9623.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377698357","1377698368","1377698359","1377698361","1377698363","1377698372"],"photo_ids_order":["1377698357","1377698359","1377698361","1377698363","1377698368","1377698372"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4eeb498c245785a24bce91a386349936.jpg","text":"TemporaryFile(/tmp/multipartBody5475691220611464898asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512928860,"filename":"image_18082025_12_27_45_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a791a3a88b1d0d858df549214f46a79b.jpg","text":"TemporaryFile(/tmp/multipartBody5958204662955597296asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512928860,"filename":"image_18082025_12_27_05_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/39149fe3a94c88ba91b7f2906c0f56b5.jpg","text":"TemporaryFile(/tmp/multipartBody1025677935863256076asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512928860,"filename":"image_18082025_12_27_35_10624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/79d9dcb55dcbd2f084dc79ba663b23c3.jpg","text":"TemporaryFile(/tmp/multipartBody4066701024791336085asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512928860,"filename":"image_18082025_12_27_24_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0d5b0b697f8e0786baf26e5215a42f92.jpg","text":"TemporaryFile(/tmp/multipartBody6105131788325157071asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512928860,"filename":"image_18082025_12_27_15_9655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/49ec96f40ad213545b4e6208fe53e7aa.jpg","text":"TemporaryFile(/tmp/multipartBody5533576723223644031asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512928860,"filename":"image_18082025_12_26_54_9623.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377698361","file1":"1377698359","file0":"1377698357","file4":"1377698368","file5":"1377698372","file3":"1377698363"},"map_files_photo_id_array":[{"photo_id":"1377698372","filename":"file5"},{"photo_id":"1377698361","filename":"file2"},{"photo_id":"1377698368","filename":"file4"},{"photo_id":"1377698359","filename":"file1"},{"photo_id":"1377698357","filename":"file0"},{"photo_id":"1377698363","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377698357":["hashtag1","hashtag2"]},{"1377698368":["hashtag1","hashtag2"]},{"1377698359":["hashtag1","hashtag2"]},{"1377698361":["hashtag1","hashtag2"]},{"1377698363":["hashtag1","hashtag2"]},{"1377698372":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377698357, 1377698368, 1377698359, 1377698361, 1377698363, 1377698372)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.761147022247314 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:28:31.850939
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/28/image_18082025_12_28_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/12/28/image_18082025_12_28_35_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/12/28/image_18082025_12_28_24_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/12/28/image_18082025_12_28_15_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/12/27/image_18082025_12_28_05_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/12/27/image_18082025_12_27_54_9623.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/28/image_18082025_12_28_44_9639.jpg', '/home/nano/Desktop/images/18082025/12/28/image_18082025_12_28_35_10650.jpg', '/home/nano/Desktop/images/18082025/12/28/image_18082025_12_28_24_9637.jpg', '/home/nano/Desktop/images/18082025/12/28/image_18082025_12_28_15_9661.jpg', '/home/nano/Desktop/images/18082025/12/27/image_18082025_12_28_05_10660.jpg', '/home/nano/Desktop/images/18082025/12/27/image_18082025_12_27_54_9623.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/28/image_18082025_12_28_44_9639.jpg
/home/nano/Desktop/images/18082025/12/28/image_18082025_12_28_35_10650.jpg
/home/nano/Desktop/images/18082025/12/28/image_18082025_12_28_24_9637.jpg
/home/nano/Desktop/images/18082025/12/28/image_18082025_12_28_15_9661.jpg
/home/nano/Desktop/images/18082025/12/27/image_18082025_12_28_05_10660.jpg
/home/nano/Desktop/images/18082025/12/27/image_18082025_12_27_54_9623.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.2690317630767822 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:28:46.881262
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/28/image_18082025_12_28_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/12/28/image_18082025_12_28_35_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/12/28/image_18082025_12_28_24_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/12/28/image_18082025_12_28_15_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/12/27/image_18082025_12_28_05_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/12/27/image_18082025_12_27_54_9623.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/28/image_18082025_12_28_44_9639.jpg', '/home/nano/Desktop/images/18082025/12/28/image_18082025_12_28_35_10650.jpg', '/home/nano/Desktop/images/18082025/12/28/image_18082025_12_28_24_9637.jpg', '/home/nano/Desktop/images/18082025/12/28/image_18082025_12_28_15_9661.jpg', '/home/nano/Desktop/images/18082025/12/27/image_18082025_12_28_05_10660.jpg', '/home/nano/Desktop/images/18082025/12/27/image_18082025_12_27_54_9623.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/28/image_18082025_12_28_44_9639.jpg
/home/nano/Desktop/images/18082025/12/28/image_18082025_12_28_35_10650.jpg
/home/nano/Desktop/images/18082025/12/28/image_18082025_12_28_24_9637.jpg
/home/nano/Desktop/images/18082025/12/28/image_18082025_12_28_15_9661.jpg
/home/nano/Desktop/images/18082025/12/27/image_18082025_12_28_05_10660.jpg
/home/nano/Desktop/images/18082025/12/27/image_18082025_12_27_54_9623.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377698408","1377698413","1377698407","1377698406","1377698409","1377698400"],"photo_ids_order":["1377698400","1377698406","1377698407","1377698408","1377698409","1377698413"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/875c602969d4d9c3b42a905cf4c2f64d.jpg","text":"TemporaryFile(/tmp/multipartBody5475561676374003764asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512988258,"filename":"image_18082025_12_28_15_9661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a14f06f4d184a5e0e5da71871fcf5e42.jpg","text":"TemporaryFile(/tmp/multipartBody6077029974642698879asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512988258,"filename":"image_18082025_12_27_54_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c1f230bc4c1c9c514767423a98c7f474.jpg","text":"TemporaryFile(/tmp/multipartBody4775463853453804752asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512988258,"filename":"image_18082025_12_28_24_9637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b3ea241e4d9b0f4ebd76885d7feee18a.jpg","text":"TemporaryFile(/tmp/multipartBody655142078738860121asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512988258,"filename":"image_18082025_12_28_35_10650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/723ddc6ddcbe737992e7ee79207c0d79.jpg","text":"TemporaryFile(/tmp/multipartBody2201855782120150095asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512988258,"filename":"image_18082025_12_28_05_10660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/aae6c92861181b3382c8ddd182ae8be9.jpg","text":"TemporaryFile(/tmp/multipartBody1177064922626695928asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755512988258,"filename":"image_18082025_12_28_44_9639.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377698407","file1":"1377698406","file0":"1377698400","file4":"1377698409","file5":"1377698413","file3":"1377698408"},"map_files_photo_id_array":[{"photo_id":"1377698413","filename":"file5"},{"photo_id":"1377698407","filename":"file2"},{"photo_id":"1377698409","filename":"file4"},{"photo_id":"1377698406","filename":"file1"},{"photo_id":"1377698400","filename":"file0"},{"photo_id":"1377698408","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377698408":["hashtag1","hashtag2"]},{"1377698413":["hashtag1","hashtag2"]},{"1377698407":["hashtag1","hashtag2"]},{"1377698406":["hashtag1","hashtag2"]},{"1377698409":["hashtag1","hashtag2"]},{"1377698400":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377698408, 1377698413, 1377698407, 1377698406, 1377698409, 1377698400)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.33950972557068 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:29:32.045386
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/29/image_18082025_12_29_44_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/12/29/image_18082025_12_29_35_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/12/29/image_18082025_12_29_25_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/12/29/image_18082025_12_29_14_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/12/28/image_18082025_12_29_05_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/12/28/image_18082025_12_28_54_9619.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/29/image_18082025_12_29_44_9618.jpg', '/home/nano/Desktop/images/18082025/12/29/image_18082025_12_29_35_9623.jpg', '/home/nano/Desktop/images/18082025/12/29/image_18082025_12_29_25_10629.jpg', '/home/nano/Desktop/images/18082025/12/29/image_18082025_12_29_14_9625.jpg', '/home/nano/Desktop/images/18082025/12/28/image_18082025_12_29_05_10642.jpg', '/home/nano/Desktop/images/18082025/12/28/image_18082025_12_28_54_9619.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/29/image_18082025_12_29_44_9618.jpg
/home/nano/Desktop/images/18082025/12/29/image_18082025_12_29_35_9623.jpg
/home/nano/Desktop/images/18082025/12/29/image_18082025_12_29_25_10629.jpg
/home/nano/Desktop/images/18082025/12/29/image_18082025_12_29_14_9625.jpg
/home/nano/Desktop/images/18082025/12/28/image_18082025_12_29_05_10642.jpg
/home/nano/Desktop/images/18082025/12/28/image_18082025_12_28_54_9619.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377698441","1377698435","1377698437","1377698454","1377698433","1377698457"],"photo_ids_order":["1377698433","1377698435","1377698437","1377698441","1377698454","1377698457"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d940aed49a77ba6f6ab0c28393e3b845.jpg","text":"TemporaryFile(/tmp/multipartBody163856251903747852asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513033408,"filename":"image_18082025_12_29_14_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fbee1a8865db2f4d88bf6ba1ee1349e2.jpg","text":"TemporaryFile(/tmp/multipartBody7252140173444083047asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513033408,"filename":"image_18082025_12_29_35_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/65ba6a8eb15ea54a468192ae67ddb1c1.jpg","text":"TemporaryFile(/tmp/multipartBody2420803809924920225asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513033408,"filename":"image_18082025_12_29_25_10629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a66ce844176fee7cd185984860743893.jpg","text":"TemporaryFile(/tmp/multipartBody5898622484033148157asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513033408,"filename":"image_18082025_12_29_05_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cf0248797d0a3dfffc41fc3e482c4f7c.jpg","text":"TemporaryFile(/tmp/multipartBody7003196381807304885asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513033408,"filename":"image_18082025_12_29_44_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b0427d851403f526c9bbc366f54af63a.jpg","text":"TemporaryFile(/tmp/multipartBody2409704034254407711asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513033408,"filename":"image_18082025_12_28_54_9619.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377698437","file1":"1377698435","file0":"1377698433","file4":"1377698454","file5":"1377698457","file3":"1377698441"},"map_files_photo_id_array":[{"photo_id":"1377698457","filename":"file5"},{"photo_id":"1377698437","filename":"file2"},{"photo_id":"1377698454","filename":"file4"},{"photo_id":"1377698435","filename":"file1"},{"photo_id":"1377698433","filename":"file0"},{"photo_id":"1377698441","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377698441":["hashtag1","hashtag2"]},{"1377698435":["hashtag1","hashtag2"]},{"1377698437":["hashtag1","hashtag2"]},{"1377698454":["hashtag1","hashtag2"]},{"1377698433":["hashtag1","hashtag2"]},{"1377698457":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377698441, 1377698435, 1377698437, 1377698454, 1377698433, 1377698457)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.98702359199524 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:30:17.123504
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/30/image_18082025_12_30_45_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/12/30/image_18082025_12_30_34_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/12/30/image_18082025_12_30_25_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/12/30/image_18082025_12_30_14_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/12/29/image_18082025_12_30_04_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/12/29/image_18082025_12_29_55_10634.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/30/image_18082025_12_30_45_10621.jpg', '/home/nano/Desktop/images/18082025/12/30/image_18082025_12_30_34_9619.jpg', '/home/nano/Desktop/images/18082025/12/30/image_18082025_12_30_25_10640.jpg', '/home/nano/Desktop/images/18082025/12/30/image_18082025_12_30_14_9657.jpg', '/home/nano/Desktop/images/18082025/12/29/image_18082025_12_30_04_9652.jpg', '/home/nano/Desktop/images/18082025/12/29/image_18082025_12_29_55_10634.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/30/image_18082025_12_30_45_10621.jpg
/home/nano/Desktop/images/18082025/12/30/image_18082025_12_30_34_9619.jpg
/home/nano/Desktop/images/18082025/12/30/image_18082025_12_30_25_10640.jpg
/home/nano/Desktop/images/18082025/12/30/image_18082025_12_30_14_9657.jpg
/home/nano/Desktop/images/18082025/12/29/image_18082025_12_30_04_9652.jpg
/home/nano/Desktop/images/18082025/12/29/image_18082025_12_29_55_10634.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377698485","1377698488","1377698472","1377698481","1377698469","1377698477"],"photo_ids_order":["1377698469","1377698472","1377698477","1377698481","1377698485","1377698488"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/01979d768b2eb692f1dce19a182b87be.jpg","text":"TemporaryFile(/tmp/multipartBody1672698765766200976asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513078272,"filename":"image_18082025_12_30_04_9652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/08d6b2a4a82050662215b21b65943549.jpg","text":"TemporaryFile(/tmp/multipartBody3890356266387491214asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513078272,"filename":"image_18082025_12_29_55_10634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dc20eb0d19de4a58e65fb444efe97421.jpg","text":"TemporaryFile(/tmp/multipartBody9219465600990080389asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513078272,"filename":"image_18082025_12_30_34_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/12f17f2901f6bcd79c81b5f43fa121d0.jpg","text":"TemporaryFile(/tmp/multipartBody5752636044605634345asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513078272,"filename":"image_18082025_12_30_14_9657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b9b78f7922418e1a1c98f68b29ee5347.jpg","text":"TemporaryFile(/tmp/multipartBody7865604270086802579asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513078272,"filename":"image_18082025_12_30_45_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4ee8a1046ed2b9b5a8c6fe169880bd51.jpg","text":"TemporaryFile(/tmp/multipartBody8816404064403519187asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513078272,"filename":"image_18082025_12_30_25_10640.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377698477","file1":"1377698472","file0":"1377698469","file4":"1377698485","file5":"1377698488","file3":"1377698481"},"map_files_photo_id_array":[{"photo_id":"1377698488","filename":"file5"},{"photo_id":"1377698477","filename":"file2"},{"photo_id":"1377698485","filename":"file4"},{"photo_id":"1377698472","filename":"file1"},{"photo_id":"1377698469","filename":"file0"},{"photo_id":"1377698481","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377698485":["hashtag1","hashtag2"]},{"1377698488":["hashtag1","hashtag2"]},{"1377698472":["hashtag1","hashtag2"]},{"1377698481":["hashtag1","hashtag2"]},{"1377698469":["hashtag1","hashtag2"]},{"1377698477":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377698485, 1377698488, 1377698472, 1377698481, 1377698469, 1377698477)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.80326795578003 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:31:02.860695
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/38/image_18082025_11_38_45_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/11/38/image_18082025_11_38_34_9596.jpg', 2), ('/home/nano/Desktop/images/18082025/11/38/image_18082025_11_38_25_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/11/38/image_18082025_11_38_15_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/11/37/image_18082025_11_38_04_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/11/37/image_18082025_11_37_55_9614.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/38/image_18082025_11_38_45_10663.jpg', '/home/nano/Desktop/images/18082025/11/38/image_18082025_11_38_34_9596.jpg', '/home/nano/Desktop/images/18082025/11/38/image_18082025_11_38_25_9617.jpg', '/home/nano/Desktop/images/18082025/11/38/image_18082025_11_38_15_10668.jpg', '/home/nano/Desktop/images/18082025/11/37/image_18082025_11_38_04_9624.jpg', '/home/nano/Desktop/images/18082025/11/37/image_18082025_11_37_55_9614.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/38/image_18082025_11_38_45_10663.jpg
/home/nano/Desktop/images/18082025/11/38/image_18082025_11_38_34_9596.jpg
/home/nano/Desktop/images/18082025/11/38/image_18082025_11_38_25_9617.jpg
/home/nano/Desktop/images/18082025/11/38/image_18082025_11_38_15_10668.jpg
/home/nano/Desktop/images/18082025/11/37/image_18082025_11_38_04_9624.jpg
/home/nano/Desktop/images/18082025/11/37/image_18082025_11_37_55_9614.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377698519","1377698503","1377698514","1377698523","1377698508","1377698498"],"photo_ids_order":["1377698498","1377698503","1377698508","1377698514","1377698519","1377698523"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5f64290b186d42a3feb7934e8599e536.jpg","text":"TemporaryFile(/tmp/multipartBody6531040903445755933asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513123910,"filename":"image_18082025_11_38_04_9624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d209751cd9ad082bd631636087e94fbd.jpg","text":"TemporaryFile(/tmp/multipartBody6085391387048315110asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513123910,"filename":"image_18082025_11_38_34_9596.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/296bf7fd24509ba311ade83dfb0f2fb3.jpg","text":"TemporaryFile(/tmp/multipartBody8836204110173929782asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513123910,"filename":"image_18082025_11_38_15_10668.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4950a01b001acd98cb02c6c55c864814.jpg","text":"TemporaryFile(/tmp/multipartBody7194227524653124262asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513123910,"filename":"image_18082025_11_37_55_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/eb5eb3d980963e4b5d89c4d713bb9e30.jpg","text":"TemporaryFile(/tmp/multipartBody4479049613234794566asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513123910,"filename":"image_18082025_11_38_25_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dd2082caf0b92fb998d20e0b2273015c.jpg","text":"TemporaryFile(/tmp/multipartBody808208075344974692asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513123910,"filename":"image_18082025_11_38_45_10663.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377698508","file1":"1377698503","file0":"1377698498","file4":"1377698519","file5":"1377698523","file3":"1377698514"},"map_files_photo_id_array":[{"photo_id":"1377698523","filename":"file5"},{"photo_id":"1377698508","filename":"file2"},{"photo_id":"1377698519","filename":"file4"},{"photo_id":"1377698503","filename":"file1"},{"photo_id":"1377698498","filename":"file0"},{"photo_id":"1377698514","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377698519":["hashtag1","hashtag2"]},{"1377698503":["hashtag1","hashtag2"]},{"1377698514":["hashtag1","hashtag2"]},{"1377698523":["hashtag1","hashtag2"]},{"1377698508":["hashtag1","hashtag2"]},{"1377698498":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377698519, 1377698503, 1377698514, 1377698523, 1377698508, 1377698498)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.719879865646362 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:31:47.194174
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/31/image_18082025_12_31_45_10619.jpg', 2), ('/home/nano/Desktop/images/18082025/12/31/image_18082025_12_31_34_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/12/31/image_18082025_12_31_25_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/12/31/image_18082025_12_31_15_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/12/30/image_18082025_12_31_04_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/12/30/image_18082025_12_30_55_9617.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/31/image_18082025_12_31_45_10619.jpg', '/home/nano/Desktop/images/18082025/12/31/image_18082025_12_31_34_9621.jpg', '/home/nano/Desktop/images/18082025/12/31/image_18082025_12_31_25_9616.jpg', '/home/nano/Desktop/images/18082025/12/31/image_18082025_12_31_15_10667.jpg', '/home/nano/Desktop/images/18082025/12/30/image_18082025_12_31_04_9636.jpg', '/home/nano/Desktop/images/18082025/12/30/image_18082025_12_30_55_9617.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/31/image_18082025_12_31_45_10619.jpg
/home/nano/Desktop/images/18082025/12/31/image_18082025_12_31_34_9621.jpg
/home/nano/Desktop/images/18082025/12/31/image_18082025_12_31_25_9616.jpg
/home/nano/Desktop/images/18082025/12/31/image_18082025_12_31_15_10667.jpg
/home/nano/Desktop/images/18082025/12/30/image_18082025_12_31_04_9636.jpg
/home/nano/Desktop/images/18082025/12/30/image_18082025_12_30_55_9617.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377698555","1377698549","1377698547","1377698538","1377698543","1377698552"],"photo_ids_order":["1377698538","1377698543","1377698547","1377698549","1377698552","1377698555"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3cee142b9cf76643431189dd483a284c.jpg","text":"TemporaryFile(/tmp/multipartBody3912484185566487454asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513168301,"filename":"image_18082025_12_30_55_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/416677f1f5a79b8243aa5a57b81f0cf3.jpg","text":"TemporaryFile(/tmp/multipartBody5051729677743466586asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513168301,"filename":"image_18082025_12_31_15_10667.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/783e880941c627a4028f627d4fe12664.jpg","text":"TemporaryFile(/tmp/multipartBody4709555703243281102asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513168301,"filename":"image_18082025_12_31_25_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7ca21b3ec606b25d6437b266a4b7b97b.jpg","text":"TemporaryFile(/tmp/multipartBody3327348165312522776asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513168301,"filename":"image_18082025_12_31_45_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c2bbec0fae82600dc3df628da6420a52.jpg","text":"TemporaryFile(/tmp/multipartBody8919516315988033455asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513168301,"filename":"image_18082025_12_31_34_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1f02ca231b83d95073e5840464f068ae.jpg","text":"TemporaryFile(/tmp/multipartBody7297874884312895514asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513168301,"filename":"image_18082025_12_31_04_9636.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377698547","file1":"1377698543","file0":"1377698538","file4":"1377698552","file5":"1377698555","file3":"1377698549"},"map_files_photo_id_array":[{"photo_id":"1377698555","filename":"file5"},{"photo_id":"1377698547","filename":"file2"},{"photo_id":"1377698552","filename":"file4"},{"photo_id":"1377698543","filename":"file1"},{"photo_id":"1377698538","filename":"file0"},{"photo_id":"1377698549","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377698555":["hashtag1","hashtag2"]},{"1377698549":["hashtag1","hashtag2"]},{"1377698547":["hashtag1","hashtag2"]},{"1377698538":["hashtag1","hashtag2"]},{"1377698543":["hashtag1","hashtag2"]},{"1377698552":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377698555, 1377698549, 1377698547, 1377698538, 1377698543, 1377698552)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.344146490097046 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:32:32.343327
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/32/image_18082025_12_32_45_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/12/32/image_18082025_12_32_35_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/12/32/image_18082025_12_32_24_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/12/32/image_18082025_12_32_15_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/12/31/image_18082025_12_32_04_9680.jpg', 2), ('/home/nano/Desktop/images/18082025/12/31/image_18082025_12_31_54_9638.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/32/image_18082025_12_32_45_9618.jpg', '/home/nano/Desktop/images/18082025/12/32/image_18082025_12_32_35_10636.jpg', '/home/nano/Desktop/images/18082025/12/32/image_18082025_12_32_24_9616.jpg', '/home/nano/Desktop/images/18082025/12/32/image_18082025_12_32_15_10658.jpg', '/home/nano/Desktop/images/18082025/12/31/image_18082025_12_32_04_9680.jpg', '/home/nano/Desktop/images/18082025/12/31/image_18082025_12_31_54_9638.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/32/image_18082025_12_32_45_9618.jpg
/home/nano/Desktop/images/18082025/12/32/image_18082025_12_32_35_10636.jpg
/home/nano/Desktop/images/18082025/12/32/image_18082025_12_32_24_9616.jpg
/home/nano/Desktop/images/18082025/12/32/image_18082025_12_32_15_10658.jpg
/home/nano/Desktop/images/18082025/12/31/image_18082025_12_32_04_9680.jpg
/home/nano/Desktop/images/18082025/12/31/image_18082025_12_31_54_9638.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377698572","1377698575","1377698577","1377698568","1377698579","1377698570"],"photo_ids_order":["1377698568","1377698570","1377698572","1377698575","1377698577","1377698579"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bfba6ebf20bb06d809ca8230a65456ca.jpg","text":"TemporaryFile(/tmp/multipartBody6166164177185420084asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513213529,"filename":"image_18082025_12_32_24_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e4a9b3cb0fabbe09a83815630c2ab651.jpg","text":"TemporaryFile(/tmp/multipartBody2710450860561406067asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513213529,"filename":"image_18082025_12_32_15_10658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0d8e8d8d92200b8b7c2bcd1d08ae8213.jpg","text":"TemporaryFile(/tmp/multipartBody6266050614020926887asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513213529,"filename":"image_18082025_12_32_04_9680.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d77c72915a462f7a80c41d40a245942a.jpg","text":"TemporaryFile(/tmp/multipartBody8170350691919379590asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513213529,"filename":"image_18082025_12_32_45_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/706ec63765385a438c6c772b3a5551fb.jpg","text":"TemporaryFile(/tmp/multipartBody8286081260507065130asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513213529,"filename":"image_18082025_12_31_54_9638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e34b7530468b3cbe4b6aba4c35b996f9.jpg","text":"TemporaryFile(/tmp/multipartBody5176203409468115903asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513213529,"filename":"image_18082025_12_32_35_10636.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377698572","file1":"1377698570","file0":"1377698568","file4":"1377698577","file5":"1377698579","file3":"1377698575"},"map_files_photo_id_array":[{"photo_id":"1377698579","filename":"file5"},{"photo_id":"1377698572","filename":"file2"},{"photo_id":"1377698577","filename":"file4"},{"photo_id":"1377698570","filename":"file1"},{"photo_id":"1377698568","filename":"file0"},{"photo_id":"1377698575","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377698572":["hashtag1","hashtag2"]},{"1377698575":["hashtag1","hashtag2"]},{"1377698577":["hashtag1","hashtag2"]},{"1377698568":["hashtag1","hashtag2"]},{"1377698579":["hashtag1","hashtag2"]},{"1377698570":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377698572, 1377698575, 1377698577, 1377698568, 1377698579, 1377698570)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.3576226234436 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:33:17.405029
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/33/image_18082025_12_33_44_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/12/33/image_18082025_12_33_35_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/12/33/image_18082025_12_33_24_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/12/33/image_18082025_12_33_15_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/12/32/image_18082025_12_33_05_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/12/32/image_18082025_12_32_54_9620.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/33/image_18082025_12_33_44_9623.jpg', '/home/nano/Desktop/images/18082025/12/33/image_18082025_12_33_35_10631.jpg', '/home/nano/Desktop/images/18082025/12/33/image_18082025_12_33_24_9620.jpg', '/home/nano/Desktop/images/18082025/12/33/image_18082025_12_33_15_9633.jpg', '/home/nano/Desktop/images/18082025/12/32/image_18082025_12_33_05_10640.jpg', '/home/nano/Desktop/images/18082025/12/32/image_18082025_12_32_54_9620.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/33/image_18082025_12_33_44_9623.jpg
/home/nano/Desktop/images/18082025/12/33/image_18082025_12_33_35_10631.jpg
/home/nano/Desktop/images/18082025/12/33/image_18082025_12_33_24_9620.jpg
/home/nano/Desktop/images/18082025/12/33/image_18082025_12_33_15_9633.jpg
/home/nano/Desktop/images/18082025/12/32/image_18082025_12_33_05_10640.jpg
/home/nano/Desktop/images/18082025/12/32/image_18082025_12_32_54_9620.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377698609","1377698599","1377698602","1377698605","1377698595","1377698607"],"photo_ids_order":["1377698595","1377698599","1377698602","1377698605","1377698607","1377698609"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/88d58863e62d929c7e8aa5658e8d0b9e.jpg","text":"TemporaryFile(/tmp/multipartBody381497997358220211asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513258672,"filename":"image_18082025_12_32_54_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8e67051a510ea84c0de563505cbddaed.jpg","text":"TemporaryFile(/tmp/multipartBody7700701855584054260asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513258672,"filename":"image_18082025_12_33_35_10631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/392a3539629ecd5d8e723920fb454270.jpg","text":"TemporaryFile(/tmp/multipartBody4536708917975192160asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513258672,"filename":"image_18082025_12_33_24_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f741057b426fa4032541d04fc6a7dc45.jpg","text":"TemporaryFile(/tmp/multipartBody5720220515901432160asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513258672,"filename":"image_18082025_12_33_15_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/96fe390bdb6ef6e6af8ecdc48591e0cc.jpg","text":"TemporaryFile(/tmp/multipartBody3818140373516251800asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513258672,"filename":"image_18082025_12_33_44_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8a61c46c93a9b4489aca2885c317ecfa.jpg","text":"TemporaryFile(/tmp/multipartBody4190512135087955168asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513258672,"filename":"image_18082025_12_33_05_10640.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377698602","file1":"1377698599","file0":"1377698595","file4":"1377698607","file5":"1377698609","file3":"1377698605"},"map_files_photo_id_array":[{"photo_id":"1377698609","filename":"file5"},{"photo_id":"1377698602","filename":"file2"},{"photo_id":"1377698607","filename":"file4"},{"photo_id":"1377698599","filename":"file1"},{"photo_id":"1377698595","filename":"file0"},{"photo_id":"1377698605","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377698609":["hashtag1","hashtag2"]},{"1377698599":["hashtag1","hashtag2"]},{"1377698602":["hashtag1","hashtag2"]},{"1377698605":["hashtag1","hashtag2"]},{"1377698595":["hashtag1","hashtag2"]},{"1377698607":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377698609, 1377698599, 1377698602, 1377698605, 1377698595, 1377698607)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.320131063461304 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:34:03.226654
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/37/image_18082025_11_37_45_10605.jpg', 2), ('/home/nano/Desktop/images/18082025/11/37/image_18082025_11_37_34_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/11/37/image_18082025_11_37_25_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/11/37/image_18082025_11_37_14_9722.jpg', 2), ('/home/nano/Desktop/images/18082025/11/36/image_18082025_11_37_04_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/11/36/image_18082025_11_36_55_10637.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/37/image_18082025_11_37_45_10605.jpg', '/home/nano/Desktop/images/18082025/11/37/image_18082025_11_37_34_9661.jpg', '/home/nano/Desktop/images/18082025/11/37/image_18082025_11_37_25_10653.jpg', '/home/nano/Desktop/images/18082025/11/37/image_18082025_11_37_14_9722.jpg', '/home/nano/Desktop/images/18082025/11/36/image_18082025_11_37_04_9634.jpg', '/home/nano/Desktop/images/18082025/11/36/image_18082025_11_36_55_10637.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/37/image_18082025_11_37_45_10605.jpg
/home/nano/Desktop/images/18082025/11/37/image_18082025_11_37_34_9661.jpg
/home/nano/Desktop/images/18082025/11/37/image_18082025_11_37_25_10653.jpg
/home/nano/Desktop/images/18082025/11/37/image_18082025_11_37_14_9722.jpg
/home/nano/Desktop/images/18082025/11/36/image_18082025_11_37_04_9634.jpg
/home/nano/Desktop/images/18082025/11/36/image_18082025_11_36_55_10637.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.3055179119110107 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:34:17.520938
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/34/image_18082025_12_34_44_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/12/34/image_18082025_12_34_35_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/12/34/image_18082025_12_34_25_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/12/34/image_18082025_12_34_14_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/12/33/image_18082025_12_34_05_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/12/33/image_18082025_12_33_55_10631.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/34/image_18082025_12_34_44_9622.jpg', '/home/nano/Desktop/images/18082025/12/34/image_18082025_12_34_35_9638.jpg', '/home/nano/Desktop/images/18082025/12/34/image_18082025_12_34_25_10666.jpg', '/home/nano/Desktop/images/18082025/12/34/image_18082025_12_34_14_9644.jpg', '/home/nano/Desktop/images/18082025/12/33/image_18082025_12_34_05_9620.jpg', '/home/nano/Desktop/images/18082025/12/33/image_18082025_12_33_55_10631.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/34/image_18082025_12_34_44_9622.jpg
/home/nano/Desktop/images/18082025/12/34/image_18082025_12_34_35_9638.jpg
/home/nano/Desktop/images/18082025/12/34/image_18082025_12_34_25_10666.jpg
/home/nano/Desktop/images/18082025/12/34/image_18082025_12_34_14_9644.jpg
/home/nano/Desktop/images/18082025/12/33/image_18082025_12_34_05_9620.jpg
/home/nano/Desktop/images/18082025/12/33/image_18082025_12_33_55_10631.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377698627","1377698631","1377698640","1377698634","1377698637","1377698624"],"photo_ids_order":["1377698624","1377698627","1377698631","1377698634","1377698637","1377698640"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8970bf1b857cc3fb025495589ce71488.jpg","text":"TemporaryFile(/tmp/multipartBody7380576386263139388asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513318725,"filename":"image_18082025_12_34_35_9638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/07ce873abc0b40d67a2daef82ab271b7.jpg","text":"TemporaryFile(/tmp/multipartBody3221192143450702845asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513318725,"filename":"image_18082025_12_34_25_10666.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e0a00721c0c773497d03987308090efb.jpg","text":"TemporaryFile(/tmp/multipartBody5807586553097008077asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513318725,"filename":"image_18082025_12_33_55_10631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/66ff79504c3816ccc24dc62d7d288f59.jpg","text":"TemporaryFile(/tmp/multipartBody940698645586513044asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513318725,"filename":"image_18082025_12_34_14_9644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1de4fcd83519afc37ba2ba379554abe0.jpg","text":"TemporaryFile(/tmp/multipartBody8694337699511265900asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513318725,"filename":"image_18082025_12_34_05_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/650d47b67d4ecb5f8d058b2a12b9de6b.jpg","text":"TemporaryFile(/tmp/multipartBody5322089992775763629asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513318725,"filename":"image_18082025_12_34_44_9622.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377698631","file1":"1377698627","file0":"1377698624","file4":"1377698637","file5":"1377698640","file3":"1377698634"},"map_files_photo_id_array":[{"photo_id":"1377698640","filename":"file5"},{"photo_id":"1377698631","filename":"file2"},{"photo_id":"1377698637","filename":"file4"},{"photo_id":"1377698627","filename":"file1"},{"photo_id":"1377698624","filename":"file0"},{"photo_id":"1377698634","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377698627":["hashtag1","hashtag2"]},{"1377698631":["hashtag1","hashtag2"]},{"1377698640":["hashtag1","hashtag2"]},{"1377698634":["hashtag1","hashtag2"]},{"1377698637":["hashtag1","hashtag2"]},{"1377698624":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377698627, 1377698631, 1377698640, 1377698634, 1377698637, 1377698624)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.080456733703613 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:35:03.372689
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/37/image_18082025_11_37_45_10605.jpg', 2), ('/home/nano/Desktop/images/18082025/11/37/image_18082025_11_37_34_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/11/37/image_18082025_11_37_25_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/11/37/image_18082025_11_37_14_9722.jpg', 2), ('/home/nano/Desktop/images/18082025/11/36/image_18082025_11_37_04_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/11/36/image_18082025_11_36_55_10637.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/37/image_18082025_11_37_45_10605.jpg', '/home/nano/Desktop/images/18082025/11/37/image_18082025_11_37_34_9661.jpg', '/home/nano/Desktop/images/18082025/11/37/image_18082025_11_37_25_10653.jpg', '/home/nano/Desktop/images/18082025/11/37/image_18082025_11_37_14_9722.jpg', '/home/nano/Desktop/images/18082025/11/36/image_18082025_11_37_04_9634.jpg', '/home/nano/Desktop/images/18082025/11/36/image_18082025_11_36_55_10637.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/37/image_18082025_11_37_45_10605.jpg
/home/nano/Desktop/images/18082025/11/37/image_18082025_11_37_34_9661.jpg
/home/nano/Desktop/images/18082025/11/37/image_18082025_11_37_25_10653.jpg
/home/nano/Desktop/images/18082025/11/37/image_18082025_11_37_14_9722.jpg
/home/nano/Desktop/images/18082025/11/36/image_18082025_11_37_04_9634.jpg
/home/nano/Desktop/images/18082025/11/36/image_18082025_11_36_55_10637.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377698648","1377698656","1377698659","1377698652","1377698663","1377698666"],"photo_ids_order":["1377698648","1377698652","1377698656","1377698659","1377698663","1377698666"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6456b47069d24b54cc3875b5027673ce.jpg","text":"TemporaryFile(/tmp/multipartBody5744697671382580209asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513364604,"filename":"image_18082025_11_37_45_10605.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/82bfdaf14ec3e580f49cc47af6b9b734.jpg","text":"TemporaryFile(/tmp/multipartBody709137578444355198asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513364604,"filename":"image_18082025_11_37_25_10653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/96692260d0992d70efd0b9f95f895fb6.jpg","text":"TemporaryFile(/tmp/multipartBody8425602589262261472asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513364604,"filename":"image_18082025_11_37_14_9722.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d8c815e9d7a1d942cb1b109dbf2cec21.jpg","text":"TemporaryFile(/tmp/multipartBody1053303041260225280asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513364604,"filename":"image_18082025_11_37_34_9661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/269cb70a25155d2b53f31f11cf20606b.jpg","text":"TemporaryFile(/tmp/multipartBody431279675085370549asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513364604,"filename":"image_18082025_11_37_04_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/54d72247f4c74c2ec14b14eaf8c11795.jpg","text":"TemporaryFile(/tmp/multipartBody2992388032114505155asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513364604,"filename":"image_18082025_11_36_55_10637.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377698656","file1":"1377698652","file0":"1377698648","file4":"1377698663","file5":"1377698666","file3":"1377698659"},"map_files_photo_id_array":[{"photo_id":"1377698666","filename":"file5"},{"photo_id":"1377698656","filename":"file2"},{"photo_id":"1377698663","filename":"file4"},{"photo_id":"1377698652","filename":"file1"},{"photo_id":"1377698648","filename":"file0"},{"photo_id":"1377698659","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377698648":["hashtag1","hashtag2"]},{"1377698656":["hashtag1","hashtag2"]},{"1377698659":["hashtag1","hashtag2"]},{"1377698652":["hashtag1","hashtag2"]},{"1377698663":["hashtag1","hashtag2"]},{"1377698666":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377698648, 1377698656, 1377698659, 1377698652, 1377698663, 1377698666)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.46813416481018 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:35:47.590676
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/35/image_18082025_12_35_45_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/12/35/image_18082025_12_35_34_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/12/35/image_18082025_12_35_25_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/12/35/image_18082025_12_35_14_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/12/34/image_18082025_12_35_05_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/12/34/image_18082025_12_34_55_10632.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/35/image_18082025_12_35_45_10631.jpg', '/home/nano/Desktop/images/18082025/12/35/image_18082025_12_35_34_9624.jpg', '/home/nano/Desktop/images/18082025/12/35/image_18082025_12_35_25_10626.jpg', '/home/nano/Desktop/images/18082025/12/35/image_18082025_12_35_14_9638.jpg', '/home/nano/Desktop/images/18082025/12/34/image_18082025_12_35_05_9625.jpg', '/home/nano/Desktop/images/18082025/12/34/image_18082025_12_34_55_10632.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/35/image_18082025_12_35_45_10631.jpg
/home/nano/Desktop/images/18082025/12/35/image_18082025_12_35_34_9624.jpg
/home/nano/Desktop/images/18082025/12/35/image_18082025_12_35_25_10626.jpg
/home/nano/Desktop/images/18082025/12/35/image_18082025_12_35_14_9638.jpg
/home/nano/Desktop/images/18082025/12/34/image_18082025_12_35_05_9625.jpg
/home/nano/Desktop/images/18082025/12/34/image_18082025_12_34_55_10632.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377698671","1377698680","1377698676","1377698673","1377698675","1377698684"],"photo_ids_order":["1377698671","1377698673","1377698675","1377698676","1377698680","1377698684"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e80e7b0f1a1eb36ea941af3f257f0a65.jpg","text":"TemporaryFile(/tmp/multipartBody587491178119174845asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513408691,"filename":"image_18082025_12_35_45_10631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/408784e910849bb1611bc4e012f9cd9f.jpg","text":"TemporaryFile(/tmp/multipartBody2665298634697384895asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513408691,"filename":"image_18082025_12_35_05_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/27e2221a08c0de290ac72e1efcbe4fa5.jpg","text":"TemporaryFile(/tmp/multipartBody8146806438904877219asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513408691,"filename":"image_18082025_12_35_14_9638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/07a14b776e80eb1bd64c5342183b2f33.jpg","text":"TemporaryFile(/tmp/multipartBody5411557444436951190asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513408691,"filename":"image_18082025_12_35_34_9624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9b838be51abf1cb4bc999f6373d190a8.jpg","text":"TemporaryFile(/tmp/multipartBody9116907755038798000asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513408691,"filename":"image_18082025_12_35_25_10626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ad4681595bd6301fdf83e02a2fa8da7b.jpg","text":"TemporaryFile(/tmp/multipartBody7416504944181295590asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513408691,"filename":"image_18082025_12_34_55_10632.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377698675","file1":"1377698673","file0":"1377698671","file4":"1377698680","file5":"1377698684","file3":"1377698676"},"map_files_photo_id_array":[{"photo_id":"1377698684","filename":"file5"},{"photo_id":"1377698675","filename":"file2"},{"photo_id":"1377698680","filename":"file4"},{"photo_id":"1377698673","filename":"file1"},{"photo_id":"1377698671","filename":"file0"},{"photo_id":"1377698676","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377698671":["hashtag1","hashtag2"]},{"1377698680":["hashtag1","hashtag2"]},{"1377698676":["hashtag1","hashtag2"]},{"1377698673":["hashtag1","hashtag2"]},{"1377698675":["hashtag1","hashtag2"]},{"1377698684":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377698671, 1377698680, 1377698676, 1377698673, 1377698675, 1377698684)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.259459018707275 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:36:32.691788
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/36/image_18082025_12_36_45_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/12/36/image_18082025_12_36_34_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/12/36/image_18082025_12_36_25_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/12/36/image_18082025_12_36_15_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/12/35/image_18082025_12_36_04_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/12/35/image_18082025_12_35_55_9630.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/36/image_18082025_12_36_45_10651.jpg', '/home/nano/Desktop/images/18082025/12/36/image_18082025_12_36_34_9628.jpg', '/home/nano/Desktop/images/18082025/12/36/image_18082025_12_36_25_9642.jpg', '/home/nano/Desktop/images/18082025/12/36/image_18082025_12_36_15_10658.jpg', '/home/nano/Desktop/images/18082025/12/35/image_18082025_12_36_04_9625.jpg', '/home/nano/Desktop/images/18082025/12/35/image_18082025_12_35_55_9630.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/36/image_18082025_12_36_45_10651.jpg
/home/nano/Desktop/images/18082025/12/36/image_18082025_12_36_34_9628.jpg
/home/nano/Desktop/images/18082025/12/36/image_18082025_12_36_25_9642.jpg
/home/nano/Desktop/images/18082025/12/36/image_18082025_12_36_15_10658.jpg
/home/nano/Desktop/images/18082025/12/35/image_18082025_12_36_04_9625.jpg
/home/nano/Desktop/images/18082025/12/35/image_18082025_12_35_55_9630.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377698714","1377698710","1377698704","1377698707","1377698712","1377698700"],"photo_ids_order":["1377698700","1377698704","1377698707","1377698710","1377698712","1377698714"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a4e74978b61c36f7cc86c71b1890c543.jpg","text":"TemporaryFile(/tmp/multipartBody2406289323450371332asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513453942,"filename":"image_18082025_12_35_55_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/06ab508b410f17d18ac6d4da724d5da0.jpg","text":"TemporaryFile(/tmp/multipartBody4942778036201868577asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513453942,"filename":"image_18082025_12_36_15_10658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4eb710022475cd2327242798cd724521.jpg","text":"TemporaryFile(/tmp/multipartBody4257255849382326794asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513453942,"filename":"image_18082025_12_36_34_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e6cc800385bd4c75516770c2cd398950.jpg","text":"TemporaryFile(/tmp/multipartBody5357880966498334290asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513453942,"filename":"image_18082025_12_36_25_9642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/05cfdf8c357d79226db881de5054412b.jpg","text":"TemporaryFile(/tmp/multipartBody101877640371624442asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513453942,"filename":"image_18082025_12_36_04_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1dbb74987b589d56f0667c068df4281e.jpg","text":"TemporaryFile(/tmp/multipartBody9133348163488995976asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513453942,"filename":"image_18082025_12_36_45_10651.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377698707","file1":"1377698704","file0":"1377698700","file4":"1377698712","file5":"1377698714","file3":"1377698710"},"map_files_photo_id_array":[{"photo_id":"1377698714","filename":"file5"},{"photo_id":"1377698707","filename":"file2"},{"photo_id":"1377698712","filename":"file4"},{"photo_id":"1377698704","filename":"file1"},{"photo_id":"1377698700","filename":"file0"},{"photo_id":"1377698710","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377698714":["hashtag1","hashtag2"]},{"1377698710":["hashtag1","hashtag2"]},{"1377698704":["hashtag1","hashtag2"]},{"1377698707":["hashtag1","hashtag2"]},{"1377698712":["hashtag1","hashtag2"]},{"1377698700":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377698714, 1377698710, 1377698704, 1377698707, 1377698712, 1377698700)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.382112503051758 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:37:16.799198
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/37/image_18082025_12_37_45_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/12/37/image_18082025_12_37_35_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/12/37/image_18082025_12_37_24_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/12/37/image_18082025_12_37_15_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/12/36/image_18082025_12_37_04_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/12/36/image_18082025_12_36_54_9620.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/37/image_18082025_12_37_45_9617.jpg', '/home/nano/Desktop/images/18082025/12/37/image_18082025_12_37_35_10624.jpg', '/home/nano/Desktop/images/18082025/12/37/image_18082025_12_37_24_9612.jpg', '/home/nano/Desktop/images/18082025/12/37/image_18082025_12_37_15_10652.jpg', '/home/nano/Desktop/images/18082025/12/36/image_18082025_12_37_04_9647.jpg', '/home/nano/Desktop/images/18082025/12/36/image_18082025_12_36_54_9620.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/37/image_18082025_12_37_45_9617.jpg
/home/nano/Desktop/images/18082025/12/37/image_18082025_12_37_35_10624.jpg
/home/nano/Desktop/images/18082025/12/37/image_18082025_12_37_24_9612.jpg
/home/nano/Desktop/images/18082025/12/37/image_18082025_12_37_15_10652.jpg
/home/nano/Desktop/images/18082025/12/36/image_18082025_12_37_04_9647.jpg
/home/nano/Desktop/images/18082025/12/36/image_18082025_12_36_54_9620.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377698740","1377698734","1377698737","1377698731","1377698739","1377698727"],"photo_ids_order":["1377698727","1377698731","1377698734","1377698737","1377698739","1377698740"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cf031fdc4ceaa49af9b89731f907e955.jpg","text":"TemporaryFile(/tmp/multipartBody4228942086231297732asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513497974,"filename":"image_18082025_12_36_54_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c1f72e01a9d22a0bdaf66b7e226701dc.jpg","text":"TemporaryFile(/tmp/multipartBody4399307273818629451asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513497974,"filename":"image_18082025_12_37_24_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1a9549d7565bd1cbf8ff1a80344a0133.jpg","text":"TemporaryFile(/tmp/multipartBody8463967585007769355asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513497974,"filename":"image_18082025_12_37_15_10652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7e647b109003ff5a555c0a6c54b1b294.jpg","text":"TemporaryFile(/tmp/multipartBody572650669927406677asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513497974,"filename":"image_18082025_12_37_35_10624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4bb812c5c6f3e3c052cee7f8d175e777.jpg","text":"TemporaryFile(/tmp/multipartBody6613519303479058984asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513497974,"filename":"image_18082025_12_37_04_9647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e972864a9d536bccf7aa4c98f99404c7.jpg","text":"TemporaryFile(/tmp/multipartBody3199954161591398715asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513497974,"filename":"image_18082025_12_37_45_9617.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377698734","file1":"1377698731","file0":"1377698727","file4":"1377698739","file5":"1377698740","file3":"1377698737"},"map_files_photo_id_array":[{"photo_id":"1377698740","filename":"file5"},{"photo_id":"1377698734","filename":"file2"},{"photo_id":"1377698739","filename":"file4"},{"photo_id":"1377698731","filename":"file1"},{"photo_id":"1377698727","filename":"file0"},{"photo_id":"1377698737","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377698740":["hashtag1","hashtag2"]},{"1377698734":["hashtag1","hashtag2"]},{"1377698737":["hashtag1","hashtag2"]},{"1377698731":["hashtag1","hashtag2"]},{"1377698739":["hashtag1","hashtag2"]},{"1377698727":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377698740, 1377698734, 1377698737, 1377698731, 1377698739, 1377698727)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.67375349998474 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:38:02.298328
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/36/image_18082025_11_36_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/11/36/image_18082025_11_36_34_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/11/36/image_18082025_11_36_25_10657.jpg', 2), ('/home/nano/Desktop/images/18082025/11/36/image_18082025_11_36_14_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/11/35/image_18082025_11_36_04_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/11/35/image_18082025_11_35_55_10635.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/36/image_18082025_11_36_44_9640.jpg', '/home/nano/Desktop/images/18082025/11/36/image_18082025_11_36_34_9636.jpg', '/home/nano/Desktop/images/18082025/11/36/image_18082025_11_36_25_10657.jpg', '/home/nano/Desktop/images/18082025/11/36/image_18082025_11_36_14_9651.jpg', '/home/nano/Desktop/images/18082025/11/35/image_18082025_11_36_04_9629.jpg', '/home/nano/Desktop/images/18082025/11/35/image_18082025_11_35_55_10635.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/36/image_18082025_11_36_44_9640.jpg
/home/nano/Desktop/images/18082025/11/36/image_18082025_11_36_34_9636.jpg
/home/nano/Desktop/images/18082025/11/36/image_18082025_11_36_25_10657.jpg
/home/nano/Desktop/images/18082025/11/36/image_18082025_11_36_14_9651.jpg
/home/nano/Desktop/images/18082025/11/35/image_18082025_11_36_04_9629.jpg
/home/nano/Desktop/images/18082025/11/35/image_18082025_11_35_55_10635.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377698764","1377698769","1377698766","1377698754","1377698762","1377698759"],"photo_ids_order":["1377698754","1377698759","1377698762","1377698764","1377698766","1377698769"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/94f5f8c84829b2076dfa76d5a066e3f0.jpg","text":"TemporaryFile(/tmp/multipartBody5754520755048146205asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513543548,"filename":"image_18082025_11_36_14_9651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/40e0efc6e2c61823d28adac76799dafa.jpg","text":"TemporaryFile(/tmp/multipartBody1797179494279820973asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513543548,"filename":"image_18082025_11_35_55_10635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ec61303578cfa14c51b478132567c6ff.jpg","text":"TemporaryFile(/tmp/multipartBody6664230741272568489asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513543548,"filename":"image_18082025_11_36_04_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5523118583b2be3df042f33597668f7b.jpg","text":"TemporaryFile(/tmp/multipartBody2965125815655232823asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513543548,"filename":"image_18082025_11_36_44_9640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1dfc9ff582a43c223f58801e2dd56e80.jpg","text":"TemporaryFile(/tmp/multipartBody5756597277680403183asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513543548,"filename":"image_18082025_11_36_25_10657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/06258576b33186efc31bcfe4c9309316.jpg","text":"TemporaryFile(/tmp/multipartBody7326058884949472788asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513543548,"filename":"image_18082025_11_36_34_9636.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377698762","file1":"1377698759","file0":"1377698754","file4":"1377698766","file5":"1377698769","file3":"1377698764"},"map_files_photo_id_array":[{"photo_id":"1377698769","filename":"file5"},{"photo_id":"1377698762","filename":"file2"},{"photo_id":"1377698766","filename":"file4"},{"photo_id":"1377698759","filename":"file1"},{"photo_id":"1377698754","filename":"file0"},{"photo_id":"1377698764","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377698764":["hashtag1","hashtag2"]},{"1377698769":["hashtag1","hashtag2"]},{"1377698766":["hashtag1","hashtag2"]},{"1377698754":["hashtag1","hashtag2"]},{"1377698762":["hashtag1","hashtag2"]},{"1377698759":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377698764, 1377698769, 1377698766, 1377698754, 1377698762, 1377698759)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.226497650146484 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:38:46.943499
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/38/image_18082025_12_38_44_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/12/38/image_18082025_12_38_35_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/12/38/image_18082025_12_38_24_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/12/38/image_18082025_12_38_15_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/12/37/image_18082025_12_38_05_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/12/37/image_18082025_12_37_54_9624.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/38/image_18082025_12_38_44_9625.jpg', '/home/nano/Desktop/images/18082025/12/38/image_18082025_12_38_35_10626.jpg', '/home/nano/Desktop/images/18082025/12/38/image_18082025_12_38_24_9617.jpg', '/home/nano/Desktop/images/18082025/12/38/image_18082025_12_38_15_9625.jpg', '/home/nano/Desktop/images/18082025/12/37/image_18082025_12_38_05_10647.jpg', '/home/nano/Desktop/images/18082025/12/37/image_18082025_12_37_54_9624.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/38/image_18082025_12_38_44_9625.jpg
/home/nano/Desktop/images/18082025/12/38/image_18082025_12_38_35_10626.jpg
/home/nano/Desktop/images/18082025/12/38/image_18082025_12_38_24_9617.jpg
/home/nano/Desktop/images/18082025/12/38/image_18082025_12_38_15_9625.jpg
/home/nano/Desktop/images/18082025/12/37/image_18082025_12_38_05_10647.jpg
/home/nano/Desktop/images/18082025/12/37/image_18082025_12_37_54_9624.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377698782","1377698785","1377698793","1377698787","1377698784","1377698789"],"photo_ids_order":["1377698782","1377698784","1377698785","1377698787","1377698789","1377698793"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6c452f9d5a8b5ff05ac46af094f124cb.jpg","text":"TemporaryFile(/tmp/multipartBody2431553070891716839asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513588263,"filename":"image_18082025_12_38_44_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b75281c55098eaacecac2f5108beacc4.jpg","text":"TemporaryFile(/tmp/multipartBody112415680406514236asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513588263,"filename":"image_18082025_12_38_24_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/97a105c3097c1c49cadb32e16c5d1a4b.jpg","text":"TemporaryFile(/tmp/multipartBody1320127928610985329asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513588263,"filename":"image_18082025_12_37_54_9624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/83d08fda4a5ba9396d38c7b7fbb6594e.jpg","text":"TemporaryFile(/tmp/multipartBody3066487015996561365asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513588263,"filename":"image_18082025_12_38_15_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/14af3a0a43d7cf222ac9080df84469bf.jpg","text":"TemporaryFile(/tmp/multipartBody4110132583911968185asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513588263,"filename":"image_18082025_12_38_35_10626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/935cc6b92642e0ba76bc1ed2bae3a1c2.jpg","text":"TemporaryFile(/tmp/multipartBody6340109098955909688asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513588263,"filename":"image_18082025_12_38_05_10647.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377698785","file1":"1377698784","file0":"1377698782","file4":"1377698789","file5":"1377698793","file3":"1377698787"},"map_files_photo_id_array":[{"photo_id":"1377698793","filename":"file5"},{"photo_id":"1377698785","filename":"file2"},{"photo_id":"1377698789","filename":"file4"},{"photo_id":"1377698784","filename":"file1"},{"photo_id":"1377698782","filename":"file0"},{"photo_id":"1377698787","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377698782":["hashtag1","hashtag2"]},{"1377698785":["hashtag1","hashtag2"]},{"1377698793":["hashtag1","hashtag2"]},{"1377698787":["hashtag1","hashtag2"]},{"1377698784":["hashtag1","hashtag2"]},{"1377698789":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377698782, 1377698785, 1377698793, 1377698787, 1377698784, 1377698789)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.59933567047119 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:39:32.096139
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/39/image_18082025_12_39_44_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/12/39/image_18082025_12_39_35_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/12/39/image_18082025_12_39_25_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/12/39/image_18082025_12_39_14_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/12/38/image_18082025_12_39_05_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/12/38/image_18082025_12_38_55_10631.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/39/image_18082025_12_39_44_9619.jpg', '/home/nano/Desktop/images/18082025/12/39/image_18082025_12_39_35_9626.jpg', '/home/nano/Desktop/images/18082025/12/39/image_18082025_12_39_25_10628.jpg', '/home/nano/Desktop/images/18082025/12/39/image_18082025_12_39_14_9636.jpg', '/home/nano/Desktop/images/18082025/12/38/image_18082025_12_39_05_9631.jpg', '/home/nano/Desktop/images/18082025/12/38/image_18082025_12_38_55_10631.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/39/image_18082025_12_39_44_9619.jpg
/home/nano/Desktop/images/18082025/12/39/image_18082025_12_39_35_9626.jpg
/home/nano/Desktop/images/18082025/12/39/image_18082025_12_39_25_10628.jpg
/home/nano/Desktop/images/18082025/12/39/image_18082025_12_39_14_9636.jpg
/home/nano/Desktop/images/18082025/12/38/image_18082025_12_39_05_9631.jpg
/home/nano/Desktop/images/18082025/12/38/image_18082025_12_38_55_10631.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377698833","1377698809","1377698812","1377698814","1377698817","1377698837"],"photo_ids_order":["1377698809","1377698812","1377698814","1377698817","1377698833","1377698837"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/25ad3dcc34faad54f330e7d5a9981169.jpg","text":"TemporaryFile(/tmp/multipartBody5427955979292340405asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513633308,"filename":"image_18082025_12_39_05_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ca2387c97003d5be239aa7151e595920.jpg","text":"TemporaryFile(/tmp/multipartBody2030767121615242216asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513633308,"filename":"image_18082025_12_39_44_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/13455cfe861e45dbd16ace831c3838fb.jpg","text":"TemporaryFile(/tmp/multipartBody8485316791710957766asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513633308,"filename":"image_18082025_12_39_35_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/31f92ff205b7538846c6d4bc77f4462a.jpg","text":"TemporaryFile(/tmp/multipartBody7250343925785638992asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513633308,"filename":"image_18082025_12_39_25_10628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c074f2a76a6a73ada4371615fce52c4c.jpg","text":"TemporaryFile(/tmp/multipartBody5305868593909291275asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513633308,"filename":"image_18082025_12_39_14_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8aa9c1a07a807d898402dd00685ec423.jpg","text":"TemporaryFile(/tmp/multipartBody7007673334782767511asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513633308,"filename":"image_18082025_12_38_55_10631.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377698814","file1":"1377698812","file0":"1377698809","file4":"1377698833","file5":"1377698837","file3":"1377698817"},"map_files_photo_id_array":[{"photo_id":"1377698837","filename":"file5"},{"photo_id":"1377698814","filename":"file2"},{"photo_id":"1377698833","filename":"file4"},{"photo_id":"1377698812","filename":"file1"},{"photo_id":"1377698809","filename":"file0"},{"photo_id":"1377698817","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377698833":["hashtag1","hashtag2"]},{"1377698809":["hashtag1","hashtag2"]},{"1377698812":["hashtag1","hashtag2"]},{"1377698814":["hashtag1","hashtag2"]},{"1377698817":["hashtag1","hashtag2"]},{"1377698837":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377698833, 1377698809, 1377698812, 1377698814, 1377698817, 1377698837)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.362427949905396 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:40:17.199702
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/40/image_18082025_12_40_45_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/12/40/image_18082025_12_40_34_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/12/40/image_18082025_12_40_25_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/12/40/image_18082025_12_40_14_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/12/39/image_18082025_12_40_04_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/12/39/image_18082025_12_39_55_10628.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/40/image_18082025_12_40_45_10624.jpg', '/home/nano/Desktop/images/18082025/12/40/image_18082025_12_40_34_9623.jpg', '/home/nano/Desktop/images/18082025/12/40/image_18082025_12_40_25_10649.jpg', '/home/nano/Desktop/images/18082025/12/40/image_18082025_12_40_14_9637.jpg', '/home/nano/Desktop/images/18082025/12/39/image_18082025_12_40_04_9646.jpg', '/home/nano/Desktop/images/18082025/12/39/image_18082025_12_39_55_10628.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/40/image_18082025_12_40_45_10624.jpg
/home/nano/Desktop/images/18082025/12/40/image_18082025_12_40_34_9623.jpg
/home/nano/Desktop/images/18082025/12/40/image_18082025_12_40_25_10649.jpg
/home/nano/Desktop/images/18082025/12/40/image_18082025_12_40_14_9637.jpg
/home/nano/Desktop/images/18082025/12/39/image_18082025_12_40_04_9646.jpg
/home/nano/Desktop/images/18082025/12/39/image_18082025_12_39_55_10628.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377698869","1377698862","1377698865","1377698867","1377698855","1377698858"],"photo_ids_order":["1377698855","1377698858","1377698862","1377698865","1377698867","1377698869"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/54d50e6bd2fb7dc42dca7d19589e5dfb.jpg","text":"TemporaryFile(/tmp/multipartBody6314484130023503238asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513678347,"filename":"image_18082025_12_39_55_10628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2b75058f9eebb4ec02cf15a07d342fe4.jpg","text":"TemporaryFile(/tmp/multipartBody2231565309956719066asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513678347,"filename":"image_18082025_12_40_25_10649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ae1078d78b75b14e1641665133c56948.jpg","text":"TemporaryFile(/tmp/multipartBody2295719540647459082asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513678347,"filename":"image_18082025_12_40_14_9637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f105b6f838137def082e7a951feea7d7.jpg","text":"TemporaryFile(/tmp/multipartBody1464085175632195410asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513678347,"filename":"image_18082025_12_40_04_9646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1d325c0b56cfbe24cf1d6a0c58e1b7c3.jpg","text":"TemporaryFile(/tmp/multipartBody463825150924871826asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513678347,"filename":"image_18082025_12_40_45_10624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/24ec7430ce762381e6552f834f3d9bf2.jpg","text":"TemporaryFile(/tmp/multipartBody1899615777431662614asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513678347,"filename":"image_18082025_12_40_34_9623.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377698862","file1":"1377698858","file0":"1377698855","file4":"1377698867","file5":"1377698869","file3":"1377698865"},"map_files_photo_id_array":[{"photo_id":"1377698869","filename":"file5"},{"photo_id":"1377698862","filename":"file2"},{"photo_id":"1377698867","filename":"file4"},{"photo_id":"1377698858","filename":"file1"},{"photo_id":"1377698855","filename":"file0"},{"photo_id":"1377698865","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377698869":["hashtag1","hashtag2"]},{"1377698862":["hashtag1","hashtag2"]},{"1377698865":["hashtag1","hashtag2"]},{"1377698867":["hashtag1","hashtag2"]},{"1377698855":["hashtag1","hashtag2"]},{"1377698858":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377698869, 1377698862, 1377698865, 1377698867, 1377698855, 1377698858)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.414788007736206 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:41:02.995717
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/35/image_18082025_11_35_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/11/35/image_18082025_11_35_35_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/11/35/image_18082025_11_35_25_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/11/35/image_18082025_11_35_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/11/34/image_18082025_11_35_05_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/11/34/image_18082025_11_34_55_10626.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/35/image_18082025_11_35_44_9642.jpg', '/home/nano/Desktop/images/18082025/11/35/image_18082025_11_35_35_9630.jpg', '/home/nano/Desktop/images/18082025/11/35/image_18082025_11_35_25_10618.jpg', '/home/nano/Desktop/images/18082025/11/35/image_18082025_11_35_14_9658.jpg', '/home/nano/Desktop/images/18082025/11/34/image_18082025_11_35_05_9627.jpg', '/home/nano/Desktop/images/18082025/11/34/image_18082025_11_34_55_10626.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/35/image_18082025_11_35_44_9642.jpg
/home/nano/Desktop/images/18082025/11/35/image_18082025_11_35_35_9630.jpg
/home/nano/Desktop/images/18082025/11/35/image_18082025_11_35_25_10618.jpg
/home/nano/Desktop/images/18082025/11/35/image_18082025_11_35_14_9658.jpg
/home/nano/Desktop/images/18082025/11/34/image_18082025_11_35_05_9627.jpg
/home/nano/Desktop/images/18082025/11/34/image_18082025_11_34_55_10626.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377698890","1377698884","1377698887","1377698898","1377698894","1377698882"],"photo_ids_order":["1377698882","1377698884","1377698887","1377698890","1377698894","1377698898"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d7e8a3aea5e9505e03e9bf01f8d61163.jpg","text":"TemporaryFile(/tmp/multipartBody6793560952979188448asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513724122,"filename":"image_18082025_11_35_14_9658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7cb04b8eeff6151721a13d69d396995a.jpg","text":"TemporaryFile(/tmp/multipartBody5751661944249724170asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513724122,"filename":"image_18082025_11_35_35_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/098bea24d6002da256e94b82a0eb7ef0.jpg","text":"TemporaryFile(/tmp/multipartBody5044957556905058479asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513724122,"filename":"image_18082025_11_35_25_10618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/84f7b33e528da2ee24bd349291e77fd9.jpg","text":"TemporaryFile(/tmp/multipartBody3682307213472033406asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513724122,"filename":"image_18082025_11_34_55_10626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6b2c2268ae5da9137f6e06fbcea1d309.jpg","text":"TemporaryFile(/tmp/multipartBody5524277564839094339asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513724122,"filename":"image_18082025_11_35_05_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/69c0120695cb8045a8edf3048447372f.jpg","text":"TemporaryFile(/tmp/multipartBody1637531268115991813asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513724122,"filename":"image_18082025_11_35_44_9642.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377698887","file1":"1377698884","file0":"1377698882","file4":"1377698894","file5":"1377698898","file3":"1377698890"},"map_files_photo_id_array":[{"photo_id":"1377698898","filename":"file5"},{"photo_id":"1377698887","filename":"file2"},{"photo_id":"1377698894","filename":"file4"},{"photo_id":"1377698884","filename":"file1"},{"photo_id":"1377698882","filename":"file0"},{"photo_id":"1377698890","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377698890":["hashtag1","hashtag2"]},{"1377698884":["hashtag1","hashtag2"]},{"1377698887":["hashtag1","hashtag2"]},{"1377698898":["hashtag1","hashtag2"]},{"1377698894":["hashtag1","hashtag2"]},{"1377698882":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377698890, 1377698884, 1377698887, 1377698898, 1377698894, 1377698882)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.32096815109253 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:41:47.339270
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/41/image_18082025_12_41_45_10619.jpg', 2), ('/home/nano/Desktop/images/18082025/12/41/image_18082025_12_41_34_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/12/41/image_18082025_12_41_25_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/12/41/image_18082025_12_41_15_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/12/40/image_18082025_12_41_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/12/40/image_18082025_12_40_55_9615.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/41/image_18082025_12_41_45_10619.jpg', '/home/nano/Desktop/images/18082025/12/41/image_18082025_12_41_34_9617.jpg', '/home/nano/Desktop/images/18082025/12/41/image_18082025_12_41_25_9618.jpg', '/home/nano/Desktop/images/18082025/12/41/image_18082025_12_41_15_10667.jpg', '/home/nano/Desktop/images/18082025/12/40/image_18082025_12_41_04_9645.jpg', '/home/nano/Desktop/images/18082025/12/40/image_18082025_12_40_55_9615.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/41/image_18082025_12_41_45_10619.jpg
/home/nano/Desktop/images/18082025/12/41/image_18082025_12_41_34_9617.jpg
/home/nano/Desktop/images/18082025/12/41/image_18082025_12_41_25_9618.jpg
/home/nano/Desktop/images/18082025/12/41/image_18082025_12_41_15_10667.jpg
/home/nano/Desktop/images/18082025/12/40/image_18082025_12_41_04_9645.jpg
/home/nano/Desktop/images/18082025/12/40/image_18082025_12_40_55_9615.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377698918","1377698912","1377698909","1377698907","1377698921","1377698915"],"photo_ids_order":["1377698907","1377698909","1377698912","1377698915","1377698918","1377698921"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2c2356fc4c7750266a6604a05aa8b8de.jpg","text":"TemporaryFile(/tmp/multipartBody4001828542111115865asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513768668,"filename":"image_18082025_12_41_04_9645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/00d8a3905ed9e160dc5a5f0f246c4a08.jpg","text":"TemporaryFile(/tmp/multipartBody5325905264057743110asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513768668,"filename":"image_18082025_12_41_25_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3a71dab105dccacae1b7dfdf812f8288.jpg","text":"TemporaryFile(/tmp/multipartBody1836544149756795875asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513768668,"filename":"image_18082025_12_41_34_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/03430abe05cb4ec8947723ec92deef42.jpg","text":"TemporaryFile(/tmp/multipartBody4795069766776468527asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513768668,"filename":"image_18082025_12_41_45_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2e2c9857b5946d4bde98b6724fad21ad.jpg","text":"TemporaryFile(/tmp/multipartBody6394770320123395768asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513768668,"filename":"image_18082025_12_40_55_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b1e0bb9f4ab5e47dae85a4863deb8bb7.jpg","text":"TemporaryFile(/tmp/multipartBody7455378341275927505asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513768668,"filename":"image_18082025_12_41_15_10667.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377698912","file1":"1377698909","file0":"1377698907","file4":"1377698918","file5":"1377698921","file3":"1377698915"},"map_files_photo_id_array":[{"photo_id":"1377698921","filename":"file5"},{"photo_id":"1377698912","filename":"file2"},{"photo_id":"1377698918","filename":"file4"},{"photo_id":"1377698909","filename":"file1"},{"photo_id":"1377698907","filename":"file0"},{"photo_id":"1377698915","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377698918":["hashtag1","hashtag2"]},{"1377698912":["hashtag1","hashtag2"]},{"1377698909":["hashtag1","hashtag2"]},{"1377698907":["hashtag1","hashtag2"]},{"1377698921":["hashtag1","hashtag2"]},{"1377698915":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377698918, 1377698912, 1377698909, 1377698907, 1377698921, 1377698915)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.191319942474365 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:42:32.466023
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/42/image_18082025_12_42_45_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/12/42/image_18082025_12_42_35_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/12/42/image_18082025_12_42_24_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/12/42/image_18082025_12_42_15_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/12/41/image_18082025_12_42_05_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/12/41/image_18082025_12_41_54_9608.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/42/image_18082025_12_42_45_9631.jpg', '/home/nano/Desktop/images/18082025/12/42/image_18082025_12_42_35_10629.jpg', '/home/nano/Desktop/images/18082025/12/42/image_18082025_12_42_24_9619.jpg', '/home/nano/Desktop/images/18082025/12/42/image_18082025_12_42_15_9649.jpg', '/home/nano/Desktop/images/18082025/12/41/image_18082025_12_42_05_10655.jpg', '/home/nano/Desktop/images/18082025/12/41/image_18082025_12_41_54_9608.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/42/image_18082025_12_42_45_9631.jpg
/home/nano/Desktop/images/18082025/12/42/image_18082025_12_42_35_10629.jpg
/home/nano/Desktop/images/18082025/12/42/image_18082025_12_42_24_9619.jpg
/home/nano/Desktop/images/18082025/12/42/image_18082025_12_42_15_9649.jpg
/home/nano/Desktop/images/18082025/12/41/image_18082025_12_42_05_10655.jpg
/home/nano/Desktop/images/18082025/12/41/image_18082025_12_41_54_9608.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377698944","1377698938","1377698947","1377698941","1377698935","1377698946"],"photo_ids_order":["1377698935","1377698938","1377698941","1377698944","1377698946","1377698947"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f95010df22e6ecaf8fd8166937fa1ab4.jpg","text":"TemporaryFile(/tmp/multipartBody9150942930433943018asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513813805,"filename":"image_18082025_12_42_15_9649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ffab6ddae58a74c0763c48eaae80d866.jpg","text":"TemporaryFile(/tmp/multipartBody5456558420318838239asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513813805,"filename":"image_18082025_12_42_35_10629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2b2078dc5145a01dad365fd55719f3cb.jpg","text":"TemporaryFile(/tmp/multipartBody2646792276495591513asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513813805,"filename":"image_18082025_12_41_54_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6636d3104fb1919a038f090ba69a878f.jpg","text":"TemporaryFile(/tmp/multipartBody1533969456645672536asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513813805,"filename":"image_18082025_12_42_24_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0422a056b9468b1d2ebafb4fec31f5ce.jpg","text":"TemporaryFile(/tmp/multipartBody1541111259678230054asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513813805,"filename":"image_18082025_12_42_45_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dd4cacf3698d29c8753bb64459a12418.jpg","text":"TemporaryFile(/tmp/multipartBody144697919882294978asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513813805,"filename":"image_18082025_12_42_05_10655.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377698941","file1":"1377698938","file0":"1377698935","file4":"1377698946","file5":"1377698947","file3":"1377698944"},"map_files_photo_id_array":[{"photo_id":"1377698947","filename":"file5"},{"photo_id":"1377698941","filename":"file2"},{"photo_id":"1377698946","filename":"file4"},{"photo_id":"1377698938","filename":"file1"},{"photo_id":"1377698935","filename":"file0"},{"photo_id":"1377698944","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377698944":["hashtag1","hashtag2"]},{"1377698938":["hashtag1","hashtag2"]},{"1377698947":["hashtag1","hashtag2"]},{"1377698941":["hashtag1","hashtag2"]},{"1377698935":["hashtag1","hashtag2"]},{"1377698946":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377698944, 1377698938, 1377698947, 1377698941, 1377698935, 1377698946)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.17852544784546 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:43:17.652067
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/43/image_18082025_12_43_44_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/12/43/image_18082025_12_43_35_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/12/43/image_18082025_12_43_24_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/12/43/image_18082025_12_43_14_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/12/42/image_18082025_12_43_05_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/12/42/image_18082025_12_42_54_9616.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/43/image_18082025_12_43_44_9620.jpg', '/home/nano/Desktop/images/18082025/12/43/image_18082025_12_43_35_10663.jpg', '/home/nano/Desktop/images/18082025/12/43/image_18082025_12_43_24_9627.jpg', '/home/nano/Desktop/images/18082025/12/43/image_18082025_12_43_14_9650.jpg', '/home/nano/Desktop/images/18082025/12/42/image_18082025_12_43_05_10653.jpg', '/home/nano/Desktop/images/18082025/12/42/image_18082025_12_42_54_9616.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/43/image_18082025_12_43_44_9620.jpg
/home/nano/Desktop/images/18082025/12/43/image_18082025_12_43_35_10663.jpg
/home/nano/Desktop/images/18082025/12/43/image_18082025_12_43_24_9627.jpg
/home/nano/Desktop/images/18082025/12/43/image_18082025_12_43_14_9650.jpg
/home/nano/Desktop/images/18082025/12/42/image_18082025_12_43_05_10653.jpg
/home/nano/Desktop/images/18082025/12/42/image_18082025_12_42_54_9616.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377698974","1377698971","1377698961","1377698966","1377698969","1377698963"],"photo_ids_order":["1377698961","1377698963","1377698966","1377698969","1377698971","1377698974"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/080395c621854dfcb8484ccb71dd5483.jpg","text":"TemporaryFile(/tmp/multipartBody2982011403259439479asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513858798,"filename":"image_18082025_12_42_54_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/004e55e5ddf6f4939bce432fa349e37c.jpg","text":"TemporaryFile(/tmp/multipartBody3115767678333290137asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513858798,"filename":"image_18082025_12_43_05_10653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8960a634a7aa958b11ffa466e69c604e.jpg","text":"TemporaryFile(/tmp/multipartBody7113789759534322333asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513858798,"filename":"image_18082025_12_43_44_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/223b513e1dc99d059e929afe15c9b5e5.jpg","text":"TemporaryFile(/tmp/multipartBody3326315886888197866asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513858798,"filename":"image_18082025_12_43_24_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/49d930bbc758d1c36df071ce72bcacb0.jpg","text":"TemporaryFile(/tmp/multipartBody323064556163253503asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513858798,"filename":"image_18082025_12_43_14_9650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7b39f36172483404a8ffc2c2f674541e.jpg","text":"TemporaryFile(/tmp/multipartBody3216784361799778952asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513858798,"filename":"image_18082025_12_43_35_10663.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377698966","file1":"1377698963","file0":"1377698961","file4":"1377698971","file5":"1377698974","file3":"1377698969"},"map_files_photo_id_array":[{"photo_id":"1377698974","filename":"file5"},{"photo_id":"1377698966","filename":"file2"},{"photo_id":"1377698971","filename":"file4"},{"photo_id":"1377698963","filename":"file1"},{"photo_id":"1377698961","filename":"file0"},{"photo_id":"1377698969","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377698974":["hashtag1","hashtag2"]},{"1377698971":["hashtag1","hashtag2"]},{"1377698961":["hashtag1","hashtag2"]},{"1377698966":["hashtag1","hashtag2"]},{"1377698969":["hashtag1","hashtag2"]},{"1377698963":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377698974, 1377698971, 1377698961, 1377698966, 1377698969, 1377698963)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.46539545059204 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:44:03.573638
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/34/image_18082025_11_34_44_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/11/34/image_18082025_11_34_35_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/11/34/image_18082025_11_34_24_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/11/34/image_18082025_11_34_15_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/11/33/image_18082025_11_34_05_10682.jpg', 2), ('/home/nano/Desktop/images/18082025/11/33/image_18082025_11_33_54_9644.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/34/image_18082025_11_34_44_9620.jpg', '/home/nano/Desktop/images/18082025/11/34/image_18082025_11_34_35_10623.jpg', '/home/nano/Desktop/images/18082025/11/34/image_18082025_11_34_24_9629.jpg', '/home/nano/Desktop/images/18082025/11/34/image_18082025_11_34_15_9668.jpg', '/home/nano/Desktop/images/18082025/11/33/image_18082025_11_34_05_10682.jpg', '/home/nano/Desktop/images/18082025/11/33/image_18082025_11_33_54_9644.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/34/image_18082025_11_34_44_9620.jpg
/home/nano/Desktop/images/18082025/11/34/image_18082025_11_34_35_10623.jpg
/home/nano/Desktop/images/18082025/11/34/image_18082025_11_34_24_9629.jpg
/home/nano/Desktop/images/18082025/11/34/image_18082025_11_34_15_9668.jpg
/home/nano/Desktop/images/18082025/11/33/image_18082025_11_34_05_10682.jpg
/home/nano/Desktop/images/18082025/11/33/image_18082025_11_33_54_9644.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377698992","1377698998","1377698994","1377698988","1377698990","1377699002"],"photo_ids_order":["1377698988","1377698990","1377698992","1377698994","1377698998","1377699002"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/888f8eb68e1116e85daae5bee63c85d4.jpg","text":"TemporaryFile(/tmp/multipartBody4525641282207628187asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513904864,"filename":"image_18082025_11_34_24_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/17ff518a3b6dbf17192877411b8ac48b.jpg","text":"TemporaryFile(/tmp/multipartBody3606700719681759702asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513904864,"filename":"image_18082025_11_34_05_10682.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7d127485fce1c8914e53ef454a27b307.jpg","text":"TemporaryFile(/tmp/multipartBody7331691399184642119asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513904864,"filename":"image_18082025_11_34_15_9668.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ef4bb0521454f701a506241688ca2e13.jpg","text":"TemporaryFile(/tmp/multipartBody2245650508425426047asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513904864,"filename":"image_18082025_11_34_44_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e1a640b3f24c91ee03c7199b189d5e85.jpg","text":"TemporaryFile(/tmp/multipartBody8144568916302283872asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513904864,"filename":"image_18082025_11_34_35_10623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2588afbade57c579fc16bf5a20222832.jpg","text":"TemporaryFile(/tmp/multipartBody5641968354252465527asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513904864,"filename":"image_18082025_11_33_54_9644.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377698992","file1":"1377698990","file0":"1377698988","file4":"1377698998","file5":"1377699002","file3":"1377698994"},"map_files_photo_id_array":[{"photo_id":"1377699002","filename":"file5"},{"photo_id":"1377698992","filename":"file2"},{"photo_id":"1377698998","filename":"file4"},{"photo_id":"1377698990","filename":"file1"},{"photo_id":"1377698988","filename":"file0"},{"photo_id":"1377698994","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377698992":["hashtag1","hashtag2"]},{"1377698998":["hashtag1","hashtag2"]},{"1377698994":["hashtag1","hashtag2"]},{"1377698988":["hashtag1","hashtag2"]},{"1377698990":["hashtag1","hashtag2"]},{"1377699002":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377698992, 1377698998, 1377698994, 1377698988, 1377698990, 1377699002)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.90849232673645 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:44:47.739461
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/44/image_18082025_12_44_44_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/12/44/image_18082025_12_44_35_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/12/44/image_18082025_12_44_25_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/12/44/image_18082025_12_44_14_9683.jpg', 2), ('/home/nano/Desktop/images/18082025/12/43/image_18082025_12_44_05_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/12/43/image_18082025_12_43_55_10649.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/44/image_18082025_12_44_44_9636.jpg', '/home/nano/Desktop/images/18082025/12/44/image_18082025_12_44_35_9614.jpg', '/home/nano/Desktop/images/18082025/12/44/image_18082025_12_44_25_10641.jpg', '/home/nano/Desktop/images/18082025/12/44/image_18082025_12_44_14_9683.jpg', '/home/nano/Desktop/images/18082025/12/43/image_18082025_12_44_05_9645.jpg', '/home/nano/Desktop/images/18082025/12/43/image_18082025_12_43_55_10649.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/44/image_18082025_12_44_44_9636.jpg
/home/nano/Desktop/images/18082025/12/44/image_18082025_12_44_35_9614.jpg
/home/nano/Desktop/images/18082025/12/44/image_18082025_12_44_25_10641.jpg
/home/nano/Desktop/images/18082025/12/44/image_18082025_12_44_14_9683.jpg
/home/nano/Desktop/images/18082025/12/43/image_18082025_12_44_05_9645.jpg
/home/nano/Desktop/images/18082025/12/43/image_18082025_12_43_55_10649.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377699013","1377699016","1377699018","1377699012","1377699014","1377699011"],"photo_ids_order":["1377699011","1377699012","1377699013","1377699014","1377699016","1377699018"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1193e5e963c8c64abd1b6008709cc91d.jpg","text":"TemporaryFile(/tmp/multipartBody6728211927081873026asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513948916,"filename":"image_18082025_12_44_25_10641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0d04d8d795e077e6eca1b08d4c2d5ef2.jpg","text":"TemporaryFile(/tmp/multipartBody85934190651294500asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513948916,"filename":"image_18082025_12_44_05_9645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/34add63776b4f6eec9468f8ffb177849.jpg","text":"TemporaryFile(/tmp/multipartBody5386115571931246665asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513948916,"filename":"image_18082025_12_43_55_10649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e8dcd77c5d2b57a9098c636b93b3a9ed.jpg","text":"TemporaryFile(/tmp/multipartBody3462631972821346760asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513948916,"filename":"image_18082025_12_44_35_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dc988c60cb89b67b3b9c42474ee36866.jpg","text":"TemporaryFile(/tmp/multipartBody620204388090350674asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513948916,"filename":"image_18082025_12_44_14_9683.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7aeaca203a9f1efe97ae715d0da3aca0.jpg","text":"TemporaryFile(/tmp/multipartBody2599286225043668246asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513948916,"filename":"image_18082025_12_44_44_9636.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377699013","file1":"1377699012","file0":"1377699011","file4":"1377699016","file5":"1377699018","file3":"1377699014"},"map_files_photo_id_array":[{"photo_id":"1377699018","filename":"file5"},{"photo_id":"1377699013","filename":"file2"},{"photo_id":"1377699016","filename":"file4"},{"photo_id":"1377699012","filename":"file1"},{"photo_id":"1377699011","filename":"file0"},{"photo_id":"1377699014","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377699013":["hashtag1","hashtag2"]},{"1377699016":["hashtag1","hashtag2"]},{"1377699018":["hashtag1","hashtag2"]},{"1377699012":["hashtag1","hashtag2"]},{"1377699014":["hashtag1","hashtag2"]},{"1377699011":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377699013, 1377699016, 1377699018, 1377699012, 1377699014, 1377699011)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.626899003982544 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:45:31.858705
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/45/image_18082025_12_45_44_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/12/45/image_18082025_12_45_34_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/12/45/image_18082025_12_45_25_10617.jpg', 2), ('/home/nano/Desktop/images/18082025/12/45/image_18082025_12_45_14_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/12/44/image_18082025_12_45_05_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/12/44/image_18082025_12_44_55_10632.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/45/image_18082025_12_45_44_9635.jpg', '/home/nano/Desktop/images/18082025/12/45/image_18082025_12_45_34_9616.jpg', '/home/nano/Desktop/images/18082025/12/45/image_18082025_12_45_25_10617.jpg', '/home/nano/Desktop/images/18082025/12/45/image_18082025_12_45_14_9644.jpg', '/home/nano/Desktop/images/18082025/12/44/image_18082025_12_45_05_9646.jpg', '/home/nano/Desktop/images/18082025/12/44/image_18082025_12_44_55_10632.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/45/image_18082025_12_45_44_9635.jpg
/home/nano/Desktop/images/18082025/12/45/image_18082025_12_45_34_9616.jpg
/home/nano/Desktop/images/18082025/12/45/image_18082025_12_45_25_10617.jpg
/home/nano/Desktop/images/18082025/12/45/image_18082025_12_45_14_9644.jpg
/home/nano/Desktop/images/18082025/12/44/image_18082025_12_45_05_9646.jpg
/home/nano/Desktop/images/18082025/12/44/image_18082025_12_44_55_10632.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377699043","1377699040","1377699042","1377699036","1377699045","1377699038"],"photo_ids_order":["1377699036","1377699038","1377699040","1377699042","1377699043","1377699045"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1ceafec924707c7c71bfce064a8f265d.jpg","text":"TemporaryFile(/tmp/multipartBody3479397731434814608asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513993219,"filename":"image_18082025_12_45_05_9646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/91776d34e35c2826ae1bcdd68cb19e47.jpg","text":"TemporaryFile(/tmp/multipartBody542533071444177516asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513993219,"filename":"image_18082025_12_45_25_10617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1461c600713dea94fce01dc27710cb75.jpg","text":"TemporaryFile(/tmp/multipartBody3691148752085440162asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513993219,"filename":"image_18082025_12_45_14_9644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2d23a2784f19fd3c67482df55b8df391.jpg","text":"TemporaryFile(/tmp/multipartBody3685004243824231073asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513993219,"filename":"image_18082025_12_45_44_9635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6484d20f06e7206d65ea5bc85ead559d.jpg","text":"TemporaryFile(/tmp/multipartBody3924906523370807676asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513993219,"filename":"image_18082025_12_44_55_10632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b5de64f0ee8527c389cc3982bcc4f1aa.jpg","text":"TemporaryFile(/tmp/multipartBody8710920794552127159asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755513993219,"filename":"image_18082025_12_45_34_9616.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377699040","file1":"1377699038","file0":"1377699036","file4":"1377699043","file5":"1377699045","file3":"1377699042"},"map_files_photo_id_array":[{"photo_id":"1377699045","filename":"file5"},{"photo_id":"1377699040","filename":"file2"},{"photo_id":"1377699043","filename":"file4"},{"photo_id":"1377699038","filename":"file1"},{"photo_id":"1377699036","filename":"file0"},{"photo_id":"1377699042","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377699043":["hashtag1","hashtag2"]},{"1377699040":["hashtag1","hashtag2"]},{"1377699042":["hashtag1","hashtag2"]},{"1377699036":["hashtag1","hashtag2"]},{"1377699045":["hashtag1","hashtag2"]},{"1377699038":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377699043, 1377699040, 1377699042, 1377699036, 1377699045, 1377699038)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.507965803146362 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:46:16.909945
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/46/image_18082025_12_46_45_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/12/46/image_18082025_12_46_34_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/12/46/image_18082025_12_46_25_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/12/46/image_18082025_12_46_15_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/12/45/image_18082025_12_46_04_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/12/45/image_18082025_12_45_55_10644.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/46/image_18082025_12_46_45_10629.jpg', '/home/nano/Desktop/images/18082025/12/46/image_18082025_12_46_34_9634.jpg', '/home/nano/Desktop/images/18082025/12/46/image_18082025_12_46_25_9617.jpg', '/home/nano/Desktop/images/18082025/12/46/image_18082025_12_46_15_10658.jpg', '/home/nano/Desktop/images/18082025/12/45/image_18082025_12_46_04_9629.jpg', '/home/nano/Desktop/images/18082025/12/45/image_18082025_12_45_55_10644.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/46/image_18082025_12_46_45_10629.jpg
/home/nano/Desktop/images/18082025/12/46/image_18082025_12_46_34_9634.jpg
/home/nano/Desktop/images/18082025/12/46/image_18082025_12_46_25_9617.jpg
/home/nano/Desktop/images/18082025/12/46/image_18082025_12_46_15_10658.jpg
/home/nano/Desktop/images/18082025/12/45/image_18082025_12_46_04_9629.jpg
/home/nano/Desktop/images/18082025/12/45/image_18082025_12_45_55_10644.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377699058","1377699067","1377699055","1377699075","1377699063","1377699071"],"photo_ids_order":["1377699055","1377699058","1377699063","1377699067","1377699071","1377699075"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c8d473f1304f345917fa5751a8598f76.jpg","text":"TemporaryFile(/tmp/multipartBody9205792829974933400asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514038064,"filename":"image_18082025_12_46_34_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/61ed078915e09f3394a176213302849e.jpg","text":"TemporaryFile(/tmp/multipartBody3007641532516664316asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514038064,"filename":"image_18082025_12_46_15_10658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1117929e1de85f331b77fcf848dc6b62.jpg","text":"TemporaryFile(/tmp/multipartBody413803664513678921asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514038064,"filename":"image_18082025_12_46_45_10629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8e688120ba2afd4756c9032d31837aa1.jpg","text":"TemporaryFile(/tmp/multipartBody1203225258209866576asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514038064,"filename":"image_18082025_12_45_55_10644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ddfffd9af65d846bbedd91950d1c31e1.jpg","text":"TemporaryFile(/tmp/multipartBody7774760159208697265asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514038064,"filename":"image_18082025_12_46_25_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8d5551145de61458e3d8e23ab4f8baf9.jpg","text":"TemporaryFile(/tmp/multipartBody6933247668737763477asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514038064,"filename":"image_18082025_12_46_04_9629.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377699063","file1":"1377699058","file0":"1377699055","file4":"1377699071","file5":"1377699075","file3":"1377699067"},"map_files_photo_id_array":[{"photo_id":"1377699075","filename":"file5"},{"photo_id":"1377699063","filename":"file2"},{"photo_id":"1377699071","filename":"file4"},{"photo_id":"1377699058","filename":"file1"},{"photo_id":"1377699055","filename":"file0"},{"photo_id":"1377699067","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377699058":["hashtag1","hashtag2"]},{"1377699067":["hashtag1","hashtag2"]},{"1377699055":["hashtag1","hashtag2"]},{"1377699075":["hashtag1","hashtag2"]},{"1377699063":["hashtag1","hashtag2"]},{"1377699071":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377699058, 1377699067, 1377699055, 1377699075, 1377699063, 1377699071)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.30276393890381 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:47:02.435184
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/33/image_18082025_11_33_45_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/11/33/image_18082025_11_33_35_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/11/33/image_18082025_11_33_24_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/11/33/image_18082025_11_33_15_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/11/32/image_18082025_11_33_05_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/11/32/image_18082025_11_32_54_9589.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/33/image_18082025_11_33_45_9655.jpg', '/home/nano/Desktop/images/18082025/11/33/image_18082025_11_33_35_10652.jpg', '/home/nano/Desktop/images/18082025/11/33/image_18082025_11_33_24_9632.jpg', '/home/nano/Desktop/images/18082025/11/33/image_18082025_11_33_15_9636.jpg', '/home/nano/Desktop/images/18082025/11/32/image_18082025_11_33_05_10656.jpg', '/home/nano/Desktop/images/18082025/11/32/image_18082025_11_32_54_9589.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/33/image_18082025_11_33_45_9655.jpg
/home/nano/Desktop/images/18082025/11/33/image_18082025_11_33_35_10652.jpg
/home/nano/Desktop/images/18082025/11/33/image_18082025_11_33_24_9632.jpg
/home/nano/Desktop/images/18082025/11/33/image_18082025_11_33_15_9636.jpg
/home/nano/Desktop/images/18082025/11/32/image_18082025_11_33_05_10656.jpg
/home/nano/Desktop/images/18082025/11/32/image_18082025_11_32_54_9589.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377699082","1377699091","1377699099","1377699087","1377699102","1377699095"],"photo_ids_order":["1377699082","1377699087","1377699091","1377699095","1377699099","1377699102"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/558db3d4f8be1ba7fc34e3af46a8941a.jpg","text":"TemporaryFile(/tmp/multipartBody7906265991623798126asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514084016,"filename":"image_18082025_11_33_45_9655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/228beb006712ee483e87b4051d6aec27.jpg","text":"TemporaryFile(/tmp/multipartBody530584518965358627asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514084016,"filename":"image_18082025_11_33_24_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ba5209fa5b59a66a075c841a0a8be316.jpg","text":"TemporaryFile(/tmp/multipartBody6219564564787087652asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514084016,"filename":"image_18082025_11_33_05_10656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4108223c9ea65e70ef82ec820b8cc37a.jpg","text":"TemporaryFile(/tmp/multipartBody9100210838401626186asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514084016,"filename":"image_18082025_11_33_35_10652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e2cf0d8afa7d8163960645669cb7eaad.jpg","text":"TemporaryFile(/tmp/multipartBody834857047271216679asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514084016,"filename":"image_18082025_11_32_54_9589.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3bfeb3779454613b482072a1c561ded9.jpg","text":"TemporaryFile(/tmp/multipartBody1928827783427367135asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514084016,"filename":"image_18082025_11_33_15_9636.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377699091","file1":"1377699087","file0":"1377699082","file4":"1377699099","file5":"1377699102","file3":"1377699095"},"map_files_photo_id_array":[{"photo_id":"1377699102","filename":"file5"},{"photo_id":"1377699091","filename":"file2"},{"photo_id":"1377699099","filename":"file4"},{"photo_id":"1377699087","filename":"file1"},{"photo_id":"1377699082","filename":"file0"},{"photo_id":"1377699095","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377699082":["hashtag1","hashtag2"]},{"1377699091":["hashtag1","hashtag2"]},{"1377699099":["hashtag1","hashtag2"]},{"1377699087":["hashtag1","hashtag2"]},{"1377699102":["hashtag1","hashtag2"]},{"1377699095":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377699082, 1377699091, 1377699099, 1377699087, 1377699102, 1377699095)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.26878762245178 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:47:47.007117
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/47/image_18082025_12_47_45_10664.jpg', 2), ('/home/nano/Desktop/images/18082025/12/47/image_18082025_12_47_34_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/12/47/image_18082025_12_47_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/12/47/image_18082025_12_47_15_10705.jpg', 2), ('/home/nano/Desktop/images/18082025/12/46/image_18082025_12_47_04_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/12/46/image_18082025_12_46_54_9624.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/47/image_18082025_12_47_45_10664.jpg', '/home/nano/Desktop/images/18082025/12/47/image_18082025_12_47_34_9618.jpg', '/home/nano/Desktop/images/18082025/12/47/image_18082025_12_47_24_9638.jpg', '/home/nano/Desktop/images/18082025/12/47/image_18082025_12_47_15_10705.jpg', '/home/nano/Desktop/images/18082025/12/46/image_18082025_12_47_04_9634.jpg', '/home/nano/Desktop/images/18082025/12/46/image_18082025_12_46_54_9624.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/47/image_18082025_12_47_45_10664.jpg
/home/nano/Desktop/images/18082025/12/47/image_18082025_12_47_34_9618.jpg
/home/nano/Desktop/images/18082025/12/47/image_18082025_12_47_24_9638.jpg
/home/nano/Desktop/images/18082025/12/47/image_18082025_12_47_15_10705.jpg
/home/nano/Desktop/images/18082025/12/46/image_18082025_12_47_04_9634.jpg
/home/nano/Desktop/images/18082025/12/46/image_18082025_12_46_54_9624.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377699124","1377699126","1377699131","1377699122","1377699116","1377699119"],"photo_ids_order":["1377699116","1377699119","1377699122","1377699124","1377699126","1377699131"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/72ebaab15d3909a987bba01595dc4f2e.jpg","text":"TemporaryFile(/tmp/multipartBody153203341488795240asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514128547,"filename":"image_18082025_12_47_15_10705.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/736b68f9f3551165a626baba4770e49d.jpg","text":"TemporaryFile(/tmp/multipartBody7618384067158903363asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514128547,"filename":"image_18082025_12_47_04_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7aa815a080db0de92e1d7c06b7ab6bf7.jpg","text":"TemporaryFile(/tmp/multipartBody5745701583621127801asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514128547,"filename":"image_18082025_12_46_54_9624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5db75eb16fae6d6f886a8ce1944b81b2.jpg","text":"TemporaryFile(/tmp/multipartBody6910531963378427775asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514128547,"filename":"image_18082025_12_47_24_9638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/816e1cd9bc938c11d995e40b1b89444b.jpg","text":"TemporaryFile(/tmp/multipartBody3515181752032787957asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514128547,"filename":"image_18082025_12_47_45_10664.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5347d8ab649ead704ba8c37023f59d5b.jpg","text":"TemporaryFile(/tmp/multipartBody3308723192046353026asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514128547,"filename":"image_18082025_12_47_34_9618.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377699122","file1":"1377699119","file0":"1377699116","file4":"1377699126","file5":"1377699131","file3":"1377699124"},"map_files_photo_id_array":[{"photo_id":"1377699131","filename":"file5"},{"photo_id":"1377699122","filename":"file2"},{"photo_id":"1377699126","filename":"file4"},{"photo_id":"1377699119","filename":"file1"},{"photo_id":"1377699116","filename":"file0"},{"photo_id":"1377699124","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377699124":["hashtag1","hashtag2"]},{"1377699126":["hashtag1","hashtag2"]},{"1377699131":["hashtag1","hashtag2"]},{"1377699122":["hashtag1","hashtag2"]},{"1377699116":["hashtag1","hashtag2"]},{"1377699119":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377699124, 1377699126, 1377699131, 1377699122, 1377699116, 1377699119)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.791621446609497 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:48:32.104054
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/48/image_18082025_12_48_45_9602.jpg', 2), ('/home/nano/Desktop/images/18082025/12/48/image_18082025_12_48_35_10612.jpg', 2), ('/home/nano/Desktop/images/18082025/12/48/image_18082025_12_48_24_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/12/48/image_18082025_12_48_15_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/12/47/image_18082025_12_48_04_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/12/47/image_18082025_12_47_54_9642.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/48/image_18082025_12_48_45_9602.jpg', '/home/nano/Desktop/images/18082025/12/48/image_18082025_12_48_35_10612.jpg', '/home/nano/Desktop/images/18082025/12/48/image_18082025_12_48_24_9624.jpg', '/home/nano/Desktop/images/18082025/12/48/image_18082025_12_48_15_10642.jpg', '/home/nano/Desktop/images/18082025/12/47/image_18082025_12_48_04_9654.jpg', '/home/nano/Desktop/images/18082025/12/47/image_18082025_12_47_54_9642.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/48/image_18082025_12_48_45_9602.jpg
/home/nano/Desktop/images/18082025/12/48/image_18082025_12_48_35_10612.jpg
/home/nano/Desktop/images/18082025/12/48/image_18082025_12_48_24_9624.jpg
/home/nano/Desktop/images/18082025/12/48/image_18082025_12_48_15_10642.jpg
/home/nano/Desktop/images/18082025/12/47/image_18082025_12_48_04_9654.jpg
/home/nano/Desktop/images/18082025/12/47/image_18082025_12_47_54_9642.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.089184045791626 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:48:47.089093
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/48/image_18082025_12_48_45_9602.jpg', 2), ('/home/nano/Desktop/images/18082025/12/48/image_18082025_12_48_35_10612.jpg', 2), ('/home/nano/Desktop/images/18082025/12/48/image_18082025_12_48_24_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/12/48/image_18082025_12_48_15_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/12/47/image_18082025_12_48_04_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/12/47/image_18082025_12_47_54_9642.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/48/image_18082025_12_48_45_9602.jpg', '/home/nano/Desktop/images/18082025/12/48/image_18082025_12_48_35_10612.jpg', '/home/nano/Desktop/images/18082025/12/48/image_18082025_12_48_24_9624.jpg', '/home/nano/Desktop/images/18082025/12/48/image_18082025_12_48_15_10642.jpg', '/home/nano/Desktop/images/18082025/12/47/image_18082025_12_48_04_9654.jpg', '/home/nano/Desktop/images/18082025/12/47/image_18082025_12_47_54_9642.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/48/image_18082025_12_48_45_9602.jpg
/home/nano/Desktop/images/18082025/12/48/image_18082025_12_48_35_10612.jpg
/home/nano/Desktop/images/18082025/12/48/image_18082025_12_48_24_9624.jpg
/home/nano/Desktop/images/18082025/12/48/image_18082025_12_48_15_10642.jpg
/home/nano/Desktop/images/18082025/12/47/image_18082025_12_48_04_9654.jpg
/home/nano/Desktop/images/18082025/12/47/image_18082025_12_47_54_9642.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377699166","1377699171","1377699168","1377699162","1377699164","1377699158"],"photo_ids_order":["1377699158","1377699162","1377699164","1377699166","1377699168","1377699171"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3278525132ac950bfb42e30939496564.jpg","text":"TemporaryFile(/tmp/multipartBody8726322409705488856asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514188379,"filename":"image_18082025_12_48_15_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c0afdc3d3bacb4d4e34093dd31252168.jpg","text":"TemporaryFile(/tmp/multipartBody359091419090039577asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514188379,"filename":"image_18082025_12_47_54_9642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e6a88de3ec5f34dbf3fcd4c25cd39955.jpg","text":"TemporaryFile(/tmp/multipartBody4143017004480329540asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514188379,"filename":"image_18082025_12_48_04_9654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0262b562676e5495f8a20a5d470b064f.jpg","text":"TemporaryFile(/tmp/multipartBody2975385380238254874asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514188379,"filename":"image_18082025_12_48_35_10612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/00688a5897476c6c7776b27193703c88.jpg","text":"TemporaryFile(/tmp/multipartBody6730449183690368953asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514188379,"filename":"image_18082025_12_48_24_9624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0fd59ee0d71b05f9c676089e016e4edf.jpg","text":"TemporaryFile(/tmp/multipartBody2810495668706767852asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514188379,"filename":"image_18082025_12_48_45_9602.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377699164","file1":"1377699162","file0":"1377699158","file4":"1377699168","file5":"1377699171","file3":"1377699166"},"map_files_photo_id_array":[{"photo_id":"1377699171","filename":"file5"},{"photo_id":"1377699164","filename":"file2"},{"photo_id":"1377699168","filename":"file4"},{"photo_id":"1377699162","filename":"file1"},{"photo_id":"1377699158","filename":"file0"},{"photo_id":"1377699166","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377699166":["hashtag1","hashtag2"]},{"1377699171":["hashtag1","hashtag2"]},{"1377699168":["hashtag1","hashtag2"]},{"1377699162":["hashtag1","hashtag2"]},{"1377699164":["hashtag1","hashtag2"]},{"1377699158":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377699166, 1377699171, 1377699168, 1377699162, 1377699164, 1377699158)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.889235734939575 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:49:32.209936
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/49/image_18082025_12_49_44_9602.jpg', 2), ('/home/nano/Desktop/images/18082025/12/49/image_18082025_12_49_35_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/12/49/image_18082025_12_49_25_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/12/49/image_18082025_12_49_14_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/12/48/image_18082025_12_49_05_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/12/48/image_18082025_12_48_54_9606.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/49/image_18082025_12_49_44_9602.jpg', '/home/nano/Desktop/images/18082025/12/49/image_18082025_12_49_35_9610.jpg', '/home/nano/Desktop/images/18082025/12/49/image_18082025_12_49_25_10637.jpg', '/home/nano/Desktop/images/18082025/12/49/image_18082025_12_49_14_9624.jpg', '/home/nano/Desktop/images/18082025/12/48/image_18082025_12_49_05_10621.jpg', '/home/nano/Desktop/images/18082025/12/48/image_18082025_12_48_54_9606.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/49/image_18082025_12_49_44_9602.jpg
/home/nano/Desktop/images/18082025/12/49/image_18082025_12_49_35_9610.jpg
/home/nano/Desktop/images/18082025/12/49/image_18082025_12_49_25_10637.jpg
/home/nano/Desktop/images/18082025/12/49/image_18082025_12_49_14_9624.jpg
/home/nano/Desktop/images/18082025/12/48/image_18082025_12_49_05_10621.jpg
/home/nano/Desktop/images/18082025/12/48/image_18082025_12_48_54_9606.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377699205","1377699208","1377699192","1377699186","1377699189","1377699193"],"photo_ids_order":["1377699186","1377699189","1377699192","1377699193","1377699205","1377699208"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a21e6ccb015504103b041b1e7e820033.jpg","text":"TemporaryFile(/tmp/multipartBody3926605665487375412asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514233469,"filename":"image_18082025_12_49_05_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d7b314f680cc0e4606687a7f50e9eeee.jpg","text":"TemporaryFile(/tmp/multipartBody3903676284877368722asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514233469,"filename":"image_18082025_12_48_54_9606.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d2b51885dabab4d8d4dd094e72365ad0.jpg","text":"TemporaryFile(/tmp/multipartBody3481496140336669532asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514233469,"filename":"image_18082025_12_49_25_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2d85e48301ae02236ec61d03a053424b.jpg","text":"TemporaryFile(/tmp/multipartBody8798085442881580324asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514233469,"filename":"image_18082025_12_49_44_9602.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ec13f6d0dcfdf68a7d4c43ceeb81a4f8.jpg","text":"TemporaryFile(/tmp/multipartBody8336413826752936835asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514233469,"filename":"image_18082025_12_49_35_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d11280c6bf25469b48f7ddf769d684ba.jpg","text":"TemporaryFile(/tmp/multipartBody5977872455632392805asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514233469,"filename":"image_18082025_12_49_14_9624.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377699192","file1":"1377699189","file0":"1377699186","file4":"1377699205","file5":"1377699208","file3":"1377699193"},"map_files_photo_id_array":[{"photo_id":"1377699208","filename":"file5"},{"photo_id":"1377699192","filename":"file2"},{"photo_id":"1377699205","filename":"file4"},{"photo_id":"1377699189","filename":"file1"},{"photo_id":"1377699186","filename":"file0"},{"photo_id":"1377699193","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377699205":["hashtag1","hashtag2"]},{"1377699208":["hashtag1","hashtag2"]},{"1377699192":["hashtag1","hashtag2"]},{"1377699186":["hashtag1","hashtag2"]},{"1377699189":["hashtag1","hashtag2"]},{"1377699193":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377699205, 1377699208, 1377699192, 1377699186, 1377699189, 1377699193)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.95080280303955 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:50:17.291408
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/50/image_18082025_12_50_44_9719.jpg', 2), ('/home/nano/Desktop/images/18082025/12/50/image_18082025_12_50_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/12/50/image_18082025_12_50_25_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/12/50/image_18082025_12_50_14_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/12/49/image_18082025_12_50_05_9676.jpg', 2), ('/home/nano/Desktop/images/18082025/12/49/image_18082025_12_49_55_10641.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/50/image_18082025_12_50_44_9719.jpg', '/home/nano/Desktop/images/18082025/12/50/image_18082025_12_50_34_9641.jpg', '/home/nano/Desktop/images/18082025/12/50/image_18082025_12_50_25_10627.jpg', '/home/nano/Desktop/images/18082025/12/50/image_18082025_12_50_14_9631.jpg', '/home/nano/Desktop/images/18082025/12/49/image_18082025_12_50_05_9676.jpg', '/home/nano/Desktop/images/18082025/12/49/image_18082025_12_49_55_10641.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/50/image_18082025_12_50_44_9719.jpg
/home/nano/Desktop/images/18082025/12/50/image_18082025_12_50_34_9641.jpg
/home/nano/Desktop/images/18082025/12/50/image_18082025_12_50_25_10627.jpg
/home/nano/Desktop/images/18082025/12/50/image_18082025_12_50_14_9631.jpg
/home/nano/Desktop/images/18082025/12/49/image_18082025_12_50_05_9676.jpg
/home/nano/Desktop/images/18082025/12/49/image_18082025_12_49_55_10641.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377699238","1377699232","1377699226","1377699229","1377699234","1377699236"],"photo_ids_order":["1377699226","1377699229","1377699232","1377699234","1377699236","1377699238"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c8d5d098f92d145ce871a1c2a5b7b894.jpg","text":"TemporaryFile(/tmp/multipartBody5190148886487658190asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514278623,"filename":"image_18082025_12_49_55_10641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/52301bebf3f43ad828d001a93893f83e.jpg","text":"TemporaryFile(/tmp/multipartBody1199893391006079483asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514278623,"filename":"image_18082025_12_50_25_10627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8b610fde1874ad98e714f36dfa1fd642.jpg","text":"TemporaryFile(/tmp/multipartBody5496408681266856804asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514278623,"filename":"image_18082025_12_50_44_9719.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/329126bf020d3a72a9f3bffd914b8500.jpg","text":"TemporaryFile(/tmp/multipartBody923058761122521053asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514278623,"filename":"image_18082025_12_50_34_9641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7432ebdcd7b8f308b62d1f4a9d9228e5.jpg","text":"TemporaryFile(/tmp/multipartBody4516874625806830795asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514278623,"filename":"image_18082025_12_50_14_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5fb91eab55f3af0c0dbd163756e1a36e.jpg","text":"TemporaryFile(/tmp/multipartBody3603925065093977312asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514278623,"filename":"image_18082025_12_50_05_9676.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377699232","file1":"1377699229","file0":"1377699226","file4":"1377699236","file5":"1377699238","file3":"1377699234"},"map_files_photo_id_array":[{"photo_id":"1377699238","filename":"file5"},{"photo_id":"1377699232","filename":"file2"},{"photo_id":"1377699236","filename":"file4"},{"photo_id":"1377699229","filename":"file1"},{"photo_id":"1377699226","filename":"file0"},{"photo_id":"1377699234","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377699238":["hashtag1","hashtag2"]},{"1377699232":["hashtag1","hashtag2"]},{"1377699226":["hashtag1","hashtag2"]},{"1377699229":["hashtag1","hashtag2"]},{"1377699234":["hashtag1","hashtag2"]},{"1377699236":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377699238, 1377699232, 1377699226, 1377699229, 1377699234, 1377699236)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.636216163635254 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:51:03.176380
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/32/image_18082025_11_32_45_10604.jpg', 2), ('/home/nano/Desktop/images/18082025/11/32/image_18082025_11_32_34_9677.jpg', 2), ('/home/nano/Desktop/images/18082025/11/32/image_18082025_11_32_24_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/11/32/image_18082025_11_32_15_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/11/31/image_18082025_11_32_04_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/11/31/image_18082025_11_31_55_9622.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/32/image_18082025_11_32_45_10604.jpg', '/home/nano/Desktop/images/18082025/11/32/image_18082025_11_32_34_9677.jpg', '/home/nano/Desktop/images/18082025/11/32/image_18082025_11_32_24_9637.jpg', '/home/nano/Desktop/images/18082025/11/32/image_18082025_11_32_15_10638.jpg', '/home/nano/Desktop/images/18082025/11/31/image_18082025_11_32_04_9623.jpg', '/home/nano/Desktop/images/18082025/11/31/image_18082025_11_31_55_9622.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/32/image_18082025_11_32_45_10604.jpg
/home/nano/Desktop/images/18082025/11/32/image_18082025_11_32_34_9677.jpg
/home/nano/Desktop/images/18082025/11/32/image_18082025_11_32_24_9637.jpg
/home/nano/Desktop/images/18082025/11/32/image_18082025_11_32_15_10638.jpg
/home/nano/Desktop/images/18082025/11/31/image_18082025_11_32_04_9623.jpg
/home/nano/Desktop/images/18082025/11/31/image_18082025_11_31_55_9622.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377699256","1377699259","1377699270","1377699263","1377699266","1377699251"],"photo_ids_order":["1377699251","1377699256","1377699259","1377699263","1377699266","1377699270"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6ad37e11cfc46bdd8e7fc226f364a4fa.jpg","text":"TemporaryFile(/tmp/multipartBody2741656741618599434asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514324435,"filename":"image_18082025_11_32_34_9677.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c9c1cb2c55332a5b38e6bbd96d0f045c.jpg","text":"TemporaryFile(/tmp/multipartBody5082417891146623454asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514324435,"filename":"image_18082025_11_32_24_9637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5a4746e72946482623afa86bc0e417b3.jpg","text":"TemporaryFile(/tmp/multipartBody5057420843407431301asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514324435,"filename":"image_18082025_11_31_55_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7d78bb87d4e0cb8c60f37fbaf224e1ea.jpg","text":"TemporaryFile(/tmp/multipartBody7089804452836386767asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514324435,"filename":"image_18082025_11_32_15_10638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/072452a809e22e2f4eebc43232c59a99.jpg","text":"TemporaryFile(/tmp/multipartBody134816489248779002asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514324435,"filename":"image_18082025_11_32_04_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7eeae1f22677f7016194c5aa5060c36e.jpg","text":"TemporaryFile(/tmp/multipartBody2917294200700993887asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514324435,"filename":"image_18082025_11_32_45_10604.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377699259","file1":"1377699256","file0":"1377699251","file4":"1377699266","file5":"1377699270","file3":"1377699263"},"map_files_photo_id_array":[{"photo_id":"1377699270","filename":"file5"},{"photo_id":"1377699259","filename":"file2"},{"photo_id":"1377699266","filename":"file4"},{"photo_id":"1377699256","filename":"file1"},{"photo_id":"1377699251","filename":"file0"},{"photo_id":"1377699263","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377699256":["hashtag1","hashtag2"]},{"1377699259":["hashtag1","hashtag2"]},{"1377699270":["hashtag1","hashtag2"]},{"1377699263":["hashtag1","hashtag2"]},{"1377699266":["hashtag1","hashtag2"]},{"1377699251":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377699256, 1377699259, 1377699270, 1377699263, 1377699266, 1377699251)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.78289604187012 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:51:47.444497
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/51/image_18082025_12_51_45_10611.jpg', 2), ('/home/nano/Desktop/images/18082025/12/51/image_18082025_12_51_34_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/12/51/image_18082025_12_51_25_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/12/51/image_18082025_12_51_14_9676.jpg', 2), ('/home/nano/Desktop/images/18082025/12/50/image_18082025_12_51_04_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/12/50/image_18082025_12_50_55_10665.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/51/image_18082025_12_51_45_10611.jpg', '/home/nano/Desktop/images/18082025/12/51/image_18082025_12_51_34_9614.jpg', '/home/nano/Desktop/images/18082025/12/51/image_18082025_12_51_25_10655.jpg', '/home/nano/Desktop/images/18082025/12/51/image_18082025_12_51_14_9676.jpg', '/home/nano/Desktop/images/18082025/12/50/image_18082025_12_51_04_9641.jpg', '/home/nano/Desktop/images/18082025/12/50/image_18082025_12_50_55_10665.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/51/image_18082025_12_51_45_10611.jpg
/home/nano/Desktop/images/18082025/12/51/image_18082025_12_51_34_9614.jpg
/home/nano/Desktop/images/18082025/12/51/image_18082025_12_51_25_10655.jpg
/home/nano/Desktop/images/18082025/12/51/image_18082025_12_51_14_9676.jpg
/home/nano/Desktop/images/18082025/12/50/image_18082025_12_51_04_9641.jpg
/home/nano/Desktop/images/18082025/12/50/image_18082025_12_50_55_10665.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377699295","1377699297","1377699300","1377699293","1377699287","1377699290"],"photo_ids_order":["1377699287","1377699290","1377699293","1377699295","1377699297","1377699300"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a46e8604335fd467998b277ccf7e67b3.jpg","text":"TemporaryFile(/tmp/multipartBody6039448116779888237asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514368785,"filename":"image_18082025_12_51_14_9676.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/69546d5c012baa7e6e6d065990d80b00.jpg","text":"TemporaryFile(/tmp/multipartBody2844882603612130970asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514368785,"filename":"image_18082025_12_51_04_9641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/97112bbc19cbf41d01e973cc2b021138.jpg","text":"TemporaryFile(/tmp/multipartBody865134062770580055asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514368785,"filename":"image_18082025_12_50_55_10665.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dc875d6856f5aa2a4ac4827e8875aa18.jpg","text":"TemporaryFile(/tmp/multipartBody8566909031534373828asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514368785,"filename":"image_18082025_12_51_25_10655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a9e7f6cb659d52b39f1e3403bd18479b.jpg","text":"TemporaryFile(/tmp/multipartBody7387014964072149435asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514368785,"filename":"image_18082025_12_51_45_10611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/224a12dcac7abe198ae9e20c9f5e694e.jpg","text":"TemporaryFile(/tmp/multipartBody678574706661438741asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514368785,"filename":"image_18082025_12_51_34_9614.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377699293","file1":"1377699290","file0":"1377699287","file4":"1377699297","file5":"1377699300","file3":"1377699295"},"map_files_photo_id_array":[{"photo_id":"1377699300","filename":"file5"},{"photo_id":"1377699293","filename":"file2"},{"photo_id":"1377699297","filename":"file4"},{"photo_id":"1377699290","filename":"file1"},{"photo_id":"1377699287","filename":"file0"},{"photo_id":"1377699295","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377699295":["hashtag1","hashtag2"]},{"1377699297":["hashtag1","hashtag2"]},{"1377699300":["hashtag1","hashtag2"]},{"1377699293":["hashtag1","hashtag2"]},{"1377699287":["hashtag1","hashtag2"]},{"1377699290":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377699295, 1377699297, 1377699300, 1377699293, 1377699287, 1377699290)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.41071653366089 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:52:32.533036
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/52/image_18082025_12_52_45_10616.jpg', 2), ('/home/nano/Desktop/images/18082025/12/52/image_18082025_12_52_34_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/12/52/image_18082025_12_52_25_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/12/52/image_18082025_12_52_15_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/12/51/image_18082025_12_52_04_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/12/51/image_18082025_12_51_55_9619.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/52/image_18082025_12_52_45_10616.jpg', '/home/nano/Desktop/images/18082025/12/52/image_18082025_12_52_34_9621.jpg', '/home/nano/Desktop/images/18082025/12/52/image_18082025_12_52_25_9610.jpg', '/home/nano/Desktop/images/18082025/12/52/image_18082025_12_52_15_10642.jpg', '/home/nano/Desktop/images/18082025/12/51/image_18082025_12_52_04_9638.jpg', '/home/nano/Desktop/images/18082025/12/51/image_18082025_12_51_55_9619.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/52/image_18082025_12_52_45_10616.jpg
/home/nano/Desktop/images/18082025/12/52/image_18082025_12_52_34_9621.jpg
/home/nano/Desktop/images/18082025/12/52/image_18082025_12_52_25_9610.jpg
/home/nano/Desktop/images/18082025/12/52/image_18082025_12_52_15_10642.jpg
/home/nano/Desktop/images/18082025/12/51/image_18082025_12_52_04_9638.jpg
/home/nano/Desktop/images/18082025/12/51/image_18082025_12_51_55_9619.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377699322","1377699331","1377699328","1377699324","1377699318","1377699320"],"photo_ids_order":["1377699318","1377699320","1377699322","1377699324","1377699328","1377699331"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a53e7fe693a77ee40d0e3a0695c30ba2.jpg","text":"TemporaryFile(/tmp/multipartBody358175638059777327asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514413620,"filename":"image_18082025_12_52_25_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7a64671882461a004fb965bfd563a763.jpg","text":"TemporaryFile(/tmp/multipartBody5341809617196655297asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514413620,"filename":"image_18082025_12_51_55_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3eefd7e64f4c68ba129f5227630d0aed.jpg","text":"TemporaryFile(/tmp/multipartBody5360369055132345582asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514413620,"filename":"image_18082025_12_52_04_9638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/afaff820918a1390e68cbf71b9537b5e.jpg","text":"TemporaryFile(/tmp/multipartBody5881542118285468805asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514413620,"filename":"image_18082025_12_52_15_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/68acccb0fa4793c4902ed4f99297f331.jpg","text":"TemporaryFile(/tmp/multipartBody6369378570331392501asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514413620,"filename":"image_18082025_12_52_45_10616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/68a49de14a155daa479834372fa839f1.jpg","text":"TemporaryFile(/tmp/multipartBody8552023003366568666asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514413620,"filename":"image_18082025_12_52_34_9621.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377699322","file1":"1377699320","file0":"1377699318","file4":"1377699328","file5":"1377699331","file3":"1377699324"},"map_files_photo_id_array":[{"photo_id":"1377699331","filename":"file5"},{"photo_id":"1377699322","filename":"file2"},{"photo_id":"1377699328","filename":"file4"},{"photo_id":"1377699320","filename":"file1"},{"photo_id":"1377699318","filename":"file0"},{"photo_id":"1377699324","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377699322":["hashtag1","hashtag2"]},{"1377699331":["hashtag1","hashtag2"]},{"1377699328":["hashtag1","hashtag2"]},{"1377699324":["hashtag1","hashtag2"]},{"1377699318":["hashtag1","hashtag2"]},{"1377699320":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377699322, 1377699331, 1377699328, 1377699324, 1377699318, 1377699320)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.7895827293396 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:53:17.635957
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/53/image_18082025_12_53_45_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/12/53/image_18082025_12_53_35_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/12/53/image_18082025_12_53_24_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/12/53/image_18082025_12_53_15_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/12/52/image_18082025_12_53_05_10620.jpg', 2), ('/home/nano/Desktop/images/18082025/12/52/image_18082025_12_52_54_9608.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/53/image_18082025_12_53_45_9607.jpg', '/home/nano/Desktop/images/18082025/12/53/image_18082025_12_53_35_10628.jpg', '/home/nano/Desktop/images/18082025/12/53/image_18082025_12_53_24_9615.jpg', '/home/nano/Desktop/images/18082025/12/53/image_18082025_12_53_15_9643.jpg', '/home/nano/Desktop/images/18082025/12/52/image_18082025_12_53_05_10620.jpg', '/home/nano/Desktop/images/18082025/12/52/image_18082025_12_52_54_9608.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/53/image_18082025_12_53_45_9607.jpg
/home/nano/Desktop/images/18082025/12/53/image_18082025_12_53_35_10628.jpg
/home/nano/Desktop/images/18082025/12/53/image_18082025_12_53_24_9615.jpg
/home/nano/Desktop/images/18082025/12/53/image_18082025_12_53_15_9643.jpg
/home/nano/Desktop/images/18082025/12/52/image_18082025_12_53_05_10620.jpg
/home/nano/Desktop/images/18082025/12/52/image_18082025_12_52_54_9608.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377699433","1377699535","1377699485","1377699510","1377699461","1377699404"],"photo_ids_order":["1377699404","1377699433","1377699461","1377699485","1377699510","1377699535"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/137a253bfee7c396bb7c00350d22d194.jpg","text":"TemporaryFile(/tmp/multipartBody750869421752515455asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514458747,"filename":"image_18082025_12_53_35_10628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a219181ca64696ffc8db57094826c72a.jpg","text":"TemporaryFile(/tmp/multipartBody3298406275301847127asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514458747,"filename":"image_18082025_12_52_54_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5c464cec7a09e62b04c0d7affbfe9238.jpg","text":"TemporaryFile(/tmp/multipartBody743955825614221830asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514458747,"filename":"image_18082025_12_53_15_9643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7ed1b32804a170f5ad3399c9e238c7a1.jpg","text":"TemporaryFile(/tmp/multipartBody3315329778708639313asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514458747,"filename":"image_18082025_12_53_05_10620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/47f41426ced6dafbfd5edaa9c7ca4c3c.jpg","text":"TemporaryFile(/tmp/multipartBody2781853749048020820asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514458747,"filename":"image_18082025_12_53_24_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7beeb0ded6769ed8fcbc4cb5b6b327e1.jpg","text":"TemporaryFile(/tmp/multipartBody2293413622153747350asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514458747,"filename":"image_18082025_12_53_45_9607.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377699461","file1":"1377699433","file0":"1377699404","file4":"1377699510","file5":"1377699535","file3":"1377699485"},"map_files_photo_id_array":[{"photo_id":"1377699535","filename":"file5"},{"photo_id":"1377699461","filename":"file2"},{"photo_id":"1377699510","filename":"file4"},{"photo_id":"1377699433","filename":"file1"},{"photo_id":"1377699404","filename":"file0"},{"photo_id":"1377699485","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377699433":["hashtag1","hashtag2"]},{"1377699535":["hashtag1","hashtag2"]},{"1377699485":["hashtag1","hashtag2"]},{"1377699510":["hashtag1","hashtag2"]},{"1377699461":["hashtag1","hashtag2"]},{"1377699404":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377699433, 1377699535, 1377699485, 1377699510, 1377699461, 1377699404)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.12808394432068 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:54:03.596355
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/31/image_18082025_11_31_45_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/11/31/image_18082025_11_31_34_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/11/31/image_18082025_11_31_25_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/11/31/image_18082025_11_31_15_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/11/30/image_18082025_11_31_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/11/30/image_18082025_11_30_55_9627.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/31/image_18082025_11_31_45_10651.jpg', '/home/nano/Desktop/images/18082025/11/31/image_18082025_11_31_34_9627.jpg', '/home/nano/Desktop/images/18082025/11/31/image_18082025_11_31_25_9653.jpg', '/home/nano/Desktop/images/18082025/11/31/image_18082025_11_31_15_10665.jpg', '/home/nano/Desktop/images/18082025/11/30/image_18082025_11_31_04_9639.jpg', '/home/nano/Desktop/images/18082025/11/30/image_18082025_11_30_55_9627.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/31/image_18082025_11_31_45_10651.jpg
/home/nano/Desktop/images/18082025/11/31/image_18082025_11_31_34_9627.jpg
/home/nano/Desktop/images/18082025/11/31/image_18082025_11_31_25_9653.jpg
/home/nano/Desktop/images/18082025/11/31/image_18082025_11_31_15_10665.jpg
/home/nano/Desktop/images/18082025/11/30/image_18082025_11_31_04_9639.jpg
/home/nano/Desktop/images/18082025/11/30/image_18082025_11_30_55_9627.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.0821990966796875 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:54:17.780310
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/54/image_18082025_12_54_44_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/12/54/image_18082025_12_54_35_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/12/54/image_18082025_12_54_25_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/12/54/image_18082025_12_54_14_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/12/53/image_18082025_12_54_05_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/12/53/image_18082025_12_53_54_9604.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/54/image_18082025_12_54_44_9615.jpg', '/home/nano/Desktop/images/18082025/12/54/image_18082025_12_54_35_9611.jpg', '/home/nano/Desktop/images/18082025/12/54/image_18082025_12_54_25_10626.jpg', '/home/nano/Desktop/images/18082025/12/54/image_18082025_12_54_14_9648.jpg', '/home/nano/Desktop/images/18082025/12/53/image_18082025_12_54_05_10642.jpg', '/home/nano/Desktop/images/18082025/12/53/image_18082025_12_53_54_9604.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/54/image_18082025_12_54_44_9615.jpg
/home/nano/Desktop/images/18082025/12/54/image_18082025_12_54_35_9611.jpg
/home/nano/Desktop/images/18082025/12/54/image_18082025_12_54_25_10626.jpg
/home/nano/Desktop/images/18082025/12/54/image_18082025_12_54_14_9648.jpg
/home/nano/Desktop/images/18082025/12/53/image_18082025_12_54_05_10642.jpg
/home/nano/Desktop/images/18082025/12/53/image_18082025_12_53_54_9604.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377699712","1377699700","1377699675","1377699678","1377699717","1377699697"],"photo_ids_order":["1377699675","1377699678","1377699697","1377699700","1377699712","1377699717"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/37111869109ce5a0e9375738a9567705.jpg","text":"TemporaryFile(/tmp/multipartBody8919567982540564044asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514519135,"filename":"image_18082025_12_54_05_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/09c6f765046a1ce4e928945182e376b6.jpg","text":"TemporaryFile(/tmp/multipartBody1206073169420585187asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514519135,"filename":"image_18082025_12_54_14_9648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ca06f4672f40312667a9bfa2034ffa9a.jpg","text":"TemporaryFile(/tmp/multipartBody713030154794780534asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514519135,"filename":"image_18082025_12_54_44_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b720ff6df2454b9ca43d2630c919964f.jpg","text":"TemporaryFile(/tmp/multipartBody3354234127475233840asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514519135,"filename":"image_18082025_12_54_35_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ff2f45cba1b7b2f80c9fff40578def07.jpg","text":"TemporaryFile(/tmp/multipartBody325202798696094497asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514519135,"filename":"image_18082025_12_53_54_9604.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ff477d4f7e378e6fc592aee54fefaee7.jpg","text":"TemporaryFile(/tmp/multipartBody8717779826500380337asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514519135,"filename":"image_18082025_12_54_25_10626.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377699697","file1":"1377699678","file0":"1377699675","file4":"1377699712","file5":"1377699717","file3":"1377699700"},"map_files_photo_id_array":[{"photo_id":"1377699717","filename":"file5"},{"photo_id":"1377699697","filename":"file2"},{"photo_id":"1377699712","filename":"file4"},{"photo_id":"1377699678","filename":"file1"},{"photo_id":"1377699675","filename":"file0"},{"photo_id":"1377699700","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377699712":["hashtag1","hashtag2"]},{"1377699700":["hashtag1","hashtag2"]},{"1377699675":["hashtag1","hashtag2"]},{"1377699678":["hashtag1","hashtag2"]},{"1377699717":["hashtag1","hashtag2"]},{"1377699697":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377699712, 1377699700, 1377699675, 1377699678, 1377699717, 1377699697)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.41917634010315 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:55:02.633199
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/31/image_18082025_11_31_45_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/11/31/image_18082025_11_31_34_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/11/31/image_18082025_11_31_25_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/11/31/image_18082025_11_31_15_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/11/30/image_18082025_11_31_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/11/30/image_18082025_11_30_55_9627.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/31/image_18082025_11_31_45_10651.jpg', '/home/nano/Desktop/images/18082025/11/31/image_18082025_11_31_34_9627.jpg', '/home/nano/Desktop/images/18082025/11/31/image_18082025_11_31_25_9653.jpg', '/home/nano/Desktop/images/18082025/11/31/image_18082025_11_31_15_10665.jpg', '/home/nano/Desktop/images/18082025/11/30/image_18082025_11_31_04_9639.jpg', '/home/nano/Desktop/images/18082025/11/30/image_18082025_11_30_55_9627.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/31/image_18082025_11_31_45_10651.jpg
/home/nano/Desktop/images/18082025/11/31/image_18082025_11_31_34_9627.jpg
/home/nano/Desktop/images/18082025/11/31/image_18082025_11_31_25_9653.jpg
/home/nano/Desktop/images/18082025/11/31/image_18082025_11_31_15_10665.jpg
/home/nano/Desktop/images/18082025/11/30/image_18082025_11_31_04_9639.jpg
/home/nano/Desktop/images/18082025/11/30/image_18082025_11_30_55_9627.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377699742","1377699753","1377699735","1377699750","1377699738","1377699746"],"photo_ids_order":["1377699735","1377699738","1377699742","1377699746","1377699750","1377699753"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c29c9d8fec3a969a8189f7fc63bb6cb5.jpg","text":"TemporaryFile(/tmp/multipartBody162774617027207696asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514563786,"filename":"image_18082025_11_31_25_9653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0c21a0d3e861e4ea39da81b2a149e9f7.jpg","text":"TemporaryFile(/tmp/multipartBody462615681882533275asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514563786,"filename":"image_18082025_11_30_55_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2d52faa87540239eea7373404ebd94e1.jpg","text":"TemporaryFile(/tmp/multipartBody2392243136353105963asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514563786,"filename":"image_18082025_11_31_45_10651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2275a337c4e8dd030b84ade37ee2f052.jpg","text":"TemporaryFile(/tmp/multipartBody401870502649406699asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514563786,"filename":"image_18082025_11_31_04_9639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/35e6b1bb4472f78065d2469bf62b92ed.jpg","text":"TemporaryFile(/tmp/multipartBody7666649135570588244asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514563786,"filename":"image_18082025_11_31_34_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6ece37b853a6072c9360ac9d7d064064.jpg","text":"TemporaryFile(/tmp/multipartBody8266425230297751657asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514563786,"filename":"image_18082025_11_31_15_10665.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377699742","file1":"1377699738","file0":"1377699735","file4":"1377699750","file5":"1377699753","file3":"1377699746"},"map_files_photo_id_array":[{"photo_id":"1377699753","filename":"file5"},{"photo_id":"1377699742","filename":"file2"},{"photo_id":"1377699750","filename":"file4"},{"photo_id":"1377699738","filename":"file1"},{"photo_id":"1377699735","filename":"file0"},{"photo_id":"1377699746","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377699742":["hashtag1","hashtag2"]},{"1377699753":["hashtag1","hashtag2"]},{"1377699735":["hashtag1","hashtag2"]},{"1377699750":["hashtag1","hashtag2"]},{"1377699738":["hashtag1","hashtag2"]},{"1377699746":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377699742, 1377699753, 1377699735, 1377699750, 1377699738, 1377699746)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.77371096611023 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:55:46.870540
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/55/image_18082025_12_55_45_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/12/55/image_18082025_12_55_34_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/12/55/image_18082025_12_55_25_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/12/55/image_18082025_12_55_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/12/54/image_18082025_12_55_05_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/12/54/image_18082025_12_54_55_10616.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/55/image_18082025_12_55_45_10627.jpg', '/home/nano/Desktop/images/18082025/12/55/image_18082025_12_55_34_9625.jpg', '/home/nano/Desktop/images/18082025/12/55/image_18082025_12_55_25_10645.jpg', '/home/nano/Desktop/images/18082025/12/55/image_18082025_12_55_14_9656.jpg', '/home/nano/Desktop/images/18082025/12/54/image_18082025_12_55_05_9615.jpg', '/home/nano/Desktop/images/18082025/12/54/image_18082025_12_54_55_10616.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/55/image_18082025_12_55_45_10627.jpg
/home/nano/Desktop/images/18082025/12/55/image_18082025_12_55_34_9625.jpg
/home/nano/Desktop/images/18082025/12/55/image_18082025_12_55_25_10645.jpg
/home/nano/Desktop/images/18082025/12/55/image_18082025_12_55_14_9656.jpg
/home/nano/Desktop/images/18082025/12/54/image_18082025_12_55_05_9615.jpg
/home/nano/Desktop/images/18082025/12/54/image_18082025_12_54_55_10616.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377699772","1377699766","1377699768","1377699783","1377699779","1377699776"],"photo_ids_order":["1377699766","1377699768","1377699772","1377699776","1377699779","1377699783"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e8533df4639ce13dc7b9751e98581431.jpg","text":"TemporaryFile(/tmp/multipartBody7095766511131732108asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514608162,"filename":"image_18082025_12_55_25_10645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ab73cdb96001db480072a2e7f6e86c13.jpg","text":"TemporaryFile(/tmp/multipartBody7175266043351958164asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514608162,"filename":"image_18082025_12_55_45_10627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3a7aa6c337023c3a2bb74345e0da1a4b.jpg","text":"TemporaryFile(/tmp/multipartBody3353965759788579025asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514608162,"filename":"image_18082025_12_55_34_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c29a72343a3563aa73542d9d4d80d5f0.jpg","text":"TemporaryFile(/tmp/multipartBody1902355391559027949asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514608162,"filename":"image_18082025_12_54_55_10616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8ea8d6d96ed66dc8b94e673e0d718f09.jpg","text":"TemporaryFile(/tmp/multipartBody5289730695701063806asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514608162,"filename":"image_18082025_12_55_05_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/de9bead1f63aac8898f39805873068ae.jpg","text":"TemporaryFile(/tmp/multipartBody5801951810487912055asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514608162,"filename":"image_18082025_12_55_14_9656.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377699772","file1":"1377699768","file0":"1377699766","file4":"1377699779","file5":"1377699783","file3":"1377699776"},"map_files_photo_id_array":[{"photo_id":"1377699783","filename":"file5"},{"photo_id":"1377699772","filename":"file2"},{"photo_id":"1377699779","filename":"file4"},{"photo_id":"1377699768","filename":"file1"},{"photo_id":"1377699766","filename":"file0"},{"photo_id":"1377699776","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377699772":["hashtag1","hashtag2"]},{"1377699766":["hashtag1","hashtag2"]},{"1377699768":["hashtag1","hashtag2"]},{"1377699783":["hashtag1","hashtag2"]},{"1377699779":["hashtag1","hashtag2"]},{"1377699776":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377699772, 1377699766, 1377699768, 1377699783, 1377699779, 1377699776)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.502866506576538 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:56:31.988192
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/56/image_18082025_12_56_45_10620.jpg', 2), ('/home/nano/Desktop/images/18082025/12/56/image_18082025_12_56_34_9603.jpg', 2), ('/home/nano/Desktop/images/18082025/12/56/image_18082025_12_56_25_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/12/56/image_18082025_12_56_15_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/12/55/image_18082025_12_56_04_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/12/55/image_18082025_12_55_55_9624.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/56/image_18082025_12_56_45_10620.jpg', '/home/nano/Desktop/images/18082025/12/56/image_18082025_12_56_34_9603.jpg', '/home/nano/Desktop/images/18082025/12/56/image_18082025_12_56_25_9615.jpg', '/home/nano/Desktop/images/18082025/12/56/image_18082025_12_56_15_10647.jpg', '/home/nano/Desktop/images/18082025/12/55/image_18082025_12_56_04_9620.jpg', '/home/nano/Desktop/images/18082025/12/55/image_18082025_12_55_55_9624.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/56/image_18082025_12_56_45_10620.jpg
/home/nano/Desktop/images/18082025/12/56/image_18082025_12_56_34_9603.jpg
/home/nano/Desktop/images/18082025/12/56/image_18082025_12_56_25_9615.jpg
/home/nano/Desktop/images/18082025/12/56/image_18082025_12_56_15_10647.jpg
/home/nano/Desktop/images/18082025/12/55/image_18082025_12_56_04_9620.jpg
/home/nano/Desktop/images/18082025/12/55/image_18082025_12_55_55_9624.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377699805","1377699808","1377699802","1377699810","1377699800","1377699803"],"photo_ids_order":["1377699800","1377699802","1377699803","1377699805","1377699808","1377699810"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/24dc95eea65c8a7ac4463c2f398d3cc6.jpg","text":"TemporaryFile(/tmp/multipartBody6261059165778991565asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514653203,"filename":"image_18082025_12_56_15_10647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e3fb9e3aa74dd0e65ba5abfd4c8729fa.jpg","text":"TemporaryFile(/tmp/multipartBody7949986861053401610asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514653203,"filename":"image_18082025_12_56_04_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1cd9d0f1b8d388a2d7dc87b8135bbc60.jpg","text":"TemporaryFile(/tmp/multipartBody7312861513743902479asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514653203,"filename":"image_18082025_12_56_34_9603.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f62b73effc734586d756ded77a646aed.jpg","text":"TemporaryFile(/tmp/multipartBody6248179069386168066asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514653203,"filename":"image_18082025_12_55_55_9624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/581cfbc795edb6d363792ddce070a7dd.jpg","text":"TemporaryFile(/tmp/multipartBody3310247080760609185asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514653203,"filename":"image_18082025_12_56_45_10620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/51182fd6cc9429289761fd38cf6691a7.jpg","text":"TemporaryFile(/tmp/multipartBody2978627552177992125asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514653203,"filename":"image_18082025_12_56_25_9615.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377699803","file1":"1377699802","file0":"1377699800","file4":"1377699808","file5":"1377699810","file3":"1377699805"},"map_files_photo_id_array":[{"photo_id":"1377699810","filename":"file5"},{"photo_id":"1377699803","filename":"file2"},{"photo_id":"1377699808","filename":"file4"},{"photo_id":"1377699802","filename":"file1"},{"photo_id":"1377699800","filename":"file0"},{"photo_id":"1377699805","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377699805":["hashtag1","hashtag2"]},{"1377699808":["hashtag1","hashtag2"]},{"1377699802":["hashtag1","hashtag2"]},{"1377699810":["hashtag1","hashtag2"]},{"1377699800":["hashtag1","hashtag2"]},{"1377699803":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377699805, 1377699808, 1377699802, 1377699810, 1377699800, 1377699803)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.859564065933228 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:57:17.066465
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/57/image_18082025_12_57_44_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/12/57/image_18082025_12_57_35_10617.jpg', 2), ('/home/nano/Desktop/images/18082025/12/57/image_18082025_12_57_24_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/12/57/image_18082025_12_57_15_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/12/56/image_18082025_12_57_05_10633.jpg', 2), ('/home/nano/Desktop/images/18082025/12/56/image_18082025_12_56_54_9614.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/57/image_18082025_12_57_44_9613.jpg', '/home/nano/Desktop/images/18082025/12/57/image_18082025_12_57_35_10617.jpg', '/home/nano/Desktop/images/18082025/12/57/image_18082025_12_57_24_9612.jpg', '/home/nano/Desktop/images/18082025/12/57/image_18082025_12_57_15_9621.jpg', '/home/nano/Desktop/images/18082025/12/56/image_18082025_12_57_05_10633.jpg', '/home/nano/Desktop/images/18082025/12/56/image_18082025_12_56_54_9614.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/57/image_18082025_12_57_44_9613.jpg
/home/nano/Desktop/images/18082025/12/57/image_18082025_12_57_35_10617.jpg
/home/nano/Desktop/images/18082025/12/57/image_18082025_12_57_24_9612.jpg
/home/nano/Desktop/images/18082025/12/57/image_18082025_12_57_15_9621.jpg
/home/nano/Desktop/images/18082025/12/56/image_18082025_12_57_05_10633.jpg
/home/nano/Desktop/images/18082025/12/56/image_18082025_12_56_54_9614.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377699838","1377699832","1377699835","1377699840","1377699827","1377699824"],"photo_ids_order":["1377699824","1377699827","1377699832","1377699835","1377699838","1377699840"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fe0d733fe6fff88ab33d56e7259cdeda.jpg","text":"TemporaryFile(/tmp/multipartBody6155236005066798303asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514698167,"filename":"image_18082025_12_57_05_10633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ff3adcda4b6a50fb0b76f485cc4eb013.jpg","text":"TemporaryFile(/tmp/multipartBody8955659136988433877asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514698167,"filename":"image_18082025_12_57_24_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1ab36914ec6d68278933e2a104bf386e.jpg","text":"TemporaryFile(/tmp/multipartBody4880683913021899746asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514698167,"filename":"image_18082025_12_57_15_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1a35492cd8612ee1083ed4df141a67ae.jpg","text":"TemporaryFile(/tmp/multipartBody8385839728570008838asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514698167,"filename":"image_18082025_12_56_54_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/039f9746addf823a80771ccf770b5ed8.jpg","text":"TemporaryFile(/tmp/multipartBody2183824149868380583asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514698167,"filename":"image_18082025_12_57_35_10617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/11956b90914475eab4d694b87319da5a.jpg","text":"TemporaryFile(/tmp/multipartBody1283468961015551185asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514698167,"filename":"image_18082025_12_57_44_9613.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377699832","file1":"1377699827","file0":"1377699824","file4":"1377699838","file5":"1377699840","file3":"1377699835"},"map_files_photo_id_array":[{"photo_id":"1377699840","filename":"file5"},{"photo_id":"1377699832","filename":"file2"},{"photo_id":"1377699838","filename":"file4"},{"photo_id":"1377699827","filename":"file1"},{"photo_id":"1377699824","filename":"file0"},{"photo_id":"1377699835","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377699838":["hashtag1","hashtag2"]},{"1377699832":["hashtag1","hashtag2"]},{"1377699835":["hashtag1","hashtag2"]},{"1377699840":["hashtag1","hashtag2"]},{"1377699827":["hashtag1","hashtag2"]},{"1377699824":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377699838, 1377699832, 1377699835, 1377699840, 1377699827, 1377699824)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.60393023490906 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:59:03.340761
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/30/image_18082025_11_30_45_10662.jpg', 2), ('/home/nano/Desktop/images/18082025/11/30/image_18082025_11_30_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/11/30/image_18082025_11_30_25_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/11/30/image_18082025_11_30_14_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/11/29/image_18082025_11_30_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/11/29/image_18082025_11_29_55_10636.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/30/image_18082025_11_30_45_10662.jpg', '/home/nano/Desktop/images/18082025/11/30/image_18082025_11_30_34_9641.jpg', '/home/nano/Desktop/images/18082025/11/30/image_18082025_11_30_25_10658.jpg', '/home/nano/Desktop/images/18082025/11/30/image_18082025_11_30_14_9645.jpg', '/home/nano/Desktop/images/18082025/11/29/image_18082025_11_30_04_9651.jpg', '/home/nano/Desktop/images/18082025/11/29/image_18082025_11_29_55_10636.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/30/image_18082025_11_30_45_10662.jpg
/home/nano/Desktop/images/18082025/11/30/image_18082025_11_30_34_9641.jpg
/home/nano/Desktop/images/18082025/11/30/image_18082025_11_30_25_10658.jpg
/home/nano/Desktop/images/18082025/11/30/image_18082025_11_30_14_9645.jpg
/home/nano/Desktop/images/18082025/11/29/image_18082025_11_30_04_9651.jpg
/home/nano/Desktop/images/18082025/11/29/image_18082025_11_29_55_10636.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377699862","1377699865","1377699879","1377699884","1377699869","1377699874"],"photo_ids_order":["1377699862","1377699865","1377699869","1377699874","1377699879","1377699884"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a38ebd3bf7c33f58345bf8f5ccc4a557.jpg","text":"TemporaryFile(/tmp/multipartBody5201607713454110113asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514804623,"filename":"image_18082025_11_30_45_10662.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/23f8cd14a480b0a05035072938d42220.jpg","text":"TemporaryFile(/tmp/multipartBody666614622138852111asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514804623,"filename":"image_18082025_11_30_34_9641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cbe0a43b9d4b9babf94535c4e45c8036.jpg","text":"TemporaryFile(/tmp/multipartBody3934577209402995978asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514804623,"filename":"image_18082025_11_30_04_9651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/398687136e9c9c0ae856d99b5be11068.jpg","text":"TemporaryFile(/tmp/multipartBody2522550013496756805asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514804623,"filename":"image_18082025_11_29_55_10636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b2ebc7a02247784b3c800ee55abf959c.jpg","text":"TemporaryFile(/tmp/multipartBody7800698992425474716asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514804623,"filename":"image_18082025_11_30_25_10658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/29c4fcd8abe2bba653d463f0754130b4.jpg","text":"TemporaryFile(/tmp/multipartBody6700670072370435558asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514804623,"filename":"image_18082025_11_30_14_9645.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377699869","file1":"1377699865","file0":"1377699862","file4":"1377699879","file5":"1377699884","file3":"1377699874"},"map_files_photo_id_array":[{"photo_id":"1377699884","filename":"file5"},{"photo_id":"1377699869","filename":"file2"},{"photo_id":"1377699879","filename":"file4"},{"photo_id":"1377699865","filename":"file1"},{"photo_id":"1377699862","filename":"file0"},{"photo_id":"1377699874","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377699862":["hashtag1","hashtag2"]},{"1377699865":["hashtag1","hashtag2"]},{"1377699879":["hashtag1","hashtag2"]},{"1377699884":["hashtag1","hashtag2"]},{"1377699869":["hashtag1","hashtag2"]},{"1377699874":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377699862, 1377699865, 1377699879, 1377699884, 1377699869, 1377699874)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.57746911048889 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 12:59:47.360362
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/59/image_18082025_12_59_45_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/12/59/image_18082025_12_59_34_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/12/59/image_18082025_12_59_25_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/12/59/image_18082025_12_59_14_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/12/58/image_18082025_12_59_05_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/12/58/image_18082025_12_58_55_10618.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/59/image_18082025_12_59_45_10628.jpg', '/home/nano/Desktop/images/18082025/12/59/image_18082025_12_59_34_9613.jpg', '/home/nano/Desktop/images/18082025/12/59/image_18082025_12_59_25_10629.jpg', '/home/nano/Desktop/images/18082025/12/59/image_18082025_12_59_14_9627.jpg', '/home/nano/Desktop/images/18082025/12/58/image_18082025_12_59_05_9625.jpg', '/home/nano/Desktop/images/18082025/12/58/image_18082025_12_58_55_10618.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/59/image_18082025_12_59_45_10628.jpg
/home/nano/Desktop/images/18082025/12/59/image_18082025_12_59_34_9613.jpg
/home/nano/Desktop/images/18082025/12/59/image_18082025_12_59_25_10629.jpg
/home/nano/Desktop/images/18082025/12/59/image_18082025_12_59_14_9627.jpg
/home/nano/Desktop/images/18082025/12/58/image_18082025_12_59_05_9625.jpg
/home/nano/Desktop/images/18082025/12/58/image_18082025_12_58_55_10618.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377699919","1377699910","1377699913","1377699907","1377699916","1377699921"],"photo_ids_order":["1377699907","1377699910","1377699913","1377699916","1377699919","1377699921"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/09464212019925e98ea0c68b53c8a381.jpg","text":"TemporaryFile(/tmp/multipartBody4586931663891275949asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514848769,"filename":"image_18082025_12_59_05_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ff4baedfd3907fcc73c96b6b60860006.jpg","text":"TemporaryFile(/tmp/multipartBody7437089724354517716asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514848769,"filename":"image_18082025_12_59_34_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ed6ba568a17ee3b87181e743107e70e5.jpg","text":"TemporaryFile(/tmp/multipartBody8776677520678748942asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514848769,"filename":"image_18082025_12_59_25_10629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7e1dd84d912800461f86ad49572df7b5.jpg","text":"TemporaryFile(/tmp/multipartBody1333099950652103201asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514848769,"filename":"image_18082025_12_59_45_10628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/83ba3845cfb09e5c888388ab7c7a6e2e.jpg","text":"TemporaryFile(/tmp/multipartBody5658464991235268655asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514848769,"filename":"image_18082025_12_59_14_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/70b844cdf2f0edb4b9bf284467158307.jpg","text":"TemporaryFile(/tmp/multipartBody8586446660281053341asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514848769,"filename":"image_18082025_12_58_55_10618.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377699913","file1":"1377699910","file0":"1377699907","file4":"1377699919","file5":"1377699921","file3":"1377699916"},"map_files_photo_id_array":[{"photo_id":"1377699921","filename":"file5"},{"photo_id":"1377699913","filename":"file2"},{"photo_id":"1377699919","filename":"file4"},{"photo_id":"1377699910","filename":"file1"},{"photo_id":"1377699907","filename":"file0"},{"photo_id":"1377699916","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377699919":["hashtag1","hashtag2"]},{"1377699910":["hashtag1","hashtag2"]},{"1377699913":["hashtag1","hashtag2"]},{"1377699907":["hashtag1","hashtag2"]},{"1377699916":["hashtag1","hashtag2"]},{"1377699921":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377699919, 1377699910, 1377699913, 1377699907, 1377699916, 1377699921)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.0263786315918 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:00:32.436008
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/00/image_18082025_13_00_54_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/13/00/image_18082025_13_00_34_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/13/00/image_18082025_13_00_25_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/13/00/image_18082025_13_00_15_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/12/59/image_18082025_13_00_04_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/12/59/image_18082025_12_59_55_9618.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/00/image_18082025_13_00_54_9632.jpg', '/home/nano/Desktop/images/18082025/13/00/image_18082025_13_00_34_9639.jpg', '/home/nano/Desktop/images/18082025/13/00/image_18082025_13_00_25_9657.jpg', '/home/nano/Desktop/images/18082025/13/00/image_18082025_13_00_15_10641.jpg', '/home/nano/Desktop/images/18082025/12/59/image_18082025_13_00_04_9630.jpg', '/home/nano/Desktop/images/18082025/12/59/image_18082025_12_59_55_9618.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/00/image_18082025_13_00_54_9632.jpg
/home/nano/Desktop/images/18082025/13/00/image_18082025_13_00_34_9639.jpg
/home/nano/Desktop/images/18082025/13/00/image_18082025_13_00_25_9657.jpg
/home/nano/Desktop/images/18082025/13/00/image_18082025_13_00_15_10641.jpg
/home/nano/Desktop/images/18082025/12/59/image_18082025_13_00_04_9630.jpg
/home/nano/Desktop/images/18082025/12/59/image_18082025_12_59_55_9618.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377699934","1377699936","1377699944","1377699938","1377699947","1377699941"],"photo_ids_order":["1377699934","1377699936","1377699938","1377699941","1377699944","1377699947"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/24a0a2891b3edea49512b36cff96b703.jpg","text":"TemporaryFile(/tmp/multipartBody2163440151763757929asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514893590,"filename":"image_18082025_13_00_54_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c800cffcf2e550e184a099e402087bb8.jpg","text":"TemporaryFile(/tmp/multipartBody8165342825051443294asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514893590,"filename":"image_18082025_13_00_34_9639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d8a7ded0597899f2c030bc14bbfe6e5c.jpg","text":"TemporaryFile(/tmp/multipartBody91132788375679116asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514893590,"filename":"image_18082025_13_00_04_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d70701dc778dffd090a51b00fc32fb70.jpg","text":"TemporaryFile(/tmp/multipartBody4746718748698296091asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514893590,"filename":"image_18082025_13_00_25_9657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b2d3c63ff36237cdee8b5491b44fce62.jpg","text":"TemporaryFile(/tmp/multipartBody2626758208356004197asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514893590,"filename":"image_18082025_12_59_55_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/020c11253228ef6ba8d304ef64385e91.jpg","text":"TemporaryFile(/tmp/multipartBody4455136318115960921asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514893590,"filename":"image_18082025_13_00_15_10641.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377699938","file1":"1377699936","file0":"1377699934","file4":"1377699944","file5":"1377699947","file3":"1377699941"},"map_files_photo_id_array":[{"photo_id":"1377699947","filename":"file5"},{"photo_id":"1377699938","filename":"file2"},{"photo_id":"1377699944","filename":"file4"},{"photo_id":"1377699936","filename":"file1"},{"photo_id":"1377699934","filename":"file0"},{"photo_id":"1377699941","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377699934":["hashtag1","hashtag2"]},{"1377699936":["hashtag1","hashtag2"]},{"1377699944":["hashtag1","hashtag2"]},{"1377699938":["hashtag1","hashtag2"]},{"1377699947":["hashtag1","hashtag2"]},{"1377699941":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377699934, 1377699936, 1377699944, 1377699938, 1377699947, 1377699941)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.49774169921875 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:01:17.567420
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/01/image_18082025_13_01_45_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/13/01/image_18082025_13_01_35_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/13/01/image_18082025_13_01_24_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/13/01/image_18082025_13_01_15_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/13/00/image_18082025_13_01_04_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/13/00/image_18082025_13_00_45_10630.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/01/image_18082025_13_01_45_9621.jpg', '/home/nano/Desktop/images/18082025/13/01/image_18082025_13_01_35_10625.jpg', '/home/nano/Desktop/images/18082025/13/01/image_18082025_13_01_24_9618.jpg', '/home/nano/Desktop/images/18082025/13/01/image_18082025_13_01_15_10635.jpg', '/home/nano/Desktop/images/18082025/13/00/image_18082025_13_01_04_9627.jpg', '/home/nano/Desktop/images/18082025/13/00/image_18082025_13_00_45_10630.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/01/image_18082025_13_01_45_9621.jpg
/home/nano/Desktop/images/18082025/13/01/image_18082025_13_01_35_10625.jpg
/home/nano/Desktop/images/18082025/13/01/image_18082025_13_01_24_9618.jpg
/home/nano/Desktop/images/18082025/13/01/image_18082025_13_01_15_10635.jpg
/home/nano/Desktop/images/18082025/13/00/image_18082025_13_01_04_9627.jpg
/home/nano/Desktop/images/18082025/13/00/image_18082025_13_00_45_10630.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377699961","1377699972","1377699975","1377699965","1377699959","1377699968"],"photo_ids_order":["1377699959","1377699961","1377699965","1377699968","1377699972","1377699975"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7f3b7f6fa98610e9222ec5c3b8a18493.jpg","text":"TemporaryFile(/tmp/multipartBody1725371173845314941asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514938648,"filename":"image_18082025_13_01_35_10625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6d54f11847eb339cb7f15e1ab0a3b726.jpg","text":"TemporaryFile(/tmp/multipartBody714241260730282440asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514938648,"filename":"image_18082025_13_01_04_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/defbd3542042b01c10cd46f3238a207a.jpg","text":"TemporaryFile(/tmp/multipartBody8845510697261779178asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514938648,"filename":"image_18082025_13_00_45_10630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/73bdee5ec78244b7cd0c3c2fdf053469.jpg","text":"TemporaryFile(/tmp/multipartBody8102028966951777842asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514938648,"filename":"image_18082025_13_01_24_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/90bc5e67af31dfb87fe614fe2c3f393e.jpg","text":"TemporaryFile(/tmp/multipartBody1699062138031853239asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514938648,"filename":"image_18082025_13_01_45_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e7b8f0a05881edfee5af298e118dc83f.jpg","text":"TemporaryFile(/tmp/multipartBody1326436423651958617asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514938648,"filename":"image_18082025_13_01_15_10635.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377699965","file1":"1377699961","file0":"1377699959","file4":"1377699972","file5":"1377699975","file3":"1377699968"},"map_files_photo_id_array":[{"photo_id":"1377699975","filename":"file5"},{"photo_id":"1377699965","filename":"file2"},{"photo_id":"1377699972","filename":"file4"},{"photo_id":"1377699961","filename":"file1"},{"photo_id":"1377699959","filename":"file0"},{"photo_id":"1377699968","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377699961":["hashtag1","hashtag2"]},{"1377699972":["hashtag1","hashtag2"]},{"1377699975":["hashtag1","hashtag2"]},{"1377699965":["hashtag1","hashtag2"]},{"1377699959":["hashtag1","hashtag2"]},{"1377699968":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377699961, 1377699972, 1377699975, 1377699965, 1377699959, 1377699968)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.839262008666992 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:02:03.181643
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/12/58/image_18082025_12_58_44_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/12/58/image_18082025_12_58_35_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/12/58/image_18082025_12_58_25_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/12/58/image_18082025_12_58_14_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/12/57/image_18082025_12_58_05_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/12/57/image_18082025_12_57_54_9619.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/12/58/image_18082025_12_58_44_9615.jpg', '/home/nano/Desktop/images/18082025/12/58/image_18082025_12_58_35_9606.jpg', '/home/nano/Desktop/images/18082025/12/58/image_18082025_12_58_25_10632.jpg', '/home/nano/Desktop/images/18082025/12/58/image_18082025_12_58_14_9644.jpg', '/home/nano/Desktop/images/18082025/12/57/image_18082025_12_58_05_10648.jpg', '/home/nano/Desktop/images/18082025/12/57/image_18082025_12_57_54_9619.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/12/58/image_18082025_12_58_44_9615.jpg
/home/nano/Desktop/images/18082025/12/58/image_18082025_12_58_35_9606.jpg
/home/nano/Desktop/images/18082025/12/58/image_18082025_12_58_25_10632.jpg
/home/nano/Desktop/images/18082025/12/58/image_18082025_12_58_14_9644.jpg
/home/nano/Desktop/images/18082025/12/57/image_18082025_12_58_05_10648.jpg
/home/nano/Desktop/images/18082025/12/57/image_18082025_12_57_54_9619.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377699996","1377700008","1377700002","1377699987","1377700005","1377699991"],"photo_ids_order":["1377699987","1377699991","1377699996","1377700002","1377700005","1377700008"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d19e3503be974d7bcbf5d7e6b3607c72.jpg","text":"TemporaryFile(/tmp/multipartBody781988444966744412asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514984542,"filename":"image_18082025_12_58_25_10632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a03d19afad23949aa3cb039adc667271.jpg","text":"TemporaryFile(/tmp/multipartBody5518793046198528275asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514984542,"filename":"image_18082025_12_57_54_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d14aed1db25b94c24dd3513e50609274.jpg","text":"TemporaryFile(/tmp/multipartBody1147984327797315070asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514984542,"filename":"image_18082025_12_58_14_9644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/53a411d3b975cf29eb29e2c488d74c3e.jpg","text":"TemporaryFile(/tmp/multipartBody724266058947702445asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514984542,"filename":"image_18082025_12_58_44_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3fb93b3694cd4f181a308772b6fb421f.jpg","text":"TemporaryFile(/tmp/multipartBody3529469734198806877asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514984542,"filename":"image_18082025_12_58_05_10648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/99e728e062fc2548506277860f6c35ff.jpg","text":"TemporaryFile(/tmp/multipartBody5110787901438184566asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755514984542,"filename":"image_18082025_12_58_35_9606.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377699996","file1":"1377699991","file0":"1377699987","file4":"1377700005","file5":"1377700008","file3":"1377700002"},"map_files_photo_id_array":[{"photo_id":"1377700008","filename":"file5"},{"photo_id":"1377699996","filename":"file2"},{"photo_id":"1377700005","filename":"file4"},{"photo_id":"1377699991","filename":"file1"},{"photo_id":"1377699987","filename":"file0"},{"photo_id":"1377700002","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377699996":["hashtag1","hashtag2"]},{"1377700008":["hashtag1","hashtag2"]},{"1377700002":["hashtag1","hashtag2"]},{"1377699987":["hashtag1","hashtag2"]},{"1377700005":["hashtag1","hashtag2"]},{"1377699991":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377699996, 1377700008, 1377700002, 1377699987, 1377700005, 1377699991)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.91543626785278 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:02:47.671622
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/02/image_18082025_13_02_44_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/13/02/image_18082025_13_02_35_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/13/02/image_18082025_13_02_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/13/02/image_18082025_13_02_15_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/13/01/image_18082025_13_02_05_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/13/01/image_18082025_13_01_54_9612.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/02/image_18082025_13_02_44_9608.jpg', '/home/nano/Desktop/images/18082025/13/02/image_18082025_13_02_35_10625.jpg', '/home/nano/Desktop/images/18082025/13/02/image_18082025_13_02_24_9641.jpg', '/home/nano/Desktop/images/18082025/13/02/image_18082025_13_02_15_9652.jpg', '/home/nano/Desktop/images/18082025/13/01/image_18082025_13_02_05_10641.jpg', '/home/nano/Desktop/images/18082025/13/01/image_18082025_13_01_54_9612.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/02/image_18082025_13_02_44_9608.jpg
/home/nano/Desktop/images/18082025/13/02/image_18082025_13_02_35_10625.jpg
/home/nano/Desktop/images/18082025/13/02/image_18082025_13_02_24_9641.jpg
/home/nano/Desktop/images/18082025/13/02/image_18082025_13_02_15_9652.jpg
/home/nano/Desktop/images/18082025/13/01/image_18082025_13_02_05_10641.jpg
/home/nano/Desktop/images/18082025/13/01/image_18082025_13_01_54_9612.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 0.9643833637237549 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:03:02.547541
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/02/image_18082025_13_02_44_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/13/02/image_18082025_13_02_35_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/13/02/image_18082025_13_02_24_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/13/02/image_18082025_13_02_15_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/13/01/image_18082025_13_02_05_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/13/01/image_18082025_13_01_54_9612.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/02/image_18082025_13_02_44_9608.jpg', '/home/nano/Desktop/images/18082025/13/02/image_18082025_13_02_35_10625.jpg', '/home/nano/Desktop/images/18082025/13/02/image_18082025_13_02_24_9641.jpg', '/home/nano/Desktop/images/18082025/13/02/image_18082025_13_02_15_9652.jpg', '/home/nano/Desktop/images/18082025/13/01/image_18082025_13_02_05_10641.jpg', '/home/nano/Desktop/images/18082025/13/01/image_18082025_13_01_54_9612.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/02/image_18082025_13_02_44_9608.jpg
/home/nano/Desktop/images/18082025/13/02/image_18082025_13_02_35_10625.jpg
/home/nano/Desktop/images/18082025/13/02/image_18082025_13_02_24_9641.jpg
/home/nano/Desktop/images/18082025/13/02/image_18082025_13_02_15_9652.jpg
/home/nano/Desktop/images/18082025/13/01/image_18082025_13_02_05_10641.jpg
/home/nano/Desktop/images/18082025/13/01/image_18082025_13_01_54_9612.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377700050","1377700040","1377700043","1377700046","1377700054","1377700036"],"photo_ids_order":["1377700036","1377700040","1377700043","1377700046","1377700050","1377700054"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/02e17b9a8d40dc725c64fc802a8c387d.jpg","text":"TemporaryFile(/tmp/multipartBody2660441879219941942asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515043831,"filename":"image_18082025_13_02_05_10641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/82c03ec9bbdf67f3ceba325b8a8561ed.jpg","text":"TemporaryFile(/tmp/multipartBody2934968427724411777asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515043831,"filename":"image_18082025_13_02_35_10625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/00a106e8f9704e05f996643436d4b12c.jpg","text":"TemporaryFile(/tmp/multipartBody2044603809197439166asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515043831,"filename":"image_18082025_13_02_24_9641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/04eebf715479adb07990a9a778b326ea.jpg","text":"TemporaryFile(/tmp/multipartBody3778234951514323919asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515043831,"filename":"image_18082025_13_02_15_9652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/35adf8189f63b57284534be9ec445636.jpg","text":"TemporaryFile(/tmp/multipartBody7049256990773163322asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515043831,"filename":"image_18082025_13_01_54_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/de6ffffdbcdb4f05005d7d44546719ba.jpg","text":"TemporaryFile(/tmp/multipartBody2534822312318649089asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515043831,"filename":"image_18082025_13_02_44_9608.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377700043","file1":"1377700040","file0":"1377700036","file4":"1377700050","file5":"1377700054","file3":"1377700046"},"map_files_photo_id_array":[{"photo_id":"1377700054","filename":"file5"},{"photo_id":"1377700043","filename":"file2"},{"photo_id":"1377700050","filename":"file4"},{"photo_id":"1377700040","filename":"file1"},{"photo_id":"1377700036","filename":"file0"},{"photo_id":"1377700046","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377700050":["hashtag1","hashtag2"]},{"1377700040":["hashtag1","hashtag2"]},{"1377700043":["hashtag1","hashtag2"]},{"1377700046":["hashtag1","hashtag2"]},{"1377700054":["hashtag1","hashtag2"]},{"1377700036":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377700050, 1377700040, 1377700043, 1377700046, 1377700054, 1377700036)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.95071005821228 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:03:46.768376
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/03/image_18082025_13_03_44_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/13/03/image_18082025_13_03_34_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/13/03/image_18082025_13_03_25_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/13/03/image_18082025_13_03_14_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/13/02/image_18082025_13_03_05_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/13/02/image_18082025_13_02_55_10618.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/03/image_18082025_13_03_44_9607.jpg', '/home/nano/Desktop/images/18082025/13/03/image_18082025_13_03_34_9608.jpg', '/home/nano/Desktop/images/18082025/13/03/image_18082025_13_03_25_10630.jpg', '/home/nano/Desktop/images/18082025/13/03/image_18082025_13_03_14_9632.jpg', '/home/nano/Desktop/images/18082025/13/02/image_18082025_13_03_05_9634.jpg', '/home/nano/Desktop/images/18082025/13/02/image_18082025_13_02_55_10618.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/03/image_18082025_13_03_44_9607.jpg
/home/nano/Desktop/images/18082025/13/03/image_18082025_13_03_34_9608.jpg
/home/nano/Desktop/images/18082025/13/03/image_18082025_13_03_25_10630.jpg
/home/nano/Desktop/images/18082025/13/03/image_18082025_13_03_14_9632.jpg
/home/nano/Desktop/images/18082025/13/02/image_18082025_13_03_05_9634.jpg
/home/nano/Desktop/images/18082025/13/02/image_18082025_13_02_55_10618.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377700071","1377700073","1377700076","1377700070","1377700066","1377700069"],"photo_ids_order":["1377700066","1377700069","1377700070","1377700071","1377700073","1377700076"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/61c5f0976f5b3171e68473df8f40a0a6.jpg","text":"TemporaryFile(/tmp/multipartBody6942963671565256217asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515087931,"filename":"image_18082025_13_03_14_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ebfd3ed506536b46fdb13f4856277e84.jpg","text":"TemporaryFile(/tmp/multipartBody494782246612406850asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515087931,"filename":"image_18082025_13_03_05_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f4d35e65ce4fcef88658fb3f1cee6b0d.jpg","text":"TemporaryFile(/tmp/multipartBody1157842101445857797asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515087931,"filename":"image_18082025_13_02_55_10618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3df3f1a66c26f998cea2b8b04b3046bc.jpg","text":"TemporaryFile(/tmp/multipartBody5318464609461848116asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515087931,"filename":"image_18082025_13_03_25_10630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b486979bed5d678435d70ca64f581fb3.jpg","text":"TemporaryFile(/tmp/multipartBody5136799309790731866asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515087931,"filename":"image_18082025_13_03_44_9607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/996e4f209004a5801ab31fa92f1dd740.jpg","text":"TemporaryFile(/tmp/multipartBody1069140525254918113asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515087931,"filename":"image_18082025_13_03_34_9608.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377700070","file1":"1377700069","file0":"1377700066","file4":"1377700073","file5":"1377700076","file3":"1377700071"},"map_files_photo_id_array":[{"photo_id":"1377700076","filename":"file5"},{"photo_id":"1377700070","filename":"file2"},{"photo_id":"1377700073","filename":"file4"},{"photo_id":"1377700069","filename":"file1"},{"photo_id":"1377700066","filename":"file0"},{"photo_id":"1377700071","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377700071":["hashtag1","hashtag2"]},{"1377700073":["hashtag1","hashtag2"]},{"1377700076":["hashtag1","hashtag2"]},{"1377700070":["hashtag1","hashtag2"]},{"1377700066":["hashtag1","hashtag2"]},{"1377700069":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377700071, 1377700073, 1377700076, 1377700070, 1377700066, 1377700069)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.106945276260376 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:04:31.914076
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/04/image_18082025_13_04_45_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/13/04/image_18082025_13_04_34_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/13/04/image_18082025_13_04_25_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/13/04/image_18082025_13_04_15_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/13/03/image_18082025_13_04_04_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/13/03/image_18082025_13_03_55_10641.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/04/image_18082025_13_04_45_10625.jpg', '/home/nano/Desktop/images/18082025/13/04/image_18082025_13_04_34_9616.jpg', '/home/nano/Desktop/images/18082025/13/04/image_18082025_13_04_25_9643.jpg', '/home/nano/Desktop/images/18082025/13/04/image_18082025_13_04_15_10641.jpg', '/home/nano/Desktop/images/18082025/13/03/image_18082025_13_04_04_9626.jpg', '/home/nano/Desktop/images/18082025/13/03/image_18082025_13_03_55_10641.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/04/image_18082025_13_04_45_10625.jpg
/home/nano/Desktop/images/18082025/13/04/image_18082025_13_04_34_9616.jpg
/home/nano/Desktop/images/18082025/13/04/image_18082025_13_04_25_9643.jpg
/home/nano/Desktop/images/18082025/13/04/image_18082025_13_04_15_10641.jpg
/home/nano/Desktop/images/18082025/13/03/image_18082025_13_04_04_9626.jpg
/home/nano/Desktop/images/18082025/13/03/image_18082025_13_03_55_10641.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377700098","1377700101","1377700094","1377700096","1377700100","1377700102"],"photo_ids_order":["1377700094","1377700096","1377700098","1377700100","1377700101","1377700102"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/43bac11443fd624fce8f7062cadaac29.jpg","text":"TemporaryFile(/tmp/multipartBody1355687261048636788asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515132949,"filename":"image_18082025_13_04_25_9643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3e515fe9c9d5c0ad8affef7d53af06ca.jpg","text":"TemporaryFile(/tmp/multipartBody1867645683066132355asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515132949,"filename":"image_18082025_13_04_04_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d574c6f14f1b996afec48a09db297ad4.jpg","text":"TemporaryFile(/tmp/multipartBody7503805480125484154asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515132949,"filename":"image_18082025_13_04_45_10625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9892b65105b3382c5bd2b602e4f0b6d6.jpg","text":"TemporaryFile(/tmp/multipartBody960814907580391525asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515132949,"filename":"image_18082025_13_04_34_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/85b003a38c5c21976e5becc04175154b.jpg","text":"TemporaryFile(/tmp/multipartBody7291798179185009055asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515132949,"filename":"image_18082025_13_04_15_10641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e9db5587e180c50b7b9f90908ebd085f.jpg","text":"TemporaryFile(/tmp/multipartBody1195642667603253191asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515132949,"filename":"image_18082025_13_03_55_10641.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377700098","file1":"1377700096","file0":"1377700094","file4":"1377700101","file5":"1377700102","file3":"1377700100"},"map_files_photo_id_array":[{"photo_id":"1377700102","filename":"file5"},{"photo_id":"1377700098","filename":"file2"},{"photo_id":"1377700101","filename":"file4"},{"photo_id":"1377700096","filename":"file1"},{"photo_id":"1377700094","filename":"file0"},{"photo_id":"1377700100","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377700098":["hashtag1","hashtag2"]},{"1377700101":["hashtag1","hashtag2"]},{"1377700094":["hashtag1","hashtag2"]},{"1377700096":["hashtag1","hashtag2"]},{"1377700100":["hashtag1","hashtag2"]},{"1377700102":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377700098, 1377700101, 1377700094, 1377700096, 1377700100, 1377700102)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.99143362045288 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:05:16.980950
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/05/image_18082025_13_05_45_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/13/05/image_18082025_13_05_35_10622.jpg', 2), ('/home/nano/Desktop/images/18082025/13/05/image_18082025_13_05_24_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/13/05/image_18082025_13_05_15_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/13/04/image_18082025_13_05_04_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/13/04/image_18082025_13_04_55_9618.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/05/image_18082025_13_05_45_9612.jpg', '/home/nano/Desktop/images/18082025/13/05/image_18082025_13_05_35_10622.jpg', '/home/nano/Desktop/images/18082025/13/05/image_18082025_13_05_24_9618.jpg', '/home/nano/Desktop/images/18082025/13/05/image_18082025_13_05_15_10656.jpg', '/home/nano/Desktop/images/18082025/13/04/image_18082025_13_05_04_9635.jpg', '/home/nano/Desktop/images/18082025/13/04/image_18082025_13_04_55_9618.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/05/image_18082025_13_05_45_9612.jpg
/home/nano/Desktop/images/18082025/13/05/image_18082025_13_05_35_10622.jpg
/home/nano/Desktop/images/18082025/13/05/image_18082025_13_05_24_9618.jpg
/home/nano/Desktop/images/18082025/13/05/image_18082025_13_05_15_10656.jpg
/home/nano/Desktop/images/18082025/13/04/image_18082025_13_05_04_9635.jpg
/home/nano/Desktop/images/18082025/13/04/image_18082025_13_04_55_9618.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377700111","1377700119","1377700145","1377700195","1377700115","1377700171"],"photo_ids_order":["1377700111","1377700115","1377700119","1377700145","1377700171","1377700195"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/219ae92fe4f62bd5f2715de38741b185.jpg","text":"TemporaryFile(/tmp/multipartBody6834792326922463732asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515178142,"filename":"image_18082025_13_05_45_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/369f33b3c7abd869bdb6fc1ad13eb0be.jpg","text":"TemporaryFile(/tmp/multipartBody3145706200995795100asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515178142,"filename":"image_18082025_13_05_24_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1e2e14bc87b5317c8ac0ca43c5e9a1bc.jpg","text":"TemporaryFile(/tmp/multipartBody8829055252670391598asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515178142,"filename":"image_18082025_13_05_15_10656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ebd8da94792da6f0d647e6900e205953.jpg","text":"TemporaryFile(/tmp/multipartBody6161033504472080420asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515178142,"filename":"image_18082025_13_04_55_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a3dd2c8276caf5418c99bcd83bc97606.jpg","text":"TemporaryFile(/tmp/multipartBody3291727713463200455asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515178142,"filename":"image_18082025_13_05_35_10622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/31583d19e40eae1c0292f0e3da41834f.jpg","text":"TemporaryFile(/tmp/multipartBody832396691744769406asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515178142,"filename":"image_18082025_13_05_04_9635.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377700119","file1":"1377700115","file0":"1377700111","file4":"1377700171","file5":"1377700195","file3":"1377700145"},"map_files_photo_id_array":[{"photo_id":"1377700195","filename":"file5"},{"photo_id":"1377700119","filename":"file2"},{"photo_id":"1377700171","filename":"file4"},{"photo_id":"1377700115","filename":"file1"},{"photo_id":"1377700111","filename":"file0"},{"photo_id":"1377700145","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377700111":["hashtag1","hashtag2"]},{"1377700119":["hashtag1","hashtag2"]},{"1377700145":["hashtag1","hashtag2"]},{"1377700195":["hashtag1","hashtag2"]},{"1377700115":["hashtag1","hashtag2"]},{"1377700171":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377700111, 1377700119, 1377700145, 1377700195, 1377700115, 1377700171)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.420093059539795 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:06:02.587319
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/29/image_18082025_11_29_44_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/11/29/image_18082025_11_29_35_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/11/29/image_18082025_11_29_25_10622.jpg', 2), ('/home/nano/Desktop/images/18082025/11/29/image_18082025_11_29_14_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/11/28/image_18082025_11_29_05_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/11/28/image_18082025_11_28_55_10634.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/29/image_18082025_11_29_44_9632.jpg', '/home/nano/Desktop/images/18082025/11/29/image_18082025_11_29_35_9637.jpg', '/home/nano/Desktop/images/18082025/11/29/image_18082025_11_29_25_10622.jpg', '/home/nano/Desktop/images/18082025/11/29/image_18082025_11_29_14_9646.jpg', '/home/nano/Desktop/images/18082025/11/28/image_18082025_11_29_05_9638.jpg', '/home/nano/Desktop/images/18082025/11/28/image_18082025_11_28_55_10634.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/29/image_18082025_11_29_44_9632.jpg
/home/nano/Desktop/images/18082025/11/29/image_18082025_11_29_35_9637.jpg
/home/nano/Desktop/images/18082025/11/29/image_18082025_11_29_25_10622.jpg
/home/nano/Desktop/images/18082025/11/29/image_18082025_11_29_14_9646.jpg
/home/nano/Desktop/images/18082025/11/28/image_18082025_11_29_05_9638.jpg
/home/nano/Desktop/images/18082025/11/28/image_18082025_11_28_55_10634.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377700359","1377700367","1377700352","1377700346","1377700340","1377700372"],"photo_ids_order":["1377700340","1377700346","1377700352","1377700359","1377700367","1377700372"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e80a5ed245367c000e7d34b40a74fc3f.jpg","text":"TemporaryFile(/tmp/multipartBody5137222483620051452asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515223709,"filename":"image_18082025_11_29_14_9646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1507b8d90b5046541f3ae861b31a7dfe.jpg","text":"TemporaryFile(/tmp/multipartBody2737111062279161533asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515223709,"filename":"image_18082025_11_29_05_9638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/927bcdb79c4636a888850d6ca70317e3.jpg","text":"TemporaryFile(/tmp/multipartBody9163657499463162398asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515223709,"filename":"image_18082025_11_29_25_10622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8a8993b29dfeb258087b82367677b73b.jpg","text":"TemporaryFile(/tmp/multipartBody3975893217046160997asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515223709,"filename":"image_18082025_11_29_35_9637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8954b704db8ce7e61ec7ba913b5fc703.jpg","text":"TemporaryFile(/tmp/multipartBody5825902180343196579asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515223709,"filename":"image_18082025_11_29_44_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8f350933fe2dd402f335e358b812d5b3.jpg","text":"TemporaryFile(/tmp/multipartBody2028578185649026793asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515223709,"filename":"image_18082025_11_28_55_10634.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377700352","file1":"1377700346","file0":"1377700340","file4":"1377700367","file5":"1377700372","file3":"1377700359"},"map_files_photo_id_array":[{"photo_id":"1377700372","filename":"file5"},{"photo_id":"1377700352","filename":"file2"},{"photo_id":"1377700367","filename":"file4"},{"photo_id":"1377700346","filename":"file1"},{"photo_id":"1377700340","filename":"file0"},{"photo_id":"1377700359","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377700359":["hashtag1","hashtag2"]},{"1377700367":["hashtag1","hashtag2"]},{"1377700352":["hashtag1","hashtag2"]},{"1377700346":["hashtag1","hashtag2"]},{"1377700340":["hashtag1","hashtag2"]},{"1377700372":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377700359, 1377700367, 1377700352, 1377700346, 1377700340, 1377700372)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.61457872390747 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:06:47.082880
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/06/image_18082025_13_06_44_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/13/06/image_18082025_13_06_35_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/13/06/image_18082025_13_06_24_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/13/06/image_18082025_13_06_15_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/13/05/image_18082025_13_06_05_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/13/05/image_18082025_13_05_54_9611.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/06/image_18082025_13_06_44_9612.jpg', '/home/nano/Desktop/images/18082025/13/06/image_18082025_13_06_35_10626.jpg', '/home/nano/Desktop/images/18082025/13/06/image_18082025_13_06_24_9618.jpg', '/home/nano/Desktop/images/18082025/13/06/image_18082025_13_06_15_9622.jpg', '/home/nano/Desktop/images/18082025/13/05/image_18082025_13_06_05_10659.jpg', '/home/nano/Desktop/images/18082025/13/05/image_18082025_13_05_54_9611.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/06/image_18082025_13_06_44_9612.jpg
/home/nano/Desktop/images/18082025/13/06/image_18082025_13_06_35_10626.jpg
/home/nano/Desktop/images/18082025/13/06/image_18082025_13_06_24_9618.jpg
/home/nano/Desktop/images/18082025/13/06/image_18082025_13_06_15_9622.jpg
/home/nano/Desktop/images/18082025/13/05/image_18082025_13_06_05_10659.jpg
/home/nano/Desktop/images/18082025/13/05/image_18082025_13_05_54_9611.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377700391","1377700388","1377700400","1377700393","1377700396","1377700390"],"photo_ids_order":["1377700388","1377700390","1377700391","1377700393","1377700396","1377700400"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a11b181e50af14fdb396de6697e60a43.jpg","text":"TemporaryFile(/tmp/multipartBody1338771716733877149asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515268399,"filename":"image_18082025_13_06_24_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d4df18b9e7f44b148bd7ba0087da0761.jpg","text":"TemporaryFile(/tmp/multipartBody2215767715991525603asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515268399,"filename":"image_18082025_13_06_44_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/aff34ec08dbd3a800ec3cb9115c5f14a.jpg","text":"TemporaryFile(/tmp/multipartBody1654012548280960339asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515268399,"filename":"image_18082025_13_05_54_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6a31079045f9831659ef60fb64df0a9b.jpg","text":"TemporaryFile(/tmp/multipartBody2447134306940534133asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515268399,"filename":"image_18082025_13_06_15_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e67b7f1f445aaa7d61c8dc1e8861b03a.jpg","text":"TemporaryFile(/tmp/multipartBody7002286004986132667asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515268399,"filename":"image_18082025_13_06_05_10659.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8df8eb7a978c35c3286c0050628e1dd6.jpg","text":"TemporaryFile(/tmp/multipartBody3095860304964820277asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515268399,"filename":"image_18082025_13_06_35_10626.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377700391","file1":"1377700390","file0":"1377700388","file4":"1377700396","file5":"1377700400","file3":"1377700393"},"map_files_photo_id_array":[{"photo_id":"1377700400","filename":"file5"},{"photo_id":"1377700391","filename":"file2"},{"photo_id":"1377700396","filename":"file4"},{"photo_id":"1377700390","filename":"file1"},{"photo_id":"1377700388","filename":"file0"},{"photo_id":"1377700393","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377700391":["hashtag1","hashtag2"]},{"1377700388":["hashtag1","hashtag2"]},{"1377700400":["hashtag1","hashtag2"]},{"1377700393":["hashtag1","hashtag2"]},{"1377700396":["hashtag1","hashtag2"]},{"1377700390":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377700391, 1377700388, 1377700400, 1377700393, 1377700396, 1377700390)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.038190364837646 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:07:32.187339
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/07/image_18082025_13_07_44_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/13/07/image_18082025_13_07_35_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/13/07/image_18082025_13_07_25_10643.jpg', 2), ('/home/nano/Desktop/images/18082025/13/07/image_18082025_13_07_14_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/13/06/image_18082025_13_07_05_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/13/06/image_18082025_13_06_55_10629.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/07/image_18082025_13_07_44_9621.jpg', '/home/nano/Desktop/images/18082025/13/07/image_18082025_13_07_35_9609.jpg', '/home/nano/Desktop/images/18082025/13/07/image_18082025_13_07_25_10643.jpg', '/home/nano/Desktop/images/18082025/13/07/image_18082025_13_07_14_9635.jpg', '/home/nano/Desktop/images/18082025/13/06/image_18082025_13_07_05_9636.jpg', '/home/nano/Desktop/images/18082025/13/06/image_18082025_13_06_55_10629.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/07/image_18082025_13_07_44_9621.jpg
/home/nano/Desktop/images/18082025/13/07/image_18082025_13_07_35_9609.jpg
/home/nano/Desktop/images/18082025/13/07/image_18082025_13_07_25_10643.jpg
/home/nano/Desktop/images/18082025/13/07/image_18082025_13_07_14_9635.jpg
/home/nano/Desktop/images/18082025/13/06/image_18082025_13_07_05_9636.jpg
/home/nano/Desktop/images/18082025/13/06/image_18082025_13_06_55_10629.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377700417","1377700413","1377700423","1377700426","1377700420","1377700414"],"photo_ids_order":["1377700413","1377700414","1377700417","1377700420","1377700423","1377700426"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2860044f4477d385e098f2ba62b4c518.jpg","text":"TemporaryFile(/tmp/multipartBody2492225225980195106asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515313316,"filename":"image_18082025_13_07_25_10643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/851eb4b5ee78c4b6b144101fa69a483e.jpg","text":"TemporaryFile(/tmp/multipartBody9185813966778311869asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515313316,"filename":"image_18082025_13_07_44_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/35f59411cfaa0289637f6a378f571e4e.jpg","text":"TemporaryFile(/tmp/multipartBody1771439789646846847asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515313316,"filename":"image_18082025_13_07_05_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3f753422433128e8a79dc1080836bfb6.jpg","text":"TemporaryFile(/tmp/multipartBody8760738149856728982asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515313316,"filename":"image_18082025_13_06_55_10629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6450d8b886e1cf175d91c96ad53b4143.jpg","text":"TemporaryFile(/tmp/multipartBody4941325833334878439asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515313316,"filename":"image_18082025_13_07_14_9635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/359dea611d697c74699cfe981aca7ada.jpg","text":"TemporaryFile(/tmp/multipartBody2366402405734660067asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515313316,"filename":"image_18082025_13_07_35_9609.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377700417","file1":"1377700414","file0":"1377700413","file4":"1377700423","file5":"1377700426","file3":"1377700420"},"map_files_photo_id_array":[{"photo_id":"1377700426","filename":"file5"},{"photo_id":"1377700417","filename":"file2"},{"photo_id":"1377700423","filename":"file4"},{"photo_id":"1377700414","filename":"file1"},{"photo_id":"1377700413","filename":"file0"},{"photo_id":"1377700420","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377700417":["hashtag1","hashtag2"]},{"1377700413":["hashtag1","hashtag2"]},{"1377700423":["hashtag1","hashtag2"]},{"1377700426":["hashtag1","hashtag2"]},{"1377700420":["hashtag1","hashtag2"]},{"1377700414":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377700417, 1377700413, 1377700423, 1377700426, 1377700420, 1377700414)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.631598472595215 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:08:17.372808
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/08/image_18082025_13_08_45_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/13/08/image_18082025_13_08_34_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/13/08/image_18082025_13_08_25_10622.jpg', 2), ('/home/nano/Desktop/images/18082025/13/08/image_18082025_13_08_14_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/13/07/image_18082025_13_08_04_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/13/07/image_18082025_13_07_55_10624.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/08/image_18082025_13_08_45_10618.jpg', '/home/nano/Desktop/images/18082025/13/08/image_18082025_13_08_34_9619.jpg', '/home/nano/Desktop/images/18082025/13/08/image_18082025_13_08_25_10622.jpg', '/home/nano/Desktop/images/18082025/13/08/image_18082025_13_08_14_9630.jpg', '/home/nano/Desktop/images/18082025/13/07/image_18082025_13_08_04_9630.jpg', '/home/nano/Desktop/images/18082025/13/07/image_18082025_13_07_55_10624.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/08/image_18082025_13_08_45_10618.jpg
/home/nano/Desktop/images/18082025/13/08/image_18082025_13_08_34_9619.jpg
/home/nano/Desktop/images/18082025/13/08/image_18082025_13_08_25_10622.jpg
/home/nano/Desktop/images/18082025/13/08/image_18082025_13_08_14_9630.jpg
/home/nano/Desktop/images/18082025/13/07/image_18082025_13_08_04_9630.jpg
/home/nano/Desktop/images/18082025/13/07/image_18082025_13_07_55_10624.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377700446","1377700451","1377700448","1377700442","1377700450","1377700438"],"photo_ids_order":["1377700438","1377700442","1377700446","1377700448","1377700450","1377700451"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0ef15750e62040269cad38e92a31c5a5.jpg","text":"TemporaryFile(/tmp/multipartBody1351007446727566308asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515358826,"filename":"image_18082025_13_08_25_10622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ed960050c0056b62a969fe88a9e5296a.jpg","text":"TemporaryFile(/tmp/multipartBody8674296950415944809asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515358826,"filename":"image_18082025_13_07_55_10624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cdbd948aa0873e6c81268108dee89302.jpg","text":"TemporaryFile(/tmp/multipartBody4511362096008995225asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515358826,"filename":"image_18082025_13_08_14_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9e577dbd6dabf6e6957e964f92c9a2bc.jpg","text":"TemporaryFile(/tmp/multipartBody4624210184005926589asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515358826,"filename":"image_18082025_13_08_34_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/36c82e96a7a61025612cf8bedc3c3e2a.jpg","text":"TemporaryFile(/tmp/multipartBody4988348813744420396asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515358826,"filename":"image_18082025_13_08_04_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d44e279da1a13fb721b28bf1510f242b.jpg","text":"TemporaryFile(/tmp/multipartBody6091272108432217397asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515358826,"filename":"image_18082025_13_08_45_10618.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377700446","file1":"1377700442","file0":"1377700438","file4":"1377700450","file5":"1377700451","file3":"1377700448"},"map_files_photo_id_array":[{"photo_id":"1377700451","filename":"file5"},{"photo_id":"1377700446","filename":"file2"},{"photo_id":"1377700450","filename":"file4"},{"photo_id":"1377700442","filename":"file1"},{"photo_id":"1377700438","filename":"file0"},{"photo_id":"1377700448","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377700446":["hashtag1","hashtag2"]},{"1377700451":["hashtag1","hashtag2"]},{"1377700448":["hashtag1","hashtag2"]},{"1377700442":["hashtag1","hashtag2"]},{"1377700450":["hashtag1","hashtag2"]},{"1377700438":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377700446, 1377700451, 1377700448, 1377700442, 1377700450, 1377700438)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.603851795196533 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:09:03.549459
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/28/image_18082025_11_28_44_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/11/28/image_18082025_11_28_35_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/11/28/image_18082025_11_28_24_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/11/28/image_18082025_11_28_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/11/27/image_18082025_11_28_05_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/11/27/image_18082025_11_27_54_9632.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/28/image_18082025_11_28_44_9624.jpg', '/home/nano/Desktop/images/18082025/11/28/image_18082025_11_28_35_10626.jpg', '/home/nano/Desktop/images/18082025/11/28/image_18082025_11_28_24_9622.jpg', '/home/nano/Desktop/images/18082025/11/28/image_18082025_11_28_14_9662.jpg', '/home/nano/Desktop/images/18082025/11/27/image_18082025_11_28_05_10651.jpg', '/home/nano/Desktop/images/18082025/11/27/image_18082025_11_27_54_9632.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/28/image_18082025_11_28_44_9624.jpg
/home/nano/Desktop/images/18082025/11/28/image_18082025_11_28_35_10626.jpg
/home/nano/Desktop/images/18082025/11/28/image_18082025_11_28_24_9622.jpg
/home/nano/Desktop/images/18082025/11/28/image_18082025_11_28_14_9662.jpg
/home/nano/Desktop/images/18082025/11/27/image_18082025_11_28_05_10651.jpg
/home/nano/Desktop/images/18082025/11/27/image_18082025_11_27_54_9632.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377700470","1377700476","1377700472","1377700466","1377700468","1377700462"],"photo_ids_order":["1377700462","1377700466","1377700468","1377700470","1377700472","1377700476"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f21c18cc9a3933b35a910064272accac.jpg","text":"TemporaryFile(/tmp/multipartBody754047859683484424asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515404691,"filename":"image_18082025_11_28_14_9662.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6bdfee99181d1e4b2bc72fa5d45ddbd3.jpg","text":"TemporaryFile(/tmp/multipartBody5733731453010785019asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515404691,"filename":"image_18082025_11_27_54_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f924aaf6a8061cd45c2ffbd20f85b466.jpg","text":"TemporaryFile(/tmp/multipartBody6076125103174078283asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515404691,"filename":"image_18082025_11_28_05_10651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f872e7c92711518efd5bf42bf1ee14ee.jpg","text":"TemporaryFile(/tmp/multipartBody8479074855136856540asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515404691,"filename":"image_18082025_11_28_35_10626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6e37a2b6697fde96b43faf8dcd97fa2a.jpg","text":"TemporaryFile(/tmp/multipartBody5151159459638428367asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515404691,"filename":"image_18082025_11_28_24_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3781a1fb196466ba70f0555060d0ff47.jpg","text":"TemporaryFile(/tmp/multipartBody348308184011362029asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515404691,"filename":"image_18082025_11_28_44_9624.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377700468","file1":"1377700466","file0":"1377700462","file4":"1377700472","file5":"1377700476","file3":"1377700470"},"map_files_photo_id_array":[{"photo_id":"1377700476","filename":"file5"},{"photo_id":"1377700468","filename":"file2"},{"photo_id":"1377700472","filename":"file4"},{"photo_id":"1377700466","filename":"file1"},{"photo_id":"1377700462","filename":"file0"},{"photo_id":"1377700470","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377700470":["hashtag1","hashtag2"]},{"1377700476":["hashtag1","hashtag2"]},{"1377700472":["hashtag1","hashtag2"]},{"1377700466":["hashtag1","hashtag2"]},{"1377700468":["hashtag1","hashtag2"]},{"1377700462":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377700470, 1377700476, 1377700472, 1377700466, 1377700468, 1377700462)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.774086475372314 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:09:47.528117
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/09/image_18082025_13_09_45_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/13/09/image_18082025_13_09_34_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/13/09/image_18082025_13_09_24_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/13/09/image_18082025_13_09_15_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/13/08/image_18082025_13_09_04_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/13/08/image_18082025_13_08_55_9612.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/09/image_18082025_13_09_45_10629.jpg', '/home/nano/Desktop/images/18082025/13/09/image_18082025_13_09_34_9620.jpg', '/home/nano/Desktop/images/18082025/13/09/image_18082025_13_09_24_9612.jpg', '/home/nano/Desktop/images/18082025/13/09/image_18082025_13_09_15_10645.jpg', '/home/nano/Desktop/images/18082025/13/08/image_18082025_13_09_04_9626.jpg', '/home/nano/Desktop/images/18082025/13/08/image_18082025_13_08_55_9612.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/09/image_18082025_13_09_45_10629.jpg
/home/nano/Desktop/images/18082025/13/09/image_18082025_13_09_34_9620.jpg
/home/nano/Desktop/images/18082025/13/09/image_18082025_13_09_24_9612.jpg
/home/nano/Desktop/images/18082025/13/09/image_18082025_13_09_15_10645.jpg
/home/nano/Desktop/images/18082025/13/08/image_18082025_13_09_04_9626.jpg
/home/nano/Desktop/images/18082025/13/08/image_18082025_13_08_55_9612.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377700501","1377700509","1377700500","1377700499","1377700505","1377700497"],"photo_ids_order":["1377700497","1377700499","1377700500","1377700501","1377700505","1377700509"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6920c195b2c5aefaf8c7da9050fab5f6.jpg","text":"TemporaryFile(/tmp/multipartBody4234505994823602731asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515448861,"filename":"image_18082025_13_09_15_10645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/47fb6fe2f686e8353053ebc9db47c135.jpg","text":"TemporaryFile(/tmp/multipartBody3040125170777168601asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515448861,"filename":"image_18082025_13_08_55_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/00ba9c31cc099cf7ddd02734c247848a.jpg","text":"TemporaryFile(/tmp/multipartBody2367045060011927538asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515448861,"filename":"image_18082025_13_09_24_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/02819509ecb42a4af3f723767012a690.jpg","text":"TemporaryFile(/tmp/multipartBody4794150380102542808asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515448861,"filename":"image_18082025_13_09_34_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bff7bf8c23b9fb8813840d7115da9ba3.jpg","text":"TemporaryFile(/tmp/multipartBody7846423352629238696asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515448861,"filename":"image_18082025_13_09_04_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/be5bb25630c238ce9fea73335a008919.jpg","text":"TemporaryFile(/tmp/multipartBody1429412117226242859asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515448861,"filename":"image_18082025_13_09_45_10629.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377700500","file1":"1377700499","file0":"1377700497","file4":"1377700505","file5":"1377700509","file3":"1377700501"},"map_files_photo_id_array":[{"photo_id":"1377700509","filename":"file5"},{"photo_id":"1377700500","filename":"file2"},{"photo_id":"1377700505","filename":"file4"},{"photo_id":"1377700499","filename":"file1"},{"photo_id":"1377700497","filename":"file0"},{"photo_id":"1377700501","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377700501":["hashtag1","hashtag2"]},{"1377700509":["hashtag1","hashtag2"]},{"1377700500":["hashtag1","hashtag2"]},{"1377700499":["hashtag1","hashtag2"]},{"1377700505":["hashtag1","hashtag2"]},{"1377700497":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377700501, 1377700509, 1377700500, 1377700499, 1377700505, 1377700497)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.924479484558105 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:10:32.614854
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/10/image_18082025_13_10_44_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/13/10/image_18082025_13_10_35_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/13/10/image_18082025_13_10_24_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/13/10/image_18082025_13_10_15_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/13/09/image_18082025_13_10_05_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/13/09/image_18082025_13_09_54_9606.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/10/image_18082025_13_10_44_9610.jpg', '/home/nano/Desktop/images/18082025/13/10/image_18082025_13_10_35_10623.jpg', '/home/nano/Desktop/images/18082025/13/10/image_18082025_13_10_24_9618.jpg', '/home/nano/Desktop/images/18082025/13/10/image_18082025_13_10_15_9631.jpg', '/home/nano/Desktop/images/18082025/13/09/image_18082025_13_10_05_10639.jpg', '/home/nano/Desktop/images/18082025/13/09/image_18082025_13_09_54_9606.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/10/image_18082025_13_10_44_9610.jpg
/home/nano/Desktop/images/18082025/13/10/image_18082025_13_10_35_10623.jpg
/home/nano/Desktop/images/18082025/13/10/image_18082025_13_10_24_9618.jpg
/home/nano/Desktop/images/18082025/13/10/image_18082025_13_10_15_9631.jpg
/home/nano/Desktop/images/18082025/13/09/image_18082025_13_10_05_10639.jpg
/home/nano/Desktop/images/18082025/13/09/image_18082025_13_09_54_9606.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377700524","1377700532","1377700526","1377700535","1377700529","1377700537"],"photo_ids_order":["1377700524","1377700526","1377700529","1377700532","1377700535","1377700537"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b5a6609cd99e1be26fcbd45ebda7f65d.jpg","text":"TemporaryFile(/tmp/multipartBody7956240015396316896asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515493817,"filename":"image_18082025_13_10_44_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2dd2e846bb322b7a44dee5e6e1f2af77.jpg","text":"TemporaryFile(/tmp/multipartBody4790803432574976307asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515493817,"filename":"image_18082025_13_10_15_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7acc41b1c1308e662cf67958e288459e.jpg","text":"TemporaryFile(/tmp/multipartBody6107584406340393144asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515493817,"filename":"image_18082025_13_10_35_10623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cb98acdf8264b73a6f9722de06f5a837.jpg","text":"TemporaryFile(/tmp/multipartBody5056864107094545233asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515493817,"filename":"image_18082025_13_10_05_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4cf7bb90f37a63834d11723fac94e869.jpg","text":"TemporaryFile(/tmp/multipartBody5390865482542574613asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515493817,"filename":"image_18082025_13_10_24_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/74b2035e0afd28ce0b86faa6f94c4f53.jpg","text":"TemporaryFile(/tmp/multipartBody5433554258104857163asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515493817,"filename":"image_18082025_13_09_54_9606.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377700529","file1":"1377700526","file0":"1377700524","file4":"1377700535","file5":"1377700537","file3":"1377700532"},"map_files_photo_id_array":[{"photo_id":"1377700537","filename":"file5"},{"photo_id":"1377700529","filename":"file2"},{"photo_id":"1377700535","filename":"file4"},{"photo_id":"1377700526","filename":"file1"},{"photo_id":"1377700524","filename":"file0"},{"photo_id":"1377700532","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377700524":["hashtag1","hashtag2"]},{"1377700532":["hashtag1","hashtag2"]},{"1377700526":["hashtag1","hashtag2"]},{"1377700535":["hashtag1","hashtag2"]},{"1377700529":["hashtag1","hashtag2"]},{"1377700537":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377700524, 1377700532, 1377700526, 1377700535, 1377700529, 1377700537)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.813337087631226 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:11:17.709743
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/11/image_18082025_13_11_44_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/13/11/image_18082025_13_11_35_9604.jpg', 2), ('/home/nano/Desktop/images/18082025/13/11/image_18082025_13_11_25_10622.jpg', 2), ('/home/nano/Desktop/images/18082025/13/11/image_18082025_13_11_14_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/13/10/image_18082025_13_11_05_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/13/10/image_18082025_13_10_55_10621.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/11/image_18082025_13_11_44_9630.jpg', '/home/nano/Desktop/images/18082025/13/11/image_18082025_13_11_35_9604.jpg', '/home/nano/Desktop/images/18082025/13/11/image_18082025_13_11_25_10622.jpg', '/home/nano/Desktop/images/18082025/13/11/image_18082025_13_11_14_9638.jpg', '/home/nano/Desktop/images/18082025/13/10/image_18082025_13_11_05_9621.jpg', '/home/nano/Desktop/images/18082025/13/10/image_18082025_13_10_55_10621.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/11/image_18082025_13_11_44_9630.jpg
/home/nano/Desktop/images/18082025/13/11/image_18082025_13_11_35_9604.jpg
/home/nano/Desktop/images/18082025/13/11/image_18082025_13_11_25_10622.jpg
/home/nano/Desktop/images/18082025/13/11/image_18082025_13_11_14_9638.jpg
/home/nano/Desktop/images/18082025/13/10/image_18082025_13_11_05_9621.jpg
/home/nano/Desktop/images/18082025/13/10/image_18082025_13_10_55_10621.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377700566","1377700560","1377700562","1377700553","1377700564","1377700558"],"photo_ids_order":["1377700553","1377700558","1377700560","1377700562","1377700564","1377700566"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ede189d6c8428577e69e43cd15f05cb7.jpg","text":"TemporaryFile(/tmp/multipartBody5758247741958116294asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515538753,"filename":"image_18082025_13_10_55_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3f3b639843db0406003f6ab771aab4ba.jpg","text":"TemporaryFile(/tmp/multipartBody1339286385058788291asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515538753,"filename":"image_18082025_13_11_25_10622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ffa2d59e5191d59f9d8b36a272bd0f8e.jpg","text":"TemporaryFile(/tmp/multipartBody5584372905319988341asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515538753,"filename":"image_18082025_13_11_14_9638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/961373deec28ed6789bd8f439df5e902.jpg","text":"TemporaryFile(/tmp/multipartBody7663003197132820783asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515538753,"filename":"image_18082025_13_11_44_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/830b0f58213ba3d1e278c91078f6f609.jpg","text":"TemporaryFile(/tmp/multipartBody1385458897994355738asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515538753,"filename":"image_18082025_13_11_05_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9cfb0ba2efc8aa52020ebc01fb0e1cdf.jpg","text":"TemporaryFile(/tmp/multipartBody8980653258007833394asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515538753,"filename":"image_18082025_13_11_35_9604.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377700560","file1":"1377700558","file0":"1377700553","file4":"1377700564","file5":"1377700566","file3":"1377700562"},"map_files_photo_id_array":[{"photo_id":"1377700566","filename":"file5"},{"photo_id":"1377700560","filename":"file2"},{"photo_id":"1377700564","filename":"file4"},{"photo_id":"1377700558","filename":"file1"},{"photo_id":"1377700553","filename":"file0"},{"photo_id":"1377700562","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377700566":["hashtag1","hashtag2"]},{"1377700560":["hashtag1","hashtag2"]},{"1377700562":["hashtag1","hashtag2"]},{"1377700553":["hashtag1","hashtag2"]},{"1377700564":["hashtag1","hashtag2"]},{"1377700558":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377700566, 1377700560, 1377700562, 1377700553, 1377700564, 1377700558)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.06192445755005 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:12:02.121669
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/27/image_18082025_11_27_45_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/11/27/image_18082025_11_27_35_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/11/27/image_18082025_11_27_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/11/27/image_18082025_11_27_15_9665.jpg', 2), ('/home/nano/Desktop/images/18082025/11/26/image_18082025_11_27_05_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/11/26/image_18082025_11_26_54_9635.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/27/image_18082025_11_27_45_9646.jpg', '/home/nano/Desktop/images/18082025/11/27/image_18082025_11_27_35_10644.jpg', '/home/nano/Desktop/images/18082025/11/27/image_18082025_11_27_24_9639.jpg', '/home/nano/Desktop/images/18082025/11/27/image_18082025_11_27_15_9665.jpg', '/home/nano/Desktop/images/18082025/11/26/image_18082025_11_27_05_10660.jpg', '/home/nano/Desktop/images/18082025/11/26/image_18082025_11_26_54_9635.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/27/image_18082025_11_27_45_9646.jpg
/home/nano/Desktop/images/18082025/11/27/image_18082025_11_27_35_10644.jpg
/home/nano/Desktop/images/18082025/11/27/image_18082025_11_27_24_9639.jpg
/home/nano/Desktop/images/18082025/11/27/image_18082025_11_27_15_9665.jpg
/home/nano/Desktop/images/18082025/11/26/image_18082025_11_27_05_10660.jpg
/home/nano/Desktop/images/18082025/11/26/image_18082025_11_26_54_9635.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377700584","1377700575","1377700589","1377700580","1377700571","1377700594"],"photo_ids_order":["1377700571","1377700575","1377700580","1377700584","1377700589","1377700594"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8027e7a715e0e532cfa61ae3a28bec5a.jpg","text":"TemporaryFile(/tmp/multipartBody174551137950706730asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515583553,"filename":"image_18082025_11_27_15_9665.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2d769b9f8806d894ae1f9d25a2d0238b.jpg","text":"TemporaryFile(/tmp/multipartBody8269428838786083038asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515583553,"filename":"image_18082025_11_27_35_10644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9d84f8d0ef24f7758d7d14281f8f7c4b.jpg","text":"TemporaryFile(/tmp/multipartBody8184537731479104187asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515583553,"filename":"image_18082025_11_27_05_10660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3b455a7824f2e202939230323ce6ee8b.jpg","text":"TemporaryFile(/tmp/multipartBody7504903765462271374asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515583553,"filename":"image_18082025_11_27_24_9639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/89b30cd19ef8b892a9ba6857f4d6b322.jpg","text":"TemporaryFile(/tmp/multipartBody3069271816122731768asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515583553,"filename":"image_18082025_11_27_45_9646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/63c0a8d5bbaa59eda3ba2ce4e991971a.jpg","text":"TemporaryFile(/tmp/multipartBody1042741876757931881asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515583553,"filename":"image_18082025_11_26_54_9635.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377700580","file1":"1377700575","file0":"1377700571","file4":"1377700589","file5":"1377700594","file3":"1377700584"},"map_files_photo_id_array":[{"photo_id":"1377700594","filename":"file5"},{"photo_id":"1377700580","filename":"file2"},{"photo_id":"1377700589","filename":"file4"},{"photo_id":"1377700575","filename":"file1"},{"photo_id":"1377700571","filename":"file0"},{"photo_id":"1377700584","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377700584":["hashtag1","hashtag2"]},{"1377700575":["hashtag1","hashtag2"]},{"1377700589":["hashtag1","hashtag2"]},{"1377700580":["hashtag1","hashtag2"]},{"1377700571":["hashtag1","hashtag2"]},{"1377700594":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377700584, 1377700575, 1377700589, 1377700580, 1377700571, 1377700594)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.99641418457031 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:12:46.841654
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/12/image_18082025_13_12_45_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/13/12/image_18082025_13_12_34_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/13/12/image_18082025_13_12_25_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/13/12/image_18082025_13_12_14_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/13/11/image_18082025_13_12_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/13/11/image_18082025_13_11_55_10618.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/12/image_18082025_13_12_45_10626.jpg', '/home/nano/Desktop/images/18082025/13/12/image_18082025_13_12_34_9618.jpg', '/home/nano/Desktop/images/18082025/13/12/image_18082025_13_12_25_10629.jpg', '/home/nano/Desktop/images/18082025/13/12/image_18082025_13_12_14_9657.jpg', '/home/nano/Desktop/images/18082025/13/11/image_18082025_13_12_04_9645.jpg', '/home/nano/Desktop/images/18082025/13/11/image_18082025_13_11_55_10618.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/12/image_18082025_13_12_45_10626.jpg
/home/nano/Desktop/images/18082025/13/12/image_18082025_13_12_34_9618.jpg
/home/nano/Desktop/images/18082025/13/12/image_18082025_13_12_25_10629.jpg
/home/nano/Desktop/images/18082025/13/12/image_18082025_13_12_14_9657.jpg
/home/nano/Desktop/images/18082025/13/11/image_18082025_13_12_04_9645.jpg
/home/nano/Desktop/images/18082025/13/11/image_18082025_13_11_55_10618.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377700617","1377700602","1377700605","1377700610","1377700613","1377700607"],"photo_ids_order":["1377700602","1377700605","1377700607","1377700610","1377700613","1377700617"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1b4431ecf71b2b4c63e8ef429008845d.jpg","text":"TemporaryFile(/tmp/multipartBody1358264871770402316asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515628515,"filename":"image_18082025_13_11_55_10618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/639558a5c36179084a800537d06403e0.jpg","text":"TemporaryFile(/tmp/multipartBody1666223264339800146asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515628515,"filename":"image_18082025_13_12_45_10626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1bdfd3ebccac2ad572611901b23320e5.jpg","text":"TemporaryFile(/tmp/multipartBody3668293700915506959asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515628515,"filename":"image_18082025_13_12_34_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d1ce41b72517b598458fe30e9e12d8a8.jpg","text":"TemporaryFile(/tmp/multipartBody5689694207389136843asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515628515,"filename":"image_18082025_13_12_14_9657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/296a90fadb18cab85ecf4f4bce2c9e13.jpg","text":"TemporaryFile(/tmp/multipartBody2446516998522265078asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515628515,"filename":"image_18082025_13_12_04_9645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dd7a40942a56e75adb438afb4774136c.jpg","text":"TemporaryFile(/tmp/multipartBody105647129653774492asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515628515,"filename":"image_18082025_13_12_25_10629.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377700607","file1":"1377700605","file0":"1377700602","file4":"1377700613","file5":"1377700617","file3":"1377700610"},"map_files_photo_id_array":[{"photo_id":"1377700617","filename":"file5"},{"photo_id":"1377700607","filename":"file2"},{"photo_id":"1377700613","filename":"file4"},{"photo_id":"1377700605","filename":"file1"},{"photo_id":"1377700602","filename":"file0"},{"photo_id":"1377700610","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377700617":["hashtag1","hashtag2"]},{"1377700602":["hashtag1","hashtag2"]},{"1377700605":["hashtag1","hashtag2"]},{"1377700610":["hashtag1","hashtag2"]},{"1377700613":["hashtag1","hashtag2"]},{"1377700607":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377700617, 1377700602, 1377700605, 1377700610, 1377700613, 1377700607)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.08733320236206 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:13:32.008376
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/13/image_18082025_13_13_45_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/13/13/image_18082025_13_13_34_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/13/13/image_18082025_13_13_24_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/13/13/image_18082025_13_13_15_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/13/12/image_18082025_13_13_04_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/13/12/image_18082025_13_12_55_9633.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/13/image_18082025_13_13_45_10624.jpg', '/home/nano/Desktop/images/18082025/13/13/image_18082025_13_13_34_9614.jpg', '/home/nano/Desktop/images/18082025/13/13/image_18082025_13_13_24_9615.jpg', '/home/nano/Desktop/images/18082025/13/13/image_18082025_13_13_15_10653.jpg', '/home/nano/Desktop/images/18082025/13/12/image_18082025_13_13_04_9624.jpg', '/home/nano/Desktop/images/18082025/13/12/image_18082025_13_12_55_9633.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/13/image_18082025_13_13_45_10624.jpg
/home/nano/Desktop/images/18082025/13/13/image_18082025_13_13_34_9614.jpg
/home/nano/Desktop/images/18082025/13/13/image_18082025_13_13_24_9615.jpg
/home/nano/Desktop/images/18082025/13/13/image_18082025_13_13_15_10653.jpg
/home/nano/Desktop/images/18082025/13/12/image_18082025_13_13_04_9624.jpg
/home/nano/Desktop/images/18082025/13/12/image_18082025_13_12_55_9633.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377700638","1377700637","1377700631","1377700634","1377700642","1377700645"],"photo_ids_order":["1377700631","1377700634","1377700637","1377700638","1377700642","1377700645"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e5f0f24e1ab663061f8d83a8578be18a.jpg","text":"TemporaryFile(/tmp/multipartBody2340151817022895726asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515673087,"filename":"image_18082025_13_13_15_10653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/622f8d3fb214bf25e6a804f2913f4f8e.jpg","text":"TemporaryFile(/tmp/multipartBody887485640485766669asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515673087,"filename":"image_18082025_13_13_24_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3f0b390104c9ec313d7d594ecc884922.jpg","text":"TemporaryFile(/tmp/multipartBody6820778997074092930asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515673087,"filename":"image_18082025_13_13_45_10624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2b886e1613ee01d6912f665c395faf03.jpg","text":"TemporaryFile(/tmp/multipartBody6775881787456798484asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515673087,"filename":"image_18082025_13_13_34_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1c3e90d47ecf6719cce1b58e2a3d0e39.jpg","text":"TemporaryFile(/tmp/multipartBody1494522669700924237asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515673087,"filename":"image_18082025_13_13_04_9624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/74965d6ae840e730a0cf01f4f90229cd.jpg","text":"TemporaryFile(/tmp/multipartBody1056716375012651057asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515673087,"filename":"image_18082025_13_12_55_9633.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377700637","file1":"1377700634","file0":"1377700631","file4":"1377700642","file5":"1377700645","file3":"1377700638"},"map_files_photo_id_array":[{"photo_id":"1377700645","filename":"file5"},{"photo_id":"1377700637","filename":"file2"},{"photo_id":"1377700642","filename":"file4"},{"photo_id":"1377700634","filename":"file1"},{"photo_id":"1377700631","filename":"file0"},{"photo_id":"1377700638","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377700638":["hashtag1","hashtag2"]},{"1377700637":["hashtag1","hashtag2"]},{"1377700631":["hashtag1","hashtag2"]},{"1377700634":["hashtag1","hashtag2"]},{"1377700642":["hashtag1","hashtag2"]},{"1377700645":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377700638, 1377700637, 1377700631, 1377700634, 1377700642, 1377700645)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.604094982147217 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:14:17.024575
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/14/image_18082025_13_14_44_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/13/14/image_18082025_13_14_35_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/13/14/image_18082025_13_14_24_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/13/14/image_18082025_13_14_15_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/13/13/image_18082025_13_14_05_10643.jpg', 2), ('/home/nano/Desktop/images/18082025/13/13/image_18082025_13_13_54_9621.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/14/image_18082025_13_14_44_9620.jpg', '/home/nano/Desktop/images/18082025/13/14/image_18082025_13_14_35_10635.jpg', '/home/nano/Desktop/images/18082025/13/14/image_18082025_13_14_24_9637.jpg', '/home/nano/Desktop/images/18082025/13/14/image_18082025_13_14_15_9613.jpg', '/home/nano/Desktop/images/18082025/13/13/image_18082025_13_14_05_10643.jpg', '/home/nano/Desktop/images/18082025/13/13/image_18082025_13_13_54_9621.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/14/image_18082025_13_14_44_9620.jpg
/home/nano/Desktop/images/18082025/13/14/image_18082025_13_14_35_10635.jpg
/home/nano/Desktop/images/18082025/13/14/image_18082025_13_14_24_9637.jpg
/home/nano/Desktop/images/18082025/13/14/image_18082025_13_14_15_9613.jpg
/home/nano/Desktop/images/18082025/13/13/image_18082025_13_14_05_10643.jpg
/home/nano/Desktop/images/18082025/13/13/image_18082025_13_13_54_9621.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.2892963886260986 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:14:32.024000
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/14/image_18082025_13_14_44_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/13/14/image_18082025_13_14_35_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/13/14/image_18082025_13_14_24_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/13/14/image_18082025_13_14_15_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/13/13/image_18082025_13_14_05_10643.jpg', 2), ('/home/nano/Desktop/images/18082025/13/13/image_18082025_13_13_54_9621.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/14/image_18082025_13_14_44_9620.jpg', '/home/nano/Desktop/images/18082025/13/14/image_18082025_13_14_35_10635.jpg', '/home/nano/Desktop/images/18082025/13/14/image_18082025_13_14_24_9637.jpg', '/home/nano/Desktop/images/18082025/13/14/image_18082025_13_14_15_9613.jpg', '/home/nano/Desktop/images/18082025/13/13/image_18082025_13_14_05_10643.jpg', '/home/nano/Desktop/images/18082025/13/13/image_18082025_13_13_54_9621.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/14/image_18082025_13_14_44_9620.jpg
/home/nano/Desktop/images/18082025/13/14/image_18082025_13_14_35_10635.jpg
/home/nano/Desktop/images/18082025/13/14/image_18082025_13_14_24_9637.jpg
/home/nano/Desktop/images/18082025/13/14/image_18082025_13_14_15_9613.jpg
/home/nano/Desktop/images/18082025/13/13/image_18082025_13_14_05_10643.jpg
/home/nano/Desktop/images/18082025/13/13/image_18082025_13_13_54_9621.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377700674","1377700682","1377700676","1377700679","1377700684","1377700672"],"photo_ids_order":["1377700672","1377700674","1377700676","1377700679","1377700682","1377700684"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/70b9aa1fa5497943f558c83696d8af39.jpg","text":"TemporaryFile(/tmp/multipartBody3966871813861263079asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515733114,"filename":"image_18082025_13_14_35_10635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1e47e35a63379fc83572bd3f7e62859e.jpg","text":"TemporaryFile(/tmp/multipartBody7902005849483570201asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515733114,"filename":"image_18082025_13_14_05_10643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/679d9dc08e9f02170cda311188dc37d0.jpg","text":"TemporaryFile(/tmp/multipartBody5420701913466608236asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515733114,"filename":"image_18082025_13_14_24_9637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/55383e8ebc502241bf2d4a46487a7b6a.jpg","text":"TemporaryFile(/tmp/multipartBody5498324260006754710asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515733114,"filename":"image_18082025_13_14_15_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7b0d9965313da3727c83aa1990ff88d7.jpg","text":"TemporaryFile(/tmp/multipartBody5799020443524543022asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515733114,"filename":"image_18082025_13_13_54_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a290e3c3a73623e6c13ae1c383aead43.jpg","text":"TemporaryFile(/tmp/multipartBody5406997103948037934asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515733114,"filename":"image_18082025_13_14_44_9620.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377700676","file1":"1377700674","file0":"1377700672","file4":"1377700682","file5":"1377700684","file3":"1377700679"},"map_files_photo_id_array":[{"photo_id":"1377700684","filename":"file5"},{"photo_id":"1377700676","filename":"file2"},{"photo_id":"1377700682","filename":"file4"},{"photo_id":"1377700674","filename":"file1"},{"photo_id":"1377700672","filename":"file0"},{"photo_id":"1377700679","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377700674":["hashtag1","hashtag2"]},{"1377700682":["hashtag1","hashtag2"]},{"1377700676":["hashtag1","hashtag2"]},{"1377700679":["hashtag1","hashtag2"]},{"1377700684":["hashtag1","hashtag2"]},{"1377700672":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377700674, 1377700682, 1377700676, 1377700679, 1377700684, 1377700672)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.331822156906128 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:15:17.140673
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/15/image_18082025_13_15_44_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/13/15/image_18082025_13_15_35_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/13/15/image_18082025_13_15_25_10599.jpg', 2), ('/home/nano/Desktop/images/18082025/13/15/image_18082025_13_15_14_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/13/14/image_18082025_13_15_05_10607.jpg', 2), ('/home/nano/Desktop/images/18082025/13/14/image_18082025_13_14_54_9638.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/15/image_18082025_13_15_44_9618.jpg', '/home/nano/Desktop/images/18082025/13/15/image_18082025_13_15_35_9628.jpg', '/home/nano/Desktop/images/18082025/13/15/image_18082025_13_15_25_10599.jpg', '/home/nano/Desktop/images/18082025/13/15/image_18082025_13_15_14_9619.jpg', '/home/nano/Desktop/images/18082025/13/14/image_18082025_13_15_05_10607.jpg', '/home/nano/Desktop/images/18082025/13/14/image_18082025_13_14_54_9638.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/15/image_18082025_13_15_44_9618.jpg
/home/nano/Desktop/images/18082025/13/15/image_18082025_13_15_35_9628.jpg
/home/nano/Desktop/images/18082025/13/15/image_18082025_13_15_25_10599.jpg
/home/nano/Desktop/images/18082025/13/15/image_18082025_13_15_14_9619.jpg
/home/nano/Desktop/images/18082025/13/14/image_18082025_13_15_05_10607.jpg
/home/nano/Desktop/images/18082025/13/14/image_18082025_13_14_54_9638.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377700707","1377700715","1377700700","1377700702","1377700711","1377700705"],"photo_ids_order":["1377700700","1377700702","1377700705","1377700707","1377700711","1377700715"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/131f58ab3e3ba9354b4292d62c617275.jpg","text":"TemporaryFile(/tmp/multipartBody3543972119638551306asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515778245,"filename":"image_18082025_13_15_14_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/516d59a67ff5f5aca8a4101aa2e96032.jpg","text":"TemporaryFile(/tmp/multipartBody8517429981337633479asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515778245,"filename":"image_18082025_13_14_54_9638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/aed1d01fdc1c57082df03cf1722e7fa4.jpg","text":"TemporaryFile(/tmp/multipartBody7898673879446295143asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515778245,"filename":"image_18082025_13_15_44_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e246ef61d8b980d5d061db1dc086cba8.jpg","text":"TemporaryFile(/tmp/multipartBody4627540969228003946asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515778245,"filename":"image_18082025_13_15_35_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/83ca5d78216993c0c34f122e04242bc0.jpg","text":"TemporaryFile(/tmp/multipartBody321387482930501801asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515778245,"filename":"image_18082025_13_15_05_10607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/243d512028f947d6600295549daba30c.jpg","text":"TemporaryFile(/tmp/multipartBody7135006392794444319asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515778245,"filename":"image_18082025_13_15_25_10599.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377700705","file1":"1377700702","file0":"1377700700","file4":"1377700711","file5":"1377700715","file3":"1377700707"},"map_files_photo_id_array":[{"photo_id":"1377700715","filename":"file5"},{"photo_id":"1377700705","filename":"file2"},{"photo_id":"1377700711","filename":"file4"},{"photo_id":"1377700702","filename":"file1"},{"photo_id":"1377700700","filename":"file0"},{"photo_id":"1377700707","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377700707":["hashtag1","hashtag2"]},{"1377700715":["hashtag1","hashtag2"]},{"1377700700":["hashtag1","hashtag2"]},{"1377700702":["hashtag1","hashtag2"]},{"1377700711":["hashtag1","hashtag2"]},{"1377700705":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377700707, 1377700715, 1377700700, 1377700702, 1377700711, 1377700705)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.603415727615356 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:16:02.741765
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/26/image_18082025_11_26_45_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/11/26/image_18082025_11_26_35_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/11/26/image_18082025_11_26_24_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/11/26/image_18082025_11_26_15_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/11/25/image_18082025_11_26_04_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/11/25/image_18082025_11_25_54_9640.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/26/image_18082025_11_26_45_9608.jpg', '/home/nano/Desktop/images/18082025/11/26/image_18082025_11_26_35_10637.jpg', '/home/nano/Desktop/images/18082025/11/26/image_18082025_11_26_24_9629.jpg', '/home/nano/Desktop/images/18082025/11/26/image_18082025_11_26_15_10660.jpg', '/home/nano/Desktop/images/18082025/11/25/image_18082025_11_26_04_9634.jpg', '/home/nano/Desktop/images/18082025/11/25/image_18082025_11_25_54_9640.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/26/image_18082025_11_26_45_9608.jpg
/home/nano/Desktop/images/18082025/11/26/image_18082025_11_26_35_10637.jpg
/home/nano/Desktop/images/18082025/11/26/image_18082025_11_26_24_9629.jpg
/home/nano/Desktop/images/18082025/11/26/image_18082025_11_26_15_10660.jpg
/home/nano/Desktop/images/18082025/11/25/image_18082025_11_26_04_9634.jpg
/home/nano/Desktop/images/18082025/11/25/image_18082025_11_25_54_9640.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377700746","1377700737","1377700742","1377700733","1377700727","1377700729"],"photo_ids_order":["1377700727","1377700729","1377700733","1377700737","1377700742","1377700746"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/df752e15fb6ba97da7eff905325af302.jpg","text":"TemporaryFile(/tmp/multipartBody8545566856734575280asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515823995,"filename":"image_18082025_11_25_54_9640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/92a70a3562869f7e301227e65fe67907.jpg","text":"TemporaryFile(/tmp/multipartBody440447151630669253asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515823995,"filename":"image_18082025_11_26_15_10660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dce464c1343aa64b80de997fec6664b9.jpg","text":"TemporaryFile(/tmp/multipartBody4150555570733677445asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515823995,"filename":"image_18082025_11_26_04_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/629461c29bf0de3d320b9ce360dd5b60.jpg","text":"TemporaryFile(/tmp/multipartBody2485739263176772871asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515823995,"filename":"image_18082025_11_26_24_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/62ac935c7962c23492ffa87761865c9f.jpg","text":"TemporaryFile(/tmp/multipartBody5330868082658712538asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515823995,"filename":"image_18082025_11_26_45_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/12d100c3146748e859c2f20575f80311.jpg","text":"TemporaryFile(/tmp/multipartBody7001044547304103981asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515823995,"filename":"image_18082025_11_26_35_10637.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377700733","file1":"1377700729","file0":"1377700727","file4":"1377700742","file5":"1377700746","file3":"1377700737"},"map_files_photo_id_array":[{"photo_id":"1377700746","filename":"file5"},{"photo_id":"1377700733","filename":"file2"},{"photo_id":"1377700742","filename":"file4"},{"photo_id":"1377700729","filename":"file1"},{"photo_id":"1377700727","filename":"file0"},{"photo_id":"1377700737","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377700746":["hashtag1","hashtag2"]},{"1377700737":["hashtag1","hashtag2"]},{"1377700742":["hashtag1","hashtag2"]},{"1377700733":["hashtag1","hashtag2"]},{"1377700727":["hashtag1","hashtag2"]},{"1377700729":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377700746, 1377700737, 1377700742, 1377700733, 1377700727, 1377700729)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.529848337173462 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:16:47.267677
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/16/image_18082025_13_16_44_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/13/16/image_18082025_13_16_34_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/13/16/image_18082025_13_16_25_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/13/16/image_18082025_13_16_14_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/13/15/image_18082025_13_16_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/13/15/image_18082025_13_15_55_10638.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/16/image_18082025_13_16_44_9646.jpg', '/home/nano/Desktop/images/18082025/13/16/image_18082025_13_16_34_9644.jpg', '/home/nano/Desktop/images/18082025/13/16/image_18082025_13_16_25_10650.jpg', '/home/nano/Desktop/images/18082025/13/16/image_18082025_13_16_14_9661.jpg', '/home/nano/Desktop/images/18082025/13/15/image_18082025_13_16_04_9655.jpg', '/home/nano/Desktop/images/18082025/13/15/image_18082025_13_15_55_10638.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/16/image_18082025_13_16_44_9646.jpg
/home/nano/Desktop/images/18082025/13/16/image_18082025_13_16_34_9644.jpg
/home/nano/Desktop/images/18082025/13/16/image_18082025_13_16_25_10650.jpg
/home/nano/Desktop/images/18082025/13/16/image_18082025_13_16_14_9661.jpg
/home/nano/Desktop/images/18082025/13/15/image_18082025_13_16_04_9655.jpg
/home/nano/Desktop/images/18082025/13/15/image_18082025_13_15_55_10638.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377700761","1377700764","1377700772","1377700769","1377700754","1377700757"],"photo_ids_order":["1377700754","1377700757","1377700761","1377700764","1377700769","1377700772"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e99c3efb8fdad7aeed6270dbf8a8d5a2.jpg","text":"TemporaryFile(/tmp/multipartBody5917696562296656322asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515868685,"filename":"image_18082025_13_16_25_10650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/48ffac27ea1b5db6d1a35efc2003507e.jpg","text":"TemporaryFile(/tmp/multipartBody5579488909749241644asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515868685,"filename":"image_18082025_13_16_14_9661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7b76b0f91423922d8210af6a94017a6d.jpg","text":"TemporaryFile(/tmp/multipartBody2228959377026832916asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515868685,"filename":"image_18082025_13_15_55_10638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1cc83b3185c7ca82ccac39f938d63d34.jpg","text":"TemporaryFile(/tmp/multipartBody4613695523322894894asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515868685,"filename":"image_18082025_13_16_04_9655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9b4b83d342f7e9c77f028887a308a567.jpg","text":"TemporaryFile(/tmp/multipartBody6622034130064201887asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515868685,"filename":"image_18082025_13_16_44_9646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/08ebbd90ecacb99796c35052c1fd57bf.jpg","text":"TemporaryFile(/tmp/multipartBody227885505532390530asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515868685,"filename":"image_18082025_13_16_34_9644.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377700761","file1":"1377700757","file0":"1377700754","file4":"1377700769","file5":"1377700772","file3":"1377700764"},"map_files_photo_id_array":[{"photo_id":"1377700772","filename":"file5"},{"photo_id":"1377700761","filename":"file2"},{"photo_id":"1377700769","filename":"file4"},{"photo_id":"1377700757","filename":"file1"},{"photo_id":"1377700754","filename":"file0"},{"photo_id":"1377700764","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377700761":["hashtag1","hashtag2"]},{"1377700764":["hashtag1","hashtag2"]},{"1377700772":["hashtag1","hashtag2"]},{"1377700769":["hashtag1","hashtag2"]},{"1377700754":["hashtag1","hashtag2"]},{"1377700757":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377700761, 1377700764, 1377700772, 1377700769, 1377700754, 1377700757)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.638328552246094 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:17:32.376179
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/17/image_18082025_13_17_45_10664.jpg', 2), ('/home/nano/Desktop/images/18082025/13/17/image_18082025_13_17_34_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/13/17/image_18082025_13_17_25_9683.jpg', 2), ('/home/nano/Desktop/images/18082025/13/17/image_18082025_13_17_15_10676.jpg', 2), ('/home/nano/Desktop/images/18082025/13/16/image_18082025_13_17_04_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/13/16/image_18082025_13_16_55_10646.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/17/image_18082025_13_17_45_10664.jpg', '/home/nano/Desktop/images/18082025/13/17/image_18082025_13_17_34_9652.jpg', '/home/nano/Desktop/images/18082025/13/17/image_18082025_13_17_25_9683.jpg', '/home/nano/Desktop/images/18082025/13/17/image_18082025_13_17_15_10676.jpg', '/home/nano/Desktop/images/18082025/13/16/image_18082025_13_17_04_9632.jpg', '/home/nano/Desktop/images/18082025/13/16/image_18082025_13_16_55_10646.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/17/image_18082025_13_17_45_10664.jpg
/home/nano/Desktop/images/18082025/13/17/image_18082025_13_17_34_9652.jpg
/home/nano/Desktop/images/18082025/13/17/image_18082025_13_17_25_9683.jpg
/home/nano/Desktop/images/18082025/13/17/image_18082025_13_17_15_10676.jpg
/home/nano/Desktop/images/18082025/13/16/image_18082025_13_17_04_9632.jpg
/home/nano/Desktop/images/18082025/13/16/image_18082025_13_16_55_10646.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377700791","1377700785","1377700793","1377700787","1377700796","1377700789"],"photo_ids_order":["1377700785","1377700787","1377700789","1377700791","1377700793","1377700796"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/30db665b62b3654fc5114ed626878642.jpg","text":"TemporaryFile(/tmp/multipartBody8111268733282255210asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515913911,"filename":"image_18082025_13_17_15_10676.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/aea11fb21133aefcd4594d819ec82491.jpg","text":"TemporaryFile(/tmp/multipartBody5817987570004814308asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515913911,"filename":"image_18082025_13_17_45_10664.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c85141aaad08847834db243e9b9e31bc.jpg","text":"TemporaryFile(/tmp/multipartBody1747472639798155562asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515913911,"filename":"image_18082025_13_17_04_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ca98477cc58bae0d3911783f7754dd12.jpg","text":"TemporaryFile(/tmp/multipartBody2441186894936523010asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515913911,"filename":"image_18082025_13_17_34_9652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e1e5eaa49051dadea75d4571049feed1.jpg","text":"TemporaryFile(/tmp/multipartBody513892910168589598asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515913911,"filename":"image_18082025_13_16_55_10646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3fdfbbb79e93baa7b721fa9bfce6f96d.jpg","text":"TemporaryFile(/tmp/multipartBody9111289969062549022asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515913911,"filename":"image_18082025_13_17_25_9683.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377700789","file1":"1377700787","file0":"1377700785","file4":"1377700793","file5":"1377700796","file3":"1377700791"},"map_files_photo_id_array":[{"photo_id":"1377700796","filename":"file5"},{"photo_id":"1377700789","filename":"file2"},{"photo_id":"1377700793","filename":"file4"},{"photo_id":"1377700787","filename":"file1"},{"photo_id":"1377700785","filename":"file0"},{"photo_id":"1377700791","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377700791":["hashtag1","hashtag2"]},{"1377700785":["hashtag1","hashtag2"]},{"1377700793":["hashtag1","hashtag2"]},{"1377700787":["hashtag1","hashtag2"]},{"1377700796":["hashtag1","hashtag2"]},{"1377700789":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377700791, 1377700785, 1377700793, 1377700787, 1377700796, 1377700789)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.72311186790466 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:18:17.462538
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/18/image_18082025_13_18_45_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/13/18/image_18082025_13_18_34_9688.jpg', 2), ('/home/nano/Desktop/images/18082025/13/18/image_18082025_13_18_25_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/13/18/image_18082025_13_18_15_10676.jpg', 2), ('/home/nano/Desktop/images/18082025/13/17/image_18082025_13_18_04_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/13/17/image_18082025_13_17_55_9628.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/18/image_18082025_13_18_45_10653.jpg', '/home/nano/Desktop/images/18082025/13/18/image_18082025_13_18_34_9688.jpg', '/home/nano/Desktop/images/18082025/13/18/image_18082025_13_18_25_9657.jpg', '/home/nano/Desktop/images/18082025/13/18/image_18082025_13_18_15_10676.jpg', '/home/nano/Desktop/images/18082025/13/17/image_18082025_13_18_04_9660.jpg', '/home/nano/Desktop/images/18082025/13/17/image_18082025_13_17_55_9628.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/18/image_18082025_13_18_45_10653.jpg
/home/nano/Desktop/images/18082025/13/18/image_18082025_13_18_34_9688.jpg
/home/nano/Desktop/images/18082025/13/18/image_18082025_13_18_25_9657.jpg
/home/nano/Desktop/images/18082025/13/18/image_18082025_13_18_15_10676.jpg
/home/nano/Desktop/images/18082025/13/17/image_18082025_13_18_04_9660.jpg
/home/nano/Desktop/images/18082025/13/17/image_18082025_13_17_55_9628.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377700839","1377700835","1377700831","1377700828","1377700822","1377700825"],"photo_ids_order":["1377700822","1377700825","1377700828","1377700831","1377700835","1377700839"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3f320be6ae4c992a8e81f7bedecd7a68.jpg","text":"TemporaryFile(/tmp/multipartBody434556967717041703asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515959009,"filename":"image_18082025_13_17_55_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/78fbbb623b20a5521e213d293e360e21.jpg","text":"TemporaryFile(/tmp/multipartBody3745035508205863936asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515959009,"filename":"image_18082025_13_18_04_9660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/23957dcf4bb247fc3360a8849d29d36e.jpg","text":"TemporaryFile(/tmp/multipartBody5114393643521990387asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515959009,"filename":"image_18082025_13_18_15_10676.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ff25937d6aa9e57d8602bea5df39e99c.jpg","text":"TemporaryFile(/tmp/multipartBody302957286272816611asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515959009,"filename":"image_18082025_13_18_25_9657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/81803c92d0ef310dbe46fb1b6f9a729e.jpg","text":"TemporaryFile(/tmp/multipartBody4417358452270271491asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515959009,"filename":"image_18082025_13_18_45_10653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cadaf6c9245bcb8e2296e6f92d4c281c.jpg","text":"TemporaryFile(/tmp/multipartBody5836787256227841964asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755515959009,"filename":"image_18082025_13_18_34_9688.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377700828","file1":"1377700825","file0":"1377700822","file4":"1377700835","file5":"1377700839","file3":"1377700831"},"map_files_photo_id_array":[{"photo_id":"1377700839","filename":"file5"},{"photo_id":"1377700828","filename":"file2"},{"photo_id":"1377700835","filename":"file4"},{"photo_id":"1377700825","filename":"file1"},{"photo_id":"1377700822","filename":"file0"},{"photo_id":"1377700831","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377700839":["hashtag1","hashtag2"]},{"1377700835":["hashtag1","hashtag2"]},{"1377700831":["hashtag1","hashtag2"]},{"1377700828":["hashtag1","hashtag2"]},{"1377700822":["hashtag1","hashtag2"]},{"1377700825":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377700839, 1377700835, 1377700831, 1377700828, 1377700822, 1377700825)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.2072594165802 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:19:03.527730
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/25/image_18082025_11_25_45_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/11/25/image_18082025_11_25_34_9603.jpg', 2), ('/home/nano/Desktop/images/18082025/11/25/image_18082025_11_25_25_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/11/25/image_18082025_11_25_15_10674.jpg', 2), ('/home/nano/Desktop/images/18082025/11/24/image_18082025_11_25_04_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/11/24/image_18082025_11_24_55_9629.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/25/image_18082025_11_25_45_10635.jpg', '/home/nano/Desktop/images/18082025/11/25/image_18082025_11_25_34_9603.jpg', '/home/nano/Desktop/images/18082025/11/25/image_18082025_11_25_25_9629.jpg', '/home/nano/Desktop/images/18082025/11/25/image_18082025_11_25_15_10674.jpg', '/home/nano/Desktop/images/18082025/11/24/image_18082025_11_25_04_9624.jpg', '/home/nano/Desktop/images/18082025/11/24/image_18082025_11_24_55_9629.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/25/image_18082025_11_25_45_10635.jpg
/home/nano/Desktop/images/18082025/11/25/image_18082025_11_25_34_9603.jpg
/home/nano/Desktop/images/18082025/11/25/image_18082025_11_25_25_9629.jpg
/home/nano/Desktop/images/18082025/11/25/image_18082025_11_25_15_10674.jpg
/home/nano/Desktop/images/18082025/11/24/image_18082025_11_25_04_9624.jpg
/home/nano/Desktop/images/18082025/11/24/image_18082025_11_24_55_9629.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377700869","1377700854","1377700865","1377700862","1377700858","1377700873"],"photo_ids_order":["1377700854","1377700858","1377700862","1377700865","1377700869","1377700873"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a2a44ce9686314b45c718ee48e86c8b2.jpg","text":"TemporaryFile(/tmp/multipartBody7524963906445156717asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516004688,"filename":"image_18082025_11_25_04_9624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/438d7aad75e2482bee9ebd45ef496b4b.jpg","text":"TemporaryFile(/tmp/multipartBody5141561055000330495asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516004688,"filename":"image_18082025_11_25_45_10635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ac1343fc6a6c5d5ab4b03d73b00c43c1.jpg","text":"TemporaryFile(/tmp/multipartBody5279652542788376133asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516004688,"filename":"image_18082025_11_25_15_10674.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/22fcac33a8821677625b32542d8bd964.jpg","text":"TemporaryFile(/tmp/multipartBody3345870450104252587asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516004688,"filename":"image_18082025_11_25_25_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dd1e5b9012614638846069bce8d49f90.jpg","text":"TemporaryFile(/tmp/multipartBody3421759659051404086asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516004688,"filename":"image_18082025_11_25_34_9603.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ace135fd2fcfafff3986f63d5b504db5.jpg","text":"TemporaryFile(/tmp/multipartBody1600467664632528717asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516004688,"filename":"image_18082025_11_24_55_9629.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377700862","file1":"1377700858","file0":"1377700854","file4":"1377700869","file5":"1377700873","file3":"1377700865"},"map_files_photo_id_array":[{"photo_id":"1377700873","filename":"file5"},{"photo_id":"1377700862","filename":"file2"},{"photo_id":"1377700869","filename":"file4"},{"photo_id":"1377700858","filename":"file1"},{"photo_id":"1377700854","filename":"file0"},{"photo_id":"1377700865","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377700869":["hashtag1","hashtag2"]},{"1377700854":["hashtag1","hashtag2"]},{"1377700865":["hashtag1","hashtag2"]},{"1377700862":["hashtag1","hashtag2"]},{"1377700858":["hashtag1","hashtag2"]},{"1377700873":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377700869, 1377700854, 1377700865, 1377700862, 1377700858, 1377700873)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.73300337791443 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:19:47.562179
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/19/image_18082025_13_19_45_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/13/19/image_18082025_13_19_34_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/13/19/image_18082025_13_19_25_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/13/19/image_18082025_13_19_15_10685.jpg', 2), ('/home/nano/Desktop/images/18082025/13/18/image_18082025_13_19_04_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/13/18/image_18082025_13_18_55_9657.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/19/image_18082025_13_19_45_10645.jpg', '/home/nano/Desktop/images/18082025/13/19/image_18082025_13_19_34_9658.jpg', '/home/nano/Desktop/images/18082025/13/19/image_18082025_13_19_25_9662.jpg', '/home/nano/Desktop/images/18082025/13/19/image_18082025_13_19_15_10685.jpg', '/home/nano/Desktop/images/18082025/13/18/image_18082025_13_19_04_9644.jpg', '/home/nano/Desktop/images/18082025/13/18/image_18082025_13_18_55_9657.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/19/image_18082025_13_19_45_10645.jpg
/home/nano/Desktop/images/18082025/13/19/image_18082025_13_19_34_9658.jpg
/home/nano/Desktop/images/18082025/13/19/image_18082025_13_19_25_9662.jpg
/home/nano/Desktop/images/18082025/13/19/image_18082025_13_19_15_10685.jpg
/home/nano/Desktop/images/18082025/13/18/image_18082025_13_19_04_9644.jpg
/home/nano/Desktop/images/18082025/13/18/image_18082025_13_18_55_9657.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377700890","1377700883","1377700886","1377700880","1377700897","1377700893"],"photo_ids_order":["1377700880","1377700883","1377700886","1377700890","1377700893","1377700897"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/120cc9a4f2f0af20ad3193c55c9014d8.jpg","text":"TemporaryFile(/tmp/multipartBody5230141456482110553asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516049135,"filename":"image_18082025_13_19_15_10685.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/05a0ee28c0ea38dbee040961fcb7e1d8.jpg","text":"TemporaryFile(/tmp/multipartBody4446326381576733933asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516049135,"filename":"image_18082025_13_19_34_9658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/69a3cd0979e7b388a9c65918474859f0.jpg","text":"TemporaryFile(/tmp/multipartBody3291933825239126199asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516049135,"filename":"image_18082025_13_19_25_9662.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f18ad04304fc822fc81d6da13a09637f.jpg","text":"TemporaryFile(/tmp/multipartBody8347854633366796291asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516049135,"filename":"image_18082025_13_19_45_10645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e69cfaa74fcaf7d945a760d299faecf0.jpg","text":"TemporaryFile(/tmp/multipartBody5693047388874040743asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516049135,"filename":"image_18082025_13_18_55_9657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/be78f79784fb111298477686431d2d02.jpg","text":"TemporaryFile(/tmp/multipartBody1066412330958036742asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516049135,"filename":"image_18082025_13_19_04_9644.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377700886","file1":"1377700883","file0":"1377700880","file4":"1377700893","file5":"1377700897","file3":"1377700890"},"map_files_photo_id_array":[{"photo_id":"1377700897","filename":"file5"},{"photo_id":"1377700886","filename":"file2"},{"photo_id":"1377700893","filename":"file4"},{"photo_id":"1377700883","filename":"file1"},{"photo_id":"1377700880","filename":"file0"},{"photo_id":"1377700890","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377700890":["hashtag1","hashtag2"]},{"1377700883":["hashtag1","hashtag2"]},{"1377700886":["hashtag1","hashtag2"]},{"1377700880":["hashtag1","hashtag2"]},{"1377700897":["hashtag1","hashtag2"]},{"1377700893":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377700890, 1377700883, 1377700886, 1377700880, 1377700897, 1377700893)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.86490797996521 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:20:32.669210
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/20/image_18082025_13_20_45_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/13/20/image_18082025_13_20_34_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/13/20/image_18082025_13_20_25_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/13/20/image_18082025_13_20_15_10680.jpg', 2), ('/home/nano/Desktop/images/18082025/13/19/image_18082025_13_20_04_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/13/19/image_18082025_13_19_55_9639.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/20/image_18082025_13_20_45_10644.jpg', '/home/nano/Desktop/images/18082025/13/20/image_18082025_13_20_34_9660.jpg', '/home/nano/Desktop/images/18082025/13/20/image_18082025_13_20_25_9661.jpg', '/home/nano/Desktop/images/18082025/13/20/image_18082025_13_20_15_10680.jpg', '/home/nano/Desktop/images/18082025/13/19/image_18082025_13_20_04_9653.jpg', '/home/nano/Desktop/images/18082025/13/19/image_18082025_13_19_55_9639.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/20/image_18082025_13_20_45_10644.jpg
/home/nano/Desktop/images/18082025/13/20/image_18082025_13_20_34_9660.jpg
/home/nano/Desktop/images/18082025/13/20/image_18082025_13_20_25_9661.jpg
/home/nano/Desktop/images/18082025/13/20/image_18082025_13_20_15_10680.jpg
/home/nano/Desktop/images/18082025/13/19/image_18082025_13_20_04_9653.jpg
/home/nano/Desktop/images/18082025/13/19/image_18082025_13_19_55_9639.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377700923","1377700917","1377700926","1377700920","1377700914","1377700924"],"photo_ids_order":["1377700914","1377700917","1377700920","1377700923","1377700924","1377700926"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1b2899ec79d87e98de0b684054492061.jpg","text":"TemporaryFile(/tmp/multipartBody7352904074290766491asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516094280,"filename":"image_18082025_13_20_15_10680.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/38bf9874866d855cd400e18ae4206e3e.jpg","text":"TemporaryFile(/tmp/multipartBody3381345491063172792asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516094280,"filename":"image_18082025_13_20_34_9660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b1fbc472dc29a2d5dccda22e35c6c43c.jpg","text":"TemporaryFile(/tmp/multipartBody5690610381018892893asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516094280,"filename":"image_18082025_13_19_55_9639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/433e7b947fa65d0cfee5d068921486df.jpg","text":"TemporaryFile(/tmp/multipartBody6125193466964932196asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516094280,"filename":"image_18082025_13_20_25_9661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/50115c5f2487148737ef11938ea38e78.jpg","text":"TemporaryFile(/tmp/multipartBody675997480893023295asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516094280,"filename":"image_18082025_13_20_45_10644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3dd7b23c1f47868c72ce45e408fc7e19.jpg","text":"TemporaryFile(/tmp/multipartBody7232095861948125872asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516094280,"filename":"image_18082025_13_20_04_9653.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377700920","file1":"1377700917","file0":"1377700914","file4":"1377700924","file5":"1377700926","file3":"1377700923"},"map_files_photo_id_array":[{"photo_id":"1377700926","filename":"file5"},{"photo_id":"1377700920","filename":"file2"},{"photo_id":"1377700924","filename":"file4"},{"photo_id":"1377700917","filename":"file1"},{"photo_id":"1377700914","filename":"file0"},{"photo_id":"1377700923","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377700923":["hashtag1","hashtag2"]},{"1377700917":["hashtag1","hashtag2"]},{"1377700926":["hashtag1","hashtag2"]},{"1377700920":["hashtag1","hashtag2"]},{"1377700914":["hashtag1","hashtag2"]},{"1377700924":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377700923, 1377700917, 1377700926, 1377700920, 1377700914, 1377700924)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.44432544708252 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:21:16.780480
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/21/image_18082025_13_21_45_10614.jpg', 2), ('/home/nano/Desktop/images/18082025/13/21/image_18082025_13_21_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/13/21/image_18082025_13_21_24_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/13/21/image_18082025_13_21_15_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/13/20/image_18082025_13_21_04_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/13/20/image_18082025_13_20_55_9652.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/21/image_18082025_13_21_45_10614.jpg', '/home/nano/Desktop/images/18082025/13/21/image_18082025_13_21_34_9642.jpg', '/home/nano/Desktop/images/18082025/13/21/image_18082025_13_21_24_9632.jpg', '/home/nano/Desktop/images/18082025/13/21/image_18082025_13_21_15_10648.jpg', '/home/nano/Desktop/images/18082025/13/20/image_18082025_13_21_04_9631.jpg', '/home/nano/Desktop/images/18082025/13/20/image_18082025_13_20_55_9652.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/21/image_18082025_13_21_45_10614.jpg
/home/nano/Desktop/images/18082025/13/21/image_18082025_13_21_34_9642.jpg
/home/nano/Desktop/images/18082025/13/21/image_18082025_13_21_24_9632.jpg
/home/nano/Desktop/images/18082025/13/21/image_18082025_13_21_15_10648.jpg
/home/nano/Desktop/images/18082025/13/20/image_18082025_13_21_04_9631.jpg
/home/nano/Desktop/images/18082025/13/20/image_18082025_13_20_55_9652.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377700941","1377700950","1377700944","1377700947","1377700952","1377700948"],"photo_ids_order":["1377700941","1377700944","1377700947","1377700948","1377700950","1377700952"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dbf484fac7e6eac35b08833f16049742.jpg","text":"TemporaryFile(/tmp/multipartBody6410138232424741460asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516138215,"filename":"image_18082025_13_21_45_10614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/351f31e473e6e3e0887f8aedeb972985.jpg","text":"TemporaryFile(/tmp/multipartBody5976112975797074388asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516138215,"filename":"image_18082025_13_21_04_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ff697239928e81fc512a295f2b0d96a1.jpg","text":"TemporaryFile(/tmp/multipartBody2020250180813795056asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516138215,"filename":"image_18082025_13_21_34_9642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/edc751ac97597eb92193fe2e01c8c197.jpg","text":"TemporaryFile(/tmp/multipartBody6002123976777442615asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516138215,"filename":"image_18082025_13_21_24_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/746f78bef8758b010a231d1a837bdba7.jpg","text":"TemporaryFile(/tmp/multipartBody3379741800309842878asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516138215,"filename":"image_18082025_13_20_55_9652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fb40c95ae28d08470a53aef08bb75a99.jpg","text":"TemporaryFile(/tmp/multipartBody829667629500489523asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516138215,"filename":"image_18082025_13_21_15_10648.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377700947","file1":"1377700944","file0":"1377700941","file4":"1377700950","file5":"1377700952","file3":"1377700948"},"map_files_photo_id_array":[{"photo_id":"1377700952","filename":"file5"},{"photo_id":"1377700947","filename":"file2"},{"photo_id":"1377700950","filename":"file4"},{"photo_id":"1377700944","filename":"file1"},{"photo_id":"1377700941","filename":"file0"},{"photo_id":"1377700948","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377700941":["hashtag1","hashtag2"]},{"1377700950":["hashtag1","hashtag2"]},{"1377700944":["hashtag1","hashtag2"]},{"1377700947":["hashtag1","hashtag2"]},{"1377700952":["hashtag1","hashtag2"]},{"1377700948":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377700941, 1377700950, 1377700944, 1377700947, 1377700952, 1377700948)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.56266808509827 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:22:02.390681
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/24/image_18082025_11_24_45_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/11/24/image_18082025_11_24_34_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/11/24/image_18082025_11_24_25_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/11/24/image_18082025_11_24_14_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/11/23/image_18082025_11_24_05_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/11/23/image_18082025_11_23_55_10635.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/24/image_18082025_11_24_45_10632.jpg', '/home/nano/Desktop/images/18082025/11/24/image_18082025_11_24_34_9612.jpg', '/home/nano/Desktop/images/18082025/11/24/image_18082025_11_24_25_10627.jpg', '/home/nano/Desktop/images/18082025/11/24/image_18082025_11_24_14_9650.jpg', '/home/nano/Desktop/images/18082025/11/23/image_18082025_11_24_05_9632.jpg', '/home/nano/Desktop/images/18082025/11/23/image_18082025_11_23_55_10635.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/24/image_18082025_11_24_45_10632.jpg
/home/nano/Desktop/images/18082025/11/24/image_18082025_11_24_34_9612.jpg
/home/nano/Desktop/images/18082025/11/24/image_18082025_11_24_25_10627.jpg
/home/nano/Desktop/images/18082025/11/24/image_18082025_11_24_14_9650.jpg
/home/nano/Desktop/images/18082025/11/23/image_18082025_11_24_05_9632.jpg
/home/nano/Desktop/images/18082025/11/23/image_18082025_11_23_55_10635.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377700970","1377700964","1377700973","1377700967","1377700976","1377700960"],"photo_ids_order":["1377700960","1377700964","1377700967","1377700970","1377700973","1377700976"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/402a275d1341b5731047215fb4ba9a18.jpg","text":"TemporaryFile(/tmp/multipartBody2267256094360619665asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516183440,"filename":"image_18082025_11_24_14_9650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9507a1fc6d591eae83824b69be2557de.jpg","text":"TemporaryFile(/tmp/multipartBody500003504349137306asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516183440,"filename":"image_18082025_11_24_34_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0ec363671e5a42bef0554638371d0000.jpg","text":"TemporaryFile(/tmp/multipartBody8393459049621304637asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516183440,"filename":"image_18082025_11_24_05_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9c4046b400a53bfccfde048600574c2a.jpg","text":"TemporaryFile(/tmp/multipartBody2531114201111165350asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516183440,"filename":"image_18082025_11_24_25_10627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/99853bc8b2150761e4e90b215a1e5d92.jpg","text":"TemporaryFile(/tmp/multipartBody9027172695251682988asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516183440,"filename":"image_18082025_11_23_55_10635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5ed979f1fb54eda3c0fd93a22d3116dc.jpg","text":"TemporaryFile(/tmp/multipartBody2108237886269852628asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516183440,"filename":"image_18082025_11_24_45_10632.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377700967","file1":"1377700964","file0":"1377700960","file4":"1377700973","file5":"1377700976","file3":"1377700970"},"map_files_photo_id_array":[{"photo_id":"1377700976","filename":"file5"},{"photo_id":"1377700967","filename":"file2"},{"photo_id":"1377700973","filename":"file4"},{"photo_id":"1377700964","filename":"file1"},{"photo_id":"1377700960","filename":"file0"},{"photo_id":"1377700970","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377700970":["hashtag1","hashtag2"]},{"1377700964":["hashtag1","hashtag2"]},{"1377700973":["hashtag1","hashtag2"]},{"1377700967":["hashtag1","hashtag2"]},{"1377700976":["hashtag1","hashtag2"]},{"1377700960":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377700970, 1377700964, 1377700973, 1377700967, 1377700976, 1377700960)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.774775981903076 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:22:46.884678
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/22/image_18082025_13_22_45_9745.jpg', 2), ('/home/nano/Desktop/images/18082025/13/22/image_18082025_13_22_35_10616.jpg', 2), ('/home/nano/Desktop/images/18082025/13/22/image_18082025_13_22_24_9740.jpg', 2), ('/home/nano/Desktop/images/18082025/13/22/image_18082025_13_22_15_9693.jpg', 2), ('/home/nano/Desktop/images/18082025/13/21/image_18082025_13_22_05_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/13/21/image_18082025_13_21_54_9626.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/22/image_18082025_13_22_45_9745.jpg', '/home/nano/Desktop/images/18082025/13/22/image_18082025_13_22_35_10616.jpg', '/home/nano/Desktop/images/18082025/13/22/image_18082025_13_22_24_9740.jpg', '/home/nano/Desktop/images/18082025/13/22/image_18082025_13_22_15_9693.jpg', '/home/nano/Desktop/images/18082025/13/21/image_18082025_13_22_05_10646.jpg', '/home/nano/Desktop/images/18082025/13/21/image_18082025_13_21_54_9626.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/22/image_18082025_13_22_45_9745.jpg
/home/nano/Desktop/images/18082025/13/22/image_18082025_13_22_35_10616.jpg
/home/nano/Desktop/images/18082025/13/22/image_18082025_13_22_24_9740.jpg
/home/nano/Desktop/images/18082025/13/22/image_18082025_13_22_15_9693.jpg
/home/nano/Desktop/images/18082025/13/21/image_18082025_13_22_05_10646.jpg
/home/nano/Desktop/images/18082025/13/21/image_18082025_13_21_54_9626.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377701010","1377701013","1377701007","1377701001","1377700997","1377701005"],"photo_ids_order":["1377700997","1377701001","1377701005","1377701007","1377701010","1377701013"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3d89986ff30a81f0309ab8ba0f6131d5.jpg","text":"TemporaryFile(/tmp/multipartBody1741031759602459809asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516228440,"filename":"image_18082025_13_22_05_10646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5e982695f12674ae921647cd097064e6.jpg","text":"TemporaryFile(/tmp/multipartBody3442577222578860067asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516228440,"filename":"image_18082025_13_21_54_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/71a416877028452c4706ffec6c993cea.jpg","text":"TemporaryFile(/tmp/multipartBody5163408834223972211asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516228440,"filename":"image_18082025_13_22_15_9693.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/33c4c5281a63425a1c2b61e46d241d47.jpg","text":"TemporaryFile(/tmp/multipartBody6959038059648567658asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516228440,"filename":"image_18082025_13_22_35_10616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/719fb4c4e72b3772b7943fe977492cf5.jpg","text":"TemporaryFile(/tmp/multipartBody129503600587272614asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516228440,"filename":"image_18082025_13_22_45_9745.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0b7c01f19f62210a46663a102a2592e5.jpg","text":"TemporaryFile(/tmp/multipartBody7820489479004627161asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516228440,"filename":"image_18082025_13_22_24_9740.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377701005","file1":"1377701001","file0":"1377700997","file4":"1377701010","file5":"1377701013","file3":"1377701007"},"map_files_photo_id_array":[{"photo_id":"1377701013","filename":"file5"},{"photo_id":"1377701005","filename":"file2"},{"photo_id":"1377701010","filename":"file4"},{"photo_id":"1377701001","filename":"file1"},{"photo_id":"1377700997","filename":"file0"},{"photo_id":"1377701007","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377701010":["hashtag1","hashtag2"]},{"1377701013":["hashtag1","hashtag2"]},{"1377701007":["hashtag1","hashtag2"]},{"1377701001":["hashtag1","hashtag2"]},{"1377700997":["hashtag1","hashtag2"]},{"1377701005":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377701010, 1377701013, 1377701007, 1377701001, 1377700997, 1377701005)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.704668045043945 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:23:31.985887
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/23/image_18082025_13_23_45_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/13/23/image_18082025_13_23_34_9718.jpg', 2), ('/home/nano/Desktop/images/18082025/13/23/image_18082025_13_23_25_9666.jpg', 2), ('/home/nano/Desktop/images/18082025/13/23/image_18082025_13_23_15_10745.jpg', 2), ('/home/nano/Desktop/images/18082025/13/22/image_18082025_13_23_04_9711.jpg', 2), ('/home/nano/Desktop/images/18082025/13/22/image_18082025_13_22_54_9616.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/23/image_18082025_13_23_45_10636.jpg', '/home/nano/Desktop/images/18082025/13/23/image_18082025_13_23_34_9718.jpg', '/home/nano/Desktop/images/18082025/13/23/image_18082025_13_23_25_9666.jpg', '/home/nano/Desktop/images/18082025/13/23/image_18082025_13_23_15_10745.jpg', '/home/nano/Desktop/images/18082025/13/22/image_18082025_13_23_04_9711.jpg', '/home/nano/Desktop/images/18082025/13/22/image_18082025_13_22_54_9616.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/23/image_18082025_13_23_45_10636.jpg
/home/nano/Desktop/images/18082025/13/23/image_18082025_13_23_34_9718.jpg
/home/nano/Desktop/images/18082025/13/23/image_18082025_13_23_25_9666.jpg
/home/nano/Desktop/images/18082025/13/23/image_18082025_13_23_15_10745.jpg
/home/nano/Desktop/images/18082025/13/22/image_18082025_13_23_04_9711.jpg
/home/nano/Desktop/images/18082025/13/22/image_18082025_13_22_54_9616.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377701044","1377701038","1377701032","1377701041","1377701035","1377701034"],"photo_ids_order":["1377701032","1377701034","1377701035","1377701038","1377701041","1377701044"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/65f16a13679ad0cd344693e5000c97db.jpg","text":"TemporaryFile(/tmp/multipartBody2168998714721495100asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516273633,"filename":"image_18082025_13_22_54_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ff9013794f247ab410fa3c28ef2b7dd0.jpg","text":"TemporaryFile(/tmp/multipartBody5367720774109795931asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516273633,"filename":"image_18082025_13_23_15_10745.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/91bc445883a4f87171c8a6193173be3a.jpg","text":"TemporaryFile(/tmp/multipartBody4777753904333067791asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516273633,"filename":"image_18082025_13_23_45_10636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/860a2f511447fa886efe4ef2c115b8cf.jpg","text":"TemporaryFile(/tmp/multipartBody8389992138373473788asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516273633,"filename":"image_18082025_13_23_04_9711.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4ae804cd4d483750fa3cc30952d8e4c8.jpg","text":"TemporaryFile(/tmp/multipartBody8770963805762072896asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516273633,"filename":"image_18082025_13_23_25_9666.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f08d946a8c9c91a95362bf5196b1af91.jpg","text":"TemporaryFile(/tmp/multipartBody6064419548970656477asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516273633,"filename":"image_18082025_13_23_34_9718.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377701035","file1":"1377701034","file0":"1377701032","file4":"1377701041","file5":"1377701044","file3":"1377701038"},"map_files_photo_id_array":[{"photo_id":"1377701044","filename":"file5"},{"photo_id":"1377701035","filename":"file2"},{"photo_id":"1377701041","filename":"file4"},{"photo_id":"1377701034","filename":"file1"},{"photo_id":"1377701032","filename":"file0"},{"photo_id":"1377701038","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377701044":["hashtag1","hashtag2"]},{"1377701038":["hashtag1","hashtag2"]},{"1377701032":["hashtag1","hashtag2"]},{"1377701041":["hashtag1","hashtag2"]},{"1377701035":["hashtag1","hashtag2"]},{"1377701034":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377701044, 1377701038, 1377701032, 1377701041, 1377701035, 1377701034)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.83255672454834 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:24:17.068102
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/24/image_18082025_13_24_45_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/13/24/image_18082025_13_24_34_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/13/24/image_18082025_13_24_25_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/13/24/image_18082025_13_24_15_10723.jpg', 2), ('/home/nano/Desktop/images/18082025/13/23/image_18082025_13_24_04_9688.jpg', 2), ('/home/nano/Desktop/images/18082025/13/23/image_18082025_13_23_55_9682.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/24/image_18082025_13_24_45_10673.jpg', '/home/nano/Desktop/images/18082025/13/24/image_18082025_13_24_34_9619.jpg', '/home/nano/Desktop/images/18082025/13/24/image_18082025_13_24_25_9643.jpg', '/home/nano/Desktop/images/18082025/13/24/image_18082025_13_24_15_10723.jpg', '/home/nano/Desktop/images/18082025/13/23/image_18082025_13_24_04_9688.jpg', '/home/nano/Desktop/images/18082025/13/23/image_18082025_13_23_55_9682.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/24/image_18082025_13_24_45_10673.jpg
/home/nano/Desktop/images/18082025/13/24/image_18082025_13_24_34_9619.jpg
/home/nano/Desktop/images/18082025/13/24/image_18082025_13_24_25_9643.jpg
/home/nano/Desktop/images/18082025/13/24/image_18082025_13_24_15_10723.jpg
/home/nano/Desktop/images/18082025/13/23/image_18082025_13_24_04_9688.jpg
/home/nano/Desktop/images/18082025/13/23/image_18082025_13_23_55_9682.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377701063","1377701072","1377701066","1377701069","1377701056","1377701059"],"photo_ids_order":["1377701056","1377701059","1377701063","1377701066","1377701069","1377701072"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4442f92db89faa47534d32b1a8148f62.jpg","text":"TemporaryFile(/tmp/multipartBody8211626950769345203asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516318314,"filename":"image_18082025_13_24_25_9643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c6e3b58fa1a770990f17c7469feb3f26.jpg","text":"TemporaryFile(/tmp/multipartBody4877136267212557087asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516318314,"filename":"image_18082025_13_23_55_9682.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/34ab0678f0d94fba911c497b1ace0fd0.jpg","text":"TemporaryFile(/tmp/multipartBody3130445066343272713asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516318314,"filename":"image_18082025_13_24_15_10723.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2a65a1a246ccaf3c4acd43b9be94fcb2.jpg","text":"TemporaryFile(/tmp/multipartBody5078284512347756091asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516318314,"filename":"image_18082025_13_24_04_9688.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/17c9c72c72e9371bceee0a4beb660336.jpg","text":"TemporaryFile(/tmp/multipartBody5929511012563264424asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516318314,"filename":"image_18082025_13_24_45_10673.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a4c0940e268093a35fdf94d2b085c2c6.jpg","text":"TemporaryFile(/tmp/multipartBody3735453904334018267asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516318314,"filename":"image_18082025_13_24_34_9619.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377701063","file1":"1377701059","file0":"1377701056","file4":"1377701069","file5":"1377701072","file3":"1377701066"},"map_files_photo_id_array":[{"photo_id":"1377701072","filename":"file5"},{"photo_id":"1377701063","filename":"file2"},{"photo_id":"1377701069","filename":"file4"},{"photo_id":"1377701059","filename":"file1"},{"photo_id":"1377701056","filename":"file0"},{"photo_id":"1377701066","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377701063":["hashtag1","hashtag2"]},{"1377701072":["hashtag1","hashtag2"]},{"1377701066":["hashtag1","hashtag2"]},{"1377701069":["hashtag1","hashtag2"]},{"1377701056":["hashtag1","hashtag2"]},{"1377701059":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377701063, 1377701072, 1377701066, 1377701069, 1377701056, 1377701059)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.524038076400757 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:25:02.915090
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/23/image_18082025_11_23_44_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/11/23/image_18082025_11_23_35_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/11/23/image_18082025_11_23_25_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/11/23/image_18082025_11_23_14_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/11/22/image_18082025_11_23_05_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/11/22/image_18082025_11_22_55_10643.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/23/image_18082025_11_23_44_9644.jpg', '/home/nano/Desktop/images/18082025/11/23/image_18082025_11_23_35_9632.jpg', '/home/nano/Desktop/images/18082025/11/23/image_18082025_11_23_25_10631.jpg', '/home/nano/Desktop/images/18082025/11/23/image_18082025_11_23_14_9657.jpg', '/home/nano/Desktop/images/18082025/11/22/image_18082025_11_23_05_9630.jpg', '/home/nano/Desktop/images/18082025/11/22/image_18082025_11_22_55_10643.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/23/image_18082025_11_23_44_9644.jpg
/home/nano/Desktop/images/18082025/11/23/image_18082025_11_23_35_9632.jpg
/home/nano/Desktop/images/18082025/11/23/image_18082025_11_23_25_10631.jpg
/home/nano/Desktop/images/18082025/11/23/image_18082025_11_23_14_9657.jpg
/home/nano/Desktop/images/18082025/11/22/image_18082025_11_23_05_9630.jpg
/home/nano/Desktop/images/18082025/11/22/image_18082025_11_22_55_10643.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377701096","1377701090","1377701093","1377701086","1377701079","1377701082"],"photo_ids_order":["1377701079","1377701082","1377701086","1377701090","1377701093","1377701096"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ad870eb6e73aaa1d7c69522e3d9c461f.jpg","text":"TemporaryFile(/tmp/multipartBody7337529489108939855asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516364367,"filename":"image_18082025_11_22_55_10643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e7092adf852b1a13b2b9454b78a91ee9.jpg","text":"TemporaryFile(/tmp/multipartBody920397760367349413asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516364367,"filename":"image_18082025_11_23_14_9657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6ccc7a98f3f28861b78a566de804593e.jpg","text":"TemporaryFile(/tmp/multipartBody7049164230341089853asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516364367,"filename":"image_18082025_11_23_05_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c55dd0a550df74e77ef0c65b1adb7d93.jpg","text":"TemporaryFile(/tmp/multipartBody2189340792988878878asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516364367,"filename":"image_18082025_11_23_25_10631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/49f0aa40d88d6a72bca1decd7390ad1e.jpg","text":"TemporaryFile(/tmp/multipartBody8833754459555936547asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516364367,"filename":"image_18082025_11_23_44_9644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a86a8181445fbfea0ae26fbda093b6b9.jpg","text":"TemporaryFile(/tmp/multipartBody425991254998871044asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516364367,"filename":"image_18082025_11_23_35_9632.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377701086","file1":"1377701082","file0":"1377701079","file4":"1377701093","file5":"1377701096","file3":"1377701090"},"map_files_photo_id_array":[{"photo_id":"1377701096","filename":"file5"},{"photo_id":"1377701086","filename":"file2"},{"photo_id":"1377701093","filename":"file4"},{"photo_id":"1377701082","filename":"file1"},{"photo_id":"1377701079","filename":"file0"},{"photo_id":"1377701090","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377701096":["hashtag1","hashtag2"]},{"1377701090":["hashtag1","hashtag2"]},{"1377701093":["hashtag1","hashtag2"]},{"1377701086":["hashtag1","hashtag2"]},{"1377701079":["hashtag1","hashtag2"]},{"1377701082":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377701096, 1377701090, 1377701093, 1377701086, 1377701079, 1377701082)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.7165641784668 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:25:47.250080
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/25/image_18082025_13_25_45_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/13/25/image_18082025_13_25_35_10611.jpg', 2), ('/home/nano/Desktop/images/18082025/13/25/image_18082025_13_25_24_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/13/25/image_18082025_13_25_15_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/13/24/image_18082025_13_25_04_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/13/24/image_18082025_13_24_55_9615.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/25/image_18082025_13_25_45_9614.jpg', '/home/nano/Desktop/images/18082025/13/25/image_18082025_13_25_35_10611.jpg', '/home/nano/Desktop/images/18082025/13/25/image_18082025_13_25_24_9615.jpg', '/home/nano/Desktop/images/18082025/13/25/image_18082025_13_25_15_10654.jpg', '/home/nano/Desktop/images/18082025/13/24/image_18082025_13_25_04_9625.jpg', '/home/nano/Desktop/images/18082025/13/24/image_18082025_13_24_55_9615.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/25/image_18082025_13_25_45_9614.jpg
/home/nano/Desktop/images/18082025/13/25/image_18082025_13_25_35_10611.jpg
/home/nano/Desktop/images/18082025/13/25/image_18082025_13_25_24_9615.jpg
/home/nano/Desktop/images/18082025/13/25/image_18082025_13_25_15_10654.jpg
/home/nano/Desktop/images/18082025/13/24/image_18082025_13_25_04_9625.jpg
/home/nano/Desktop/images/18082025/13/24/image_18082025_13_24_55_9615.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377701121","1377701112","1377701109","1377701114","1377701108","1377701117"],"photo_ids_order":["1377701108","1377701109","1377701112","1377701114","1377701117","1377701121"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8b05c5d0ca7a691f7ebb9c20107c3023.jpg","text":"TemporaryFile(/tmp/multipartBody8931878711540283645asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516408323,"filename":"image_18082025_13_24_55_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f918e161a60b21ca596f7650587db1e0.jpg","text":"TemporaryFile(/tmp/multipartBody7304421940286536973asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516408323,"filename":"image_18082025_13_25_24_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d17ba43c57ac8b1f2f362449a346c96d.jpg","text":"TemporaryFile(/tmp/multipartBody3865650374866569029asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516408323,"filename":"image_18082025_13_25_35_10611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0ecd467d4f43004da5424498a29a25d9.jpg","text":"TemporaryFile(/tmp/multipartBody1192053549074018133asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516408323,"filename":"image_18082025_13_25_15_10654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/71605dbfcfac1b46287850349f0ff1cf.jpg","text":"TemporaryFile(/tmp/multipartBody2317822818149341238asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516408323,"filename":"image_18082025_13_25_45_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3c3ccd58577aaad86a01640f41457248.jpg","text":"TemporaryFile(/tmp/multipartBody2617907866726688586asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516408323,"filename":"image_18082025_13_25_04_9625.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377701112","file1":"1377701109","file0":"1377701108","file4":"1377701117","file5":"1377701121","file3":"1377701114"},"map_files_photo_id_array":[{"photo_id":"1377701121","filename":"file5"},{"photo_id":"1377701112","filename":"file2"},{"photo_id":"1377701117","filename":"file4"},{"photo_id":"1377701109","filename":"file1"},{"photo_id":"1377701108","filename":"file0"},{"photo_id":"1377701114","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377701121":["hashtag1","hashtag2"]},{"1377701112":["hashtag1","hashtag2"]},{"1377701109":["hashtag1","hashtag2"]},{"1377701114":["hashtag1","hashtag2"]},{"1377701108":["hashtag1","hashtag2"]},{"1377701117":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377701121, 1377701112, 1377701109, 1377701114, 1377701108, 1377701117)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.28859782218933 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:26:32.333822
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/26/image_18082025_13_26_44_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/13/26/image_18082025_13_26_35_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/13/26/image_18082025_13_26_24_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/13/26/image_18082025_13_26_15_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/13/25/image_18082025_13_26_05_10633.jpg', 2), ('/home/nano/Desktop/images/18082025/13/25/image_18082025_13_25_54_9608.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/26/image_18082025_13_26_44_9619.jpg', '/home/nano/Desktop/images/18082025/13/26/image_18082025_13_26_35_10629.jpg', '/home/nano/Desktop/images/18082025/13/26/image_18082025_13_26_24_9654.jpg', '/home/nano/Desktop/images/18082025/13/26/image_18082025_13_26_15_9655.jpg', '/home/nano/Desktop/images/18082025/13/25/image_18082025_13_26_05_10633.jpg', '/home/nano/Desktop/images/18082025/13/25/image_18082025_13_25_54_9608.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/26/image_18082025_13_26_44_9619.jpg
/home/nano/Desktop/images/18082025/13/26/image_18082025_13_26_35_10629.jpg
/home/nano/Desktop/images/18082025/13/26/image_18082025_13_26_24_9654.jpg
/home/nano/Desktop/images/18082025/13/26/image_18082025_13_26_15_9655.jpg
/home/nano/Desktop/images/18082025/13/25/image_18082025_13_26_05_10633.jpg
/home/nano/Desktop/images/18082025/13/25/image_18082025_13_25_54_9608.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377701142","1377701145","1377701150","1377701138","1377701137","1377701148"],"photo_ids_order":["1377701137","1377701138","1377701142","1377701145","1377701148","1377701150"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cb97ab7275ab8c5548c4b369f155394e.jpg","text":"TemporaryFile(/tmp/multipartBody6393975839159753863asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516453643,"filename":"image_18082025_13_26_24_9654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/45aa19c3fe05c05d6508e39a24e3e5c6.jpg","text":"TemporaryFile(/tmp/multipartBody8694554753812318051asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516453643,"filename":"image_18082025_13_26_15_9655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e34c604cc9e4c80b06b7d16cae772e52.jpg","text":"TemporaryFile(/tmp/multipartBody4255813975056962324asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516453643,"filename":"image_18082025_13_25_54_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3f56db5ee8aaacf983add630ca9ae5ab.jpg","text":"TemporaryFile(/tmp/multipartBody7673866187412501776asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516453643,"filename":"image_18082025_13_26_35_10629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a8e4b2f0c0d7227289d7090a02a8d629.jpg","text":"TemporaryFile(/tmp/multipartBody6547729492691695999asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516453643,"filename":"image_18082025_13_26_44_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cae937b5210746ecc59f154266c6131e.jpg","text":"TemporaryFile(/tmp/multipartBody6366893365715719829asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516453643,"filename":"image_18082025_13_26_05_10633.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377701142","file1":"1377701138","file0":"1377701137","file4":"1377701148","file5":"1377701150","file3":"1377701145"},"map_files_photo_id_array":[{"photo_id":"1377701150","filename":"file5"},{"photo_id":"1377701142","filename":"file2"},{"photo_id":"1377701148","filename":"file4"},{"photo_id":"1377701138","filename":"file1"},{"photo_id":"1377701137","filename":"file0"},{"photo_id":"1377701145","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377701142":["hashtag1","hashtag2"]},{"1377701145":["hashtag1","hashtag2"]},{"1377701150":["hashtag1","hashtag2"]},{"1377701138":["hashtag1","hashtag2"]},{"1377701137":["hashtag1","hashtag2"]},{"1377701148":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377701142, 1377701145, 1377701150, 1377701138, 1377701137, 1377701148)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.315284729003906 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:27:17.480255
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/27/image_18082025_13_27_44_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/13/27/image_18082025_13_27_35_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/13/27/image_18082025_13_27_25_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/13/27/image_18082025_13_27_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/13/26/image_18082025_13_27_05_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/13/26/image_18082025_13_26_54_9619.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/27/image_18082025_13_27_44_9630.jpg', '/home/nano/Desktop/images/18082025/13/27/image_18082025_13_27_35_9612.jpg', '/home/nano/Desktop/images/18082025/13/27/image_18082025_13_27_25_10625.jpg', '/home/nano/Desktop/images/18082025/13/27/image_18082025_13_27_14_9656.jpg', '/home/nano/Desktop/images/18082025/13/26/image_18082025_13_27_05_10631.jpg', '/home/nano/Desktop/images/18082025/13/26/image_18082025_13_26_54_9619.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/27/image_18082025_13_27_44_9630.jpg
/home/nano/Desktop/images/18082025/13/27/image_18082025_13_27_35_9612.jpg
/home/nano/Desktop/images/18082025/13/27/image_18082025_13_27_25_10625.jpg
/home/nano/Desktop/images/18082025/13/27/image_18082025_13_27_14_9656.jpg
/home/nano/Desktop/images/18082025/13/26/image_18082025_13_27_05_10631.jpg
/home/nano/Desktop/images/18082025/13/26/image_18082025_13_26_54_9619.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377701177","1377701162","1377701174","1377701179","1377701172","1377701166"],"photo_ids_order":["1377701162","1377701166","1377701172","1377701174","1377701177","1377701179"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/af7bc2bcaa425664714e20bc9272feb0.jpg","text":"TemporaryFile(/tmp/multipartBody2514330188266700971asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516498746,"filename":"image_18082025_13_27_05_10631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/081302098cca5ad036bc646483a3266e.jpg","text":"TemporaryFile(/tmp/multipartBody632549991996606817asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516498746,"filename":"image_18082025_13_27_44_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b04f0e0369e461e6f6ae7b1ff5aa372f.jpg","text":"TemporaryFile(/tmp/multipartBody2784920066641839362asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516498746,"filename":"image_18082025_13_27_14_9656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/50caa913402d008477f143562e450ef7.jpg","text":"TemporaryFile(/tmp/multipartBody5940415913791512897asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516498746,"filename":"image_18082025_13_26_54_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1e1a8db40172bf893af54aed4a87c848.jpg","text":"TemporaryFile(/tmp/multipartBody8187510088622624485asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516498746,"filename":"image_18082025_13_27_25_10625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2002421468ff69d3be3e51850ad41f96.jpg","text":"TemporaryFile(/tmp/multipartBody1987223950394242604asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516498746,"filename":"image_18082025_13_27_35_9612.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377701172","file1":"1377701166","file0":"1377701162","file4":"1377701177","file5":"1377701179","file3":"1377701174"},"map_files_photo_id_array":[{"photo_id":"1377701179","filename":"file5"},{"photo_id":"1377701172","filename":"file2"},{"photo_id":"1377701177","filename":"file4"},{"photo_id":"1377701166","filename":"file1"},{"photo_id":"1377701162","filename":"file0"},{"photo_id":"1377701174","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377701177":["hashtag1","hashtag2"]},{"1377701162":["hashtag1","hashtag2"]},{"1377701174":["hashtag1","hashtag2"]},{"1377701179":["hashtag1","hashtag2"]},{"1377701172":["hashtag1","hashtag2"]},{"1377701166":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377701177, 1377701162, 1377701174, 1377701179, 1377701172, 1377701166)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.2387375831604 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:28:03.198907
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/22/image_18082025_11_22_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/11/22/image_18082025_11_22_35_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/11/22/image_18082025_11_22_24_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/11/22/image_18082025_11_22_15_9695.jpg', 2), ('/home/nano/Desktop/images/18082025/11/21/image_18082025_11_22_05_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/11/21/image_18082025_11_21_54_9667.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/22/image_18082025_11_22_44_9642.jpg', '/home/nano/Desktop/images/18082025/11/22/image_18082025_11_22_35_10625.jpg', '/home/nano/Desktop/images/18082025/11/22/image_18082025_11_22_24_9613.jpg', '/home/nano/Desktop/images/18082025/11/22/image_18082025_11_22_15_9695.jpg', '/home/nano/Desktop/images/18082025/11/21/image_18082025_11_22_05_10647.jpg', '/home/nano/Desktop/images/18082025/11/21/image_18082025_11_21_54_9667.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/22/image_18082025_11_22_44_9642.jpg
/home/nano/Desktop/images/18082025/11/22/image_18082025_11_22_35_10625.jpg
/home/nano/Desktop/images/18082025/11/22/image_18082025_11_22_24_9613.jpg
/home/nano/Desktop/images/18082025/11/22/image_18082025_11_22_15_9695.jpg
/home/nano/Desktop/images/18082025/11/21/image_18082025_11_22_05_10647.jpg
/home/nano/Desktop/images/18082025/11/21/image_18082025_11_21_54_9667.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377701202","1377701205","1377701198","1377701197","1377701200","1377701193"],"photo_ids_order":["1377701193","1377701197","1377701198","1377701200","1377701202","1377701205"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b762c1525ef27e6b4aa38a25ae4f7e1d.jpg","text":"TemporaryFile(/tmp/multipartBody2913757999625997432asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516544263,"filename":"image_18082025_11_22_05_10647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a7e0f9de472b410de5be2d2df04e09e4.jpg","text":"TemporaryFile(/tmp/multipartBody347244821033832599asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516544263,"filename":"image_18082025_11_21_54_9667.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/abab2c431c6a4d3c65b68d13d8021f03.jpg","text":"TemporaryFile(/tmp/multipartBody1179661389358328382asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516544263,"filename":"image_18082025_11_22_24_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e850f24271fdf0550854caf078ef02fe.jpg","text":"TemporaryFile(/tmp/multipartBody4731922912890806169asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516544263,"filename":"image_18082025_11_22_35_10625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6290a49e6aa07fe5bcd826d233c3374e.jpg","text":"TemporaryFile(/tmp/multipartBody7276370837604562064asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516544263,"filename":"image_18082025_11_22_15_9695.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dceda29f252047b630658efa80af09ad.jpg","text":"TemporaryFile(/tmp/multipartBody6487962839220619611asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516544263,"filename":"image_18082025_11_22_44_9642.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377701198","file1":"1377701197","file0":"1377701193","file4":"1377701202","file5":"1377701205","file3":"1377701200"},"map_files_photo_id_array":[{"photo_id":"1377701205","filename":"file5"},{"photo_id":"1377701198","filename":"file2"},{"photo_id":"1377701202","filename":"file4"},{"photo_id":"1377701197","filename":"file1"},{"photo_id":"1377701193","filename":"file0"},{"photo_id":"1377701200","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377701202":["hashtag1","hashtag2"]},{"1377701205":["hashtag1","hashtag2"]},{"1377701198":["hashtag1","hashtag2"]},{"1377701197":["hashtag1","hashtag2"]},{"1377701200":["hashtag1","hashtag2"]},{"1377701193":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377701202, 1377701205, 1377701198, 1377701197, 1377701200, 1377701193)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.63034415245056 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:28:47.586113
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/28/image_18082025_13_28_45_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/13/28/image_18082025_13_28_34_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/13/28/image_18082025_13_28_25_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/13/28/image_18082025_13_28_14_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/13/27/image_18082025_13_28_05_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/13/27/image_18082025_13_27_55_10633.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/28/image_18082025_13_28_45_10624.jpg', '/home/nano/Desktop/images/18082025/13/28/image_18082025_13_28_34_9608.jpg', '/home/nano/Desktop/images/18082025/13/28/image_18082025_13_28_25_10649.jpg', '/home/nano/Desktop/images/18082025/13/28/image_18082025_13_28_14_9638.jpg', '/home/nano/Desktop/images/18082025/13/27/image_18082025_13_28_05_9622.jpg', '/home/nano/Desktop/images/18082025/13/27/image_18082025_13_27_55_10633.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/28/image_18082025_13_28_45_10624.jpg
/home/nano/Desktop/images/18082025/13/28/image_18082025_13_28_34_9608.jpg
/home/nano/Desktop/images/18082025/13/28/image_18082025_13_28_25_10649.jpg
/home/nano/Desktop/images/18082025/13/28/image_18082025_13_28_14_9638.jpg
/home/nano/Desktop/images/18082025/13/27/image_18082025_13_28_05_9622.jpg
/home/nano/Desktop/images/18082025/13/27/image_18082025_13_27_55_10633.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377701225","1377701222","1377701230","1377701224","1377701233","1377701227"],"photo_ids_order":["1377701222","1377701224","1377701225","1377701227","1377701230","1377701233"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/98972057662aabc8fe82d2f5a57b8943.jpg","text":"TemporaryFile(/tmp/multipartBody3515762985344586003asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516588838,"filename":"image_18082025_13_28_25_10649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a4fbe305031e374e15867413321bb4ed.jpg","text":"TemporaryFile(/tmp/multipartBody5801561340546433785asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516588838,"filename":"image_18082025_13_28_45_10624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7f58abe27f6421b4f87e9bf42863c643.jpg","text":"TemporaryFile(/tmp/multipartBody5184778058100404193asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516588838,"filename":"image_18082025_13_28_05_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b6e377b2001f76dadd1870c50260cbdf.jpg","text":"TemporaryFile(/tmp/multipartBody4996934016652220737asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516588838,"filename":"image_18082025_13_28_34_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2634a30ed7578b18b18fc79222df8595.jpg","text":"TemporaryFile(/tmp/multipartBody4639699902991127920asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516588838,"filename":"image_18082025_13_27_55_10633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ac4887af05e84a7354352ba2276801ee.jpg","text":"TemporaryFile(/tmp/multipartBody4444875448935624088asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516588838,"filename":"image_18082025_13_28_14_9638.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377701225","file1":"1377701224","file0":"1377701222","file4":"1377701230","file5":"1377701233","file3":"1377701227"},"map_files_photo_id_array":[{"photo_id":"1377701233","filename":"file5"},{"photo_id":"1377701225","filename":"file2"},{"photo_id":"1377701230","filename":"file4"},{"photo_id":"1377701224","filename":"file1"},{"photo_id":"1377701222","filename":"file0"},{"photo_id":"1377701227","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377701225":["hashtag1","hashtag2"]},{"1377701222":["hashtag1","hashtag2"]},{"1377701230":["hashtag1","hashtag2"]},{"1377701224":["hashtag1","hashtag2"]},{"1377701233":["hashtag1","hashtag2"]},{"1377701227":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377701225, 1377701222, 1377701230, 1377701224, 1377701233, 1377701227)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.100098371505737 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:29:32.702555
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/29/image_18082025_13_29_45_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/13/29/image_18082025_13_29_34_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/13/29/image_18082025_13_29_25_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/13/29/image_18082025_13_29_15_10682.jpg', 2), ('/home/nano/Desktop/images/18082025/13/28/image_18082025_13_29_04_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/13/28/image_18082025_13_28_55_9626.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/29/image_18082025_13_29_45_10624.jpg', '/home/nano/Desktop/images/18082025/13/29/image_18082025_13_29_34_9619.jpg', '/home/nano/Desktop/images/18082025/13/29/image_18082025_13_29_25_9660.jpg', '/home/nano/Desktop/images/18082025/13/29/image_18082025_13_29_15_10682.jpg', '/home/nano/Desktop/images/18082025/13/28/image_18082025_13_29_04_9636.jpg', '/home/nano/Desktop/images/18082025/13/28/image_18082025_13_28_55_9626.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/29/image_18082025_13_29_45_10624.jpg
/home/nano/Desktop/images/18082025/13/29/image_18082025_13_29_34_9619.jpg
/home/nano/Desktop/images/18082025/13/29/image_18082025_13_29_25_9660.jpg
/home/nano/Desktop/images/18082025/13/29/image_18082025_13_29_15_10682.jpg
/home/nano/Desktop/images/18082025/13/28/image_18082025_13_29_04_9636.jpg
/home/nano/Desktop/images/18082025/13/28/image_18082025_13_28_55_9626.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377701252","1377701249","1377701263","1377701257","1377701268","1377701253"],"photo_ids_order":["1377701249","1377701252","1377701253","1377701257","1377701263","1377701268"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c45c2f32e42f285ab3da8b9c48fa786f.jpg","text":"TemporaryFile(/tmp/multipartBody6375921507663262949asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516633844,"filename":"image_18082025_13_29_34_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d51a835300dadd6e5f966c4142a397b3.jpg","text":"TemporaryFile(/tmp/multipartBody4186027037757263153asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516633844,"filename":"image_18082025_13_29_45_10624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/835fbec8ab31354dab42a208f8f6e93f.jpg","text":"TemporaryFile(/tmp/multipartBody231506352532291608asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516633844,"filename":"image_18082025_13_29_04_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2b1e3c235d8d052ba24db73b996646f4.jpg","text":"TemporaryFile(/tmp/multipartBody5115006055383348372asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516633844,"filename":"image_18082025_13_29_15_10682.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d7224d1a20d23a5001664f175fd80fee.jpg","text":"TemporaryFile(/tmp/multipartBody8915648989895627764asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516633844,"filename":"image_18082025_13_28_55_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ed1a3a3019f4d1135b649109c8ffeecb.jpg","text":"TemporaryFile(/tmp/multipartBody4854084531634552637asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516633844,"filename":"image_18082025_13_29_25_9660.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377701253","file1":"1377701252","file0":"1377701249","file4":"1377701263","file5":"1377701268","file3":"1377701257"},"map_files_photo_id_array":[{"photo_id":"1377701268","filename":"file5"},{"photo_id":"1377701253","filename":"file2"},{"photo_id":"1377701263","filename":"file4"},{"photo_id":"1377701252","filename":"file1"},{"photo_id":"1377701249","filename":"file0"},{"photo_id":"1377701257","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377701252":["hashtag1","hashtag2"]},{"1377701249":["hashtag1","hashtag2"]},{"1377701263":["hashtag1","hashtag2"]},{"1377701257":["hashtag1","hashtag2"]},{"1377701268":["hashtag1","hashtag2"]},{"1377701253":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377701252, 1377701249, 1377701263, 1377701257, 1377701268, 1377701253)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.658154249191284 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:30:16.851693
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/30/image_18082025_13_30_45_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/13/30/image_18082025_13_30_35_10607.jpg', 2), ('/home/nano/Desktop/images/18082025/13/30/image_18082025_13_30_24_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/13/30/image_18082025_13_30_15_10681.jpg', 2), ('/home/nano/Desktop/images/18082025/13/29/image_18082025_13_30_04_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/13/29/image_18082025_13_29_54_9610.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/30/image_18082025_13_30_45_9619.jpg', '/home/nano/Desktop/images/18082025/13/30/image_18082025_13_30_35_10607.jpg', '/home/nano/Desktop/images/18082025/13/30/image_18082025_13_30_24_9637.jpg', '/home/nano/Desktop/images/18082025/13/30/image_18082025_13_30_15_10681.jpg', '/home/nano/Desktop/images/18082025/13/29/image_18082025_13_30_04_9626.jpg', '/home/nano/Desktop/images/18082025/13/29/image_18082025_13_29_54_9610.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/30/image_18082025_13_30_45_9619.jpg
/home/nano/Desktop/images/18082025/13/30/image_18082025_13_30_35_10607.jpg
/home/nano/Desktop/images/18082025/13/30/image_18082025_13_30_24_9637.jpg
/home/nano/Desktop/images/18082025/13/30/image_18082025_13_30_15_10681.jpg
/home/nano/Desktop/images/18082025/13/29/image_18082025_13_30_04_9626.jpg
/home/nano/Desktop/images/18082025/13/29/image_18082025_13_29_54_9610.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377701294","1377701288","1377701297","1377701291","1377701283","1377701280"],"photo_ids_order":["1377701280","1377701283","1377701288","1377701291","1377701294","1377701297"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/77d448f615ec4a14501625c21b871f03.jpg","text":"TemporaryFile(/tmp/multipartBody5108421174006974391asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516678229,"filename":"image_18082025_13_30_04_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/27a2f2d690a3c4b85d19010753ad02c7.jpg","text":"TemporaryFile(/tmp/multipartBody2339808808755942581asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516678229,"filename":"image_18082025_13_30_24_9637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9b17d0799a0a1e81dbd0b31db5fced8e.jpg","text":"TemporaryFile(/tmp/multipartBody2448937603166448886asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516678229,"filename":"image_18082025_13_29_54_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/34d7f25093f5cc97eede2b6e7f120064.jpg","text":"TemporaryFile(/tmp/multipartBody546049549777817360asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516678229,"filename":"image_18082025_13_30_15_10681.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a22310eac248dd2373b5573e2b75f4cb.jpg","text":"TemporaryFile(/tmp/multipartBody7549741098233897861asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516678229,"filename":"image_18082025_13_30_35_10607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7e5497ddcf7a14e5bc8616de570e6007.jpg","text":"TemporaryFile(/tmp/multipartBody4815790012286407546asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516678229,"filename":"image_18082025_13_30_45_9619.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377701288","file1":"1377701283","file0":"1377701280","file4":"1377701294","file5":"1377701297","file3":"1377701291"},"map_files_photo_id_array":[{"photo_id":"1377701297","filename":"file5"},{"photo_id":"1377701288","filename":"file2"},{"photo_id":"1377701294","filename":"file4"},{"photo_id":"1377701283","filename":"file1"},{"photo_id":"1377701280","filename":"file0"},{"photo_id":"1377701291","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377701294":["hashtag1","hashtag2"]},{"1377701288":["hashtag1","hashtag2"]},{"1377701297":["hashtag1","hashtag2"]},{"1377701291":["hashtag1","hashtag2"]},{"1377701283":["hashtag1","hashtag2"]},{"1377701280":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377701294, 1377701288, 1377701297, 1377701291, 1377701283, 1377701280)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.37803792953491 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:31:02.705148
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/21/image_18082025_11_21_45_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/11/21/image_18082025_11_21_35_10719.jpg', 2), ('/home/nano/Desktop/images/18082025/11/21/image_18082025_11_21_24_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/11/21/image_18082025_11_21_14_9665.jpg', 2), ('/home/nano/Desktop/images/18082025/11/20/image_18082025_11_21_05_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/11/20/image_18082025_11_20_54_9599.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/21/image_18082025_11_21_45_9647.jpg', '/home/nano/Desktop/images/18082025/11/21/image_18082025_11_21_35_10719.jpg', '/home/nano/Desktop/images/18082025/11/21/image_18082025_11_21_24_9657.jpg', '/home/nano/Desktop/images/18082025/11/21/image_18082025_11_21_14_9665.jpg', '/home/nano/Desktop/images/18082025/11/20/image_18082025_11_21_05_10627.jpg', '/home/nano/Desktop/images/18082025/11/20/image_18082025_11_20_54_9599.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/21/image_18082025_11_21_45_9647.jpg
/home/nano/Desktop/images/18082025/11/21/image_18082025_11_21_35_10719.jpg
/home/nano/Desktop/images/18082025/11/21/image_18082025_11_21_24_9657.jpg
/home/nano/Desktop/images/18082025/11/21/image_18082025_11_21_14_9665.jpg
/home/nano/Desktop/images/18082025/11/20/image_18082025_11_21_05_10627.jpg
/home/nano/Desktop/images/18082025/11/20/image_18082025_11_20_54_9599.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377701313","1377701322","1377701316","1377701319","1377701330","1377701326"],"photo_ids_order":["1377701313","1377701316","1377701319","1377701322","1377701326","1377701330"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b0ec6786c49a6574e221685cdfa912cf.jpg","text":"TemporaryFile(/tmp/multipartBody2042204854445451967asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516724056,"filename":"image_18082025_11_21_45_9647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6cac3c2eff4582de952e2f2ebbf10aec.jpg","text":"TemporaryFile(/tmp/multipartBody3086728247600588514asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516724056,"filename":"image_18082025_11_21_14_9665.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a77dd2ee7f480c3afe3b66f50824279b.jpg","text":"TemporaryFile(/tmp/multipartBody6380719807895595798asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516724056,"filename":"image_18082025_11_21_35_10719.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/64803bb093b776096dcc8889a3089901.jpg","text":"TemporaryFile(/tmp/multipartBody8481478560485047077asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516724056,"filename":"image_18082025_11_21_24_9657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fbd3974fb2d76e294a774069f96a1458.jpg","text":"TemporaryFile(/tmp/multipartBody6443077809516362294asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516724056,"filename":"image_18082025_11_20_54_9599.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/62ef48c53889b0cc3e1ce6f3ade86b98.jpg","text":"TemporaryFile(/tmp/multipartBody5299737681587622271asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516724056,"filename":"image_18082025_11_21_05_10627.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377701319","file1":"1377701316","file0":"1377701313","file4":"1377701326","file5":"1377701330","file3":"1377701322"},"map_files_photo_id_array":[{"photo_id":"1377701330","filename":"file5"},{"photo_id":"1377701319","filename":"file2"},{"photo_id":"1377701326","filename":"file4"},{"photo_id":"1377701316","filename":"file1"},{"photo_id":"1377701313","filename":"file0"},{"photo_id":"1377701322","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377701313":["hashtag1","hashtag2"]},{"1377701322":["hashtag1","hashtag2"]},{"1377701316":["hashtag1","hashtag2"]},{"1377701319":["hashtag1","hashtag2"]},{"1377701330":["hashtag1","hashtag2"]},{"1377701326":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377701313, 1377701322, 1377701316, 1377701319, 1377701330, 1377701326)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.998061895370483 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:31:46.957923
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/31/image_18082025_13_31_44_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/13/31/image_18082025_13_31_35_10620.jpg', 2), ('/home/nano/Desktop/images/18082025/13/31/image_18082025_13_31_24_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/13/31/image_18082025_13_31_15_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/13/30/image_18082025_13_31_05_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/13/30/image_18082025_13_30_54_9614.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/31/image_18082025_13_31_44_9620.jpg', '/home/nano/Desktop/images/18082025/13/31/image_18082025_13_31_35_10620.jpg', '/home/nano/Desktop/images/18082025/13/31/image_18082025_13_31_24_9631.jpg', '/home/nano/Desktop/images/18082025/13/31/image_18082025_13_31_15_9635.jpg', '/home/nano/Desktop/images/18082025/13/30/image_18082025_13_31_05_10654.jpg', '/home/nano/Desktop/images/18082025/13/30/image_18082025_13_30_54_9614.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/31/image_18082025_13_31_44_9620.jpg
/home/nano/Desktop/images/18082025/13/31/image_18082025_13_31_35_10620.jpg
/home/nano/Desktop/images/18082025/13/31/image_18082025_13_31_24_9631.jpg
/home/nano/Desktop/images/18082025/13/31/image_18082025_13_31_15_9635.jpg
/home/nano/Desktop/images/18082025/13/30/image_18082025_13_31_05_10654.jpg
/home/nano/Desktop/images/18082025/13/30/image_18082025_13_30_54_9614.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377701349","1377701342","1377701347","1377701356","1377701344","1377701352"],"photo_ids_order":["1377701342","1377701344","1377701347","1377701349","1377701352","1377701356"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/87144060613635d296c77b51176ff9aa.jpg","text":"TemporaryFile(/tmp/multipartBody251986367485590871asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516768010,"filename":"image_18082025_13_31_15_9635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5c2748bd6ed3d964e1098bee4059a260.jpg","text":"TemporaryFile(/tmp/multipartBody6090170068569364741asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516768010,"filename":"image_18082025_13_31_44_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9a3f411b08c0f971b39f6f5dab2e61e9.jpg","text":"TemporaryFile(/tmp/multipartBody5250267127849682660asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516768010,"filename":"image_18082025_13_31_24_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/05f86fca6744bd53a737d0a623d6601d.jpg","text":"TemporaryFile(/tmp/multipartBody652868902190157506asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516768010,"filename":"image_18082025_13_30_54_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bda8c74bcb4690fa28da367fd13607ec.jpg","text":"TemporaryFile(/tmp/multipartBody5630997454648931235asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516768010,"filename":"image_18082025_13_31_35_10620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a0fcd87f62c144841b558c04225a484a.jpg","text":"TemporaryFile(/tmp/multipartBody1029399662790262260asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516768010,"filename":"image_18082025_13_31_05_10654.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377701347","file1":"1377701344","file0":"1377701342","file4":"1377701352","file5":"1377701356","file3":"1377701349"},"map_files_photo_id_array":[{"photo_id":"1377701356","filename":"file5"},{"photo_id":"1377701347","filename":"file2"},{"photo_id":"1377701352","filename":"file4"},{"photo_id":"1377701344","filename":"file1"},{"photo_id":"1377701342","filename":"file0"},{"photo_id":"1377701349","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377701349":["hashtag1","hashtag2"]},{"1377701342":["hashtag1","hashtag2"]},{"1377701347":["hashtag1","hashtag2"]},{"1377701356":["hashtag1","hashtag2"]},{"1377701344":["hashtag1","hashtag2"]},{"1377701352":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377701349, 1377701342, 1377701347, 1377701356, 1377701344, 1377701352)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.713430166244507 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:32:32.078526
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/32/image_18082025_13_32_44_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/13/32/image_18082025_13_32_35_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/13/32/image_18082025_13_32_25_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/13/32/image_18082025_13_32_14_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/13/31/image_18082025_13_32_05_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/13/31/image_18082025_13_31_54_9628.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/32/image_18082025_13_32_44_9650.jpg', '/home/nano/Desktop/images/18082025/13/32/image_18082025_13_32_35_9639.jpg', '/home/nano/Desktop/images/18082025/13/32/image_18082025_13_32_25_10639.jpg', '/home/nano/Desktop/images/18082025/13/32/image_18082025_13_32_14_9642.jpg', '/home/nano/Desktop/images/18082025/13/31/image_18082025_13_32_05_10632.jpg', '/home/nano/Desktop/images/18082025/13/31/image_18082025_13_31_54_9628.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/32/image_18082025_13_32_44_9650.jpg
/home/nano/Desktop/images/18082025/13/32/image_18082025_13_32_35_9639.jpg
/home/nano/Desktop/images/18082025/13/32/image_18082025_13_32_25_10639.jpg
/home/nano/Desktop/images/18082025/13/32/image_18082025_13_32_14_9642.jpg
/home/nano/Desktop/images/18082025/13/31/image_18082025_13_32_05_10632.jpg
/home/nano/Desktop/images/18082025/13/31/image_18082025_13_31_54_9628.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377701375","1377701384","1377701389","1377701380","1377701391","1377701370"],"photo_ids_order":["1377701370","1377701375","1377701380","1377701384","1377701389","1377701391"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5f18dc63da6b20b0d344b49c794fd729.jpg","text":"TemporaryFile(/tmp/multipartBody6268215213447129902asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516813386,"filename":"image_18082025_13_32_35_9639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/77d61d115b632cab8a96aa17e61aa641.jpg","text":"TemporaryFile(/tmp/multipartBody7661797554509475373asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516813386,"filename":"image_18082025_13_32_14_9642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/72b67dba06ba5de93b04102662aa8688.jpg","text":"TemporaryFile(/tmp/multipartBody843414544594118802asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516813386,"filename":"image_18082025_13_32_05_10632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/404621bfeab3889dd68fc7c9a35b4bd1.jpg","text":"TemporaryFile(/tmp/multipartBody2325319627995199324asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516813386,"filename":"image_18082025_13_32_25_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1b5eab8f02a8e2c8634c5305a1a0aa05.jpg","text":"TemporaryFile(/tmp/multipartBody3846836502274333072asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516813386,"filename":"image_18082025_13_31_54_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5552d8eae71218f01d37ae31e78822f5.jpg","text":"TemporaryFile(/tmp/multipartBody6409458881528878113asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516813386,"filename":"image_18082025_13_32_44_9650.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377701380","file1":"1377701375","file0":"1377701370","file4":"1377701389","file5":"1377701391","file3":"1377701384"},"map_files_photo_id_array":[{"photo_id":"1377701391","filename":"file5"},{"photo_id":"1377701380","filename":"file2"},{"photo_id":"1377701389","filename":"file4"},{"photo_id":"1377701375","filename":"file1"},{"photo_id":"1377701370","filename":"file0"},{"photo_id":"1377701384","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377701375":["hashtag1","hashtag2"]},{"1377701384":["hashtag1","hashtag2"]},{"1377701389":["hashtag1","hashtag2"]},{"1377701380":["hashtag1","hashtag2"]},{"1377701391":["hashtag1","hashtag2"]},{"1377701370":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377701375, 1377701384, 1377701389, 1377701380, 1377701391, 1377701370)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.8616201877594 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:33:17.197777
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/33/image_18082025_13_33_45_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/13/33/image_18082025_13_33_34_9602.jpg', 2), ('/home/nano/Desktop/images/18082025/13/33/image_18082025_13_33_25_10619.jpg', 2), ('/home/nano/Desktop/images/18082025/13/33/image_18082025_13_33_14_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/13/32/image_18082025_13_33_05_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/13/32/image_18082025_13_32_55_10637.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/33/image_18082025_13_33_45_10623.jpg', '/home/nano/Desktop/images/18082025/13/33/image_18082025_13_33_34_9602.jpg', '/home/nano/Desktop/images/18082025/13/33/image_18082025_13_33_25_10619.jpg', '/home/nano/Desktop/images/18082025/13/33/image_18082025_13_33_14_9634.jpg', '/home/nano/Desktop/images/18082025/13/32/image_18082025_13_33_05_9619.jpg', '/home/nano/Desktop/images/18082025/13/32/image_18082025_13_32_55_10637.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/33/image_18082025_13_33_45_10623.jpg
/home/nano/Desktop/images/18082025/13/33/image_18082025_13_33_34_9602.jpg
/home/nano/Desktop/images/18082025/13/33/image_18082025_13_33_25_10619.jpg
/home/nano/Desktop/images/18082025/13/33/image_18082025_13_33_14_9634.jpg
/home/nano/Desktop/images/18082025/13/32/image_18082025_13_33_05_9619.jpg
/home/nano/Desktop/images/18082025/13/32/image_18082025_13_32_55_10637.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377701415","1377701411","1377701414","1377701416","1377701404","1377701407"],"photo_ids_order":["1377701404","1377701407","1377701411","1377701414","1377701415","1377701416"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8c3653defbf9b65db21501c9e9117594.jpg","text":"TemporaryFile(/tmp/multipartBody6780963071229970699asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516858319,"filename":"image_18082025_13_33_05_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4128169a43a463f960ff0732b2f46412.jpg","text":"TemporaryFile(/tmp/multipartBody9044176280829520498asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516858319,"filename":"image_18082025_13_33_25_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e94eb02abdffc2d2210702200937e220.jpg","text":"TemporaryFile(/tmp/multipartBody7279496380156188105asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516858319,"filename":"image_18082025_13_33_14_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/43c14a5527a0859d72c18b8e9967d931.jpg","text":"TemporaryFile(/tmp/multipartBody7131162942056291504asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516858319,"filename":"image_18082025_13_32_55_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/442b74203d41407fab80241bd66d0e70.jpg","text":"TemporaryFile(/tmp/multipartBody8207729547189344475asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516858319,"filename":"image_18082025_13_33_45_10623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/af16802e44a9f0e7937a7691bb3a06d0.jpg","text":"TemporaryFile(/tmp/multipartBody4725641901068911188asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516858319,"filename":"image_18082025_13_33_34_9602.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377701411","file1":"1377701407","file0":"1377701404","file4":"1377701415","file5":"1377701416","file3":"1377701414"},"map_files_photo_id_array":[{"photo_id":"1377701416","filename":"file5"},{"photo_id":"1377701411","filename":"file2"},{"photo_id":"1377701415","filename":"file4"},{"photo_id":"1377701407","filename":"file1"},{"photo_id":"1377701404","filename":"file0"},{"photo_id":"1377701414","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377701415":["hashtag1","hashtag2"]},{"1377701411":["hashtag1","hashtag2"]},{"1377701414":["hashtag1","hashtag2"]},{"1377701416":["hashtag1","hashtag2"]},{"1377701404":["hashtag1","hashtag2"]},{"1377701407":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377701415, 1377701411, 1377701414, 1377701416, 1377701404, 1377701407)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.98641061782837 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:34:02.933285
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/20/image_18082025_11_20_45_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/11/20/image_18082025_11_20_35_10613.jpg', 2), ('/home/nano/Desktop/images/18082025/11/20/image_18082025_11_20_24_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/11/20/image_18082025_11_20_15_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/11/19/image_18082025_11_20_04_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/11/19/image_18082025_11_19_54_9594.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/20/image_18082025_11_20_45_9618.jpg', '/home/nano/Desktop/images/18082025/11/20/image_18082025_11_20_35_10613.jpg', '/home/nano/Desktop/images/18082025/11/20/image_18082025_11_20_24_9606.jpg', '/home/nano/Desktop/images/18082025/11/20/image_18082025_11_20_15_10635.jpg', '/home/nano/Desktop/images/18082025/11/19/image_18082025_11_20_04_9638.jpg', '/home/nano/Desktop/images/18082025/11/19/image_18082025_11_19_54_9594.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/20/image_18082025_11_20_45_9618.jpg
/home/nano/Desktop/images/18082025/11/20/image_18082025_11_20_35_10613.jpg
/home/nano/Desktop/images/18082025/11/20/image_18082025_11_20_24_9606.jpg
/home/nano/Desktop/images/18082025/11/20/image_18082025_11_20_15_10635.jpg
/home/nano/Desktop/images/18082025/11/19/image_18082025_11_20_04_9638.jpg
/home/nano/Desktop/images/18082025/11/19/image_18082025_11_19_54_9594.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377701433","1377701447","1377701440","1377701443","1377701437","1377701451"],"photo_ids_order":["1377701433","1377701437","1377701440","1377701443","1377701447","1377701451"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/70951c815af6aeceebb380f7932c5ba3.jpg","text":"TemporaryFile(/tmp/multipartBody7550031454592719413asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516904036,"filename":"image_18082025_11_20_45_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d9de6afdccf4bd1462e4012d189233cb.jpg","text":"TemporaryFile(/tmp/multipartBody1053938780186662531asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516904036,"filename":"image_18082025_11_20_04_9638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/23934ad9b1bfab41052826415b2fe4c9.jpg","text":"TemporaryFile(/tmp/multipartBody883575970597444393asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516904036,"filename":"image_18082025_11_20_24_9606.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bca3b57408383a68c78cb691dbbca88a.jpg","text":"TemporaryFile(/tmp/multipartBody1051032308930863628asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516904036,"filename":"image_18082025_11_20_15_10635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/37f08785f90992fdb308ef3dc0afabc0.jpg","text":"TemporaryFile(/tmp/multipartBody7101317796388995809asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516904036,"filename":"image_18082025_11_20_35_10613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/42311e558a9c36f059e7c906dc9fa68f.jpg","text":"TemporaryFile(/tmp/multipartBody3336159263092991780asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516904036,"filename":"image_18082025_11_19_54_9594.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377701440","file1":"1377701437","file0":"1377701433","file4":"1377701447","file5":"1377701451","file3":"1377701443"},"map_files_photo_id_array":[{"photo_id":"1377701451","filename":"file5"},{"photo_id":"1377701440","filename":"file2"},{"photo_id":"1377701447","filename":"file4"},{"photo_id":"1377701437","filename":"file1"},{"photo_id":"1377701433","filename":"file0"},{"photo_id":"1377701443","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377701433":["hashtag1","hashtag2"]},{"1377701447":["hashtag1","hashtag2"]},{"1377701440":["hashtag1","hashtag2"]},{"1377701443":["hashtag1","hashtag2"]},{"1377701437":["hashtag1","hashtag2"]},{"1377701451":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377701433, 1377701447, 1377701440, 1377701443, 1377701437, 1377701451)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.11587715148926 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:34:47.300731
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/34/image_18082025_13_34_45_10609.jpg', 2), ('/home/nano/Desktop/images/18082025/13/34/image_18082025_13_34_34_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/13/34/image_18082025_13_34_25_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/13/34/image_18082025_13_34_15_10670.jpg', 2), ('/home/nano/Desktop/images/18082025/13/33/image_18082025_13_34_04_9689.jpg', 2), ('/home/nano/Desktop/images/18082025/13/33/image_18082025_13_33_55_9617.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/34/image_18082025_13_34_45_10609.jpg', '/home/nano/Desktop/images/18082025/13/34/image_18082025_13_34_34_9656.jpg', '/home/nano/Desktop/images/18082025/13/34/image_18082025_13_34_25_9629.jpg', '/home/nano/Desktop/images/18082025/13/34/image_18082025_13_34_15_10670.jpg', '/home/nano/Desktop/images/18082025/13/33/image_18082025_13_34_04_9689.jpg', '/home/nano/Desktop/images/18082025/13/33/image_18082025_13_33_55_9617.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/34/image_18082025_13_34_45_10609.jpg
/home/nano/Desktop/images/18082025/13/34/image_18082025_13_34_34_9656.jpg
/home/nano/Desktop/images/18082025/13/34/image_18082025_13_34_25_9629.jpg
/home/nano/Desktop/images/18082025/13/34/image_18082025_13_34_15_10670.jpg
/home/nano/Desktop/images/18082025/13/33/image_18082025_13_34_04_9689.jpg
/home/nano/Desktop/images/18082025/13/33/image_18082025_13_33_55_9617.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377701480","1377701465","1377701470","1377701467","1377701476","1377701463"],"photo_ids_order":["1377701463","1377701465","1377701467","1377701470","1377701476","1377701480"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ea3f8157a3d19723049cfb7f7c425141.jpg","text":"TemporaryFile(/tmp/multipartBody1712912948199778446asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516948749,"filename":"image_18082025_13_33_55_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b126ea703ac1e9149e23d261c5beabc2.jpg","text":"TemporaryFile(/tmp/multipartBody7697020069999866105asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516948749,"filename":"image_18082025_13_34_34_9656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1eb3c078b85001c5b2e6ac43b1c8630d.jpg","text":"TemporaryFile(/tmp/multipartBody720457014145478011asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516948749,"filename":"image_18082025_13_34_15_10670.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3c3bf443289bb732dab98f97abbcd93a.jpg","text":"TemporaryFile(/tmp/multipartBody9209456007876737719asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516948749,"filename":"image_18082025_13_34_25_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8b6098c074e5af5bb22ac55c2284fa2c.jpg","text":"TemporaryFile(/tmp/multipartBody6791499029622423770asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516948749,"filename":"image_18082025_13_34_04_9689.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d8ce2a4ee868edb6a6fa42e13ae70f7f.jpg","text":"TemporaryFile(/tmp/multipartBody8533529747743301273asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516948749,"filename":"image_18082025_13_34_45_10609.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377701467","file1":"1377701465","file0":"1377701463","file4":"1377701476","file5":"1377701480","file3":"1377701470"},"map_files_photo_id_array":[{"photo_id":"1377701480","filename":"file5"},{"photo_id":"1377701467","filename":"file2"},{"photo_id":"1377701476","filename":"file4"},{"photo_id":"1377701465","filename":"file1"},{"photo_id":"1377701463","filename":"file0"},{"photo_id":"1377701470","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377701480":["hashtag1","hashtag2"]},{"1377701465":["hashtag1","hashtag2"]},{"1377701470":["hashtag1","hashtag2"]},{"1377701467":["hashtag1","hashtag2"]},{"1377701476":["hashtag1","hashtag2"]},{"1377701463":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377701480, 1377701465, 1377701470, 1377701467, 1377701476, 1377701463)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.297621965408325 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:35:32.432410
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/35/image_18082025_13_35_45_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/13/35/image_18082025_13_35_34_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/13/35/image_18082025_13_35_25_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/13/35/image_18082025_13_35_14_9827.jpg', 2), ('/home/nano/Desktop/images/18082025/13/34/image_18082025_13_35_04_9791.jpg', 2), ('/home/nano/Desktop/images/18082025/13/34/image_18082025_13_34_55_9651.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/35/image_18082025_13_35_45_10661.jpg', '/home/nano/Desktop/images/18082025/13/35/image_18082025_13_35_34_9611.jpg', '/home/nano/Desktop/images/18082025/13/35/image_18082025_13_35_25_10638.jpg', '/home/nano/Desktop/images/18082025/13/35/image_18082025_13_35_14_9827.jpg', '/home/nano/Desktop/images/18082025/13/34/image_18082025_13_35_04_9791.jpg', '/home/nano/Desktop/images/18082025/13/34/image_18082025_13_34_55_9651.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/35/image_18082025_13_35_45_10661.jpg
/home/nano/Desktop/images/18082025/13/35/image_18082025_13_35_34_9611.jpg
/home/nano/Desktop/images/18082025/13/35/image_18082025_13_35_25_10638.jpg
/home/nano/Desktop/images/18082025/13/35/image_18082025_13_35_14_9827.jpg
/home/nano/Desktop/images/18082025/13/34/image_18082025_13_35_04_9791.jpg
/home/nano/Desktop/images/18082025/13/34/image_18082025_13_34_55_9651.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377701520","1377701498","1377701502","1377701510","1377701515","1377701506"],"photo_ids_order":["1377701498","1377701502","1377701506","1377701510","1377701515","1377701520"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f11f317aa57876fcbc5152f749ff198b.jpg","text":"TemporaryFile(/tmp/multipartBody2108306326186415878asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516993882,"filename":"image_18082025_13_34_55_9651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5b452f3e8af57375bdde064bac204204.jpg","text":"TemporaryFile(/tmp/multipartBody7366924769936069726asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516993882,"filename":"image_18082025_13_35_45_10661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f405d8d59ffb5bfe8645000d76dd6d9c.jpg","text":"TemporaryFile(/tmp/multipartBody1157341650708272034asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516993882,"filename":"image_18082025_13_35_34_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fd63a59b47ff38e1ea08836b9418086c.jpg","text":"TemporaryFile(/tmp/multipartBody8800767134205473431asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516993882,"filename":"image_18082025_13_35_14_9827.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/efcf2b102e3364a99fe4e5a38e64bd0f.jpg","text":"TemporaryFile(/tmp/multipartBody5707181002275091549asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516993882,"filename":"image_18082025_13_35_04_9791.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a3c110f121832c557240e6d7f3de72ae.jpg","text":"TemporaryFile(/tmp/multipartBody9095321122854522807asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755516993882,"filename":"image_18082025_13_35_25_10638.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377701506","file1":"1377701502","file0":"1377701498","file4":"1377701515","file5":"1377701520","file3":"1377701510"},"map_files_photo_id_array":[{"photo_id":"1377701520","filename":"file5"},{"photo_id":"1377701506","filename":"file2"},{"photo_id":"1377701515","filename":"file4"},{"photo_id":"1377701502","filename":"file1"},{"photo_id":"1377701498","filename":"file0"},{"photo_id":"1377701510","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377701520":["hashtag1","hashtag2"]},{"1377701498":["hashtag1","hashtag2"]},{"1377701502":["hashtag1","hashtag2"]},{"1377701510":["hashtag1","hashtag2"]},{"1377701515":["hashtag1","hashtag2"]},{"1377701506":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377701520, 1377701498, 1377701502, 1377701510, 1377701515, 1377701506)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.86497449874878 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:36:17.485620
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/36/image_18082025_13_36_44_9697.jpg', 2), ('/home/nano/Desktop/images/18082025/13/36/image_18082025_13_36_34_9698.jpg', 2), ('/home/nano/Desktop/images/18082025/13/36/image_18082025_13_36_25_10698.jpg', 2), ('/home/nano/Desktop/images/18082025/13/36/image_18082025_13_36_14_9704.jpg', 2), ('/home/nano/Desktop/images/18082025/13/35/image_18082025_13_36_04_9674.jpg', 2), ('/home/nano/Desktop/images/18082025/13/35/image_18082025_13_35_55_9633.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/36/image_18082025_13_36_44_9697.jpg', '/home/nano/Desktop/images/18082025/13/36/image_18082025_13_36_34_9698.jpg', '/home/nano/Desktop/images/18082025/13/36/image_18082025_13_36_25_10698.jpg', '/home/nano/Desktop/images/18082025/13/36/image_18082025_13_36_14_9704.jpg', '/home/nano/Desktop/images/18082025/13/35/image_18082025_13_36_04_9674.jpg', '/home/nano/Desktop/images/18082025/13/35/image_18082025_13_35_55_9633.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/36/image_18082025_13_36_44_9697.jpg
/home/nano/Desktop/images/18082025/13/36/image_18082025_13_36_34_9698.jpg
/home/nano/Desktop/images/18082025/13/36/image_18082025_13_36_25_10698.jpg
/home/nano/Desktop/images/18082025/13/36/image_18082025_13_36_14_9704.jpg
/home/nano/Desktop/images/18082025/13/35/image_18082025_13_36_04_9674.jpg
/home/nano/Desktop/images/18082025/13/35/image_18082025_13_35_55_9633.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377701532","1377701540","1377701546","1377701542","1377701536","1377701544"],"photo_ids_order":["1377701532","1377701536","1377701540","1377701542","1377701544","1377701546"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/059163328ca45e308c8a243eaa14b795.jpg","text":"TemporaryFile(/tmp/multipartBody5726386801150133095asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517040553,"filename":"image_18082025_13_36_44_9697.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a95927a6cd941fd844658f16b051be59.jpg","text":"TemporaryFile(/tmp/multipartBody5214814260375181887asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517040553,"filename":"image_18082025_13_36_25_10698.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d0357e03044853b9d7df581aaaa32ddb.jpg","text":"TemporaryFile(/tmp/multipartBody7680938139670228001asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517040553,"filename":"image_18082025_13_35_55_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ed6919ddc9b4de71f5005b7033ba4b5c.jpg","text":"TemporaryFile(/tmp/multipartBody3383877290661083236asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517040553,"filename":"image_18082025_13_36_14_9704.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cecb890743d0dd6f8f9bc96b3ea2b7bd.jpg","text":"TemporaryFile(/tmp/multipartBody5542693119753363631asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517040553,"filename":"image_18082025_13_36_34_9698.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bf55353f2c505731ace5082776497083.jpg","text":"TemporaryFile(/tmp/multipartBody6286934054640640407asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517040553,"filename":"image_18082025_13_36_04_9674.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377701540","file1":"1377701536","file0":"1377701532","file4":"1377701544","file5":"1377701546","file3":"1377701542"},"map_files_photo_id_array":[{"photo_id":"1377701546","filename":"file5"},{"photo_id":"1377701540","filename":"file2"},{"photo_id":"1377701544","filename":"file4"},{"photo_id":"1377701536","filename":"file1"},{"photo_id":"1377701532","filename":"file0"},{"photo_id":"1377701542","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377701532":["hashtag1","hashtag2"]},{"1377701540":["hashtag1","hashtag2"]},{"1377701546":["hashtag1","hashtag2"]},{"1377701542":["hashtag1","hashtag2"]},{"1377701536":["hashtag1","hashtag2"]},{"1377701544":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377701532, 1377701540, 1377701546, 1377701542, 1377701536, 1377701544)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.69023776054382 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:37:03.306089
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/19/image_18082025_11_19_45_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/11/19/image_18082025_11_19_34_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/11/19/image_18082025_11_19_25_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/11/19/image_18082025_11_19_15_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/11/18/image_18082025_11_19_04_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/11/18/image_18082025_11_18_55_10619.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/19/image_18082025_11_19_45_10629.jpg', '/home/nano/Desktop/images/18082025/11/19/image_18082025_11_19_34_9619.jpg', '/home/nano/Desktop/images/18082025/11/19/image_18082025_11_19_25_9650.jpg', '/home/nano/Desktop/images/18082025/11/19/image_18082025_11_19_15_10637.jpg', '/home/nano/Desktop/images/18082025/11/18/image_18082025_11_19_04_9625.jpg', '/home/nano/Desktop/images/18082025/11/18/image_18082025_11_18_55_10619.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/19/image_18082025_11_19_45_10629.jpg
/home/nano/Desktop/images/18082025/11/19/image_18082025_11_19_34_9619.jpg
/home/nano/Desktop/images/18082025/11/19/image_18082025_11_19_25_9650.jpg
/home/nano/Desktop/images/18082025/11/19/image_18082025_11_19_15_10637.jpg
/home/nano/Desktop/images/18082025/11/18/image_18082025_11_19_04_9625.jpg
/home/nano/Desktop/images/18082025/11/18/image_18082025_11_18_55_10619.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377701573","1377701564","1377701568","1377701562","1377701556","1377701559"],"photo_ids_order":["1377701556","1377701559","1377701562","1377701564","1377701568","1377701573"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/057f9ced99183ac5e48973a57df9118b.jpg","text":"TemporaryFile(/tmp/multipartBody1662706056553199342asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517084963,"filename":"image_18082025_11_18_55_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fe9935807119d74fa016d65818ad7278.jpg","text":"TemporaryFile(/tmp/multipartBody3556743075204624938asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517084963,"filename":"image_18082025_11_19_15_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3921ca047dd39901df082c463514fea1.jpg","text":"TemporaryFile(/tmp/multipartBody4508344980558161190asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517084963,"filename":"image_18082025_11_19_04_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f9e1df531429900e032d8f9daa3cda84.jpg","text":"TemporaryFile(/tmp/multipartBody1547939769251002334asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517084963,"filename":"image_18082025_11_19_25_9650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1c0ac094d0b2dc7120a044ef5ef5c0b9.jpg","text":"TemporaryFile(/tmp/multipartBody689690354506752720asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517084963,"filename":"image_18082025_11_19_45_10629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b5abf1580835887b5c961334e2bf7aa8.jpg","text":"TemporaryFile(/tmp/multipartBody6344785934568301457asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517084963,"filename":"image_18082025_11_19_34_9619.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377701562","file1":"1377701559","file0":"1377701556","file4":"1377701568","file5":"1377701573","file3":"1377701564"},"map_files_photo_id_array":[{"photo_id":"1377701573","filename":"file5"},{"photo_id":"1377701562","filename":"file2"},{"photo_id":"1377701568","filename":"file4"},{"photo_id":"1377701559","filename":"file1"},{"photo_id":"1377701556","filename":"file0"},{"photo_id":"1377701564","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377701573":["hashtag1","hashtag2"]},{"1377701564":["hashtag1","hashtag2"]},{"1377701568":["hashtag1","hashtag2"]},{"1377701562":["hashtag1","hashtag2"]},{"1377701556":["hashtag1","hashtag2"]},{"1377701559":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377701573, 1377701564, 1377701568, 1377701562, 1377701556, 1377701559)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.076988220214844 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:37:47.621253
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/37/image_18082025_13_37_45_10643.jpg', 2), ('/home/nano/Desktop/images/18082025/13/37/image_18082025_13_37_34_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/13/37/image_18082025_13_37_25_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/13/37/image_18082025_13_37_14_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/13/36/image_18082025_13_37_04_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/13/36/image_18082025_13_36_55_10652.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/37/image_18082025_13_37_45_10643.jpg', '/home/nano/Desktop/images/18082025/13/37/image_18082025_13_37_34_9616.jpg', '/home/nano/Desktop/images/18082025/13/37/image_18082025_13_37_25_10629.jpg', '/home/nano/Desktop/images/18082025/13/37/image_18082025_13_37_14_9639.jpg', '/home/nano/Desktop/images/18082025/13/36/image_18082025_13_37_04_9638.jpg', '/home/nano/Desktop/images/18082025/13/36/image_18082025_13_36_55_10652.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/37/image_18082025_13_37_45_10643.jpg
/home/nano/Desktop/images/18082025/13/37/image_18082025_13_37_34_9616.jpg
/home/nano/Desktop/images/18082025/13/37/image_18082025_13_37_25_10629.jpg
/home/nano/Desktop/images/18082025/13/37/image_18082025_13_37_14_9639.jpg
/home/nano/Desktop/images/18082025/13/36/image_18082025_13_37_04_9638.jpg
/home/nano/Desktop/images/18082025/13/36/image_18082025_13_36_55_10652.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377701585","1377701603","1377701596","1377701600","1377701593","1377701589"],"photo_ids_order":["1377701585","1377701589","1377701593","1377701596","1377701600","1377701603"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/feb2e8397e3c81cbb2a51c82db6abc3a.jpg","text":"TemporaryFile(/tmp/multipartBody1563444366702609568asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517129158,"filename":"image_18082025_13_37_45_10643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/db79d86e538b6f7ae22dd23bd7e59c5e.jpg","text":"TemporaryFile(/tmp/multipartBody2348100627731307444asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517129158,"filename":"image_18082025_13_36_55_10652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fc7946c8d6b62c8c478125c81f3d7b6c.jpg","text":"TemporaryFile(/tmp/multipartBody4167155882207157455asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517129158,"filename":"image_18082025_13_37_14_9639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/100bf25c23e5c5f83c1b6c8e8a650033.jpg","text":"TemporaryFile(/tmp/multipartBody1409900467512452166asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517129158,"filename":"image_18082025_13_37_04_9638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ae20e0fcd9aadff7f30bc3d5cb80d486.jpg","text":"TemporaryFile(/tmp/multipartBody5344362714148050258asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517129158,"filename":"image_18082025_13_37_25_10629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/742b9e2c5c9c2fa1ae5120c8a571490f.jpg","text":"TemporaryFile(/tmp/multipartBody6957377673995050208asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517129158,"filename":"image_18082025_13_37_34_9616.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377701593","file1":"1377701589","file0":"1377701585","file4":"1377701600","file5":"1377701603","file3":"1377701596"},"map_files_photo_id_array":[{"photo_id":"1377701603","filename":"file5"},{"photo_id":"1377701593","filename":"file2"},{"photo_id":"1377701600","filename":"file4"},{"photo_id":"1377701589","filename":"file1"},{"photo_id":"1377701585","filename":"file0"},{"photo_id":"1377701596","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377701585":["hashtag1","hashtag2"]},{"1377701603":["hashtag1","hashtag2"]},{"1377701596":["hashtag1","hashtag2"]},{"1377701600":["hashtag1","hashtag2"]},{"1377701593":["hashtag1","hashtag2"]},{"1377701589":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377701585, 1377701603, 1377701596, 1377701600, 1377701593, 1377701589)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.81854581832886 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:38:32.756255
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/38/image_18082025_13_38_45_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/13/38/image_18082025_13_38_34_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/13/38/image_18082025_13_38_25_9748.jpg', 2), ('/home/nano/Desktop/images/18082025/13/38/image_18082025_13_38_15_10729.jpg', 2), ('/home/nano/Desktop/images/18082025/13/37/image_18082025_13_38_04_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/13/37/image_18082025_13_37_55_9616.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/38/image_18082025_13_38_45_10669.jpg', '/home/nano/Desktop/images/18082025/13/38/image_18082025_13_38_34_9647.jpg', '/home/nano/Desktop/images/18082025/13/38/image_18082025_13_38_25_9748.jpg', '/home/nano/Desktop/images/18082025/13/38/image_18082025_13_38_15_10729.jpg', '/home/nano/Desktop/images/18082025/13/37/image_18082025_13_38_04_9638.jpg', '/home/nano/Desktop/images/18082025/13/37/image_18082025_13_37_55_9616.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/38/image_18082025_13_38_45_10669.jpg
/home/nano/Desktop/images/18082025/13/38/image_18082025_13_38_34_9647.jpg
/home/nano/Desktop/images/18082025/13/38/image_18082025_13_38_25_9748.jpg
/home/nano/Desktop/images/18082025/13/38/image_18082025_13_38_15_10729.jpg
/home/nano/Desktop/images/18082025/13/37/image_18082025_13_38_04_9638.jpg
/home/nano/Desktop/images/18082025/13/37/image_18082025_13_37_55_9616.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377701631","1377701628","1377701616","1377701633","1377701624","1377701620"],"photo_ids_order":["1377701616","1377701620","1377701624","1377701628","1377701631","1377701633"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cdbf5851f3297ad8e808dcd40c7e0436.jpg","text":"TemporaryFile(/tmp/multipartBody4393761735800390733asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517174274,"filename":"image_18082025_13_38_04_9638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7f58e1708d6c01e3b98ac3384ef8bcd5.jpg","text":"TemporaryFile(/tmp/multipartBody2207149323461292930asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517174274,"filename":"image_18082025_13_38_15_10729.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/318bcdb7156ffee8284fad88feb1169f.jpg","text":"TemporaryFile(/tmp/multipartBody4568228077022117483asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517174274,"filename":"image_18082025_13_38_45_10669.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/608bcd97031973cc7597cecd6702ef56.jpg","text":"TemporaryFile(/tmp/multipartBody7406969439086807684asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517174274,"filename":"image_18082025_13_37_55_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fa48ecdf8f0a67acf6166747510e528a.jpg","text":"TemporaryFile(/tmp/multipartBody4613779546498812396asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517174274,"filename":"image_18082025_13_38_25_9748.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f1167afa63d6e838cf051e98a682db41.jpg","text":"TemporaryFile(/tmp/multipartBody8452120449841786100asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517174274,"filename":"image_18082025_13_38_34_9647.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377701624","file1":"1377701620","file0":"1377701616","file4":"1377701631","file5":"1377701633","file3":"1377701628"},"map_files_photo_id_array":[{"photo_id":"1377701633","filename":"file5"},{"photo_id":"1377701624","filename":"file2"},{"photo_id":"1377701631","filename":"file4"},{"photo_id":"1377701620","filename":"file1"},{"photo_id":"1377701616","filename":"file0"},{"photo_id":"1377701628","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377701631":["hashtag1","hashtag2"]},{"1377701628":["hashtag1","hashtag2"]},{"1377701616":["hashtag1","hashtag2"]},{"1377701633":["hashtag1","hashtag2"]},{"1377701624":["hashtag1","hashtag2"]},{"1377701620":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377701631, 1377701628, 1377701616, 1377701633, 1377701624, 1377701620)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.903707265853882 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:39:16.796028
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/39/image_18082025_13_39_45_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/13/39/image_18082025_13_39_34_9672.jpg', 2), ('/home/nano/Desktop/images/18082025/13/39/image_18082025_13_39_25_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/13/39/image_18082025_13_39_15_10685.jpg', 2), ('/home/nano/Desktop/images/18082025/13/38/image_18082025_13_39_04_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/13/38/image_18082025_13_38_55_9659.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/39/image_18082025_13_39_45_10659.jpg', '/home/nano/Desktop/images/18082025/13/39/image_18082025_13_39_34_9672.jpg', '/home/nano/Desktop/images/18082025/13/39/image_18082025_13_39_25_9632.jpg', '/home/nano/Desktop/images/18082025/13/39/image_18082025_13_39_15_10685.jpg', '/home/nano/Desktop/images/18082025/13/38/image_18082025_13_39_04_9612.jpg', '/home/nano/Desktop/images/18082025/13/38/image_18082025_13_38_55_9659.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/39/image_18082025_13_39_45_10659.jpg
/home/nano/Desktop/images/18082025/13/39/image_18082025_13_39_34_9672.jpg
/home/nano/Desktop/images/18082025/13/39/image_18082025_13_39_25_9632.jpg
/home/nano/Desktop/images/18082025/13/39/image_18082025_13_39_15_10685.jpg
/home/nano/Desktop/images/18082025/13/38/image_18082025_13_39_04_9612.jpg
/home/nano/Desktop/images/18082025/13/38/image_18082025_13_38_55_9659.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377701657","1377701645","1377701653","1377701656","1377701655","1377701649"],"photo_ids_order":["1377701645","1377701649","1377701653","1377701655","1377701656","1377701657"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bae62f709670b8dcea9acb7e8ea7b428.jpg","text":"TemporaryFile(/tmp/multipartBody48553219383151836asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517218038,"filename":"image_18082025_13_38_55_9659.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a95e52f8df367c28fddb9650355f86d3.jpg","text":"TemporaryFile(/tmp/multipartBody4281001097324835919asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517218038,"filename":"image_18082025_13_39_45_10659.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8ac246843a0ba65184d3d77e18486b27.jpg","text":"TemporaryFile(/tmp/multipartBody2047002768715081368asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517218038,"filename":"image_18082025_13_39_25_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8cb249c929ed6917d6fce87dc9b7f370.jpg","text":"TemporaryFile(/tmp/multipartBody6568528840070034302asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517218038,"filename":"image_18082025_13_39_04_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3ba1e0296620795d2b7332509081bec5.jpg","text":"TemporaryFile(/tmp/multipartBody5234290959114327245asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517218038,"filename":"image_18082025_13_39_15_10685.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8e02141d0d4efcf3be23c07e13fc259b.jpg","text":"TemporaryFile(/tmp/multipartBody387363955542753328asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517218038,"filename":"image_18082025_13_39_34_9672.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377701653","file1":"1377701649","file0":"1377701645","file4":"1377701656","file5":"1377701657","file3":"1377701655"},"map_files_photo_id_array":[{"photo_id":"1377701657","filename":"file5"},{"photo_id":"1377701653","filename":"file2"},{"photo_id":"1377701656","filename":"file4"},{"photo_id":"1377701649","filename":"file1"},{"photo_id":"1377701645","filename":"file0"},{"photo_id":"1377701655","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377701657":["hashtag1","hashtag2"]},{"1377701645":["hashtag1","hashtag2"]},{"1377701653":["hashtag1","hashtag2"]},{"1377701656":["hashtag1","hashtag2"]},{"1377701655":["hashtag1","hashtag2"]},{"1377701649":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377701657, 1377701645, 1377701653, 1377701656, 1377701655, 1377701649)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.113786935806274 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:40:02.425194
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/18/image_18082025_11_18_44_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/11/18/image_18082025_11_18_34_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/11/18/image_18082025_11_18_25_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/11/18/image_18082025_11_18_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/11/17/image_18082025_11_18_05_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/11/17/image_18082025_11_17_55_10624.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/18/image_18082025_11_18_44_9607.jpg', '/home/nano/Desktop/images/18082025/11/18/image_18082025_11_18_34_9615.jpg', '/home/nano/Desktop/images/18082025/11/18/image_18082025_11_18_25_10625.jpg', '/home/nano/Desktop/images/18082025/11/18/image_18082025_11_18_14_9658.jpg', '/home/nano/Desktop/images/18082025/11/17/image_18082025_11_18_05_9656.jpg', '/home/nano/Desktop/images/18082025/11/17/image_18082025_11_17_55_10624.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/18/image_18082025_11_18_44_9607.jpg
/home/nano/Desktop/images/18082025/11/18/image_18082025_11_18_34_9615.jpg
/home/nano/Desktop/images/18082025/11/18/image_18082025_11_18_25_10625.jpg
/home/nano/Desktop/images/18082025/11/18/image_18082025_11_18_14_9658.jpg
/home/nano/Desktop/images/18082025/11/17/image_18082025_11_18_05_9656.jpg
/home/nano/Desktop/images/18082025/11/17/image_18082025_11_17_55_10624.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377701690","1377701678","1377701680","1377701683","1377701686","1377701674"],"photo_ids_order":["1377701674","1377701678","1377701680","1377701683","1377701686","1377701690"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/065039752f3b822b5e31f35dcc4973c0.jpg","text":"TemporaryFile(/tmp/multipartBody1053614459999873583asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517263793,"filename":"image_18082025_11_17_55_10624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dc0d850688f3571101475cf09da3fd24.jpg","text":"TemporaryFile(/tmp/multipartBody965811852489642317asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517263793,"filename":"image_18082025_11_18_34_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/81d0feb4c29102f9a0d481480755cedf.jpg","text":"TemporaryFile(/tmp/multipartBody9012730530212688577asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517263793,"filename":"image_18082025_11_18_25_10625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/038c5c45dca894137125d1b052c67cde.jpg","text":"TemporaryFile(/tmp/multipartBody7071740480579793408asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517263793,"filename":"image_18082025_11_18_14_9658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/61fc4200a938f15d9fefe446ed9272db.jpg","text":"TemporaryFile(/tmp/multipartBody1386632884208691178asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517263793,"filename":"image_18082025_11_18_05_9656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/56fe0d06ad98b03efbe770384788cfa5.jpg","text":"TemporaryFile(/tmp/multipartBody6913255906354799306asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517263793,"filename":"image_18082025_11_18_44_9607.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377701680","file1":"1377701678","file0":"1377701674","file4":"1377701686","file5":"1377701690","file3":"1377701683"},"map_files_photo_id_array":[{"photo_id":"1377701690","filename":"file5"},{"photo_id":"1377701680","filename":"file2"},{"photo_id":"1377701686","filename":"file4"},{"photo_id":"1377701678","filename":"file1"},{"photo_id":"1377701674","filename":"file0"},{"photo_id":"1377701683","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377701690":["hashtag1","hashtag2"]},{"1377701678":["hashtag1","hashtag2"]},{"1377701680":["hashtag1","hashtag2"]},{"1377701683":["hashtag1","hashtag2"]},{"1377701686":["hashtag1","hashtag2"]},{"1377701674":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377701690, 1377701678, 1377701680, 1377701683, 1377701686, 1377701674)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.42118263244629 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:40:46.896884
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/40/image_18082025_13_40_45_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/13/40/image_18082025_13_40_34_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/13/40/image_18082025_13_40_25_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/13/40/image_18082025_13_40_15_10710.jpg', 2), ('/home/nano/Desktop/images/18082025/13/39/image_18082025_13_40_04_9674.jpg', 2), ('/home/nano/Desktop/images/18082025/13/39/image_18082025_13_39_55_9690.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/40/image_18082025_13_40_45_10646.jpg', '/home/nano/Desktop/images/18082025/13/40/image_18082025_13_40_34_9650.jpg', '/home/nano/Desktop/images/18082025/13/40/image_18082025_13_40_25_9619.jpg', '/home/nano/Desktop/images/18082025/13/40/image_18082025_13_40_15_10710.jpg', '/home/nano/Desktop/images/18082025/13/39/image_18082025_13_40_04_9674.jpg', '/home/nano/Desktop/images/18082025/13/39/image_18082025_13_39_55_9690.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/40/image_18082025_13_40_45_10646.jpg
/home/nano/Desktop/images/18082025/13/40/image_18082025_13_40_34_9650.jpg
/home/nano/Desktop/images/18082025/13/40/image_18082025_13_40_25_9619.jpg
/home/nano/Desktop/images/18082025/13/40/image_18082025_13_40_15_10710.jpg
/home/nano/Desktop/images/18082025/13/39/image_18082025_13_40_04_9674.jpg
/home/nano/Desktop/images/18082025/13/39/image_18082025_13_39_55_9690.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377701703","1377701706","1377701714","1377701711","1377701708","1377701719"],"photo_ids_order":["1377701703","1377701706","1377701708","1377701711","1377701714","1377701719"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3a8d7ee031b5ca92b8b5ef40055967e2.jpg","text":"TemporaryFile(/tmp/multipartBody2567325400471077192asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517308352,"filename":"image_18082025_13_40_45_10646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d838ae7526f05a9e481cd2e86965f15b.jpg","text":"TemporaryFile(/tmp/multipartBody6581372778707897815asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517308352,"filename":"image_18082025_13_40_34_9650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/346c761e88eca0ade5d2ad1b459bd4d5.jpg","text":"TemporaryFile(/tmp/multipartBody421315779241908766asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517308352,"filename":"image_18082025_13_40_04_9674.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/939c63d636dbdfb792e0736d89300e87.jpg","text":"TemporaryFile(/tmp/multipartBody1405635767922705665asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517308352,"filename":"image_18082025_13_40_15_10710.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1756f92325b929788a27fab637581fb1.jpg","text":"TemporaryFile(/tmp/multipartBody7057683821381378301asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517308352,"filename":"image_18082025_13_40_25_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ada10f3450ec865b33b1436b73910f96.jpg","text":"TemporaryFile(/tmp/multipartBody5391526537926234243asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517308352,"filename":"image_18082025_13_39_55_9690.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377701708","file1":"1377701706","file0":"1377701703","file4":"1377701714","file5":"1377701719","file3":"1377701711"},"map_files_photo_id_array":[{"photo_id":"1377701719","filename":"file5"},{"photo_id":"1377701708","filename":"file2"},{"photo_id":"1377701714","filename":"file4"},{"photo_id":"1377701706","filename":"file1"},{"photo_id":"1377701703","filename":"file0"},{"photo_id":"1377701711","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377701703":["hashtag1","hashtag2"]},{"1377701706":["hashtag1","hashtag2"]},{"1377701714":["hashtag1","hashtag2"]},{"1377701711":["hashtag1","hashtag2"]},{"1377701708":["hashtag1","hashtag2"]},{"1377701719":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377701703, 1377701706, 1377701714, 1377701711, 1377701708, 1377701719)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.89470863342285 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:41:32.009834
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/41/image_18082025_13_41_45_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/13/41/image_18082025_13_41_34_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/13/41/image_18082025_13_41_25_9666.jpg', 2), ('/home/nano/Desktop/images/18082025/13/41/image_18082025_13_41_15_10701.jpg', 2), ('/home/nano/Desktop/images/18082025/13/40/image_18082025_13_41_04_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/13/40/image_18082025_13_40_55_9639.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/41/image_18082025_13_41_45_10627.jpg', '/home/nano/Desktop/images/18082025/13/41/image_18082025_13_41_34_9668.jpg', '/home/nano/Desktop/images/18082025/13/41/image_18082025_13_41_25_9666.jpg', '/home/nano/Desktop/images/18082025/13/41/image_18082025_13_41_15_10701.jpg', '/home/nano/Desktop/images/18082025/13/40/image_18082025_13_41_04_9654.jpg', '/home/nano/Desktop/images/18082025/13/40/image_18082025_13_40_55_9639.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/41/image_18082025_13_41_45_10627.jpg
/home/nano/Desktop/images/18082025/13/41/image_18082025_13_41_34_9668.jpg
/home/nano/Desktop/images/18082025/13/41/image_18082025_13_41_25_9666.jpg
/home/nano/Desktop/images/18082025/13/41/image_18082025_13_41_15_10701.jpg
/home/nano/Desktop/images/18082025/13/40/image_18082025_13_41_04_9654.jpg
/home/nano/Desktop/images/18082025/13/40/image_18082025_13_40_55_9639.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377701747","1377701744","1377701737","1377701740","1377701734","1377701736"],"photo_ids_order":["1377701734","1377701736","1377701737","1377701740","1377701744","1377701747"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ae2e65f3d215aaab3b34aa75580eb482.jpg","text":"TemporaryFile(/tmp/multipartBody6583031587674305774asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517353461,"filename":"image_18082025_13_40_55_9639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e3679e325486b21a324548197774f2fb.jpg","text":"TemporaryFile(/tmp/multipartBody9200760255133817759asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517353461,"filename":"image_18082025_13_41_04_9654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9494254750cd2b5962209f7bc5e38c9e.jpg","text":"TemporaryFile(/tmp/multipartBody6553941882588449151asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517353461,"filename":"image_18082025_13_41_25_9666.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e18c86c932f337c9724c5c92afc6001e.jpg","text":"TemporaryFile(/tmp/multipartBody6658383429097310072asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517353461,"filename":"image_18082025_13_41_15_10701.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2b526d0ee6b8c91a7b6e98b29aede729.jpg","text":"TemporaryFile(/tmp/multipartBody1686640848161655406asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517353461,"filename":"image_18082025_13_41_45_10627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c75487778f152be87f37cbdee91cf43f.jpg","text":"TemporaryFile(/tmp/multipartBody1418825762744024721asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517353461,"filename":"image_18082025_13_41_34_9668.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377701737","file1":"1377701736","file0":"1377701734","file4":"1377701744","file5":"1377701747","file3":"1377701740"},"map_files_photo_id_array":[{"photo_id":"1377701747","filename":"file5"},{"photo_id":"1377701737","filename":"file2"},{"photo_id":"1377701744","filename":"file4"},{"photo_id":"1377701736","filename":"file1"},{"photo_id":"1377701734","filename":"file0"},{"photo_id":"1377701740","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377701747":["hashtag1","hashtag2"]},{"1377701744":["hashtag1","hashtag2"]},{"1377701737":["hashtag1","hashtag2"]},{"1377701740":["hashtag1","hashtag2"]},{"1377701734":["hashtag1","hashtag2"]},{"1377701736":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377701747, 1377701744, 1377701737, 1377701740, 1377701734, 1377701736)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.56532049179077 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:42:17.103969
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/42/image_18082025_13_42_45_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/13/42/image_18082025_13_42_34_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/13/42/image_18082025_13_42_25_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/13/42/image_18082025_13_42_15_10703.jpg', 2), ('/home/nano/Desktop/images/18082025/13/41/image_18082025_13_42_04_9677.jpg', 2), ('/home/nano/Desktop/images/18082025/13/41/image_18082025_13_41_55_9641.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/42/image_18082025_13_42_45_10637.jpg', '/home/nano/Desktop/images/18082025/13/42/image_18082025_13_42_34_9654.jpg', '/home/nano/Desktop/images/18082025/13/42/image_18082025_13_42_25_9653.jpg', '/home/nano/Desktop/images/18082025/13/42/image_18082025_13_42_15_10703.jpg', '/home/nano/Desktop/images/18082025/13/41/image_18082025_13_42_04_9677.jpg', '/home/nano/Desktop/images/18082025/13/41/image_18082025_13_41_55_9641.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/42/image_18082025_13_42_45_10637.jpg
/home/nano/Desktop/images/18082025/13/42/image_18082025_13_42_34_9654.jpg
/home/nano/Desktop/images/18082025/13/42/image_18082025_13_42_25_9653.jpg
/home/nano/Desktop/images/18082025/13/42/image_18082025_13_42_15_10703.jpg
/home/nano/Desktop/images/18082025/13/41/image_18082025_13_42_04_9677.jpg
/home/nano/Desktop/images/18082025/13/41/image_18082025_13_41_55_9641.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.3557116985321045 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:42:32.092713
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/42/image_18082025_13_42_45_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/13/42/image_18082025_13_42_34_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/13/42/image_18082025_13_42_25_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/13/42/image_18082025_13_42_15_10703.jpg', 2), ('/home/nano/Desktop/images/18082025/13/41/image_18082025_13_42_04_9677.jpg', 2), ('/home/nano/Desktop/images/18082025/13/41/image_18082025_13_41_55_9641.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/42/image_18082025_13_42_45_10637.jpg', '/home/nano/Desktop/images/18082025/13/42/image_18082025_13_42_34_9654.jpg', '/home/nano/Desktop/images/18082025/13/42/image_18082025_13_42_25_9653.jpg', '/home/nano/Desktop/images/18082025/13/42/image_18082025_13_42_15_10703.jpg', '/home/nano/Desktop/images/18082025/13/41/image_18082025_13_42_04_9677.jpg', '/home/nano/Desktop/images/18082025/13/41/image_18082025_13_41_55_9641.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/42/image_18082025_13_42_45_10637.jpg
/home/nano/Desktop/images/18082025/13/42/image_18082025_13_42_34_9654.jpg
/home/nano/Desktop/images/18082025/13/42/image_18082025_13_42_25_9653.jpg
/home/nano/Desktop/images/18082025/13/42/image_18082025_13_42_15_10703.jpg
/home/nano/Desktop/images/18082025/13/41/image_18082025_13_42_04_9677.jpg
/home/nano/Desktop/images/18082025/13/41/image_18082025_13_41_55_9641.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377701789","1377701776","1377701784","1377701787","1377701781","1377701778"],"photo_ids_order":["1377701776","1377701778","1377701781","1377701784","1377701787","1377701789"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/63f77084e4b3e2c2f9c8dfd4d4507b68.jpg","text":"TemporaryFile(/tmp/multipartBody2290139808189485474asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517413153,"filename":"image_18082025_13_41_55_9641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/aad3ab8757be3827f19cc629d382e923.jpg","text":"TemporaryFile(/tmp/multipartBody8916214367547125631asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517413153,"filename":"image_18082025_13_42_45_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ed7e3065fa58a870b904970175196857.jpg","text":"TemporaryFile(/tmp/multipartBody4007228092339914347asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517413153,"filename":"image_18082025_13_42_15_10703.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b24aae82e1dfc6069178cd98de681b01.jpg","text":"TemporaryFile(/tmp/multipartBody344492895102438826asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517413153,"filename":"image_18082025_13_42_04_9677.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/30c13b425cc4d6710dc7d4355001cd10.jpg","text":"TemporaryFile(/tmp/multipartBody332849577181886800asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517413153,"filename":"image_18082025_13_42_25_9653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ca988b2006bfcf744298e285226c9c04.jpg","text":"TemporaryFile(/tmp/multipartBody114649362896633720asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517413153,"filename":"image_18082025_13_42_34_9654.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377701781","file1":"1377701778","file0":"1377701776","file4":"1377701787","file5":"1377701789","file3":"1377701784"},"map_files_photo_id_array":[{"photo_id":"1377701789","filename":"file5"},{"photo_id":"1377701781","filename":"file2"},{"photo_id":"1377701787","filename":"file4"},{"photo_id":"1377701778","filename":"file1"},{"photo_id":"1377701776","filename":"file0"},{"photo_id":"1377701784","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377701789":["hashtag1","hashtag2"]},{"1377701776":["hashtag1","hashtag2"]},{"1377701784":["hashtag1","hashtag2"]},{"1377701787":["hashtag1","hashtag2"]},{"1377701781":["hashtag1","hashtag2"]},{"1377701778":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377701789, 1377701776, 1377701784, 1377701787, 1377701781, 1377701778)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.636715173721313 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:43:17.188358
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/43/image_18082025_13_43_45_10686.jpg', 2), ('/home/nano/Desktop/images/18082025/13/43/image_18082025_13_43_34_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/13/43/image_18082025_13_43_25_9673.jpg', 2), ('/home/nano/Desktop/images/18082025/13/43/image_18082025_13_43_15_10702.jpg', 2), ('/home/nano/Desktop/images/18082025/13/42/image_18082025_13_43_04_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/13/42/image_18082025_13_42_55_9663.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/43/image_18082025_13_43_45_10686.jpg', '/home/nano/Desktop/images/18082025/13/43/image_18082025_13_43_34_9654.jpg', '/home/nano/Desktop/images/18082025/13/43/image_18082025_13_43_25_9673.jpg', '/home/nano/Desktop/images/18082025/13/43/image_18082025_13_43_15_10702.jpg', '/home/nano/Desktop/images/18082025/13/42/image_18082025_13_43_04_9657.jpg', '/home/nano/Desktop/images/18082025/13/42/image_18082025_13_42_55_9663.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/43/image_18082025_13_43_45_10686.jpg
/home/nano/Desktop/images/18082025/13/43/image_18082025_13_43_34_9654.jpg
/home/nano/Desktop/images/18082025/13/43/image_18082025_13_43_25_9673.jpg
/home/nano/Desktop/images/18082025/13/43/image_18082025_13_43_15_10702.jpg
/home/nano/Desktop/images/18082025/13/42/image_18082025_13_43_04_9657.jpg
/home/nano/Desktop/images/18082025/13/42/image_18082025_13_42_55_9663.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377701822","1377701816","1377701819","1377701807","1377701824","1377701812"],"photo_ids_order":["1377701807","1377701812","1377701816","1377701819","1377701822","1377701824"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fd06c9438f7099d20027410907b4501c.jpg","text":"TemporaryFile(/tmp/multipartBody1309937744308041925asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517458732,"filename":"image_18082025_13_43_04_9657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c9cb910a7a543a25ddb615d4ccae551f.jpg","text":"TemporaryFile(/tmp/multipartBody1996032247933678845asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517458732,"filename":"image_18082025_13_43_25_9673.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/42a3c408a893f5e0e556d849d14540eb.jpg","text":"TemporaryFile(/tmp/multipartBody3114615768188729807asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517458732,"filename":"image_18082025_13_43_15_10702.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/af64388272f05265da411676675bcea9.jpg","text":"TemporaryFile(/tmp/multipartBody115316967780509492asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517458732,"filename":"image_18082025_13_43_45_10686.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5c4cd8fecb89485c9bd6c247a8d46e77.jpg","text":"TemporaryFile(/tmp/multipartBody2798578065140970321asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517458732,"filename":"image_18082025_13_42_55_9663.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d7d7e852327a9a4bcf33861af9c3f9d7.jpg","text":"TemporaryFile(/tmp/multipartBody6753737516911121583asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517458732,"filename":"image_18082025_13_43_34_9654.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377701816","file1":"1377701812","file0":"1377701807","file4":"1377701822","file5":"1377701824","file3":"1377701819"},"map_files_photo_id_array":[{"photo_id":"1377701824","filename":"file5"},{"photo_id":"1377701816","filename":"file2"},{"photo_id":"1377701822","filename":"file4"},{"photo_id":"1377701812","filename":"file1"},{"photo_id":"1377701807","filename":"file0"},{"photo_id":"1377701819","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377701822":["hashtag1","hashtag2"]},{"1377701816":["hashtag1","hashtag2"]},{"1377701819":["hashtag1","hashtag2"]},{"1377701807":["hashtag1","hashtag2"]},{"1377701824":["hashtag1","hashtag2"]},{"1377701812":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377701822, 1377701816, 1377701819, 1377701807, 1377701824, 1377701812)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.96226215362549 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:44:02.940124
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/17/image_18082025_11_17_44_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/11/17/image_18082025_11_17_35_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/11/17/image_18082025_11_17_25_10615.jpg', 2), ('/home/nano/Desktop/images/18082025/11/17/image_18082025_11_17_14_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/11/16/image_18082025_11_17_05_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/11/16/image_18082025_11_16_54_9626.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/17/image_18082025_11_17_44_9621.jpg', '/home/nano/Desktop/images/18082025/11/17/image_18082025_11_17_35_9647.jpg', '/home/nano/Desktop/images/18082025/11/17/image_18082025_11_17_25_10615.jpg', '/home/nano/Desktop/images/18082025/11/17/image_18082025_11_17_14_9668.jpg', '/home/nano/Desktop/images/18082025/11/16/image_18082025_11_17_05_10647.jpg', '/home/nano/Desktop/images/18082025/11/16/image_18082025_11_16_54_9626.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/17/image_18082025_11_17_44_9621.jpg
/home/nano/Desktop/images/18082025/11/17/image_18082025_11_17_35_9647.jpg
/home/nano/Desktop/images/18082025/11/17/image_18082025_11_17_25_10615.jpg
/home/nano/Desktop/images/18082025/11/17/image_18082025_11_17_14_9668.jpg
/home/nano/Desktop/images/18082025/11/16/image_18082025_11_17_05_10647.jpg
/home/nano/Desktop/images/18082025/11/16/image_18082025_11_16_54_9626.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377701832","1377701846","1377701837","1377701842","1377701839","1377701835"],"photo_ids_order":["1377701832","1377701835","1377701837","1377701839","1377701842","1377701846"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b2a406d2bc64c1e914b8003f9cb4c55d.jpg","text":"TemporaryFile(/tmp/multipartBody9084915798941871349asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517504278,"filename":"image_18082025_11_17_44_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/77856d3cedc17949742380653fb1e0a6.jpg","text":"TemporaryFile(/tmp/multipartBody4060717576546359060asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517504278,"filename":"image_18082025_11_16_54_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2d3dbae73ceed98e30408516510ce12e.jpg","text":"TemporaryFile(/tmp/multipartBody2893682396836967638asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517504278,"filename":"image_18082025_11_17_25_10615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6b0dc14dfd242aef045a8184cc81b70c.jpg","text":"TemporaryFile(/tmp/multipartBody3312923090102843951asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517504278,"filename":"image_18082025_11_17_05_10647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a8ea8972b094468c1fcd997fd47e013e.jpg","text":"TemporaryFile(/tmp/multipartBody7503645552466048158asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517504278,"filename":"image_18082025_11_17_14_9668.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fddb341800ff1c01f3bf46726a628db5.jpg","text":"TemporaryFile(/tmp/multipartBody8617431302192528994asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517504278,"filename":"image_18082025_11_17_35_9647.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377701837","file1":"1377701835","file0":"1377701832","file4":"1377701842","file5":"1377701846","file3":"1377701839"},"map_files_photo_id_array":[{"photo_id":"1377701846","filename":"file5"},{"photo_id":"1377701837","filename":"file2"},{"photo_id":"1377701842","filename":"file4"},{"photo_id":"1377701835","filename":"file1"},{"photo_id":"1377701832","filename":"file0"},{"photo_id":"1377701839","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377701832":["hashtag1","hashtag2"]},{"1377701846":["hashtag1","hashtag2"]},{"1377701837":["hashtag1","hashtag2"]},{"1377701842":["hashtag1","hashtag2"]},{"1377701839":["hashtag1","hashtag2"]},{"1377701835":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377701832, 1377701846, 1377701837, 1377701842, 1377701839, 1377701835)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.857549905776978 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:44:47.340865
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/44/image_18082025_13_44_45_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/13/44/image_18082025_13_44_34_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/13/44/image_18082025_13_44_24_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/13/44/image_18082025_13_44_15_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/13/43/image_18082025_13_44_04_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/13/43/image_18082025_13_43_55_9612.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/44/image_18082025_13_44_45_10668.jpg', '/home/nano/Desktop/images/18082025/13/44/image_18082025_13_44_34_9615.jpg', '/home/nano/Desktop/images/18082025/13/44/image_18082025_13_44_24_9624.jpg', '/home/nano/Desktop/images/18082025/13/44/image_18082025_13_44_15_10629.jpg', '/home/nano/Desktop/images/18082025/13/43/image_18082025_13_44_04_9667.jpg', '/home/nano/Desktop/images/18082025/13/43/image_18082025_13_43_55_9612.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/44/image_18082025_13_44_45_10668.jpg
/home/nano/Desktop/images/18082025/13/44/image_18082025_13_44_34_9615.jpg
/home/nano/Desktop/images/18082025/13/44/image_18082025_13_44_24_9624.jpg
/home/nano/Desktop/images/18082025/13/44/image_18082025_13_44_15_10629.jpg
/home/nano/Desktop/images/18082025/13/43/image_18082025_13_44_04_9667.jpg
/home/nano/Desktop/images/18082025/13/43/image_18082025_13_43_55_9612.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.2143712043762207 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:45:03.118361
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/44/image_18082025_13_44_45_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/13/44/image_18082025_13_44_34_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/13/44/image_18082025_13_44_24_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/13/44/image_18082025_13_44_15_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/13/43/image_18082025_13_44_04_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/13/43/image_18082025_13_43_55_9612.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/44/image_18082025_13_44_45_10668.jpg', '/home/nano/Desktop/images/18082025/13/44/image_18082025_13_44_34_9615.jpg', '/home/nano/Desktop/images/18082025/13/44/image_18082025_13_44_24_9624.jpg', '/home/nano/Desktop/images/18082025/13/44/image_18082025_13_44_15_10629.jpg', '/home/nano/Desktop/images/18082025/13/43/image_18082025_13_44_04_9667.jpg', '/home/nano/Desktop/images/18082025/13/43/image_18082025_13_43_55_9612.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/44/image_18082025_13_44_45_10668.jpg
/home/nano/Desktop/images/18082025/13/44/image_18082025_13_44_34_9615.jpg
/home/nano/Desktop/images/18082025/13/44/image_18082025_13_44_24_9624.jpg
/home/nano/Desktop/images/18082025/13/44/image_18082025_13_44_15_10629.jpg
/home/nano/Desktop/images/18082025/13/43/image_18082025_13_44_04_9667.jpg
/home/nano/Desktop/images/18082025/13/43/image_18082025_13_43_55_9612.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377701879","1377701870","1377701875","1377701883","1377701865","1377701880"],"photo_ids_order":["1377701865","1377701870","1377701875","1377701879","1377701880","1377701883"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/df6ee502bd2efba6889da740f3d357a7.jpg","text":"TemporaryFile(/tmp/multipartBody2155883495019133236asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517564580,"filename":"image_18082025_13_44_15_10629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/654eddd4bd5f90d23c163031092e36f7.jpg","text":"TemporaryFile(/tmp/multipartBody448697151598876058asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517564580,"filename":"image_18082025_13_44_34_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3c825899d29c3240dff327ee0d381d62.jpg","text":"TemporaryFile(/tmp/multipartBody9071380533827646991asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517564580,"filename":"image_18082025_13_44_24_9624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5fdcbd7a2b4037f67ea9c847429365f0.jpg","text":"TemporaryFile(/tmp/multipartBody4651188649143574382asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517564580,"filename":"image_18082025_13_43_55_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/76f34379bd48ec66b0b170fcd2a1986d.jpg","text":"TemporaryFile(/tmp/multipartBody8239160373327209655asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517564580,"filename":"image_18082025_13_44_45_10668.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2a76147c9e650937ca0f2f8e1f684bd2.jpg","text":"TemporaryFile(/tmp/multipartBody1214840695983592292asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517564580,"filename":"image_18082025_13_44_04_9667.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377701875","file1":"1377701870","file0":"1377701865","file4":"1377701880","file5":"1377701883","file3":"1377701879"},"map_files_photo_id_array":[{"photo_id":"1377701883","filename":"file5"},{"photo_id":"1377701875","filename":"file2"},{"photo_id":"1377701880","filename":"file4"},{"photo_id":"1377701870","filename":"file1"},{"photo_id":"1377701865","filename":"file0"},{"photo_id":"1377701879","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377701879":["hashtag1","hashtag2"]},{"1377701870":["hashtag1","hashtag2"]},{"1377701875":["hashtag1","hashtag2"]},{"1377701883":["hashtag1","hashtag2"]},{"1377701865":["hashtag1","hashtag2"]},{"1377701880":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377701879, 1377701870, 1377701875, 1377701883, 1377701865, 1377701880)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.677273988723755 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:45:47.470423
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/45/image_18082025_13_45_44_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/13/45/image_18082025_13_45_35_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/13/45/image_18082025_13_45_24_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/13/45/image_18082025_13_45_15_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/13/44/image_18082025_13_45_05_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/13/44/image_18082025_13_44_54_9612.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/45/image_18082025_13_45_44_9621.jpg', '/home/nano/Desktop/images/18082025/13/45/image_18082025_13_45_35_10623.jpg', '/home/nano/Desktop/images/18082025/13/45/image_18082025_13_45_24_9616.jpg', '/home/nano/Desktop/images/18082025/13/45/image_18082025_13_45_15_9642.jpg', '/home/nano/Desktop/images/18082025/13/44/image_18082025_13_45_05_10649.jpg', '/home/nano/Desktop/images/18082025/13/44/image_18082025_13_44_54_9612.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/45/image_18082025_13_45_44_9621.jpg
/home/nano/Desktop/images/18082025/13/45/image_18082025_13_45_35_10623.jpg
/home/nano/Desktop/images/18082025/13/45/image_18082025_13_45_24_9616.jpg
/home/nano/Desktop/images/18082025/13/45/image_18082025_13_45_15_9642.jpg
/home/nano/Desktop/images/18082025/13/44/image_18082025_13_45_05_10649.jpg
/home/nano/Desktop/images/18082025/13/44/image_18082025_13_44_54_9612.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377701888","1377701897","1377701890","1377701893","1377701902","1377701892"],"photo_ids_order":["1377701888","1377701890","1377701892","1377701893","1377701897","1377701902"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5c96778a459683db1981032e253fae98.jpg","text":"TemporaryFile(/tmp/multipartBody1766494043765616625asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517608733,"filename":"image_18082025_13_45_44_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/624d1bbd69dcb192955bb7edace1e288.jpg","text":"TemporaryFile(/tmp/multipartBody4131735797657996423asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517608733,"filename":"image_18082025_13_45_05_10649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ad915341aadc3c3902f623c581243042.jpg","text":"TemporaryFile(/tmp/multipartBody1675045253479923379asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517608733,"filename":"image_18082025_13_45_35_10623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6408f989114d56cc972bfbe5840083b2.jpg","text":"TemporaryFile(/tmp/multipartBody1678770375275196asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517608733,"filename":"image_18082025_13_45_15_9642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/494b5944e7764f955a3876588eb294e4.jpg","text":"TemporaryFile(/tmp/multipartBody2988494539758267477asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517608733,"filename":"image_18082025_13_44_54_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/356f79f83f11e6229fcde171dde6f603.jpg","text":"TemporaryFile(/tmp/multipartBody5856634935064210122asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517608733,"filename":"image_18082025_13_45_24_9616.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377701892","file1":"1377701890","file0":"1377701888","file4":"1377701897","file5":"1377701902","file3":"1377701893"},"map_files_photo_id_array":[{"photo_id":"1377701902","filename":"file5"},{"photo_id":"1377701892","filename":"file2"},{"photo_id":"1377701897","filename":"file4"},{"photo_id":"1377701890","filename":"file1"},{"photo_id":"1377701888","filename":"file0"},{"photo_id":"1377701893","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377701888":["hashtag1","hashtag2"]},{"1377701897":["hashtag1","hashtag2"]},{"1377701890":["hashtag1","hashtag2"]},{"1377701893":["hashtag1","hashtag2"]},{"1377701902":["hashtag1","hashtag2"]},{"1377701892":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377701888, 1377701897, 1377701890, 1377701893, 1377701902, 1377701892)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.974907398223877 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:46:32.571283
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/46/image_18082025_13_46_44_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/13/46/image_18082025_13_46_35_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/13/46/image_18082025_13_46_25_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/13/46/image_18082025_13_46_14_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/13/45/image_18082025_13_46_05_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/13/45/image_18082025_13_45_54_9610.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/46/image_18082025_13_46_44_9611.jpg', '/home/nano/Desktop/images/18082025/13/46/image_18082025_13_46_35_9617.jpg', '/home/nano/Desktop/images/18082025/13/46/image_18082025_13_46_25_10627.jpg', '/home/nano/Desktop/images/18082025/13/46/image_18082025_13_46_14_9640.jpg', '/home/nano/Desktop/images/18082025/13/45/image_18082025_13_46_05_10641.jpg', '/home/nano/Desktop/images/18082025/13/45/image_18082025_13_45_54_9610.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/46/image_18082025_13_46_44_9611.jpg
/home/nano/Desktop/images/18082025/13/46/image_18082025_13_46_35_9617.jpg
/home/nano/Desktop/images/18082025/13/46/image_18082025_13_46_25_10627.jpg
/home/nano/Desktop/images/18082025/13/46/image_18082025_13_46_14_9640.jpg
/home/nano/Desktop/images/18082025/13/45/image_18082025_13_46_05_10641.jpg
/home/nano/Desktop/images/18082025/13/45/image_18082025_13_45_54_9610.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377701937","1377701927","1377701935","1377701923","1377701932","1377701929"],"photo_ids_order":["1377701923","1377701927","1377701929","1377701932","1377701935","1377701937"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/23fe7d21fd8f887fb98a4607cdbb597e.jpg","text":"TemporaryFile(/tmp/multipartBody76194982920138448asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517654067,"filename":"image_18082025_13_45_54_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/317bfe96fd0335a4c22e6eafed983bb8.jpg","text":"TemporaryFile(/tmp/multipartBody2052549821333071924asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517654067,"filename":"image_18082025_13_46_35_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3aa2b9115a2f8635cedb4547450d0651.jpg","text":"TemporaryFile(/tmp/multipartBody4473857456765403961asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517654067,"filename":"image_18082025_13_46_05_10641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3e3a92a18b5b44f6b73ea4041b431212.jpg","text":"TemporaryFile(/tmp/multipartBody6233121586222833808asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517654067,"filename":"image_18082025_13_46_44_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/296130607e9671b209519147d8015daa.jpg","text":"TemporaryFile(/tmp/multipartBody8649237488757603502asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517654067,"filename":"image_18082025_13_46_14_9640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0228aed1c587aa44bfd7b7b95d231cfb.jpg","text":"TemporaryFile(/tmp/multipartBody798834887351787285asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517654067,"filename":"image_18082025_13_46_25_10627.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377701929","file1":"1377701927","file0":"1377701923","file4":"1377701935","file5":"1377701937","file3":"1377701932"},"map_files_photo_id_array":[{"photo_id":"1377701937","filename":"file5"},{"photo_id":"1377701929","filename":"file2"},{"photo_id":"1377701935","filename":"file4"},{"photo_id":"1377701927","filename":"file1"},{"photo_id":"1377701923","filename":"file0"},{"photo_id":"1377701932","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377701937":["hashtag1","hashtag2"]},{"1377701927":["hashtag1","hashtag2"]},{"1377701935":["hashtag1","hashtag2"]},{"1377701923":["hashtag1","hashtag2"]},{"1377701932":["hashtag1","hashtag2"]},{"1377701929":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377701937, 1377701927, 1377701935, 1377701923, 1377701932, 1377701929)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.705052852630615 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:47:17.739216
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/47/image_18082025_13_47_45_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/13/47/image_18082025_13_47_34_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/13/47/image_18082025_13_47_25_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/13/47/image_18082025_13_47_14_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/13/46/image_18082025_13_47_04_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/13/46/image_18082025_13_46_55_10622.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/47/image_18082025_13_47_45_10628.jpg', '/home/nano/Desktop/images/18082025/13/47/image_18082025_13_47_34_9607.jpg', '/home/nano/Desktop/images/18082025/13/47/image_18082025_13_47_25_10642.jpg', '/home/nano/Desktop/images/18082025/13/47/image_18082025_13_47_14_9644.jpg', '/home/nano/Desktop/images/18082025/13/46/image_18082025_13_47_04_9623.jpg', '/home/nano/Desktop/images/18082025/13/46/image_18082025_13_46_55_10622.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/47/image_18082025_13_47_45_10628.jpg
/home/nano/Desktop/images/18082025/13/47/image_18082025_13_47_34_9607.jpg
/home/nano/Desktop/images/18082025/13/47/image_18082025_13_47_25_10642.jpg
/home/nano/Desktop/images/18082025/13/47/image_18082025_13_47_14_9644.jpg
/home/nano/Desktop/images/18082025/13/46/image_18082025_13_47_04_9623.jpg
/home/nano/Desktop/images/18082025/13/46/image_18082025_13_46_55_10622.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377701957","1377701968","1377701964","1377701967","1377701952","1377701961"],"photo_ids_order":["1377701952","1377701957","1377701961","1377701964","1377701967","1377701968"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2d343e200b2e7a059f24349443018a16.jpg","text":"TemporaryFile(/tmp/multipartBody1582548039729703404asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517698954,"filename":"image_18082025_13_47_34_9607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/770ad76c40a0e8557bbc57956e201b32.jpg","text":"TemporaryFile(/tmp/multipartBody7317144477929605524asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517698954,"filename":"image_18082025_13_46_55_10622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/682f905d410debc7e6cbee4f8da37dc6.jpg","text":"TemporaryFile(/tmp/multipartBody6837190179555990679asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517698954,"filename":"image_18082025_13_47_14_9644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bf90c975975c34a4771f9f0e2186e692.jpg","text":"TemporaryFile(/tmp/multipartBody6524480438069798451asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517698954,"filename":"image_18082025_13_47_04_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0abac0518a73559d933cd4a34b405213.jpg","text":"TemporaryFile(/tmp/multipartBody1344116044348274154asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517698954,"filename":"image_18082025_13_47_45_10628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e9b91879001e52fca7fb89cb0e9b1fe5.jpg","text":"TemporaryFile(/tmp/multipartBody2203680677835848534asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517698954,"filename":"image_18082025_13_47_25_10642.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377701961","file1":"1377701957","file0":"1377701952","file4":"1377701967","file5":"1377701968","file3":"1377701964"},"map_files_photo_id_array":[{"photo_id":"1377701968","filename":"file5"},{"photo_id":"1377701961","filename":"file2"},{"photo_id":"1377701967","filename":"file4"},{"photo_id":"1377701957","filename":"file1"},{"photo_id":"1377701952","filename":"file0"},{"photo_id":"1377701964","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377701957":["hashtag1","hashtag2"]},{"1377701968":["hashtag1","hashtag2"]},{"1377701964":["hashtag1","hashtag2"]},{"1377701967":["hashtag1","hashtag2"]},{"1377701952":["hashtag1","hashtag2"]},{"1377701961":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377701957, 1377701968, 1377701964, 1377701967, 1377701952, 1377701961)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.30733013153076 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:48:02.365990
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/16/image_18082025_11_16_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/11/16/image_18082025_11_16_35_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/11/16/image_18082025_11_16_24_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/11/16/image_18082025_11_16_15_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/11/15/image_18082025_11_16_05_10696.jpg', 2), ('/home/nano/Desktop/images/18082025/11/15/image_18082025_11_15_54_9708.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/16/image_18082025_11_16_44_9643.jpg', '/home/nano/Desktop/images/18082025/11/16/image_18082025_11_16_35_10651.jpg', '/home/nano/Desktop/images/18082025/11/16/image_18082025_11_16_24_9619.jpg', '/home/nano/Desktop/images/18082025/11/16/image_18082025_11_16_15_9633.jpg', '/home/nano/Desktop/images/18082025/11/15/image_18082025_11_16_05_10696.jpg', '/home/nano/Desktop/images/18082025/11/15/image_18082025_11_15_54_9708.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/16/image_18082025_11_16_44_9643.jpg
/home/nano/Desktop/images/18082025/11/16/image_18082025_11_16_35_10651.jpg
/home/nano/Desktop/images/18082025/11/16/image_18082025_11_16_24_9619.jpg
/home/nano/Desktop/images/18082025/11/16/image_18082025_11_16_15_9633.jpg
/home/nano/Desktop/images/18082025/11/15/image_18082025_11_16_05_10696.jpg
/home/nano/Desktop/images/18082025/11/15/image_18082025_11_15_54_9708.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.3843731880187988 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:48:16.855797
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/48/image_18082025_13_48_45_10614.jpg', 2), ('/home/nano/Desktop/images/18082025/13/48/image_18082025_13_48_34_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/13/48/image_18082025_13_48_25_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/13/48/image_18082025_13_48_15_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/13/47/image_18082025_13_48_04_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/13/47/image_18082025_13_47_55_9614.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/48/image_18082025_13_48_45_10614.jpg', '/home/nano/Desktop/images/18082025/13/48/image_18082025_13_48_34_9628.jpg', '/home/nano/Desktop/images/18082025/13/48/image_18082025_13_48_25_9617.jpg', '/home/nano/Desktop/images/18082025/13/48/image_18082025_13_48_15_10647.jpg', '/home/nano/Desktop/images/18082025/13/47/image_18082025_13_48_04_9626.jpg', '/home/nano/Desktop/images/18082025/13/47/image_18082025_13_47_55_9614.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/48/image_18082025_13_48_45_10614.jpg
/home/nano/Desktop/images/18082025/13/48/image_18082025_13_48_34_9628.jpg
/home/nano/Desktop/images/18082025/13/48/image_18082025_13_48_25_9617.jpg
/home/nano/Desktop/images/18082025/13/48/image_18082025_13_48_15_10647.jpg
/home/nano/Desktop/images/18082025/13/47/image_18082025_13_48_04_9626.jpg
/home/nano/Desktop/images/18082025/13/47/image_18082025_13_47_55_9614.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377701996","1377701999","1377701992","1377701989","1377702007","1377702003"],"photo_ids_order":["1377701989","1377701992","1377701996","1377701999","1377702003","1377702007"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a7d377525058600e3e003c7ac564a624.jpg","text":"TemporaryFile(/tmp/multipartBody7318963405931293181asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517758003,"filename":"image_18082025_13_48_25_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/43aba0a3d1cb7d00bdd5bb31beeb669b.jpg","text":"TemporaryFile(/tmp/multipartBody405946222137291834asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517758003,"filename":"image_18082025_13_48_15_10647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/909ef0319c77617b71577b96be880880.jpg","text":"TemporaryFile(/tmp/multipartBody249811008906038834asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517758003,"filename":"image_18082025_13_48_34_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c58f8cc5e1533e6c578d6d32ac9a381c.jpg","text":"TemporaryFile(/tmp/multipartBody1180637481073454867asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517758003,"filename":"image_18082025_13_48_45_10614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b7b63756245e7773a7d90b7309184672.jpg","text":"TemporaryFile(/tmp/multipartBody9076038271841550025asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517758003,"filename":"image_18082025_13_47_55_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5ec93fe372c9229b8a1de506cc3bc0a4.jpg","text":"TemporaryFile(/tmp/multipartBody53543370678573155asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517758003,"filename":"image_18082025_13_48_04_9626.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377701996","file1":"1377701992","file0":"1377701989","file4":"1377702003","file5":"1377702007","file3":"1377701999"},"map_files_photo_id_array":[{"photo_id":"1377702007","filename":"file5"},{"photo_id":"1377701996","filename":"file2"},{"photo_id":"1377702003","filename":"file4"},{"photo_id":"1377701992","filename":"file1"},{"photo_id":"1377701989","filename":"file0"},{"photo_id":"1377701999","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377701996":["hashtag1","hashtag2"]},{"1377701999":["hashtag1","hashtag2"]},{"1377701992":["hashtag1","hashtag2"]},{"1377701989":["hashtag1","hashtag2"]},{"1377702007":["hashtag1","hashtag2"]},{"1377702003":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377701996, 1377701999, 1377701992, 1377701989, 1377702007, 1377702003)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.112088203430176 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:49:02.849583
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/16/image_18082025_11_16_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/11/16/image_18082025_11_16_35_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/11/16/image_18082025_11_16_24_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/11/16/image_18082025_11_16_15_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/11/15/image_18082025_11_16_05_10696.jpg', 2), ('/home/nano/Desktop/images/18082025/11/15/image_18082025_11_15_54_9708.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/16/image_18082025_11_16_44_9643.jpg', '/home/nano/Desktop/images/18082025/11/16/image_18082025_11_16_35_10651.jpg', '/home/nano/Desktop/images/18082025/11/16/image_18082025_11_16_24_9619.jpg', '/home/nano/Desktop/images/18082025/11/16/image_18082025_11_16_15_9633.jpg', '/home/nano/Desktop/images/18082025/11/15/image_18082025_11_16_05_10696.jpg', '/home/nano/Desktop/images/18082025/11/15/image_18082025_11_15_54_9708.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/16/image_18082025_11_16_44_9643.jpg
/home/nano/Desktop/images/18082025/11/16/image_18082025_11_16_35_10651.jpg
/home/nano/Desktop/images/18082025/11/16/image_18082025_11_16_24_9619.jpg
/home/nano/Desktop/images/18082025/11/16/image_18082025_11_16_15_9633.jpg
/home/nano/Desktop/images/18082025/11/15/image_18082025_11_16_05_10696.jpg
/home/nano/Desktop/images/18082025/11/15/image_18082025_11_15_54_9708.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377702026","1377702017","1377702031","1377702036","1377702021","1377702039"],"photo_ids_order":["1377702017","1377702021","1377702026","1377702031","1377702036","1377702039"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/06311be5a0efd11acb765afada78e962.jpg","text":"TemporaryFile(/tmp/multipartBody8792124079145563525asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517804041,"filename":"image_18082025_11_16_24_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c73f752c243c3bb725431e43c45e795a.jpg","text":"TemporaryFile(/tmp/multipartBody6107537128764127518asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517804041,"filename":"image_18082025_11_16_44_9643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8b5cdd1707769488adf92066a2012896.jpg","text":"TemporaryFile(/tmp/multipartBody9190500946275970694asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517804041,"filename":"image_18082025_11_16_15_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ea8ff9faea0fbecb0108bb0bbae55ecf.jpg","text":"TemporaryFile(/tmp/multipartBody3271707599701597409asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517804041,"filename":"image_18082025_11_16_05_10696.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/381d5343e3c5cbf39518d98ecd07ce10.jpg","text":"TemporaryFile(/tmp/multipartBody1271689040271570241asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517804041,"filename":"image_18082025_11_16_35_10651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/44e19787d4ac68f3b96775968ec5f84b.jpg","text":"TemporaryFile(/tmp/multipartBody6135126995554305324asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517804041,"filename":"image_18082025_11_15_54_9708.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377702026","file1":"1377702021","file0":"1377702017","file4":"1377702036","file5":"1377702039","file3":"1377702031"},"map_files_photo_id_array":[{"photo_id":"1377702039","filename":"file5"},{"photo_id":"1377702026","filename":"file2"},{"photo_id":"1377702036","filename":"file4"},{"photo_id":"1377702021","filename":"file1"},{"photo_id":"1377702017","filename":"file0"},{"photo_id":"1377702031","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377702026":["hashtag1","hashtag2"]},{"1377702017":["hashtag1","hashtag2"]},{"1377702031":["hashtag1","hashtag2"]},{"1377702036":["hashtag1","hashtag2"]},{"1377702021":["hashtag1","hashtag2"]},{"1377702039":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377702026, 1377702017, 1377702031, 1377702036, 1377702021, 1377702039)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.743610620498657 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:49:46.992769
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/49/image_18082025_13_49_45_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/13/49/image_18082025_13_49_35_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/13/49/image_18082025_13_49_24_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/13/49/image_18082025_13_49_15_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/13/48/image_18082025_13_49_05_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/13/48/image_18082025_13_48_54_9616.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/49/image_18082025_13_49_45_9608.jpg', '/home/nano/Desktop/images/18082025/13/49/image_18082025_13_49_35_10621.jpg', '/home/nano/Desktop/images/18082025/13/49/image_18082025_13_49_24_9618.jpg', '/home/nano/Desktop/images/18082025/13/49/image_18082025_13_49_15_9636.jpg', '/home/nano/Desktop/images/18082025/13/48/image_18082025_13_49_05_10656.jpg', '/home/nano/Desktop/images/18082025/13/48/image_18082025_13_48_54_9616.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/49/image_18082025_13_49_45_9608.jpg
/home/nano/Desktop/images/18082025/13/49/image_18082025_13_49_35_10621.jpg
/home/nano/Desktop/images/18082025/13/49/image_18082025_13_49_24_9618.jpg
/home/nano/Desktop/images/18082025/13/49/image_18082025_13_49_15_9636.jpg
/home/nano/Desktop/images/18082025/13/48/image_18082025_13_49_05_10656.jpg
/home/nano/Desktop/images/18082025/13/48/image_18082025_13_48_54_9616.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377702074","1377702071","1377702065","1377702078","1377702069","1377702060"],"photo_ids_order":["1377702060","1377702065","1377702069","1377702071","1377702074","1377702078"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/845011a93a9ee1a791c9162bca271392.jpg","text":"TemporaryFile(/tmp/multipartBody2896635611230731766asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517848263,"filename":"image_18082025_13_49_05_10656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e551b27e6cb3020acacc8a57c98d9acf.jpg","text":"TemporaryFile(/tmp/multipartBody6786842888578811024asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517848263,"filename":"image_18082025_13_49_15_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/eea6c8abe9834b4e587856849ede347f.jpg","text":"TemporaryFile(/tmp/multipartBody7512909222614113261asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517848263,"filename":"image_18082025_13_49_35_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cdecf5269cb147dead7728b8ea093880.jpg","text":"TemporaryFile(/tmp/multipartBody4062848549769879358asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517848263,"filename":"image_18082025_13_48_54_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/aaf0d6af1e38f085becebe3ec259fc39.jpg","text":"TemporaryFile(/tmp/multipartBody3504212275833735754asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517848263,"filename":"image_18082025_13_49_24_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6f50925b242aa78b30c3a05978e0beeb.jpg","text":"TemporaryFile(/tmp/multipartBody5127670953994580831asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517848263,"filename":"image_18082025_13_49_45_9608.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377702069","file1":"1377702065","file0":"1377702060","file4":"1377702074","file5":"1377702078","file3":"1377702071"},"map_files_photo_id_array":[{"photo_id":"1377702078","filename":"file5"},{"photo_id":"1377702069","filename":"file2"},{"photo_id":"1377702074","filename":"file4"},{"photo_id":"1377702065","filename":"file1"},{"photo_id":"1377702060","filename":"file0"},{"photo_id":"1377702071","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377702074":["hashtag1","hashtag2"]},{"1377702071":["hashtag1","hashtag2"]},{"1377702065":["hashtag1","hashtag2"]},{"1377702078":["hashtag1","hashtag2"]},{"1377702069":["hashtag1","hashtag2"]},{"1377702060":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377702074, 1377702071, 1377702065, 1377702078, 1377702069, 1377702060)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.81089997291565 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:50:32.089292
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/50/image_18082025_13_50_44_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/13/50/image_18082025_13_50_35_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/13/50/image_18082025_13_50_25_10616.jpg', 2), ('/home/nano/Desktop/images/18082025/13/50/image_18082025_13_50_14_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/13/49/image_18082025_13_50_05_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/13/49/image_18082025_13_49_54_9615.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/50/image_18082025_13_50_44_9616.jpg', '/home/nano/Desktop/images/18082025/13/50/image_18082025_13_50_35_9623.jpg', '/home/nano/Desktop/images/18082025/13/50/image_18082025_13_50_25_10616.jpg', '/home/nano/Desktop/images/18082025/13/50/image_18082025_13_50_14_9652.jpg', '/home/nano/Desktop/images/18082025/13/49/image_18082025_13_50_05_10647.jpg', '/home/nano/Desktop/images/18082025/13/49/image_18082025_13_49_54_9615.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/50/image_18082025_13_50_44_9616.jpg
/home/nano/Desktop/images/18082025/13/50/image_18082025_13_50_35_9623.jpg
/home/nano/Desktop/images/18082025/13/50/image_18082025_13_50_25_10616.jpg
/home/nano/Desktop/images/18082025/13/50/image_18082025_13_50_14_9652.jpg
/home/nano/Desktop/images/18082025/13/49/image_18082025_13_50_05_10647.jpg
/home/nano/Desktop/images/18082025/13/49/image_18082025_13_49_54_9615.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377702111","1377702105","1377702096","1377702100","1377702108","1377702092"],"photo_ids_order":["1377702092","1377702096","1377702100","1377702105","1377702108","1377702111"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e0adb7d2b2dc2c262072d70ab1f0d56e.jpg","text":"TemporaryFile(/tmp/multipartBody302593113265885186asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517893450,"filename":"image_18082025_13_49_54_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1ea39add230e2a0fc3f65921916f035c.jpg","text":"TemporaryFile(/tmp/multipartBody601744915035076678asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517893450,"filename":"image_18082025_13_50_14_9652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2621c38934b0f034d54c4ae21a0b1659.jpg","text":"TemporaryFile(/tmp/multipartBody4504087518634841077asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517893450,"filename":"image_18082025_13_50_35_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/00c30f8952fac2d8971f335561d80004.jpg","text":"TemporaryFile(/tmp/multipartBody8389684052248464565asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517893450,"filename":"image_18082025_13_50_25_10616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/08c581d4b6a5a15c88bb23c075cf0a4e.jpg","text":"TemporaryFile(/tmp/multipartBody8830264402494907545asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517893450,"filename":"image_18082025_13_50_05_10647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6591f58fe0aefc14158570549f7c658d.jpg","text":"TemporaryFile(/tmp/multipartBody3574228685743246673asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517893450,"filename":"image_18082025_13_50_44_9616.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377702100","file1":"1377702096","file0":"1377702092","file4":"1377702108","file5":"1377702111","file3":"1377702105"},"map_files_photo_id_array":[{"photo_id":"1377702111","filename":"file5"},{"photo_id":"1377702100","filename":"file2"},{"photo_id":"1377702108","filename":"file4"},{"photo_id":"1377702096","filename":"file1"},{"photo_id":"1377702092","filename":"file0"},{"photo_id":"1377702105","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377702111":["hashtag1","hashtag2"]},{"1377702105":["hashtag1","hashtag2"]},{"1377702096":["hashtag1","hashtag2"]},{"1377702100":["hashtag1","hashtag2"]},{"1377702108":["hashtag1","hashtag2"]},{"1377702092":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377702111, 1377702105, 1377702096, 1377702100, 1377702108, 1377702092)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.086414098739624 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:51:17.177320
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/51/image_18082025_13_51_44_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/13/51/image_18082025_13_51_34_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/13/51/image_18082025_13_51_25_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/13/51/image_18082025_13_51_14_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/13/50/image_18082025_13_51_05_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/13/50/image_18082025_13_50_55_10637.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/51/image_18082025_13_51_44_9613.jpg', '/home/nano/Desktop/images/18082025/13/51/image_18082025_13_51_34_9624.jpg', '/home/nano/Desktop/images/18082025/13/51/image_18082025_13_51_25_10626.jpg', '/home/nano/Desktop/images/18082025/13/51/image_18082025_13_51_14_9668.jpg', '/home/nano/Desktop/images/18082025/13/50/image_18082025_13_51_05_9625.jpg', '/home/nano/Desktop/images/18082025/13/50/image_18082025_13_50_55_10637.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/51/image_18082025_13_51_44_9613.jpg
/home/nano/Desktop/images/18082025/13/51/image_18082025_13_51_34_9624.jpg
/home/nano/Desktop/images/18082025/13/51/image_18082025_13_51_25_10626.jpg
/home/nano/Desktop/images/18082025/13/51/image_18082025_13_51_14_9668.jpg
/home/nano/Desktop/images/18082025/13/50/image_18082025_13_51_05_9625.jpg
/home/nano/Desktop/images/18082025/13/50/image_18082025_13_50_55_10637.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377702140","1377702133","1377702136","1377702130","1377702126","1377702138"],"photo_ids_order":["1377702126","1377702130","1377702133","1377702136","1377702138","1377702140"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/875dbb112c82ac7f0e1a4c3eb403f362.jpg","text":"TemporaryFile(/tmp/multipartBody2834355168458298328asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517938265,"filename":"image_18082025_13_50_55_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ea939c401616de1df64235c5388b45bb.jpg","text":"TemporaryFile(/tmp/multipartBody4147223520747133381asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517938265,"filename":"image_18082025_13_51_25_10626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/344e01ec3f3c3d6b379f310a604c077f.jpg","text":"TemporaryFile(/tmp/multipartBody4270647781896076412asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517938265,"filename":"image_18082025_13_51_14_9668.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9122faaf03f5c7ddc221f189e4f26727.jpg","text":"TemporaryFile(/tmp/multipartBody4591575053097810261asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517938265,"filename":"image_18082025_13_51_34_9624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/747973e9cc9f3b4c73dafe815267f178.jpg","text":"TemporaryFile(/tmp/multipartBody8183750365368242098asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517938265,"filename":"image_18082025_13_51_44_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ff84003655998fd8955f0c017c1854dc.jpg","text":"TemporaryFile(/tmp/multipartBody1837788713026121897asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517938265,"filename":"image_18082025_13_51_05_9625.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377702133","file1":"1377702130","file0":"1377702126","file4":"1377702138","file5":"1377702140","file3":"1377702136"},"map_files_photo_id_array":[{"photo_id":"1377702140","filename":"file5"},{"photo_id":"1377702133","filename":"file2"},{"photo_id":"1377702138","filename":"file4"},{"photo_id":"1377702130","filename":"file1"},{"photo_id":"1377702126","filename":"file0"},{"photo_id":"1377702136","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377702140":["hashtag1","hashtag2"]},{"1377702133":["hashtag1","hashtag2"]},{"1377702136":["hashtag1","hashtag2"]},{"1377702130":["hashtag1","hashtag2"]},{"1377702126":["hashtag1","hashtag2"]},{"1377702138":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377702140, 1377702133, 1377702136, 1377702130, 1377702126, 1377702138)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.540416479110718 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:52:02.700141
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/15/image_18082025_11_15_45_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/11/15/image_18082025_11_15_35_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/11/15/image_18082025_11_15_24_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/11/15/image_18082025_11_15_15_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/11/14/image_18082025_11_15_05_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/11/14/image_18082025_11_14_54_9654.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/15/image_18082025_11_15_45_9652.jpg', '/home/nano/Desktop/images/18082025/11/15/image_18082025_11_15_35_10661.jpg', '/home/nano/Desktop/images/18082025/11/15/image_18082025_11_15_24_9635.jpg', '/home/nano/Desktop/images/18082025/11/15/image_18082025_11_15_15_9652.jpg', '/home/nano/Desktop/images/18082025/11/14/image_18082025_11_15_05_10673.jpg', '/home/nano/Desktop/images/18082025/11/14/image_18082025_11_14_54_9654.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/15/image_18082025_11_15_45_9652.jpg
/home/nano/Desktop/images/18082025/11/15/image_18082025_11_15_35_10661.jpg
/home/nano/Desktop/images/18082025/11/15/image_18082025_11_15_24_9635.jpg
/home/nano/Desktop/images/18082025/11/15/image_18082025_11_15_15_9652.jpg
/home/nano/Desktop/images/18082025/11/14/image_18082025_11_15_05_10673.jpg
/home/nano/Desktop/images/18082025/11/14/image_18082025_11_14_54_9654.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377702161","1377702164","1377702159","1377702150","1377702153","1377702156"],"photo_ids_order":["1377702150","1377702153","1377702156","1377702159","1377702161","1377702164"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1c6220bc67470feb575ead59524a497d.jpg","text":"TemporaryFile(/tmp/multipartBody4723152244579068895asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517984084,"filename":"image_18082025_11_15_05_10673.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a8ef24aee6130d1922f94e4166926fad.jpg","text":"TemporaryFile(/tmp/multipartBody2828964548017383239asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517984084,"filename":"image_18082025_11_14_54_9654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a41542a8bf33416b942e5372478772e0.jpg","text":"TemporaryFile(/tmp/multipartBody184081255131857670asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517984084,"filename":"image_18082025_11_15_15_9652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8725d23b2a093dfa6d1228ab1d97b9a1.jpg","text":"TemporaryFile(/tmp/multipartBody4294263673509710789asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517984084,"filename":"image_18082025_11_15_45_9652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fb5bb31106f0463e01f33b128c140fb0.jpg","text":"TemporaryFile(/tmp/multipartBody7804013436923823066asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517984084,"filename":"image_18082025_11_15_35_10661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3ed09947915fa5f86a001e004cc5b8b5.jpg","text":"TemporaryFile(/tmp/multipartBody6137944762758876923asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755517984084,"filename":"image_18082025_11_15_24_9635.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377702156","file1":"1377702153","file0":"1377702150","file4":"1377702161","file5":"1377702164","file3":"1377702159"},"map_files_photo_id_array":[{"photo_id":"1377702164","filename":"file5"},{"photo_id":"1377702156","filename":"file2"},{"photo_id":"1377702161","filename":"file4"},{"photo_id":"1377702153","filename":"file1"},{"photo_id":"1377702150","filename":"file0"},{"photo_id":"1377702159","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377702161":["hashtag1","hashtag2"]},{"1377702164":["hashtag1","hashtag2"]},{"1377702159":["hashtag1","hashtag2"]},{"1377702150":["hashtag1","hashtag2"]},{"1377702153":["hashtag1","hashtag2"]},{"1377702156":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377702161, 1377702164, 1377702159, 1377702150, 1377702153, 1377702156)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.8199245929718 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:52:47.293030
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/52/image_18082025_13_52_45_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/13/52/image_18082025_13_52_34_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/13/52/image_18082025_13_52_25_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/13/52/image_18082025_13_52_15_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/13/51/image_18082025_13_52_04_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/13/51/image_18082025_13_51_55_10631.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/52/image_18082025_13_52_45_10624.jpg', '/home/nano/Desktop/images/18082025/13/52/image_18082025_13_52_34_9620.jpg', '/home/nano/Desktop/images/18082025/13/52/image_18082025_13_52_25_9612.jpg', '/home/nano/Desktop/images/18082025/13/52/image_18082025_13_52_15_10663.jpg', '/home/nano/Desktop/images/18082025/13/51/image_18082025_13_52_04_9630.jpg', '/home/nano/Desktop/images/18082025/13/51/image_18082025_13_51_55_10631.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/52/image_18082025_13_52_45_10624.jpg
/home/nano/Desktop/images/18082025/13/52/image_18082025_13_52_34_9620.jpg
/home/nano/Desktop/images/18082025/13/52/image_18082025_13_52_25_9612.jpg
/home/nano/Desktop/images/18082025/13/52/image_18082025_13_52_15_10663.jpg
/home/nano/Desktop/images/18082025/13/51/image_18082025_13_52_04_9630.jpg
/home/nano/Desktop/images/18082025/13/51/image_18082025_13_51_55_10631.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377702182","1377702179","1377702178","1377702180","1377702177","1377702185"],"photo_ids_order":["1377702177","1377702178","1377702179","1377702180","1377702182","1377702185"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c34ad3223c9b4eb3cd616d29b6c3222b.jpg","text":"TemporaryFile(/tmp/multipartBody5591090491670741430asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518028579,"filename":"image_18082025_13_52_04_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4e7bd1b71ce6462dce7af73ee0765315.jpg","text":"TemporaryFile(/tmp/multipartBody1725627623342414946asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518028579,"filename":"image_18082025_13_52_25_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/822e50c7e0faceaf1e5e139029bc4a1f.jpg","text":"TemporaryFile(/tmp/multipartBody7057671067170711845asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518028579,"filename":"image_18082025_13_52_34_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/37c95a131684bab18a9a74690eff04a7.jpg","text":"TemporaryFile(/tmp/multipartBody8560683995762090352asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518028579,"filename":"image_18082025_13_52_15_10663.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f1a279af08ad20f327c9490d2b933b65.jpg","text":"TemporaryFile(/tmp/multipartBody4133877349756052827asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518028579,"filename":"image_18082025_13_52_45_10624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1bcc2e0389d590fa0159415a2c537493.jpg","text":"TemporaryFile(/tmp/multipartBody3106376235112407515asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518028579,"filename":"image_18082025_13_51_55_10631.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377702179","file1":"1377702178","file0":"1377702177","file4":"1377702182","file5":"1377702185","file3":"1377702180"},"map_files_photo_id_array":[{"photo_id":"1377702185","filename":"file5"},{"photo_id":"1377702179","filename":"file2"},{"photo_id":"1377702182","filename":"file4"},{"photo_id":"1377702178","filename":"file1"},{"photo_id":"1377702177","filename":"file0"},{"photo_id":"1377702180","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377702182":["hashtag1","hashtag2"]},{"1377702179":["hashtag1","hashtag2"]},{"1377702178":["hashtag1","hashtag2"]},{"1377702180":["hashtag1","hashtag2"]},{"1377702177":["hashtag1","hashtag2"]},{"1377702185":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377702182, 1377702179, 1377702178, 1377702180, 1377702177, 1377702185)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.095101356506348 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:53:32.416209
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/53/image_18082025_13_53_45_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/13/53/image_18082025_13_53_35_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/13/53/image_18082025_13_53_24_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/13/53/image_18082025_13_53_15_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/13/52/image_18082025_13_53_04_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/13/52/image_18082025_13_52_54_9623.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/53/image_18082025_13_53_45_9617.jpg', '/home/nano/Desktop/images/18082025/13/53/image_18082025_13_53_35_10638.jpg', '/home/nano/Desktop/images/18082025/13/53/image_18082025_13_53_24_9610.jpg', '/home/nano/Desktop/images/18082025/13/53/image_18082025_13_53_15_10659.jpg', '/home/nano/Desktop/images/18082025/13/52/image_18082025_13_53_04_9625.jpg', '/home/nano/Desktop/images/18082025/13/52/image_18082025_13_52_54_9623.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/53/image_18082025_13_53_45_9617.jpg
/home/nano/Desktop/images/18082025/13/53/image_18082025_13_53_35_10638.jpg
/home/nano/Desktop/images/18082025/13/53/image_18082025_13_53_24_9610.jpg
/home/nano/Desktop/images/18082025/13/53/image_18082025_13_53_15_10659.jpg
/home/nano/Desktop/images/18082025/13/52/image_18082025_13_53_04_9625.jpg
/home/nano/Desktop/images/18082025/13/52/image_18082025_13_52_54_9623.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377702203","1377702215","1377702211","1377702205","1377702208","1377702201"],"photo_ids_order":["1377702201","1377702203","1377702205","1377702208","1377702211","1377702215"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d2c096a34d043195b3f8af76d931f26f.jpg","text":"TemporaryFile(/tmp/multipartBody3928315005702921533asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518073761,"filename":"image_18082025_13_53_35_10638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/651731e0246d3e8949788854ef74e39c.jpg","text":"TemporaryFile(/tmp/multipartBody4397320585312285789asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518073761,"filename":"image_18082025_13_52_54_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/00bcb7b1f6bdd24092d3e217aec1a267.jpg","text":"TemporaryFile(/tmp/multipartBody3923897065416770137asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518073761,"filename":"image_18082025_13_53_04_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3807f28ab728df38a328c38c39328fe4.jpg","text":"TemporaryFile(/tmp/multipartBody5637847118057084432asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518073761,"filename":"image_18082025_13_53_24_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/107bea3dd76dd2673f9ee061669ab86f.jpg","text":"TemporaryFile(/tmp/multipartBody3524741831770953865asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518073761,"filename":"image_18082025_13_53_15_10659.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c1a4ec1b1c4665ecdea4fed7a7c0e15f.jpg","text":"TemporaryFile(/tmp/multipartBody3156612144640890998asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518073761,"filename":"image_18082025_13_53_45_9617.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377702205","file1":"1377702203","file0":"1377702201","file4":"1377702211","file5":"1377702215","file3":"1377702208"},"map_files_photo_id_array":[{"photo_id":"1377702215","filename":"file5"},{"photo_id":"1377702205","filename":"file2"},{"photo_id":"1377702211","filename":"file4"},{"photo_id":"1377702203","filename":"file1"},{"photo_id":"1377702201","filename":"file0"},{"photo_id":"1377702208","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377702203":["hashtag1","hashtag2"]},{"1377702215":["hashtag1","hashtag2"]},{"1377702211":["hashtag1","hashtag2"]},{"1377702205":["hashtag1","hashtag2"]},{"1377702208":["hashtag1","hashtag2"]},{"1377702201":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377702203, 1377702215, 1377702211, 1377702205, 1377702208, 1377702201)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.55396747589111 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:54:17.498539
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/54/image_18082025_13_54_44_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/13/54/image_18082025_13_54_35_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/13/54/image_18082025_13_54_24_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/13/54/image_18082025_13_54_15_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/13/53/image_18082025_13_54_05_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/13/53/image_18082025_13_53_54_9619.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/54/image_18082025_13_54_44_9637.jpg', '/home/nano/Desktop/images/18082025/13/54/image_18082025_13_54_35_10632.jpg', '/home/nano/Desktop/images/18082025/13/54/image_18082025_13_54_24_9616.jpg', '/home/nano/Desktop/images/18082025/13/54/image_18082025_13_54_15_9652.jpg', '/home/nano/Desktop/images/18082025/13/53/image_18082025_13_54_05_10629.jpg', '/home/nano/Desktop/images/18082025/13/53/image_18082025_13_53_54_9619.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/54/image_18082025_13_54_44_9637.jpg
/home/nano/Desktop/images/18082025/13/54/image_18082025_13_54_35_10632.jpg
/home/nano/Desktop/images/18082025/13/54/image_18082025_13_54_24_9616.jpg
/home/nano/Desktop/images/18082025/13/54/image_18082025_13_54_15_9652.jpg
/home/nano/Desktop/images/18082025/13/53/image_18082025_13_54_05_10629.jpg
/home/nano/Desktop/images/18082025/13/53/image_18082025_13_53_54_9619.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377702242","1377702245","1377702230","1377702238","1377702225","1377702234"],"photo_ids_order":["1377702225","1377702230","1377702234","1377702238","1377702242","1377702245"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3b13e8ebf248a450a52521b4719e4aad.jpg","text":"TemporaryFile(/tmp/multipartBody3004815691443563406asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518118859,"filename":"image_18082025_13_54_05_10629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f38b072356179ccbd33728a6448c2909.jpg","text":"TemporaryFile(/tmp/multipartBody7127787413406638617asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518118859,"filename":"image_18082025_13_53_54_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ba0fdef9c44bfa4e4147a81cf8560f01.jpg","text":"TemporaryFile(/tmp/multipartBody7507551595445747978asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518118859,"filename":"image_18082025_13_54_35_10632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/45c6562b72be3d59b655d93f817499d7.jpg","text":"TemporaryFile(/tmp/multipartBody993394183145608150asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518118859,"filename":"image_18082025_13_54_15_9652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7ef5506bf5816bf0fad5b111ab086e5b.jpg","text":"TemporaryFile(/tmp/multipartBody3064677436790835262asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518118859,"filename":"image_18082025_13_54_44_9637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cd3a2ad4614514a7acb9a841714a9ea2.jpg","text":"TemporaryFile(/tmp/multipartBody2434705762811472065asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518118859,"filename":"image_18082025_13_54_24_9616.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377702234","file1":"1377702230","file0":"1377702225","file4":"1377702242","file5":"1377702245","file3":"1377702238"},"map_files_photo_id_array":[{"photo_id":"1377702245","filename":"file5"},{"photo_id":"1377702234","filename":"file2"},{"photo_id":"1377702242","filename":"file4"},{"photo_id":"1377702230","filename":"file1"},{"photo_id":"1377702225","filename":"file0"},{"photo_id":"1377702238","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377702242":["hashtag1","hashtag2"]},{"1377702245":["hashtag1","hashtag2"]},{"1377702230":["hashtag1","hashtag2"]},{"1377702238":["hashtag1","hashtag2"]},{"1377702225":["hashtag1","hashtag2"]},{"1377702234":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377702242, 1377702245, 1377702230, 1377702238, 1377702225, 1377702234)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.00697135925293 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:55:03.132368
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/14/image_18082025_11_14_45_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/11/14/image_18082025_11_14_35_10678.jpg', 2), ('/home/nano/Desktop/images/18082025/11/14/image_18082025_11_14_24_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/11/14/image_18082025_11_14_15_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/11/13/image_18082025_11_14_05_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/11/13/image_18082025_11_13_54_9652.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/14/image_18082025_11_14_45_9646.jpg', '/home/nano/Desktop/images/18082025/11/14/image_18082025_11_14_35_10678.jpg', '/home/nano/Desktop/images/18082025/11/14/image_18082025_11_14_24_9620.jpg', '/home/nano/Desktop/images/18082025/11/14/image_18082025_11_14_15_9652.jpg', '/home/nano/Desktop/images/18082025/11/13/image_18082025_11_14_05_10653.jpg', '/home/nano/Desktop/images/18082025/11/13/image_18082025_11_13_54_9652.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/14/image_18082025_11_14_45_9646.jpg
/home/nano/Desktop/images/18082025/11/14/image_18082025_11_14_35_10678.jpg
/home/nano/Desktop/images/18082025/11/14/image_18082025_11_14_24_9620.jpg
/home/nano/Desktop/images/18082025/11/14/image_18082025_11_14_15_9652.jpg
/home/nano/Desktop/images/18082025/11/13/image_18082025_11_14_05_10653.jpg
/home/nano/Desktop/images/18082025/11/13/image_18082025_11_13_54_9652.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377702263","1377702259","1377702255","1377702270","1377702267","1377702252"],"photo_ids_order":["1377702252","1377702255","1377702259","1377702263","1377702267","1377702270"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4bc5f83057edbaeab78d2b592c14a146.jpg","text":"TemporaryFile(/tmp/multipartBody4295708467973703451asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518164336,"filename":"image_18082025_11_14_15_9652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b520a587c11a2d55e96eca2118843845.jpg","text":"TemporaryFile(/tmp/multipartBody7050907569132599943asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518164336,"filename":"image_18082025_11_14_24_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d1d3d7ae2087ef004ca95c86a136499e.jpg","text":"TemporaryFile(/tmp/multipartBody2280456932038762483asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518164336,"filename":"image_18082025_11_14_35_10678.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7fc32ffb22d3c5d10c418a425765a4fd.jpg","text":"TemporaryFile(/tmp/multipartBody7432155500182829897asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518164336,"filename":"image_18082025_11_13_54_9652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9aea7d585b810db0fe0c04558941e5f0.jpg","text":"TemporaryFile(/tmp/multipartBody578145640048902809asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518164336,"filename":"image_18082025_11_14_05_10653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fd031f3dd43a4c634e0a6e2912a1d1a9.jpg","text":"TemporaryFile(/tmp/multipartBody6039993898263553661asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518164336,"filename":"image_18082025_11_14_45_9646.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377702259","file1":"1377702255","file0":"1377702252","file4":"1377702267","file5":"1377702270","file3":"1377702263"},"map_files_photo_id_array":[{"photo_id":"1377702270","filename":"file5"},{"photo_id":"1377702259","filename":"file2"},{"photo_id":"1377702267","filename":"file4"},{"photo_id":"1377702255","filename":"file1"},{"photo_id":"1377702252","filename":"file0"},{"photo_id":"1377702263","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377702263":["hashtag1","hashtag2"]},{"1377702259":["hashtag1","hashtag2"]},{"1377702255":["hashtag1","hashtag2"]},{"1377702270":["hashtag1","hashtag2"]},{"1377702267":["hashtag1","hashtag2"]},{"1377702252":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377702263, 1377702259, 1377702255, 1377702270, 1377702267, 1377702252)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.377193450927734 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:55:47.692846
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/55/image_18082025_13_55_44_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/13/55/image_18082025_13_55_35_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/13/55/image_18082025_13_55_25_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/13/55/image_18082025_13_55_14_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/13/54/image_18082025_13_55_05_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/13/54/image_18082025_13_54_55_10628.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/55/image_18082025_13_55_44_9624.jpg', '/home/nano/Desktop/images/18082025/13/55/image_18082025_13_55_35_9613.jpg', '/home/nano/Desktop/images/18082025/13/55/image_18082025_13_55_25_10618.jpg', '/home/nano/Desktop/images/18082025/13/55/image_18082025_13_55_14_9645.jpg', '/home/nano/Desktop/images/18082025/13/54/image_18082025_13_55_05_9627.jpg', '/home/nano/Desktop/images/18082025/13/54/image_18082025_13_54_55_10628.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/55/image_18082025_13_55_44_9624.jpg
/home/nano/Desktop/images/18082025/13/55/image_18082025_13_55_35_9613.jpg
/home/nano/Desktop/images/18082025/13/55/image_18082025_13_55_25_10618.jpg
/home/nano/Desktop/images/18082025/13/55/image_18082025_13_55_14_9645.jpg
/home/nano/Desktop/images/18082025/13/54/image_18082025_13_55_05_9627.jpg
/home/nano/Desktop/images/18082025/13/54/image_18082025_13_54_55_10628.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377702278","1377702283","1377702280","1377702291","1377702288","1377702276"],"photo_ids_order":["1377702276","1377702278","1377702280","1377702283","1377702288","1377702291"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ae37fbf9c2b11fe8ff1769b2baf293bb.jpg","text":"TemporaryFile(/tmp/multipartBody2582124130902432413asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518208756,"filename":"image_18082025_13_55_35_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5561ebffc9047a7633bd64d4318432fe.jpg","text":"TemporaryFile(/tmp/multipartBody1929674862572127632asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518208756,"filename":"image_18082025_13_55_14_9645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/089cb36ee7bd378eb0370eacc9c57794.jpg","text":"TemporaryFile(/tmp/multipartBody4851497982832512425asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518208756,"filename":"image_18082025_13_55_25_10618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0d1e50bb9d7ca6e7b64e562eec6dd668.jpg","text":"TemporaryFile(/tmp/multipartBody2013924111022066304asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518208756,"filename":"image_18082025_13_54_55_10628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ef6ee474aa7c8647b0d7a01412ade363.jpg","text":"TemporaryFile(/tmp/multipartBody3419407719882827823asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518208756,"filename":"image_18082025_13_55_05_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ced90ae983c688248eb53ab09d31db82.jpg","text":"TemporaryFile(/tmp/multipartBody2264332213628852494asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518208756,"filename":"image_18082025_13_55_44_9624.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377702280","file1":"1377702278","file0":"1377702276","file4":"1377702288","file5":"1377702291","file3":"1377702283"},"map_files_photo_id_array":[{"photo_id":"1377702291","filename":"file5"},{"photo_id":"1377702280","filename":"file2"},{"photo_id":"1377702288","filename":"file4"},{"photo_id":"1377702278","filename":"file1"},{"photo_id":"1377702276","filename":"file0"},{"photo_id":"1377702283","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377702278":["hashtag1","hashtag2"]},{"1377702283":["hashtag1","hashtag2"]},{"1377702280":["hashtag1","hashtag2"]},{"1377702291":["hashtag1","hashtag2"]},{"1377702288":["hashtag1","hashtag2"]},{"1377702276":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377702278, 1377702283, 1377702280, 1377702291, 1377702288, 1377702276)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.75896191596985 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:56:31.896195
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/56/image_18082025_13_56_45_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/13/56/image_18082025_13_56_34_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/13/56/image_18082025_13_56_25_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/13/56/image_18082025_13_56_14_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/13/55/image_18082025_13_56_04_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/13/55/image_18082025_13_55_55_10637.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/56/image_18082025_13_56_45_10623.jpg', '/home/nano/Desktop/images/18082025/13/56/image_18082025_13_56_34_9613.jpg', '/home/nano/Desktop/images/18082025/13/56/image_18082025_13_56_25_10624.jpg', '/home/nano/Desktop/images/18082025/13/56/image_18082025_13_56_14_9643.jpg', '/home/nano/Desktop/images/18082025/13/55/image_18082025_13_56_04_9619.jpg', '/home/nano/Desktop/images/18082025/13/55/image_18082025_13_55_55_10637.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/56/image_18082025_13_56_45_10623.jpg
/home/nano/Desktop/images/18082025/13/56/image_18082025_13_56_34_9613.jpg
/home/nano/Desktop/images/18082025/13/56/image_18082025_13_56_25_10624.jpg
/home/nano/Desktop/images/18082025/13/56/image_18082025_13_56_14_9643.jpg
/home/nano/Desktop/images/18082025/13/55/image_18082025_13_56_04_9619.jpg
/home/nano/Desktop/images/18082025/13/55/image_18082025_13_55_55_10637.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.098379373550415 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:56:46.912548
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/56/image_18082025_13_56_45_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/13/56/image_18082025_13_56_34_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/13/56/image_18082025_13_56_25_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/13/56/image_18082025_13_56_14_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/13/55/image_18082025_13_56_04_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/13/55/image_18082025_13_55_55_10637.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/56/image_18082025_13_56_45_10623.jpg', '/home/nano/Desktop/images/18082025/13/56/image_18082025_13_56_34_9613.jpg', '/home/nano/Desktop/images/18082025/13/56/image_18082025_13_56_25_10624.jpg', '/home/nano/Desktop/images/18082025/13/56/image_18082025_13_56_14_9643.jpg', '/home/nano/Desktop/images/18082025/13/55/image_18082025_13_56_04_9619.jpg', '/home/nano/Desktop/images/18082025/13/55/image_18082025_13_55_55_10637.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/56/image_18082025_13_56_45_10623.jpg
/home/nano/Desktop/images/18082025/13/56/image_18082025_13_56_34_9613.jpg
/home/nano/Desktop/images/18082025/13/56/image_18082025_13_56_25_10624.jpg
/home/nano/Desktop/images/18082025/13/56/image_18082025_13_56_14_9643.jpg
/home/nano/Desktop/images/18082025/13/55/image_18082025_13_56_04_9619.jpg
/home/nano/Desktop/images/18082025/13/55/image_18082025_13_55_55_10637.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377702335","1377702332","1377702334","1377702343","1377702337","1377702327"],"photo_ids_order":["1377702327","1377702332","1377702334","1377702335","1377702337","1377702343"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/06de94e2fc3b631fcf8d6756c65dcb66.jpg","text":"TemporaryFile(/tmp/multipartBody5407036110654959164asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518268079,"filename":"image_18082025_13_56_14_9643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fbf762c16da46e487533e3394a85f1b2.jpg","text":"TemporaryFile(/tmp/multipartBody3609371237738012669asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518268079,"filename":"image_18082025_13_56_34_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b5672211dbcdd6a731c5bf92cd837bbf.jpg","text":"TemporaryFile(/tmp/multipartBody7938877911439109526asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518268079,"filename":"image_18082025_13_56_25_10624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/959aa23b185d614a279b42c617a74fd3.jpg","text":"TemporaryFile(/tmp/multipartBody3908618521310172586asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518268079,"filename":"image_18082025_13_55_55_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a8b6afbb1aef218560a84a752aeda55a.jpg","text":"TemporaryFile(/tmp/multipartBody5142456253292574688asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518268079,"filename":"image_18082025_13_56_04_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8669f90a2c42656634cc5184ceb4f17a.jpg","text":"TemporaryFile(/tmp/multipartBody1559235397156850952asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518268079,"filename":"image_18082025_13_56_45_10623.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377702334","file1":"1377702332","file0":"1377702327","file4":"1377702337","file5":"1377702343","file3":"1377702335"},"map_files_photo_id_array":[{"photo_id":"1377702343","filename":"file5"},{"photo_id":"1377702334","filename":"file2"},{"photo_id":"1377702337","filename":"file4"},{"photo_id":"1377702332","filename":"file1"},{"photo_id":"1377702327","filename":"file0"},{"photo_id":"1377702335","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377702335":["hashtag1","hashtag2"]},{"1377702332":["hashtag1","hashtag2"]},{"1377702334":["hashtag1","hashtag2"]},{"1377702343":["hashtag1","hashtag2"]},{"1377702337":["hashtag1","hashtag2"]},{"1377702327":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377702335, 1377702332, 1377702334, 1377702343, 1377702337, 1377702327)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.874948501586914 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:57:32.011637
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/57/image_18082025_13_57_45_10619.jpg', 2), ('/home/nano/Desktop/images/18082025/13/57/image_18082025_13_57_34_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/13/57/image_18082025_13_57_24_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/13/57/image_18082025_13_57_15_10675.jpg', 2), ('/home/nano/Desktop/images/18082025/13/56/image_18082025_13_57_04_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/13/56/image_18082025_13_56_55_9623.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/57/image_18082025_13_57_45_10619.jpg', '/home/nano/Desktop/images/18082025/13/57/image_18082025_13_57_34_9620.jpg', '/home/nano/Desktop/images/18082025/13/57/image_18082025_13_57_24_9612.jpg', '/home/nano/Desktop/images/18082025/13/57/image_18082025_13_57_15_10675.jpg', '/home/nano/Desktop/images/18082025/13/56/image_18082025_13_57_04_9609.jpg', '/home/nano/Desktop/images/18082025/13/56/image_18082025_13_56_55_9623.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/57/image_18082025_13_57_45_10619.jpg
/home/nano/Desktop/images/18082025/13/57/image_18082025_13_57_34_9620.jpg
/home/nano/Desktop/images/18082025/13/57/image_18082025_13_57_24_9612.jpg
/home/nano/Desktop/images/18082025/13/57/image_18082025_13_57_15_10675.jpg
/home/nano/Desktop/images/18082025/13/56/image_18082025_13_57_04_9609.jpg
/home/nano/Desktop/images/18082025/13/56/image_18082025_13_56_55_9623.jpg
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:58:02.692281
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/57/image_18082025_13_57_45_10619.jpg', 2), ('/home/nano/Desktop/images/18082025/13/57/image_18082025_13_57_34_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/13/57/image_18082025_13_57_24_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/13/57/image_18082025_13_57_15_10675.jpg', 2), ('/home/nano/Desktop/images/18082025/13/56/image_18082025_13_57_04_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/13/56/image_18082025_13_56_55_9623.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/57/image_18082025_13_57_45_10619.jpg', '/home/nano/Desktop/images/18082025/13/57/image_18082025_13_57_34_9620.jpg', '/home/nano/Desktop/images/18082025/13/57/image_18082025_13_57_24_9612.jpg', '/home/nano/Desktop/images/18082025/13/57/image_18082025_13_57_15_10675.jpg', '/home/nano/Desktop/images/18082025/13/56/image_18082025_13_57_04_9609.jpg', '/home/nano/Desktop/images/18082025/13/56/image_18082025_13_56_55_9623.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/57/image_18082025_13_57_45_10619.jpg
/home/nano/Desktop/images/18082025/13/57/image_18082025_13_57_34_9620.jpg
/home/nano/Desktop/images/18082025/13/57/image_18082025_13_57_24_9612.jpg
/home/nano/Desktop/images/18082025/13/57/image_18082025_13_57_15_10675.jpg
/home/nano/Desktop/images/18082025/13/56/image_18082025_13_57_04_9609.jpg
/home/nano/Desktop/images/18082025/13/56/image_18082025_13_56_55_9623.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377702380","1377702374","1377702377","1377702382","1377702376","1377702378"],"photo_ids_order":["1377702374","1377702376","1377702377","1377702378","1377702380","1377702382"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4be4e13e9048488fd77c08d6c29948b0.jpg","text":"TemporaryFile(/tmp/multipartBody595771568915993630asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518343678,"filename":"image_18082025_13_57_04_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9500e50e6089712987a697baa1975c4f.jpg","text":"TemporaryFile(/tmp/multipartBody6585447016950356895asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518343678,"filename":"image_18082025_13_57_45_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6a68d5fa80c05844cd82d99aeb951964.jpg","text":"TemporaryFile(/tmp/multipartBody4593780647757879787asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518343678,"filename":"image_18082025_13_57_24_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3419c6375774d70d6796996a42ed6b23.jpg","text":"TemporaryFile(/tmp/multipartBody3478020460212593643asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518343678,"filename":"image_18082025_13_56_55_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/40cf615c4f859a6cc19da8b76ec4f06e.jpg","text":"TemporaryFile(/tmp/multipartBody697126840247752769asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518343678,"filename":"image_18082025_13_57_34_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/671227c3dcda761d14d1ada48b5bd681.jpg","text":"TemporaryFile(/tmp/multipartBody6052429755912706871asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518343678,"filename":"image_18082025_13_57_15_10675.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377702377","file1":"1377702376","file0":"1377702374","file4":"1377702380","file5":"1377702382","file3":"1377702378"},"map_files_photo_id_array":[{"photo_id":"1377702382","filename":"file5"},{"photo_id":"1377702377","filename":"file2"},{"photo_id":"1377702380","filename":"file4"},{"photo_id":"1377702376","filename":"file1"},{"photo_id":"1377702374","filename":"file0"},{"photo_id":"1377702378","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377702380":["hashtag1","hashtag2"]},{"1377702374":["hashtag1","hashtag2"]},{"1377702377":["hashtag1","hashtag2"]},{"1377702382":["hashtag1","hashtag2"]},{"1377702376":["hashtag1","hashtag2"]},{"1377702378":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377702380, 1377702374, 1377702377, 1377702382, 1377702376, 1377702378)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.851779460906982 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:59:03.405268
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/58/image_18082025_13_58_44_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/13/58/image_18082025_13_58_35_10611.jpg', 2), ('/home/nano/Desktop/images/18082025/13/58/image_18082025_13_58_24_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/13/58/image_18082025_13_58_15_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/13/57/image_18082025_13_58_05_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/13/57/image_18082025_13_57_54_9611.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/58/image_18082025_13_58_44_9612.jpg', '/home/nano/Desktop/images/18082025/13/58/image_18082025_13_58_35_10611.jpg', '/home/nano/Desktop/images/18082025/13/58/image_18082025_13_58_24_9627.jpg', '/home/nano/Desktop/images/18082025/13/58/image_18082025_13_58_15_9621.jpg', '/home/nano/Desktop/images/18082025/13/57/image_18082025_13_58_05_10639.jpg', '/home/nano/Desktop/images/18082025/13/57/image_18082025_13_57_54_9611.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/58/image_18082025_13_58_44_9612.jpg
/home/nano/Desktop/images/18082025/13/58/image_18082025_13_58_35_10611.jpg
/home/nano/Desktop/images/18082025/13/58/image_18082025_13_58_24_9627.jpg
/home/nano/Desktop/images/18082025/13/58/image_18082025_13_58_15_9621.jpg
/home/nano/Desktop/images/18082025/13/57/image_18082025_13_58_05_10639.jpg
/home/nano/Desktop/images/18082025/13/57/image_18082025_13_57_54_9611.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377702392","1377702388","1377702407","1377702399","1377702403","1377702396"],"photo_ids_order":["1377702388","1377702392","1377702396","1377702399","1377702403","1377702407"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ae47155d1d4ad81efdd2b8bba130255b.jpg","text":"TemporaryFile(/tmp/multipartBody8224132301274704684asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518404582,"filename":"image_18082025_13_58_35_10611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bfc68ad7c9aaf7a5741ec311946518a7.jpg","text":"TemporaryFile(/tmp/multipartBody6883559511518337966asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518404582,"filename":"image_18082025_13_58_44_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f89858850c1c3bdf7eae170786f2c6bc.jpg","text":"TemporaryFile(/tmp/multipartBody276982526153190703asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518404582,"filename":"image_18082025_13_57_54_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0eebdddba2b9e4668ed95929d593ba53.jpg","text":"TemporaryFile(/tmp/multipartBody7188119630442461799asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518404582,"filename":"image_18082025_13_58_15_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4051e4dacffec7843fdad1de63f67fc5.jpg","text":"TemporaryFile(/tmp/multipartBody8692648810628005913asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518404582,"filename":"image_18082025_13_58_05_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/72947232902eb516a321226866529b6d.jpg","text":"TemporaryFile(/tmp/multipartBody4556214418025942681asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518404582,"filename":"image_18082025_13_58_24_9627.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377702396","file1":"1377702392","file0":"1377702388","file4":"1377702403","file5":"1377702407","file3":"1377702399"},"map_files_photo_id_array":[{"photo_id":"1377702407","filename":"file5"},{"photo_id":"1377702396","filename":"file2"},{"photo_id":"1377702403","filename":"file4"},{"photo_id":"1377702392","filename":"file1"},{"photo_id":"1377702388","filename":"file0"},{"photo_id":"1377702399","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377702392":["hashtag1","hashtag2"]},{"1377702388":["hashtag1","hashtag2"]},{"1377702407":["hashtag1","hashtag2"]},{"1377702399":["hashtag1","hashtag2"]},{"1377702403":["hashtag1","hashtag2"]},{"1377702396":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377702392, 1377702388, 1377702407, 1377702399, 1377702403, 1377702396)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.5541296005249 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 13:59:47.276027
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/13/59/image_18082025_13_59_44_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/13/59/image_18082025_13_59_35_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/13/59/image_18082025_13_59_25_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/13/59/image_18082025_13_59_14_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/13/58/image_18082025_13_59_05_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/13/58/image_18082025_13_58_54_9620.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/13/59/image_18082025_13_59_44_9632.jpg', '/home/nano/Desktop/images/18082025/13/59/image_18082025_13_59_35_9638.jpg', '/home/nano/Desktop/images/18082025/13/59/image_18082025_13_59_25_10647.jpg', '/home/nano/Desktop/images/18082025/13/59/image_18082025_13_59_14_9645.jpg', '/home/nano/Desktop/images/18082025/13/58/image_18082025_13_59_05_10648.jpg', '/home/nano/Desktop/images/18082025/13/58/image_18082025_13_58_54_9620.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/13/59/image_18082025_13_59_44_9632.jpg
/home/nano/Desktop/images/18082025/13/59/image_18082025_13_59_35_9638.jpg
/home/nano/Desktop/images/18082025/13/59/image_18082025_13_59_25_10647.jpg
/home/nano/Desktop/images/18082025/13/59/image_18082025_13_59_14_9645.jpg
/home/nano/Desktop/images/18082025/13/58/image_18082025_13_59_05_10648.jpg
/home/nano/Desktop/images/18082025/13/58/image_18082025_13_58_54_9620.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377702422","1377702441","1377702435","1377702438","1377702432","1377702429"],"photo_ids_order":["1377702422","1377702429","1377702432","1377702435","1377702438","1377702441"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e9c4a11d1e221c683dd6896897255f95.jpg","text":"TemporaryFile(/tmp/multipartBody7563832026136102019asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518448526,"filename":"image_18082025_13_59_44_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/aeba4bc067fd594682999a2ec99dacae.jpg","text":"TemporaryFile(/tmp/multipartBody6891545449528550290asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518448526,"filename":"image_18082025_13_58_54_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1ea6dfb0129eb8806d49433ef6bab192.jpg","text":"TemporaryFile(/tmp/multipartBody7165012946593209239asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518448526,"filename":"image_18082025_13_59_14_9645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/56f655bba536291ec1a2a5b07f0f13dc.jpg","text":"TemporaryFile(/tmp/multipartBody3408485954856445993asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518448526,"filename":"image_18082025_13_59_05_10648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/313bc1e64ca5adafc4f895e17872f090.jpg","text":"TemporaryFile(/tmp/multipartBody7179961796969046769asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518448526,"filename":"image_18082025_13_59_25_10647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f4391f9bf06526ec16a0bb74c1d5d595.jpg","text":"TemporaryFile(/tmp/multipartBody6418380225158372815asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518448526,"filename":"image_18082025_13_59_35_9638.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377702432","file1":"1377702429","file0":"1377702422","file4":"1377702438","file5":"1377702441","file3":"1377702435"},"map_files_photo_id_array":[{"photo_id":"1377702441","filename":"file5"},{"photo_id":"1377702432","filename":"file2"},{"photo_id":"1377702438","filename":"file4"},{"photo_id":"1377702429","filename":"file1"},{"photo_id":"1377702422","filename":"file0"},{"photo_id":"1377702435","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377702422":["hashtag1","hashtag2"]},{"1377702441":["hashtag1","hashtag2"]},{"1377702435":["hashtag1","hashtag2"]},{"1377702438":["hashtag1","hashtag2"]},{"1377702432":["hashtag1","hashtag2"]},{"1377702429":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377702422, 1377702441, 1377702435, 1377702438, 1377702432, 1377702429)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.68061065673828 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:00:32.397509
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/00/image_18082025_14_00_44_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/14/00/image_18082025_14_00_35_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/14/00/image_18082025_14_00_25_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/14/00/image_18082025_14_00_14_9671.jpg', 2), ('/home/nano/Desktop/images/18082025/13/59/image_18082025_14_00_05_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/13/59/image_18082025_13_59_55_10648.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/00/image_18082025_14_00_44_9635.jpg', '/home/nano/Desktop/images/18082025/14/00/image_18082025_14_00_35_9635.jpg', '/home/nano/Desktop/images/18082025/14/00/image_18082025_14_00_25_10656.jpg', '/home/nano/Desktop/images/18082025/14/00/image_18082025_14_00_14_9671.jpg', '/home/nano/Desktop/images/18082025/13/59/image_18082025_14_00_05_9655.jpg', '/home/nano/Desktop/images/18082025/13/59/image_18082025_13_59_55_10648.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/00/image_18082025_14_00_44_9635.jpg
/home/nano/Desktop/images/18082025/14/00/image_18082025_14_00_35_9635.jpg
/home/nano/Desktop/images/18082025/14/00/image_18082025_14_00_25_10656.jpg
/home/nano/Desktop/images/18082025/14/00/image_18082025_14_00_14_9671.jpg
/home/nano/Desktop/images/18082025/13/59/image_18082025_14_00_05_9655.jpg
/home/nano/Desktop/images/18082025/13/59/image_18082025_13_59_55_10648.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377702461","1377702469","1377702463","1377702466","1377702460","1377702462"],"photo_ids_order":["1377702460","1377702461","1377702462","1377702463","1377702466","1377702469"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/90db20cc063d5aa41f4f68162f7f76e8.jpg","text":"TemporaryFile(/tmp/multipartBody7082832404337817920asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518493789,"filename":"image_18082025_14_00_35_9635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a1376f5749d11ce8fe0da099cabe7ae8.jpg","text":"TemporaryFile(/tmp/multipartBody7283533569001805036asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518493789,"filename":"image_18082025_13_59_55_10648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/39e7766a7a01afd838c1f272fb5d39b3.jpg","text":"TemporaryFile(/tmp/multipartBody4161098349575698044asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518493789,"filename":"image_18082025_14_00_14_9671.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2c8430cedf827583a761701dd4df0dcb.jpg","text":"TemporaryFile(/tmp/multipartBody8836281399104423693asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518493789,"filename":"image_18082025_14_00_05_9655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9dc7cd7213e557fcb6b48d4ccba96165.jpg","text":"TemporaryFile(/tmp/multipartBody2880248185274967729asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518493789,"filename":"image_18082025_14_00_44_9635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cb2fb95728b610932281770f7cb9eb61.jpg","text":"TemporaryFile(/tmp/multipartBody7995132795037761563asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518493789,"filename":"image_18082025_14_00_25_10656.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377702462","file1":"1377702461","file0":"1377702460","file4":"1377702466","file5":"1377702469","file3":"1377702463"},"map_files_photo_id_array":[{"photo_id":"1377702469","filename":"file5"},{"photo_id":"1377702462","filename":"file2"},{"photo_id":"1377702466","filename":"file4"},{"photo_id":"1377702461","filename":"file1"},{"photo_id":"1377702460","filename":"file0"},{"photo_id":"1377702463","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377702461":["hashtag1","hashtag2"]},{"1377702469":["hashtag1","hashtag2"]},{"1377702463":["hashtag1","hashtag2"]},{"1377702466":["hashtag1","hashtag2"]},{"1377702460":["hashtag1","hashtag2"]},{"1377702462":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377702461, 1377702469, 1377702463, 1377702466, 1377702460, 1377702462)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.470187425613403 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:01:17.515293
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/01/image_18082025_14_01_44_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/14/01/image_18082025_14_01_34_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/14/01/image_18082025_14_01_25_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/14/01/image_18082025_14_01_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/14/00/image_18082025_14_01_04_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/14/00/image_18082025_14_00_55_10649.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/01/image_18082025_14_01_44_9636.jpg', '/home/nano/Desktop/images/18082025/14/01/image_18082025_14_01_34_9657.jpg', '/home/nano/Desktop/images/18082025/14/01/image_18082025_14_01_25_10667.jpg', '/home/nano/Desktop/images/18082025/14/01/image_18082025_14_01_14_9663.jpg', '/home/nano/Desktop/images/18082025/14/00/image_18082025_14_01_04_9640.jpg', '/home/nano/Desktop/images/18082025/14/00/image_18082025_14_00_55_10649.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/01/image_18082025_14_01_44_9636.jpg
/home/nano/Desktop/images/18082025/14/01/image_18082025_14_01_34_9657.jpg
/home/nano/Desktop/images/18082025/14/01/image_18082025_14_01_25_10667.jpg
/home/nano/Desktop/images/18082025/14/01/image_18082025_14_01_14_9663.jpg
/home/nano/Desktop/images/18082025/14/00/image_18082025_14_01_04_9640.jpg
/home/nano/Desktop/images/18082025/14/00/image_18082025_14_00_55_10649.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377702488","1377702493","1377702506","1377702484","1377702504","1377702497"],"photo_ids_order":["1377702484","1377702488","1377702493","1377702497","1377702504","1377702506"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8d5997813ac9cdb24645479f9306f389.jpg","text":"TemporaryFile(/tmp/multipartBody7651748502904298454asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518539118,"filename":"image_18082025_14_01_34_9657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2341626c200d907cec1da34f8cb4019d.jpg","text":"TemporaryFile(/tmp/multipartBody1121653225305850038asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518539118,"filename":"image_18082025_14_01_25_10667.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f2edecb19ad3b6ac26f3264c4cd31149.jpg","text":"TemporaryFile(/tmp/multipartBody6200584805964495162asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518539118,"filename":"image_18082025_14_00_55_10649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e17dfe2620ce8a25f74ed91eb9df800e.jpg","text":"TemporaryFile(/tmp/multipartBody8944203455626750901asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518539118,"filename":"image_18082025_14_01_44_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3029924210d941e91da69bfa512c9494.jpg","text":"TemporaryFile(/tmp/multipartBody1626610684252724483asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518539118,"filename":"image_18082025_14_01_04_9640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8f67363eb51c06bff4915f5174026d03.jpg","text":"TemporaryFile(/tmp/multipartBody2335907473192866430asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518539118,"filename":"image_18082025_14_01_14_9663.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377702493","file1":"1377702488","file0":"1377702484","file4":"1377702504","file5":"1377702506","file3":"1377702497"},"map_files_photo_id_array":[{"photo_id":"1377702506","filename":"file5"},{"photo_id":"1377702493","filename":"file2"},{"photo_id":"1377702504","filename":"file4"},{"photo_id":"1377702488","filename":"file1"},{"photo_id":"1377702484","filename":"file0"},{"photo_id":"1377702497","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377702488":["hashtag1","hashtag2"]},{"1377702493":["hashtag1","hashtag2"]},{"1377702506":["hashtag1","hashtag2"]},{"1377702484":["hashtag1","hashtag2"]},{"1377702504":["hashtag1","hashtag2"]},{"1377702497":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377702488, 1377702493, 1377702506, 1377702484, 1377702504, 1377702497)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.40943360328674 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:02:03.102400
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/13/image_18082025_11_13_45_9688.jpg', 2), ('/home/nano/Desktop/images/18082025/11/13/image_18082025_11_13_35_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/11/13/image_18082025_11_13_24_9698.jpg', 2), ('/home/nano/Desktop/images/18082025/11/13/image_18082025_11_13_15_9678.jpg', 2), ('/home/nano/Desktop/images/18082025/11/12/image_18082025_11_13_05_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/11/12/image_18082025_11_12_54_9649.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/13/image_18082025_11_13_45_9688.jpg', '/home/nano/Desktop/images/18082025/11/13/image_18082025_11_13_35_10648.jpg', '/home/nano/Desktop/images/18082025/11/13/image_18082025_11_13_24_9698.jpg', '/home/nano/Desktop/images/18082025/11/13/image_18082025_11_13_15_9678.jpg', '/home/nano/Desktop/images/18082025/11/12/image_18082025_11_13_05_10663.jpg', '/home/nano/Desktop/images/18082025/11/12/image_18082025_11_12_54_9649.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/13/image_18082025_11_13_45_9688.jpg
/home/nano/Desktop/images/18082025/11/13/image_18082025_11_13_35_10648.jpg
/home/nano/Desktop/images/18082025/11/13/image_18082025_11_13_24_9698.jpg
/home/nano/Desktop/images/18082025/11/13/image_18082025_11_13_15_9678.jpg
/home/nano/Desktop/images/18082025/11/12/image_18082025_11_13_05_10663.jpg
/home/nano/Desktop/images/18082025/11/12/image_18082025_11_12_54_9649.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377702523","1377702532","1377702535","1377702529","1377702520","1377702516"],"photo_ids_order":["1377702516","1377702520","1377702523","1377702529","1377702532","1377702535"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/40cf6921a0abc3f5dfb6ed99cb44ac03.jpg","text":"TemporaryFile(/tmp/multipartBody2674890534123093373asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518584149,"filename":"image_18082025_11_13_24_9698.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/09f79e8da31c47f6d0693c356564e795.jpg","text":"TemporaryFile(/tmp/multipartBody5796687595410925585asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518584149,"filename":"image_18082025_11_13_05_10663.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/38b2ddeb864d8f006c537dd36eeea70d.jpg","text":"TemporaryFile(/tmp/multipartBody6176345255536937482asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518584149,"filename":"image_18082025_11_12_54_9649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6edf290439af304134bcd4a0e217f9ae.jpg","text":"TemporaryFile(/tmp/multipartBody9072670993423842089asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518584149,"filename":"image_18082025_11_13_15_9678.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/aa071ba51ff476a442f27fe628e3366a.jpg","text":"TemporaryFile(/tmp/multipartBody11490748019458537asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518584149,"filename":"image_18082025_11_13_35_10648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d6f2b1610d78b39f5e5f64352f9325e7.jpg","text":"TemporaryFile(/tmp/multipartBody5699470526501333858asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518584149,"filename":"image_18082025_11_13_45_9688.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377702523","file1":"1377702520","file0":"1377702516","file4":"1377702532","file5":"1377702535","file3":"1377702529"},"map_files_photo_id_array":[{"photo_id":"1377702535","filename":"file5"},{"photo_id":"1377702523","filename":"file2"},{"photo_id":"1377702532","filename":"file4"},{"photo_id":"1377702520","filename":"file1"},{"photo_id":"1377702516","filename":"file0"},{"photo_id":"1377702529","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377702523":["hashtag1","hashtag2"]},{"1377702532":["hashtag1","hashtag2"]},{"1377702535":["hashtag1","hashtag2"]},{"1377702529":["hashtag1","hashtag2"]},{"1377702520":["hashtag1","hashtag2"]},{"1377702516":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377702523, 1377702532, 1377702535, 1377702529, 1377702520, 1377702516)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.43236207962036 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:02:47.634059
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/02/image_18082025_14_02_45_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/14/02/image_18082025_14_02_34_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/14/02/image_18082025_14_02_25_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/14/02/image_18082025_14_02_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/14/01/image_18082025_14_02_04_9665.jpg', 2), ('/home/nano/Desktop/images/18082025/14/01/image_18082025_14_01_55_10647.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/02/image_18082025_14_02_45_10644.jpg', '/home/nano/Desktop/images/18082025/14/02/image_18082025_14_02_34_9637.jpg', '/home/nano/Desktop/images/18082025/14/02/image_18082025_14_02_25_10658.jpg', '/home/nano/Desktop/images/18082025/14/02/image_18082025_14_02_14_9662.jpg', '/home/nano/Desktop/images/18082025/14/01/image_18082025_14_02_04_9665.jpg', '/home/nano/Desktop/images/18082025/14/01/image_18082025_14_01_55_10647.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/02/image_18082025_14_02_45_10644.jpg
/home/nano/Desktop/images/18082025/14/02/image_18082025_14_02_34_9637.jpg
/home/nano/Desktop/images/18082025/14/02/image_18082025_14_02_25_10658.jpg
/home/nano/Desktop/images/18082025/14/02/image_18082025_14_02_14_9662.jpg
/home/nano/Desktop/images/18082025/14/01/image_18082025_14_02_04_9665.jpg
/home/nano/Desktop/images/18082025/14/01/image_18082025_14_01_55_10647.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377702557","1377702551","1377702554","1377702548","1377702565","1377702561"],"photo_ids_order":["1377702548","1377702551","1377702554","1377702557","1377702561","1377702565"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cac7681f075e015545addf354572b048.jpg","text":"TemporaryFile(/tmp/multipartBody1861614706641810848asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518629100,"filename":"image_18082025_14_02_14_9662.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1664a69f2f603bb041fc77fc819d336b.jpg","text":"TemporaryFile(/tmp/multipartBody5043676007996842712asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518629100,"filename":"image_18082025_14_02_34_9637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7e7439a009efb659247530e140ac5b9b.jpg","text":"TemporaryFile(/tmp/multipartBody2202045670710068656asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518629100,"filename":"image_18082025_14_02_25_10658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a313bf639d57114e091520b86acd3101.jpg","text":"TemporaryFile(/tmp/multipartBody692275918032614662asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518629100,"filename":"image_18082025_14_02_45_10644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ccd3c7eed8004737e54968fe2d0fd78e.jpg","text":"TemporaryFile(/tmp/multipartBody7389873456562701061asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518629100,"filename":"image_18082025_14_01_55_10647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ebe31e7506d9a9aa87a58be06937c0b7.jpg","text":"TemporaryFile(/tmp/multipartBody2355605221742962744asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518629100,"filename":"image_18082025_14_02_04_9665.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377702554","file1":"1377702551","file0":"1377702548","file4":"1377702561","file5":"1377702565","file3":"1377702557"},"map_files_photo_id_array":[{"photo_id":"1377702565","filename":"file5"},{"photo_id":"1377702554","filename":"file2"},{"photo_id":"1377702561","filename":"file4"},{"photo_id":"1377702551","filename":"file1"},{"photo_id":"1377702548","filename":"file0"},{"photo_id":"1377702557","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377702557":["hashtag1","hashtag2"]},{"1377702551":["hashtag1","hashtag2"]},{"1377702554":["hashtag1","hashtag2"]},{"1377702548":["hashtag1","hashtag2"]},{"1377702565":["hashtag1","hashtag2"]},{"1377702561":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377702557, 1377702551, 1377702554, 1377702548, 1377702565, 1377702561)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.79703140258789 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:03:32.715544
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/03/image_18082025_14_03_45_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/14/03/image_18082025_14_03_34_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/14/03/image_18082025_14_03_25_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/14/03/image_18082025_14_03_15_10681.jpg', 2), ('/home/nano/Desktop/images/18082025/14/02/image_18082025_14_03_04_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/14/02/image_18082025_14_02_55_9634.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/03/image_18082025_14_03_45_10642.jpg', '/home/nano/Desktop/images/18082025/14/03/image_18082025_14_03_34_9656.jpg', '/home/nano/Desktop/images/18082025/14/03/image_18082025_14_03_25_9639.jpg', '/home/nano/Desktop/images/18082025/14/03/image_18082025_14_03_15_10681.jpg', '/home/nano/Desktop/images/18082025/14/02/image_18082025_14_03_04_9650.jpg', '/home/nano/Desktop/images/18082025/14/02/image_18082025_14_02_55_9634.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/03/image_18082025_14_03_45_10642.jpg
/home/nano/Desktop/images/18082025/14/03/image_18082025_14_03_34_9656.jpg
/home/nano/Desktop/images/18082025/14/03/image_18082025_14_03_25_9639.jpg
/home/nano/Desktop/images/18082025/14/03/image_18082025_14_03_15_10681.jpg
/home/nano/Desktop/images/18082025/14/02/image_18082025_14_03_04_9650.jpg
/home/nano/Desktop/images/18082025/14/02/image_18082025_14_02_55_9634.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377702590","1377702584","1377702589","1377702577","1377702593","1377702581"],"photo_ids_order":["1377702577","1377702581","1377702584","1377702589","1377702590","1377702593"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/25ff2c7873a00f3a6e0cffe2df4a5a87.jpg","text":"TemporaryFile(/tmp/multipartBody4500996783310207344asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518674394,"filename":"image_18082025_14_03_04_9650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4e7d193338d7ecfe4f3077693d34f49a.jpg","text":"TemporaryFile(/tmp/multipartBody916993718643353581asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518674394,"filename":"image_18082025_14_03_25_9639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5065c79502dbc97e9d124760e7a56ba0.jpg","text":"TemporaryFile(/tmp/multipartBody3240849071090547313asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518674394,"filename":"image_18082025_14_03_15_10681.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/402ae0106f1cef73502c1471a2c1ebea.jpg","text":"TemporaryFile(/tmp/multipartBody8259684976424227036asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518674394,"filename":"image_18082025_14_03_45_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a23b16a11e496110c64dfc449d7ffa5a.jpg","text":"TemporaryFile(/tmp/multipartBody7259873838828801315asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518674394,"filename":"image_18082025_14_02_55_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e507edff8d5dca51ea805e9171032a7c.jpg","text":"TemporaryFile(/tmp/multipartBody2338507516128137650asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518674394,"filename":"image_18082025_14_03_34_9656.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377702584","file1":"1377702581","file0":"1377702577","file4":"1377702590","file5":"1377702593","file3":"1377702589"},"map_files_photo_id_array":[{"photo_id":"1377702593","filename":"file5"},{"photo_id":"1377702584","filename":"file2"},{"photo_id":"1377702590","filename":"file4"},{"photo_id":"1377702581","filename":"file1"},{"photo_id":"1377702577","filename":"file0"},{"photo_id":"1377702589","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377702590":["hashtag1","hashtag2"]},{"1377702584":["hashtag1","hashtag2"]},{"1377702589":["hashtag1","hashtag2"]},{"1377702577":["hashtag1","hashtag2"]},{"1377702593":["hashtag1","hashtag2"]},{"1377702581":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377702590, 1377702584, 1377702589, 1377702577, 1377702593, 1377702581)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.28305172920227 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:04:16.867724
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/04/image_18082025_14_04_45_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/14/04/image_18082025_14_04_34_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/14/04/image_18082025_14_04_25_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/14/04/image_18082025_14_04_15_10699.jpg', 2), ('/home/nano/Desktop/images/18082025/14/03/image_18082025_14_04_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/14/03/image_18082025_14_03_55_9634.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/04/image_18082025_14_04_45_10646.jpg', '/home/nano/Desktop/images/18082025/14/04/image_18082025_14_04_34_9655.jpg', '/home/nano/Desktop/images/18082025/14/04/image_18082025_14_04_25_9635.jpg', '/home/nano/Desktop/images/18082025/14/04/image_18082025_14_04_15_10699.jpg', '/home/nano/Desktop/images/18082025/14/03/image_18082025_14_04_04_9639.jpg', '/home/nano/Desktop/images/18082025/14/03/image_18082025_14_03_55_9634.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/04/image_18082025_14_04_45_10646.jpg
/home/nano/Desktop/images/18082025/14/04/image_18082025_14_04_34_9655.jpg
/home/nano/Desktop/images/18082025/14/04/image_18082025_14_04_25_9635.jpg
/home/nano/Desktop/images/18082025/14/04/image_18082025_14_04_15_10699.jpg
/home/nano/Desktop/images/18082025/14/03/image_18082025_14_04_04_9639.jpg
/home/nano/Desktop/images/18082025/14/03/image_18082025_14_03_55_9634.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377702608","1377702617","1377702622","1377702613","1377702621","1377702624"],"photo_ids_order":["1377702608","1377702613","1377702617","1377702621","1377702622","1377702624"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/970f55727697477599118d6f8475f6e4.jpg","text":"TemporaryFile(/tmp/multipartBody1858988525700891146asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518718139,"filename":"image_18082025_14_04_45_10646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4faaab3dfcd8c8a4e4f0bc32c8e5f83e.jpg","text":"TemporaryFile(/tmp/multipartBody7109489513419934306asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518718139,"filename":"image_18082025_14_04_25_9635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0738ef922013736af0267255b83795c5.jpg","text":"TemporaryFile(/tmp/multipartBody7033520199960723133asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518718139,"filename":"image_18082025_14_04_04_9639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2bc68bc7291136ef230a7fd1847ef156.jpg","text":"TemporaryFile(/tmp/multipartBody2672689148371793563asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518718139,"filename":"image_18082025_14_04_34_9655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fceec221fedfb664220cde49fe3ad540.jpg","text":"TemporaryFile(/tmp/multipartBody5542800261973235464asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518718139,"filename":"image_18082025_14_04_15_10699.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/45f6a5b361242227a65b0ed9cabe36a6.jpg","text":"TemporaryFile(/tmp/multipartBody897286221944440216asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518718139,"filename":"image_18082025_14_03_55_9634.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377702617","file1":"1377702613","file0":"1377702608","file4":"1377702622","file5":"1377702624","file3":"1377702621"},"map_files_photo_id_array":[{"photo_id":"1377702624","filename":"file5"},{"photo_id":"1377702617","filename":"file2"},{"photo_id":"1377702622","filename":"file4"},{"photo_id":"1377702613","filename":"file1"},{"photo_id":"1377702608","filename":"file0"},{"photo_id":"1377702621","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377702608":["hashtag1","hashtag2"]},{"1377702617":["hashtag1","hashtag2"]},{"1377702622":["hashtag1","hashtag2"]},{"1377702613":["hashtag1","hashtag2"]},{"1377702621":["hashtag1","hashtag2"]},{"1377702624":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377702608, 1377702617, 1377702622, 1377702613, 1377702621, 1377702624)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.819088459014893 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:05:02.787026
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/12/image_18082025_11_12_45_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/11/12/image_18082025_11_12_35_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/11/12/image_18082025_11_12_24_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/11/12/image_18082025_11_12_15_9678.jpg', 2), ('/home/nano/Desktop/images/18082025/11/11/image_18082025_11_12_05_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/11/11/image_18082025_11_11_54_9642.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/12/image_18082025_11_12_45_9654.jpg', '/home/nano/Desktop/images/18082025/11/12/image_18082025_11_12_35_10651.jpg', '/home/nano/Desktop/images/18082025/11/12/image_18082025_11_12_24_9645.jpg', '/home/nano/Desktop/images/18082025/11/12/image_18082025_11_12_15_9678.jpg', '/home/nano/Desktop/images/18082025/11/11/image_18082025_11_12_05_10654.jpg', '/home/nano/Desktop/images/18082025/11/11/image_18082025_11_11_54_9642.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/12/image_18082025_11_12_45_9654.jpg
/home/nano/Desktop/images/18082025/11/12/image_18082025_11_12_35_10651.jpg
/home/nano/Desktop/images/18082025/11/12/image_18082025_11_12_24_9645.jpg
/home/nano/Desktop/images/18082025/11/12/image_18082025_11_12_15_9678.jpg
/home/nano/Desktop/images/18082025/11/11/image_18082025_11_12_05_10654.jpg
/home/nano/Desktop/images/18082025/11/11/image_18082025_11_11_54_9642.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377702644","1377702647","1377702641","1377702637","1377702651","1377702639"],"photo_ids_order":["1377702637","1377702639","1377702641","1377702644","1377702647","1377702651"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5c7145dbf554413610b689faa8b7c5f6.jpg","text":"TemporaryFile(/tmp/multipartBody2157735648494459096asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518764203,"filename":"image_18082025_11_12_15_9678.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/78b33861a827916ec1d95ed452284467.jpg","text":"TemporaryFile(/tmp/multipartBody2509732503022733750asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518764203,"filename":"image_18082025_11_12_05_10654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9b5a7835f81224a2821ca1045bba4dd8.jpg","text":"TemporaryFile(/tmp/multipartBody5301560735179267516asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518764203,"filename":"image_18082025_11_12_24_9645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0012d2be7eff7f0e6c0080be60697ddb.jpg","text":"TemporaryFile(/tmp/multipartBody3464025315788639509asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518764203,"filename":"image_18082025_11_12_45_9654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ba0f5ad0d6b9413c6a1d991a2fd04698.jpg","text":"TemporaryFile(/tmp/multipartBody3728784664287998917asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518764203,"filename":"image_18082025_11_11_54_9642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/414d0ae9039f3d7ae8a90458ffd4599c.jpg","text":"TemporaryFile(/tmp/multipartBody6403026867767660021asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518764203,"filename":"image_18082025_11_12_35_10651.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377702641","file1":"1377702639","file0":"1377702637","file4":"1377702647","file5":"1377702651","file3":"1377702644"},"map_files_photo_id_array":[{"photo_id":"1377702651","filename":"file5"},{"photo_id":"1377702641","filename":"file2"},{"photo_id":"1377702647","filename":"file4"},{"photo_id":"1377702639","filename":"file1"},{"photo_id":"1377702637","filename":"file0"},{"photo_id":"1377702644","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377702644":["hashtag1","hashtag2"]},{"1377702647":["hashtag1","hashtag2"]},{"1377702641":["hashtag1","hashtag2"]},{"1377702637":["hashtag1","hashtag2"]},{"1377702651":["hashtag1","hashtag2"]},{"1377702639":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377702644, 1377702647, 1377702641, 1377702637, 1377702651, 1377702639)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.52974820137024 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:05:46.962712
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/05/image_18082025_14_05_45_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/14/05/image_18082025_14_05_34_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/14/05/image_18082025_14_05_24_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/14/05/image_18082025_14_05_15_10707.jpg', 2), ('/home/nano/Desktop/images/18082025/14/04/image_18082025_14_05_04_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/14/04/image_18082025_14_04_54_9633.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/05/image_18082025_14_05_45_10644.jpg', '/home/nano/Desktop/images/18082025/14/05/image_18082025_14_05_34_9637.jpg', '/home/nano/Desktop/images/18082025/14/05/image_18082025_14_05_24_9653.jpg', '/home/nano/Desktop/images/18082025/14/05/image_18082025_14_05_15_10707.jpg', '/home/nano/Desktop/images/18082025/14/04/image_18082025_14_05_04_9657.jpg', '/home/nano/Desktop/images/18082025/14/04/image_18082025_14_04_54_9633.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/05/image_18082025_14_05_45_10644.jpg
/home/nano/Desktop/images/18082025/14/05/image_18082025_14_05_34_9637.jpg
/home/nano/Desktop/images/18082025/14/05/image_18082025_14_05_24_9653.jpg
/home/nano/Desktop/images/18082025/14/05/image_18082025_14_05_15_10707.jpg
/home/nano/Desktop/images/18082025/14/04/image_18082025_14_05_04_9657.jpg
/home/nano/Desktop/images/18082025/14/04/image_18082025_14_04_54_9633.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377702668","1377702667","1377702670","1377702678","1377702672","1377702674"],"photo_ids_order":["1377702667","1377702668","1377702670","1377702672","1377702674","1377702678"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/557a2b430a07e0741f89b2e9ab120ff2.jpg","text":"TemporaryFile(/tmp/multipartBody3474171214714190243asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518808120,"filename":"image_18082025_14_05_34_9637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c7702381f5e8333421d3ce696d8b5602.jpg","text":"TemporaryFile(/tmp/multipartBody6793438769808268600asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518808120,"filename":"image_18082025_14_05_45_10644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9c38660cf606b692a75469e32af7569a.jpg","text":"TemporaryFile(/tmp/multipartBody2573078787449782782asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518808120,"filename":"image_18082025_14_05_24_9653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e51851072364ba6af73a027858efc2a9.jpg","text":"TemporaryFile(/tmp/multipartBody7664461054496449836asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518808120,"filename":"image_18082025_14_04_54_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a23093332f06f63fe1f61f123aca1609.jpg","text":"TemporaryFile(/tmp/multipartBody7181421309720630674asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518808120,"filename":"image_18082025_14_05_15_10707.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2a4015440b4f5476a3a7d5c7ccb4e0a3.jpg","text":"TemporaryFile(/tmp/multipartBody3501988978150850481asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518808120,"filename":"image_18082025_14_05_04_9657.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377702670","file1":"1377702668","file0":"1377702667","file4":"1377702674","file5":"1377702678","file3":"1377702672"},"map_files_photo_id_array":[{"photo_id":"1377702678","filename":"file5"},{"photo_id":"1377702670","filename":"file2"},{"photo_id":"1377702674","filename":"file4"},{"photo_id":"1377702668","filename":"file1"},{"photo_id":"1377702667","filename":"file0"},{"photo_id":"1377702672","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377702668":["hashtag1","hashtag2"]},{"1377702667":["hashtag1","hashtag2"]},{"1377702670":["hashtag1","hashtag2"]},{"1377702678":["hashtag1","hashtag2"]},{"1377702672":["hashtag1","hashtag2"]},{"1377702674":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377702668, 1377702667, 1377702670, 1377702678, 1377702672, 1377702674)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.805121660232544 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:06:32.070060
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/06/image_18082025_14_06_45_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/14/06/image_18082025_14_06_35_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/14/06/image_18082025_14_06_24_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/14/06/image_18082025_14_06_15_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/14/05/image_18082025_14_06_05_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/14/05/image_18082025_14_05_54_9633.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/06/image_18082025_14_06_45_9635.jpg', '/home/nano/Desktop/images/18082025/14/06/image_18082025_14_06_35_10645.jpg', '/home/nano/Desktop/images/18082025/14/06/image_18082025_14_06_24_9634.jpg', '/home/nano/Desktop/images/18082025/14/06/image_18082025_14_06_15_9654.jpg', '/home/nano/Desktop/images/18082025/14/05/image_18082025_14_06_05_10650.jpg', '/home/nano/Desktop/images/18082025/14/05/image_18082025_14_05_54_9633.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/06/image_18082025_14_06_45_9635.jpg
/home/nano/Desktop/images/18082025/14/06/image_18082025_14_06_35_10645.jpg
/home/nano/Desktop/images/18082025/14/06/image_18082025_14_06_24_9634.jpg
/home/nano/Desktop/images/18082025/14/06/image_18082025_14_06_15_9654.jpg
/home/nano/Desktop/images/18082025/14/05/image_18082025_14_06_05_10650.jpg
/home/nano/Desktop/images/18082025/14/05/image_18082025_14_05_54_9633.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.670809030532837 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:06:47.101120
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/06/image_18082025_14_06_45_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/14/06/image_18082025_14_06_35_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/14/06/image_18082025_14_06_24_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/14/06/image_18082025_14_06_15_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/14/05/image_18082025_14_06_05_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/14/05/image_18082025_14_05_54_9633.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/06/image_18082025_14_06_45_9635.jpg', '/home/nano/Desktop/images/18082025/14/06/image_18082025_14_06_35_10645.jpg', '/home/nano/Desktop/images/18082025/14/06/image_18082025_14_06_24_9634.jpg', '/home/nano/Desktop/images/18082025/14/06/image_18082025_14_06_15_9654.jpg', '/home/nano/Desktop/images/18082025/14/05/image_18082025_14_06_05_10650.jpg', '/home/nano/Desktop/images/18082025/14/05/image_18082025_14_05_54_9633.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/06/image_18082025_14_06_45_9635.jpg
/home/nano/Desktop/images/18082025/14/06/image_18082025_14_06_35_10645.jpg
/home/nano/Desktop/images/18082025/14/06/image_18082025_14_06_24_9634.jpg
/home/nano/Desktop/images/18082025/14/06/image_18082025_14_06_15_9654.jpg
/home/nano/Desktop/images/18082025/14/05/image_18082025_14_06_05_10650.jpg
/home/nano/Desktop/images/18082025/14/05/image_18082025_14_05_54_9633.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377702724","1377702712","1377702715","1377702709","1377702720","1377702714"],"photo_ids_order":["1377702709","1377702712","1377702714","1377702715","1377702720","1377702724"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a2474a877de28c4fd98b70f1ee5bed70.jpg","text":"TemporaryFile(/tmp/multipartBody5853907927859525162asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518868813,"filename":"image_18082025_14_05_54_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f4a4616417fe4e76c00ebcbf72d95e77.jpg","text":"TemporaryFile(/tmp/multipartBody1926925867513290639asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518868813,"filename":"image_18082025_14_06_35_10645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/187b3c9ff680535651c75eb3563d31e0.jpg","text":"TemporaryFile(/tmp/multipartBody7385600536475106506asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518868813,"filename":"image_18082025_14_06_15_9654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/08c62fb017e8231236b2701fc793f018.jpg","text":"TemporaryFile(/tmp/multipartBody261524945372533906asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518868813,"filename":"image_18082025_14_06_45_9635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/192b64297ccde7bcf02982f3fc5debbd.jpg","text":"TemporaryFile(/tmp/multipartBody6802562770390875828asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518868813,"filename":"image_18082025_14_06_05_10650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/778d8bc01a787cf95355efda2a9f7ec2.jpg","text":"TemporaryFile(/tmp/multipartBody1778464293345408793asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518868813,"filename":"image_18082025_14_06_24_9634.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377702714","file1":"1377702712","file0":"1377702709","file4":"1377702720","file5":"1377702724","file3":"1377702715"},"map_files_photo_id_array":[{"photo_id":"1377702724","filename":"file5"},{"photo_id":"1377702714","filename":"file2"},{"photo_id":"1377702720","filename":"file4"},{"photo_id":"1377702712","filename":"file1"},{"photo_id":"1377702709","filename":"file0"},{"photo_id":"1377702715","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377702724":["hashtag1","hashtag2"]},{"1377702712":["hashtag1","hashtag2"]},{"1377702715":["hashtag1","hashtag2"]},{"1377702709":["hashtag1","hashtag2"]},{"1377702720":["hashtag1","hashtag2"]},{"1377702714":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377702724, 1377702712, 1377702715, 1377702709, 1377702720, 1377702714)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.183605432510376 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:07:32.202257
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/07/image_18082025_14_07_44_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/14/07/image_18082025_14_07_35_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/14/07/image_18082025_14_07_24_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/14/07/image_18082025_14_07_15_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/14/06/image_18082025_14_07_05_10670.jpg', 2), ('/home/nano/Desktop/images/18082025/14/06/image_18082025_14_06_54_9632.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/07/image_18082025_14_07_44_9635.jpg', '/home/nano/Desktop/images/18082025/14/07/image_18082025_14_07_35_10644.jpg', '/home/nano/Desktop/images/18082025/14/07/image_18082025_14_07_24_9629.jpg', '/home/nano/Desktop/images/18082025/14/07/image_18082025_14_07_15_9648.jpg', '/home/nano/Desktop/images/18082025/14/06/image_18082025_14_07_05_10670.jpg', '/home/nano/Desktop/images/18082025/14/06/image_18082025_14_06_54_9632.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/07/image_18082025_14_07_44_9635.jpg
/home/nano/Desktop/images/18082025/14/07/image_18082025_14_07_35_10644.jpg
/home/nano/Desktop/images/18082025/14/07/image_18082025_14_07_24_9629.jpg
/home/nano/Desktop/images/18082025/14/07/image_18082025_14_07_15_9648.jpg
/home/nano/Desktop/images/18082025/14/06/image_18082025_14_07_05_10670.jpg
/home/nano/Desktop/images/18082025/14/06/image_18082025_14_06_54_9632.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377702743","1377702746","1377702748","1377702751","1377702753","1377702741"],"photo_ids_order":["1377702741","1377702743","1377702746","1377702748","1377702751","1377702753"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a7b19736597ab3b3ca3cdd7864933a15.jpg","text":"TemporaryFile(/tmp/multipartBody9168387110983559535asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518913922,"filename":"image_18082025_14_07_35_10644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f6f8f589c61ba300daf42258311289ac.jpg","text":"TemporaryFile(/tmp/multipartBody7770702258666041470asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518913922,"filename":"image_18082025_14_07_24_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/61ba041c69db7d908cc8607cd0a7a330.jpg","text":"TemporaryFile(/tmp/multipartBody8899404283220883492asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518913922,"filename":"image_18082025_14_07_15_9648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/12f94ce66a1d93add152f8b760feb908.jpg","text":"TemporaryFile(/tmp/multipartBody5981311064297853541asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518913922,"filename":"image_18082025_14_07_05_10670.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/938c01ec5296727cb4d28300d44c64a5.jpg","text":"TemporaryFile(/tmp/multipartBody1986964652958851982asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518913922,"filename":"image_18082025_14_06_54_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a9612149fe62e71c5185c3034e103a9b.jpg","text":"TemporaryFile(/tmp/multipartBody3818371518809892193asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518913922,"filename":"image_18082025_14_07_44_9635.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377702746","file1":"1377702743","file0":"1377702741","file4":"1377702751","file5":"1377702753","file3":"1377702748"},"map_files_photo_id_array":[{"photo_id":"1377702753","filename":"file5"},{"photo_id":"1377702746","filename":"file2"},{"photo_id":"1377702751","filename":"file4"},{"photo_id":"1377702743","filename":"file1"},{"photo_id":"1377702741","filename":"file0"},{"photo_id":"1377702748","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377702743":["hashtag1","hashtag2"]},{"1377702746":["hashtag1","hashtag2"]},{"1377702748":["hashtag1","hashtag2"]},{"1377702751":["hashtag1","hashtag2"]},{"1377702753":["hashtag1","hashtag2"]},{"1377702741":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377702743, 1377702746, 1377702748, 1377702751, 1377702753, 1377702741)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.81515097618103 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:08:17.323159
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/08/image_18082025_14_08_44_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/14/08/image_18082025_14_08_35_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/14/08/image_18082025_14_08_24_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/14/08/image_18082025_14_08_14_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/14/07/image_18082025_14_08_05_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/14/07/image_18082025_14_07_54_9652.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/08/image_18082025_14_08_44_9637.jpg', '/home/nano/Desktop/images/18082025/14/08/image_18082025_14_08_35_10647.jpg', '/home/nano/Desktop/images/18082025/14/08/image_18082025_14_08_24_9635.jpg', '/home/nano/Desktop/images/18082025/14/08/image_18082025_14_08_14_9661.jpg', '/home/nano/Desktop/images/18082025/14/07/image_18082025_14_08_05_10656.jpg', '/home/nano/Desktop/images/18082025/14/07/image_18082025_14_07_54_9652.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/08/image_18082025_14_08_44_9637.jpg
/home/nano/Desktop/images/18082025/14/08/image_18082025_14_08_35_10647.jpg
/home/nano/Desktop/images/18082025/14/08/image_18082025_14_08_24_9635.jpg
/home/nano/Desktop/images/18082025/14/08/image_18082025_14_08_14_9661.jpg
/home/nano/Desktop/images/18082025/14/07/image_18082025_14_08_05_10656.jpg
/home/nano/Desktop/images/18082025/14/07/image_18082025_14_07_54_9652.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377702776","1377702779","1377702770","1377702766","1377702778","1377702774"],"photo_ids_order":["1377702766","1377702770","1377702774","1377702776","1377702778","1377702779"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ac0280b0deeea28f7e210707d1871ce2.jpg","text":"TemporaryFile(/tmp/multipartBody5698848591329835861asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518958696,"filename":"image_18082025_14_08_14_9661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/47aa90fee478aca3759becb685b6f9e9.jpg","text":"TemporaryFile(/tmp/multipartBody3434938752065425597asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518958696,"filename":"image_18082025_14_07_54_9652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ce00dd35bb9b5a919f7cee61f1a25eeb.jpg","text":"TemporaryFile(/tmp/multipartBody3667967001486435194asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518958696,"filename":"image_18082025_14_08_35_10647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/303a9dc1787c63ba7c3cfa22da9e807c.jpg","text":"TemporaryFile(/tmp/multipartBody2135028413780685507asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518958696,"filename":"image_18082025_14_08_44_9637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9c39cebb1ff6ea7a321a5664d8b41cdf.jpg","text":"TemporaryFile(/tmp/multipartBody6156370719759585499asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518958696,"filename":"image_18082025_14_08_05_10656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1cf2c17b0437dec6553c364d75e6b10a.jpg","text":"TemporaryFile(/tmp/multipartBody2519153497279984273asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755518958696,"filename":"image_18082025_14_08_24_9635.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377702774","file1":"1377702770","file0":"1377702766","file4":"1377702778","file5":"1377702779","file3":"1377702776"},"map_files_photo_id_array":[{"photo_id":"1377702779","filename":"file5"},{"photo_id":"1377702774","filename":"file2"},{"photo_id":"1377702778","filename":"file4"},{"photo_id":"1377702770","filename":"file1"},{"photo_id":"1377702766","filename":"file0"},{"photo_id":"1377702776","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377702776":["hashtag1","hashtag2"]},{"1377702779":["hashtag1","hashtag2"]},{"1377702770":["hashtag1","hashtag2"]},{"1377702766":["hashtag1","hashtag2"]},{"1377702778":["hashtag1","hashtag2"]},{"1377702774":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377702776, 1377702779, 1377702770, 1377702766, 1377702778, 1377702774)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.33128523826599 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:09:03.398298
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/11/image_18082025_11_11_45_9742.jpg', 2), ('/home/nano/Desktop/images/18082025/11/11/image_18082025_11_11_35_10743.jpg', 2), ('/home/nano/Desktop/images/18082025/11/11/image_18082025_11_11_24_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/11/11/image_18082025_11_11_15_9704.jpg', 2), ('/home/nano/Desktop/images/18082025/11/10/image_18082025_11_11_05_10692.jpg', 2), ('/home/nano/Desktop/images/18082025/11/10/image_18082025_11_10_54_9673.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/11/image_18082025_11_11_45_9742.jpg', '/home/nano/Desktop/images/18082025/11/11/image_18082025_11_11_35_10743.jpg', '/home/nano/Desktop/images/18082025/11/11/image_18082025_11_11_24_9659.jpg', '/home/nano/Desktop/images/18082025/11/11/image_18082025_11_11_15_9704.jpg', '/home/nano/Desktop/images/18082025/11/10/image_18082025_11_11_05_10692.jpg', '/home/nano/Desktop/images/18082025/11/10/image_18082025_11_10_54_9673.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/11/image_18082025_11_11_45_9742.jpg
/home/nano/Desktop/images/18082025/11/11/image_18082025_11_11_35_10743.jpg
/home/nano/Desktop/images/18082025/11/11/image_18082025_11_11_24_9659.jpg
/home/nano/Desktop/images/18082025/11/11/image_18082025_11_11_15_9704.jpg
/home/nano/Desktop/images/18082025/11/10/image_18082025_11_11_05_10692.jpg
/home/nano/Desktop/images/18082025/11/10/image_18082025_11_10_54_9673.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377702802","1377702811","1377702805","1377702808","1377702798","1377702792"],"photo_ids_order":["1377702792","1377702798","1377702802","1377702805","1377702808","1377702811"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/07228303ab07f9e4cbe1372b037befd2.jpg","text":"TemporaryFile(/tmp/multipartBody9088687184750959244asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519004703,"filename":"image_18082025_11_11_24_9659.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4c33f874dbf391027ba26bacf3745bb6.jpg","text":"TemporaryFile(/tmp/multipartBody787345597095295502asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519004703,"filename":"image_18082025_11_10_54_9673.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7a6c117a115177a6471a99e6504274ad.jpg","text":"TemporaryFile(/tmp/multipartBody7426540150283698448asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519004703,"filename":"image_18082025_11_11_15_9704.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f53c4d72c37c2c3edccbda4ff587ee21.jpg","text":"TemporaryFile(/tmp/multipartBody5201343941376626397asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519004703,"filename":"image_18082025_11_11_05_10692.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1257acde46a3287e4da8e7fdc4fd13d3.jpg","text":"TemporaryFile(/tmp/multipartBody6398913375226746050asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519004703,"filename":"image_18082025_11_11_35_10743.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/32c408f7b14d10c28b3ffed9c3f3c781.jpg","text":"TemporaryFile(/tmp/multipartBody1795237580299891690asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519004703,"filename":"image_18082025_11_11_45_9742.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377702802","file1":"1377702798","file0":"1377702792","file4":"1377702808","file5":"1377702811","file3":"1377702805"},"map_files_photo_id_array":[{"photo_id":"1377702811","filename":"file5"},{"photo_id":"1377702802","filename":"file2"},{"photo_id":"1377702808","filename":"file4"},{"photo_id":"1377702798","filename":"file1"},{"photo_id":"1377702792","filename":"file0"},{"photo_id":"1377702805","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377702802":["hashtag1","hashtag2"]},{"1377702811":["hashtag1","hashtag2"]},{"1377702805":["hashtag1","hashtag2"]},{"1377702808":["hashtag1","hashtag2"]},{"1377702798":["hashtag1","hashtag2"]},{"1377702792":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377702802, 1377702811, 1377702805, 1377702808, 1377702798, 1377702792)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.27669668197632 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:09:47.418266
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/09/image_18082025_14_09_44_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/14/09/image_18082025_14_09_35_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/14/09/image_18082025_14_09_25_10643.jpg', 2), ('/home/nano/Desktop/images/18082025/14/09/image_18082025_14_09_14_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/14/08/image_18082025_14_09_05_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/14/08/image_18082025_14_08_55_10644.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/09/image_18082025_14_09_44_9637.jpg', '/home/nano/Desktop/images/18082025/14/09/image_18082025_14_09_35_9638.jpg', '/home/nano/Desktop/images/18082025/14/09/image_18082025_14_09_25_10643.jpg', '/home/nano/Desktop/images/18082025/14/09/image_18082025_14_09_14_9661.jpg', '/home/nano/Desktop/images/18082025/14/08/image_18082025_14_09_05_9641.jpg', '/home/nano/Desktop/images/18082025/14/08/image_18082025_14_08_55_10644.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/09/image_18082025_14_09_44_9637.jpg
/home/nano/Desktop/images/18082025/14/09/image_18082025_14_09_35_9638.jpg
/home/nano/Desktop/images/18082025/14/09/image_18082025_14_09_25_10643.jpg
/home/nano/Desktop/images/18082025/14/09/image_18082025_14_09_14_9661.jpg
/home/nano/Desktop/images/18082025/14/08/image_18082025_14_09_05_9641.jpg
/home/nano/Desktop/images/18082025/14/08/image_18082025_14_08_55_10644.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377702830","1377702827","1377702829","1377702838","1377702834","1377702828"],"photo_ids_order":["1377702827","1377702828","1377702829","1377702830","1377702834","1377702838"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1297278af204786faf432331b0ba13c1.jpg","text":"TemporaryFile(/tmp/multipartBody4110836828653250647asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519049175,"filename":"image_18082025_14_09_14_9661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9bd1d39050bc59dde63baa4689c4a99a.jpg","text":"TemporaryFile(/tmp/multipartBody1050059046301516373asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519049175,"filename":"image_18082025_14_09_44_9637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8eaf16593b2d91fe517c939de575ba21.jpg","text":"TemporaryFile(/tmp/multipartBody40752696617630159asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519049175,"filename":"image_18082025_14_09_25_10643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2f60fb330986b15e454998d8e173e83c.jpg","text":"TemporaryFile(/tmp/multipartBody4600708704158971884asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519049175,"filename":"image_18082025_14_08_55_10644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/535a275850d28b6c0539fca298072380.jpg","text":"TemporaryFile(/tmp/multipartBody8419447536234514854asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519049175,"filename":"image_18082025_14_09_05_9641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f3bb58780588281f84b8f0d3a2846fa6.jpg","text":"TemporaryFile(/tmp/multipartBody7485787540261043669asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519049175,"filename":"image_18082025_14_09_35_9638.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377702829","file1":"1377702828","file0":"1377702827","file4":"1377702834","file5":"1377702838","file3":"1377702830"},"map_files_photo_id_array":[{"photo_id":"1377702838","filename":"file5"},{"photo_id":"1377702829","filename":"file2"},{"photo_id":"1377702834","filename":"file4"},{"photo_id":"1377702828","filename":"file1"},{"photo_id":"1377702827","filename":"file0"},{"photo_id":"1377702830","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377702830":["hashtag1","hashtag2"]},{"1377702827":["hashtag1","hashtag2"]},{"1377702829":["hashtag1","hashtag2"]},{"1377702838":["hashtag1","hashtag2"]},{"1377702834":["hashtag1","hashtag2"]},{"1377702828":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377702830, 1377702827, 1377702829, 1377702838, 1377702834, 1377702828)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.14723539352417 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:10:32.543935
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/10/image_18082025_14_10_44_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/14/10/image_18082025_14_10_34_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/14/10/image_18082025_14_10_25_10643.jpg', 2), ('/home/nano/Desktop/images/18082025/14/10/image_18082025_14_10_14_9678.jpg', 2), ('/home/nano/Desktop/images/18082025/14/09/image_18082025_14_10_05_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/14/09/image_18082025_14_09_55_10642.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/10/image_18082025_14_10_44_9636.jpg', '/home/nano/Desktop/images/18082025/14/10/image_18082025_14_10_34_9633.jpg', '/home/nano/Desktop/images/18082025/14/10/image_18082025_14_10_25_10643.jpg', '/home/nano/Desktop/images/18082025/14/10/image_18082025_14_10_14_9678.jpg', '/home/nano/Desktop/images/18082025/14/09/image_18082025_14_10_05_9652.jpg', '/home/nano/Desktop/images/18082025/14/09/image_18082025_14_09_55_10642.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/10/image_18082025_14_10_44_9636.jpg
/home/nano/Desktop/images/18082025/14/10/image_18082025_14_10_34_9633.jpg
/home/nano/Desktop/images/18082025/14/10/image_18082025_14_10_25_10643.jpg
/home/nano/Desktop/images/18082025/14/10/image_18082025_14_10_14_9678.jpg
/home/nano/Desktop/images/18082025/14/09/image_18082025_14_10_05_9652.jpg
/home/nano/Desktop/images/18082025/14/09/image_18082025_14_09_55_10642.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377702854","1377702866","1377702851","1377702856","1377702861","1377702870"],"photo_ids_order":["1377702851","1377702854","1377702856","1377702861","1377702866","1377702870"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e8b294a3a35060bea71593c83cdd8bda.jpg","text":"TemporaryFile(/tmp/multipartBody2550536877258302525asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519094105,"filename":"image_18082025_14_10_34_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5b20a33611b0a8beb8320abeb42e59cf.jpg","text":"TemporaryFile(/tmp/multipartBody3495112498059801463asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519094105,"filename":"image_18082025_14_10_05_9652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/92921075b64a3be10ea609476b048a51.jpg","text":"TemporaryFile(/tmp/multipartBody5771872335883332673asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519094105,"filename":"image_18082025_14_10_44_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4397de902ce8ea6f865987a89d7e111e.jpg","text":"TemporaryFile(/tmp/multipartBody3335030147539599701asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519094105,"filename":"image_18082025_14_10_25_10643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/110af0f58a1ee41fd77cbcf3f99375ea.jpg","text":"TemporaryFile(/tmp/multipartBody1173375178777797119asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519094105,"filename":"image_18082025_14_10_14_9678.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f75bc7d49583030f3814b1484804bc29.jpg","text":"TemporaryFile(/tmp/multipartBody6812644170703667358asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519094105,"filename":"image_18082025_14_09_55_10642.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377702856","file1":"1377702854","file0":"1377702851","file4":"1377702866","file5":"1377702870","file3":"1377702861"},"map_files_photo_id_array":[{"photo_id":"1377702870","filename":"file5"},{"photo_id":"1377702856","filename":"file2"},{"photo_id":"1377702866","filename":"file4"},{"photo_id":"1377702854","filename":"file1"},{"photo_id":"1377702851","filename":"file0"},{"photo_id":"1377702861","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377702854":["hashtag1","hashtag2"]},{"1377702866":["hashtag1","hashtag2"]},{"1377702851":["hashtag1","hashtag2"]},{"1377702856":["hashtag1","hashtag2"]},{"1377702861":["hashtag1","hashtag2"]},{"1377702870":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377702854, 1377702866, 1377702851, 1377702856, 1377702861, 1377702870)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.68212914466858 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:11:17.642532
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/11/image_18082025_14_11_45_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/14/11/image_18082025_14_11_34_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/14/11/image_18082025_14_11_25_10643.jpg', 2), ('/home/nano/Desktop/images/18082025/14/11/image_18082025_14_11_14_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/14/10/image_18082025_14_11_04_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/14/10/image_18082025_14_10_55_10645.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/11/image_18082025_14_11_45_10645.jpg', '/home/nano/Desktop/images/18082025/14/11/image_18082025_14_11_34_9631.jpg', '/home/nano/Desktop/images/18082025/14/11/image_18082025_14_11_25_10643.jpg', '/home/nano/Desktop/images/18082025/14/11/image_18082025_14_11_14_9659.jpg', '/home/nano/Desktop/images/18082025/14/10/image_18082025_14_11_04_9654.jpg', '/home/nano/Desktop/images/18082025/14/10/image_18082025_14_10_55_10645.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/11/image_18082025_14_11_45_10645.jpg
/home/nano/Desktop/images/18082025/14/11/image_18082025_14_11_34_9631.jpg
/home/nano/Desktop/images/18082025/14/11/image_18082025_14_11_25_10643.jpg
/home/nano/Desktop/images/18082025/14/11/image_18082025_14_11_14_9659.jpg
/home/nano/Desktop/images/18082025/14/10/image_18082025_14_11_04_9654.jpg
/home/nano/Desktop/images/18082025/14/10/image_18082025_14_10_55_10645.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377702898","1377702892","1377702895","1377702888","1377702885","1377702900"],"photo_ids_order":["1377702885","1377702888","1377702892","1377702895","1377702898","1377702900"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/95ed7c89d90fec37308a9dd731b0c4fa.jpg","text":"TemporaryFile(/tmp/multipartBody3360824881687603473asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519138833,"filename":"image_18082025_14_11_04_9654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2097c977cc1ae9cbedc4fb76a68a5b87.jpg","text":"TemporaryFile(/tmp/multipartBody7353077962936354891asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519138833,"filename":"image_18082025_14_11_25_10643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b0c7381f69f3fac7846d455e341f5ff5.jpg","text":"TemporaryFile(/tmp/multipartBody3964271428276639774asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519138833,"filename":"image_18082025_14_11_14_9659.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7f5c37e5cc993c5b456d6d2f027ccb04.jpg","text":"TemporaryFile(/tmp/multipartBody9065168663295547756asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519138833,"filename":"image_18082025_14_11_34_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c7396bfad7821af99b5d87e321d26371.jpg","text":"TemporaryFile(/tmp/multipartBody3797774556610592490asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519138833,"filename":"image_18082025_14_11_45_10645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6076fd2922468153eb5b318fdb1fbbae.jpg","text":"TemporaryFile(/tmp/multipartBody2050975606748115482asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519138833,"filename":"image_18082025_14_10_55_10645.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377702892","file1":"1377702888","file0":"1377702885","file4":"1377702898","file5":"1377702900","file3":"1377702895"},"map_files_photo_id_array":[{"photo_id":"1377702900","filename":"file5"},{"photo_id":"1377702892","filename":"file2"},{"photo_id":"1377702898","filename":"file4"},{"photo_id":"1377702888","filename":"file1"},{"photo_id":"1377702885","filename":"file0"},{"photo_id":"1377702895","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377702898":["hashtag1","hashtag2"]},{"1377702892":["hashtag1","hashtag2"]},{"1377702895":["hashtag1","hashtag2"]},{"1377702888":["hashtag1","hashtag2"]},{"1377702885":["hashtag1","hashtag2"]},{"1377702900":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377702898, 1377702892, 1377702895, 1377702888, 1377702885, 1377702900)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.490510940551758 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:12:03.379384
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/10/image_18082025_11_10_45_9666.jpg', 2), ('/home/nano/Desktop/images/18082025/11/10/image_18082025_11_10_35_10693.jpg', 2), ('/home/nano/Desktop/images/18082025/11/10/image_18082025_11_10_24_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/11/10/image_18082025_11_10_15_9670.jpg', 2), ('/home/nano/Desktop/images/18082025/11/09/image_18082025_11_10_05_10697.jpg', 2), ('/home/nano/Desktop/images/18082025/11/09/image_18082025_11_09_54_9656.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/10/image_18082025_11_10_45_9666.jpg', '/home/nano/Desktop/images/18082025/11/10/image_18082025_11_10_35_10693.jpg', '/home/nano/Desktop/images/18082025/11/10/image_18082025_11_10_24_9646.jpg', '/home/nano/Desktop/images/18082025/11/10/image_18082025_11_10_15_9670.jpg', '/home/nano/Desktop/images/18082025/11/09/image_18082025_11_10_05_10697.jpg', '/home/nano/Desktop/images/18082025/11/09/image_18082025_11_09_54_9656.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/10/image_18082025_11_10_45_9666.jpg
/home/nano/Desktop/images/18082025/11/10/image_18082025_11_10_35_10693.jpg
/home/nano/Desktop/images/18082025/11/10/image_18082025_11_10_24_9646.jpg
/home/nano/Desktop/images/18082025/11/10/image_18082025_11_10_15_9670.jpg
/home/nano/Desktop/images/18082025/11/09/image_18082025_11_10_05_10697.jpg
/home/nano/Desktop/images/18082025/11/09/image_18082025_11_09_54_9656.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377702916","1377702925","1377702919","1377702913","1377702921","1377702909"],"photo_ids_order":["1377702909","1377702913","1377702916","1377702919","1377702921","1377702925"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1f65e6ef6366d74d181ff1188ad0b78d.jpg","text":"TemporaryFile(/tmp/multipartBody6462073859740838295asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519184766,"filename":"image_18082025_11_10_24_9646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/17255af9cf0dae14d9bc2140e73b7884.jpg","text":"TemporaryFile(/tmp/multipartBody7010475984749659672asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519184766,"filename":"image_18082025_11_09_54_9656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0370719c02e7ea8d577e8814df0c54b7.jpg","text":"TemporaryFile(/tmp/multipartBody807944310226155375asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519184766,"filename":"image_18082025_11_10_15_9670.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/484e425291df490d426129ea6e416eb5.jpg","text":"TemporaryFile(/tmp/multipartBody724978978833266103asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519184766,"filename":"image_18082025_11_10_35_10693.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8aa74ddefd0ecdff6ab41c9c48617d3d.jpg","text":"TemporaryFile(/tmp/multipartBody2476529700807427asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519184766,"filename":"image_18082025_11_10_05_10697.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0e944893746d8cbdfe5ff6d63c9326e2.jpg","text":"TemporaryFile(/tmp/multipartBody192945645183204865asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519184766,"filename":"image_18082025_11_10_45_9666.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377702916","file1":"1377702913","file0":"1377702909","file4":"1377702921","file5":"1377702925","file3":"1377702919"},"map_files_photo_id_array":[{"photo_id":"1377702925","filename":"file5"},{"photo_id":"1377702916","filename":"file2"},{"photo_id":"1377702921","filename":"file4"},{"photo_id":"1377702913","filename":"file1"},{"photo_id":"1377702909","filename":"file0"},{"photo_id":"1377702919","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377702916":["hashtag1","hashtag2"]},{"1377702925":["hashtag1","hashtag2"]},{"1377702919":["hashtag1","hashtag2"]},{"1377702913":["hashtag1","hashtag2"]},{"1377702921":["hashtag1","hashtag2"]},{"1377702909":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377702916, 1377702925, 1377702919, 1377702913, 1377702921, 1377702909)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.1194167137146 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:12:47.800367
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/12/image_18082025_14_12_45_10643.jpg', 2), ('/home/nano/Desktop/images/18082025/14/12/image_18082025_14_12_34_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/14/12/image_18082025_14_12_25_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/14/12/image_18082025_14_12_15_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/14/11/image_18082025_14_12_04_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/14/11/image_18082025_14_11_55_9636.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/12/image_18082025_14_12_45_10643.jpg', '/home/nano/Desktop/images/18082025/14/12/image_18082025_14_12_34_9650.jpg', '/home/nano/Desktop/images/18082025/14/12/image_18082025_14_12_25_9636.jpg', '/home/nano/Desktop/images/18082025/14/12/image_18082025_14_12_15_10661.jpg', '/home/nano/Desktop/images/18082025/14/11/image_18082025_14_12_04_9659.jpg', '/home/nano/Desktop/images/18082025/14/11/image_18082025_14_11_55_9636.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/12/image_18082025_14_12_45_10643.jpg
/home/nano/Desktop/images/18082025/14/12/image_18082025_14_12_34_9650.jpg
/home/nano/Desktop/images/18082025/14/12/image_18082025_14_12_25_9636.jpg
/home/nano/Desktop/images/18082025/14/12/image_18082025_14_12_15_10661.jpg
/home/nano/Desktop/images/18082025/14/11/image_18082025_14_12_04_9659.jpg
/home/nano/Desktop/images/18082025/14/11/image_18082025_14_11_55_9636.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377702941","1377702938","1377702947","1377702934","1377702945","1377702936"],"photo_ids_order":["1377702934","1377702936","1377702938","1377702941","1377702945","1377702947"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9b882f4aada761aaa8784d6e39097cf5.jpg","text":"TemporaryFile(/tmp/multipartBody3661794623260245056asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519229050,"filename":"image_18082025_14_12_15_10661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d3618a6820ab1f6a93dc0c3baf00c5aa.jpg","text":"TemporaryFile(/tmp/multipartBody6105290946681879280asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519229050,"filename":"image_18082025_14_12_25_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/550e10b248c6416a9daa7cb26616c166.jpg","text":"TemporaryFile(/tmp/multipartBody1400012961312442349asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519229050,"filename":"image_18082025_14_11_55_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/76c00b203d77c2bb4a89f906539848d5.jpg","text":"TemporaryFile(/tmp/multipartBody4751999953026293656asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519229050,"filename":"image_18082025_14_12_45_10643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/80bae5ccde765dd3d69cd4519ff65872.jpg","text":"TemporaryFile(/tmp/multipartBody8009382409469710380asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519229050,"filename":"image_18082025_14_12_04_9659.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/860cd151a400b375f8c789c905530471.jpg","text":"TemporaryFile(/tmp/multipartBody2006016987825664274asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519229050,"filename":"image_18082025_14_12_34_9650.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377702938","file1":"1377702936","file0":"1377702934","file4":"1377702945","file5":"1377702947","file3":"1377702941"},"map_files_photo_id_array":[{"photo_id":"1377702947","filename":"file5"},{"photo_id":"1377702938","filename":"file2"},{"photo_id":"1377702945","filename":"file4"},{"photo_id":"1377702936","filename":"file1"},{"photo_id":"1377702934","filename":"file0"},{"photo_id":"1377702941","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377702941":["hashtag1","hashtag2"]},{"1377702938":["hashtag1","hashtag2"]},{"1377702947":["hashtag1","hashtag2"]},{"1377702934":["hashtag1","hashtag2"]},{"1377702945":["hashtag1","hashtag2"]},{"1377702936":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377702941, 1377702938, 1377702947, 1377702934, 1377702945, 1377702936)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.873902559280396 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:13:31.885271
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/13/image_18082025_14_13_45_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/14/13/image_18082025_14_13_34_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/14/13/image_18082025_14_13_24_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/14/13/image_18082025_14_13_15_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/14/12/image_18082025_14_13_04_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/14/12/image_18082025_14_12_55_9633.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/13/image_18082025_14_13_45_10647.jpg', '/home/nano/Desktop/images/18082025/14/13/image_18082025_14_13_34_9634.jpg', '/home/nano/Desktop/images/18082025/14/13/image_18082025_14_13_24_9636.jpg', '/home/nano/Desktop/images/18082025/14/13/image_18082025_14_13_15_10667.jpg', '/home/nano/Desktop/images/18082025/14/12/image_18082025_14_13_04_9644.jpg', '/home/nano/Desktop/images/18082025/14/12/image_18082025_14_12_55_9633.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/13/image_18082025_14_13_45_10647.jpg
/home/nano/Desktop/images/18082025/14/13/image_18082025_14_13_34_9634.jpg
/home/nano/Desktop/images/18082025/14/13/image_18082025_14_13_24_9636.jpg
/home/nano/Desktop/images/18082025/14/13/image_18082025_14_13_15_10667.jpg
/home/nano/Desktop/images/18082025/14/12/image_18082025_14_13_04_9644.jpg
/home/nano/Desktop/images/18082025/14/12/image_18082025_14_12_55_9633.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377702959","1377702979","1377702970","1377702975","1377702963","1377702966"],"photo_ids_order":["1377702959","1377702963","1377702966","1377702970","1377702975","1377702979"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a5575e559418c031199ae74fe7ec1b96.jpg","text":"TemporaryFile(/tmp/multipartBody4799950048542292039asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519273193,"filename":"image_18082025_14_13_45_10647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/eb97641683cef760de86e02ed8dfb5de.jpg","text":"TemporaryFile(/tmp/multipartBody694192619070927531asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519273193,"filename":"image_18082025_14_12_55_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/30b175c7090a2366c3f9ae95540a5afc.jpg","text":"TemporaryFile(/tmp/multipartBody1762592536228080106asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519273193,"filename":"image_18082025_14_13_15_10667.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ebce8e78692ec2558b6472865e582a7e.jpg","text":"TemporaryFile(/tmp/multipartBody5278004470146020301asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519273193,"filename":"image_18082025_14_13_04_9644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/066cdfacd4dd44e714043ed6f59575c6.jpg","text":"TemporaryFile(/tmp/multipartBody714587253438726907asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519273193,"filename":"image_18082025_14_13_34_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d54bac1195b655ed830b20a2248fb43f.jpg","text":"TemporaryFile(/tmp/multipartBody2088199196098586357asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519273193,"filename":"image_18082025_14_13_24_9636.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377702966","file1":"1377702963","file0":"1377702959","file4":"1377702975","file5":"1377702979","file3":"1377702970"},"map_files_photo_id_array":[{"photo_id":"1377702979","filename":"file5"},{"photo_id":"1377702966","filename":"file2"},{"photo_id":"1377702975","filename":"file4"},{"photo_id":"1377702963","filename":"file1"},{"photo_id":"1377702959","filename":"file0"},{"photo_id":"1377702970","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377702959":["hashtag1","hashtag2"]},{"1377702979":["hashtag1","hashtag2"]},{"1377702970":["hashtag1","hashtag2"]},{"1377702975":["hashtag1","hashtag2"]},{"1377702963":["hashtag1","hashtag2"]},{"1377702966":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377702959, 1377702979, 1377702970, 1377702975, 1377702963, 1377702966)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.008585929870605 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:14:17.087995
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/14/image_18082025_14_14_45_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/14/14/image_18082025_14_14_35_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/14/14/image_18082025_14_14_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/14/14/image_18082025_14_14_15_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/14/13/image_18082025_14_14_05_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/14/13/image_18082025_14_13_54_9633.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/14/image_18082025_14_14_45_9633.jpg', '/home/nano/Desktop/images/18082025/14/14/image_18082025_14_14_35_10646.jpg', '/home/nano/Desktop/images/18082025/14/14/image_18082025_14_14_24_9640.jpg', '/home/nano/Desktop/images/18082025/14/14/image_18082025_14_14_15_9644.jpg', '/home/nano/Desktop/images/18082025/14/13/image_18082025_14_14_05_10666.jpg', '/home/nano/Desktop/images/18082025/14/13/image_18082025_14_13_54_9633.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/14/image_18082025_14_14_45_9633.jpg
/home/nano/Desktop/images/18082025/14/14/image_18082025_14_14_35_10646.jpg
/home/nano/Desktop/images/18082025/14/14/image_18082025_14_14_24_9640.jpg
/home/nano/Desktop/images/18082025/14/14/image_18082025_14_14_15_9644.jpg
/home/nano/Desktop/images/18082025/14/13/image_18082025_14_14_05_10666.jpg
/home/nano/Desktop/images/18082025/14/13/image_18082025_14_13_54_9633.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377702995","1377703000","1377702993","1377703005","1377703002","1377702998"],"photo_ids_order":["1377702993","1377702995","1377702998","1377703000","1377703002","1377703005"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/925b7c879e80bc8cf56756b64c3dbe7f.jpg","text":"TemporaryFile(/tmp/multipartBody8803858034369461613asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519318510,"filename":"image_18082025_14_14_35_10646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5bd20be72b41f1ceb0462011ab4af26f.jpg","text":"TemporaryFile(/tmp/multipartBody6059029539222917789asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519318510,"filename":"image_18082025_14_14_15_9644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c5629ca4e66ac810608c7f50173f9915.jpg","text":"TemporaryFile(/tmp/multipartBody8055472265206026758asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519318510,"filename":"image_18082025_14_14_45_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2417661bc7a783432a2fd8809c81fe27.jpg","text":"TemporaryFile(/tmp/multipartBody987527496109631463asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519318510,"filename":"image_18082025_14_13_54_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/38d3da894a3802683ba410cba1b9eecc.jpg","text":"TemporaryFile(/tmp/multipartBody8451894910819754008asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519318510,"filename":"image_18082025_14_14_05_10666.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/40cf4c9ab614d8795e684908761e5df1.jpg","text":"TemporaryFile(/tmp/multipartBody3793330357566822608asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519318510,"filename":"image_18082025_14_14_24_9640.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377702998","file1":"1377702995","file0":"1377702993","file4":"1377703002","file5":"1377703005","file3":"1377703000"},"map_files_photo_id_array":[{"photo_id":"1377703005","filename":"file5"},{"photo_id":"1377702998","filename":"file2"},{"photo_id":"1377703002","filename":"file4"},{"photo_id":"1377702995","filename":"file1"},{"photo_id":"1377702993","filename":"file0"},{"photo_id":"1377703000","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377702995":["hashtag1","hashtag2"]},{"1377703000":["hashtag1","hashtag2"]},{"1377702993":["hashtag1","hashtag2"]},{"1377703005":["hashtag1","hashtag2"]},{"1377703002":["hashtag1","hashtag2"]},{"1377702998":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377702995, 1377703000, 1377702993, 1377703005, 1377703002, 1377702998)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.45514369010925 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:15:02.942996
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/09/image_18082025_11_09_44_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/11/09/image_18082025_11_09_35_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/11/09/image_18082025_11_09_24_9670.jpg', 2), ('/home/nano/Desktop/images/18082025/11/09/image_18082025_11_09_15_9697.jpg', 2), ('/home/nano/Desktop/images/18082025/11/08/image_18082025_11_09_05_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/11/08/image_18082025_11_08_54_9674.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/09/image_18082025_11_09_44_9656.jpg', '/home/nano/Desktop/images/18082025/11/09/image_18082025_11_09_35_10639.jpg', '/home/nano/Desktop/images/18082025/11/09/image_18082025_11_09_24_9670.jpg', '/home/nano/Desktop/images/18082025/11/09/image_18082025_11_09_15_9697.jpg', '/home/nano/Desktop/images/18082025/11/08/image_18082025_11_09_05_10655.jpg', '/home/nano/Desktop/images/18082025/11/08/image_18082025_11_08_54_9674.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/09/image_18082025_11_09_44_9656.jpg
/home/nano/Desktop/images/18082025/11/09/image_18082025_11_09_35_10639.jpg
/home/nano/Desktop/images/18082025/11/09/image_18082025_11_09_24_9670.jpg
/home/nano/Desktop/images/18082025/11/09/image_18082025_11_09_15_9697.jpg
/home/nano/Desktop/images/18082025/11/08/image_18082025_11_09_05_10655.jpg
/home/nano/Desktop/images/18082025/11/08/image_18082025_11_08_54_9674.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377703031","1377703025","1377703028","1377703036","1377703021","1377703017"],"photo_ids_order":["1377703017","1377703021","1377703025","1377703028","1377703031","1377703036"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ed90dad42551d99e6512cccb2a111adc.jpg","text":"TemporaryFile(/tmp/multipartBody2663030423570887993asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519364140,"filename":"image_18082025_11_09_05_10655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/38bec7dc1647988ea6b2d7dbcdcf5c1d.jpg","text":"TemporaryFile(/tmp/multipartBody275908489827437935asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519364140,"filename":"image_18082025_11_09_24_9670.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/90c26ae8dce5854ee9573b46909baac5.jpg","text":"TemporaryFile(/tmp/multipartBody6139979211979608950asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519364140,"filename":"image_18082025_11_09_15_9697.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fafd21a427d27847e3b7755583fe58c0.jpg","text":"TemporaryFile(/tmp/multipartBody6703514992274097358asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519364140,"filename":"image_18082025_11_08_54_9674.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3240ea039f5193b64ffb58a87472e101.jpg","text":"TemporaryFile(/tmp/multipartBody6690268362181122373asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519364140,"filename":"image_18082025_11_09_35_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a45b60f63f1147418dce30a897483a06.jpg","text":"TemporaryFile(/tmp/multipartBody249463396756514651asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519364140,"filename":"image_18082025_11_09_44_9656.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377703025","file1":"1377703021","file0":"1377703017","file4":"1377703031","file5":"1377703036","file3":"1377703028"},"map_files_photo_id_array":[{"photo_id":"1377703036","filename":"file5"},{"photo_id":"1377703025","filename":"file2"},{"photo_id":"1377703031","filename":"file4"},{"photo_id":"1377703021","filename":"file1"},{"photo_id":"1377703017","filename":"file0"},{"photo_id":"1377703028","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377703031":["hashtag1","hashtag2"]},{"1377703025":["hashtag1","hashtag2"]},{"1377703028":["hashtag1","hashtag2"]},{"1377703036":["hashtag1","hashtag2"]},{"1377703021":["hashtag1","hashtag2"]},{"1377703017":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377703031, 1377703025, 1377703028, 1377703036, 1377703021, 1377703017)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.628210067749023 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:15:47.158319
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/15/image_18082025_14_15_45_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/14/15/image_18082025_14_15_35_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/14/15/image_18082025_14_15_24_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/14/15/image_18082025_14_15_15_9696.jpg', 2), ('/home/nano/Desktop/images/18082025/14/14/image_18082025_14_15_05_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/14/14/image_18082025_14_14_54_9635.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/15/image_18082025_14_15_45_9634.jpg', '/home/nano/Desktop/images/18082025/14/15/image_18082025_14_15_35_10644.jpg', '/home/nano/Desktop/images/18082025/14/15/image_18082025_14_15_24_9637.jpg', '/home/nano/Desktop/images/18082025/14/15/image_18082025_14_15_15_9696.jpg', '/home/nano/Desktop/images/18082025/14/14/image_18082025_14_15_05_10652.jpg', '/home/nano/Desktop/images/18082025/14/14/image_18082025_14_14_54_9635.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/15/image_18082025_14_15_45_9634.jpg
/home/nano/Desktop/images/18082025/14/15/image_18082025_14_15_35_10644.jpg
/home/nano/Desktop/images/18082025/14/15/image_18082025_14_15_24_9637.jpg
/home/nano/Desktop/images/18082025/14/15/image_18082025_14_15_15_9696.jpg
/home/nano/Desktop/images/18082025/14/14/image_18082025_14_15_05_10652.jpg
/home/nano/Desktop/images/18082025/14/14/image_18082025_14_14_54_9635.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377703048","1377703050","1377703053","1377703047","1377703055","1377703049"],"photo_ids_order":["1377703047","1377703048","1377703049","1377703050","1377703053","1377703055"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/17e91211b489ea08be83e2f2bee5ced0.jpg","text":"TemporaryFile(/tmp/multipartBody5793598176496291304asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519408685,"filename":"image_18082025_14_15_35_10644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/946be3caec3089e6ce431182b6ef04cb.jpg","text":"TemporaryFile(/tmp/multipartBody5155416833772486543asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519408685,"filename":"image_18082025_14_15_15_9696.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2014974f1884a50ea19b2c82eefde46a.jpg","text":"TemporaryFile(/tmp/multipartBody3901887421973987481asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519408685,"filename":"image_18082025_14_15_05_10652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ebc32a3b27a75942a1960eae14e78e73.jpg","text":"TemporaryFile(/tmp/multipartBody8098979360122182162asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519408685,"filename":"image_18082025_14_15_45_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8dbca285d3ae2fb7232c59c112bb3515.jpg","text":"TemporaryFile(/tmp/multipartBody2475660702233885963asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519408685,"filename":"image_18082025_14_14_54_9635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/535ca0e9d600e6dad29f623acdaa0a78.jpg","text":"TemporaryFile(/tmp/multipartBody7242200656799472460asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519408685,"filename":"image_18082025_14_15_24_9637.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377703049","file1":"1377703048","file0":"1377703047","file4":"1377703053","file5":"1377703055","file3":"1377703050"},"map_files_photo_id_array":[{"photo_id":"1377703055","filename":"file5"},{"photo_id":"1377703049","filename":"file2"},{"photo_id":"1377703053","filename":"file4"},{"photo_id":"1377703048","filename":"file1"},{"photo_id":"1377703047","filename":"file0"},{"photo_id":"1377703050","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377703048":["hashtag1","hashtag2"]},{"1377703050":["hashtag1","hashtag2"]},{"1377703053":["hashtag1","hashtag2"]},{"1377703047":["hashtag1","hashtag2"]},{"1377703055":["hashtag1","hashtag2"]},{"1377703049":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377703048, 1377703050, 1377703053, 1377703047, 1377703055, 1377703049)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.972864627838135 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:16:32.315377
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/16/image_18082025_14_16_44_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/14/16/image_18082025_14_16_35_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/14/16/image_18082025_14_16_24_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/14/16/image_18082025_14_16_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/14/15/image_18082025_14_16_05_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/14/15/image_18082025_14_15_54_9638.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/16/image_18082025_14_16_44_9631.jpg', '/home/nano/Desktop/images/18082025/14/16/image_18082025_14_16_35_10661.jpg', '/home/nano/Desktop/images/18082025/14/16/image_18082025_14_16_24_9637.jpg', '/home/nano/Desktop/images/18082025/14/16/image_18082025_14_16_14_9663.jpg', '/home/nano/Desktop/images/18082025/14/15/image_18082025_14_16_05_10661.jpg', '/home/nano/Desktop/images/18082025/14/15/image_18082025_14_15_54_9638.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/16/image_18082025_14_16_44_9631.jpg
/home/nano/Desktop/images/18082025/14/16/image_18082025_14_16_35_10661.jpg
/home/nano/Desktop/images/18082025/14/16/image_18082025_14_16_24_9637.jpg
/home/nano/Desktop/images/18082025/14/16/image_18082025_14_16_14_9663.jpg
/home/nano/Desktop/images/18082025/14/15/image_18082025_14_16_05_10661.jpg
/home/nano/Desktop/images/18082025/14/15/image_18082025_14_15_54_9638.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377703081","1377703078","1377703072","1377703074","1377703070","1377703076"],"photo_ids_order":["1377703070","1377703072","1377703074","1377703076","1377703078","1377703081"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/134f5bc74ca722e189290a6ec0cf6100.jpg","text":"TemporaryFile(/tmp/multipartBody4560800940885150840asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519453809,"filename":"image_18082025_14_15_54_9638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1154a70988e52c12343d3b6a0c92894d.jpg","text":"TemporaryFile(/tmp/multipartBody1658605474798843031asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519453809,"filename":"image_18082025_14_16_05_10661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/471d24a4dc7a925d864f9bdb6d13711a.jpg","text":"TemporaryFile(/tmp/multipartBody7631733683339641572asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519453809,"filename":"image_18082025_14_16_35_10661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/634ae44ef6be4a87dad647c7da7aa0a3.jpg","text":"TemporaryFile(/tmp/multipartBody4871235600060876266asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519453809,"filename":"image_18082025_14_16_24_9637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/778bb93b16fe209b9c8ea1e046f2f457.jpg","text":"TemporaryFile(/tmp/multipartBody3988810192987385250asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519453809,"filename":"image_18082025_14_16_44_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/82dfe86bd833ba1ce208e9957233136d.jpg","text":"TemporaryFile(/tmp/multipartBody3609904058155966537asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519453809,"filename":"image_18082025_14_16_14_9663.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377703074","file1":"1377703072","file0":"1377703070","file4":"1377703078","file5":"1377703081","file3":"1377703076"},"map_files_photo_id_array":[{"photo_id":"1377703081","filename":"file5"},{"photo_id":"1377703074","filename":"file2"},{"photo_id":"1377703078","filename":"file4"},{"photo_id":"1377703072","filename":"file1"},{"photo_id":"1377703070","filename":"file0"},{"photo_id":"1377703076","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377703081":["hashtag1","hashtag2"]},{"1377703078":["hashtag1","hashtag2"]},{"1377703072":["hashtag1","hashtag2"]},{"1377703074":["hashtag1","hashtag2"]},{"1377703070":["hashtag1","hashtag2"]},{"1377703076":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377703081, 1377703078, 1377703072, 1377703074, 1377703070, 1377703076)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.690705060958862 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:17:17.393495
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/17/image_18082025_14_17_44_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/14/17/image_18082025_14_17_35_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/14/17/image_18082025_14_17_25_10664.jpg', 2), ('/home/nano/Desktop/images/18082025/14/17/image_18082025_14_17_14_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/14/16/image_18082025_14_17_05_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/14/16/image_18082025_14_16_55_10649.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/17/image_18082025_14_17_44_9633.jpg', '/home/nano/Desktop/images/18082025/14/17/image_18082025_14_17_35_9638.jpg', '/home/nano/Desktop/images/18082025/14/17/image_18082025_14_17_25_10664.jpg', '/home/nano/Desktop/images/18082025/14/17/image_18082025_14_17_14_9659.jpg', '/home/nano/Desktop/images/18082025/14/16/image_18082025_14_17_05_9639.jpg', '/home/nano/Desktop/images/18082025/14/16/image_18082025_14_16_55_10649.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/17/image_18082025_14_17_44_9633.jpg
/home/nano/Desktop/images/18082025/14/17/image_18082025_14_17_35_9638.jpg
/home/nano/Desktop/images/18082025/14/17/image_18082025_14_17_25_10664.jpg
/home/nano/Desktop/images/18082025/14/17/image_18082025_14_17_14_9659.jpg
/home/nano/Desktop/images/18082025/14/16/image_18082025_14_17_05_9639.jpg
/home/nano/Desktop/images/18082025/14/16/image_18082025_14_16_55_10649.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377703099","1377703108","1377703102","1377703111","1377703105","1377703097"],"photo_ids_order":["1377703097","1377703099","1377703102","1377703105","1377703108","1377703111"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fdf0264a0ef521ad5f4bf89f93d38124.jpg","text":"TemporaryFile(/tmp/multipartBody1695227887447962605asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519498557,"filename":"image_18082025_14_17_35_9638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a2e9036610dd845416cb3a6ce601880f.jpg","text":"TemporaryFile(/tmp/multipartBody1779136381896679514asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519498557,"filename":"image_18082025_14_17_05_9639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dc000682ccaa973f39a462beadefbf27.jpg","text":"TemporaryFile(/tmp/multipartBody6184009407567884539asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519498557,"filename":"image_18082025_14_17_25_10664.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c62228c52fb2f8cf1af1d143a6ec84bb.jpg","text":"TemporaryFile(/tmp/multipartBody4201195177475084828asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519498557,"filename":"image_18082025_14_16_55_10649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2bd44528d58b8aa5730dab88373a698e.jpg","text":"TemporaryFile(/tmp/multipartBody4627822751628997817asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519498557,"filename":"image_18082025_14_17_14_9659.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/72479085d80a2813f06c6b3dc2262fcc.jpg","text":"TemporaryFile(/tmp/multipartBody3010243261240365293asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519498557,"filename":"image_18082025_14_17_44_9633.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377703102","file1":"1377703099","file0":"1377703097","file4":"1377703108","file5":"1377703111","file3":"1377703105"},"map_files_photo_id_array":[{"photo_id":"1377703111","filename":"file5"},{"photo_id":"1377703102","filename":"file2"},{"photo_id":"1377703108","filename":"file4"},{"photo_id":"1377703099","filename":"file1"},{"photo_id":"1377703097","filename":"file0"},{"photo_id":"1377703105","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377703099":["hashtag1","hashtag2"]},{"1377703108":["hashtag1","hashtag2"]},{"1377703102":["hashtag1","hashtag2"]},{"1377703111":["hashtag1","hashtag2"]},{"1377703105":["hashtag1","hashtag2"]},{"1377703097":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377703099, 1377703108, 1377703102, 1377703111, 1377703105, 1377703097)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.393457651138306 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:18:03.105353
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/08/image_18082025_11_08_45_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/11/08/image_18082025_11_08_35_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/11/08/image_18082025_11_08_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/11/08/image_18082025_11_08_15_9680.jpg', 2), ('/home/nano/Desktop/images/18082025/11/07/image_18082025_11_08_05_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/11/07/image_18082025_11_07_54_9633.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/08/image_18082025_11_08_45_9661.jpg', '/home/nano/Desktop/images/18082025/11/08/image_18082025_11_08_35_10652.jpg', '/home/nano/Desktop/images/18082025/11/08/image_18082025_11_08_24_9638.jpg', '/home/nano/Desktop/images/18082025/11/08/image_18082025_11_08_15_9680.jpg', '/home/nano/Desktop/images/18082025/11/07/image_18082025_11_08_05_10635.jpg', '/home/nano/Desktop/images/18082025/11/07/image_18082025_11_07_54_9633.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/08/image_18082025_11_08_45_9661.jpg
/home/nano/Desktop/images/18082025/11/08/image_18082025_11_08_35_10652.jpg
/home/nano/Desktop/images/18082025/11/08/image_18082025_11_08_24_9638.jpg
/home/nano/Desktop/images/18082025/11/08/image_18082025_11_08_15_9680.jpg
/home/nano/Desktop/images/18082025/11/07/image_18082025_11_08_05_10635.jpg
/home/nano/Desktop/images/18082025/11/07/image_18082025_11_07_54_9633.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377703136","1377703127","1377703120","1377703123","1377703140","1377703131"],"photo_ids_order":["1377703120","1377703123","1377703127","1377703131","1377703136","1377703140"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/da5785587e5dd33bbdcbe7876f1a315b.jpg","text":"TemporaryFile(/tmp/multipartBody5791245970123262192asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519544271,"filename":"image_18082025_11_08_05_10635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7819a04b54efbaa6b07f4a695976a539.jpg","text":"TemporaryFile(/tmp/multipartBody5517322960239488177asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519544271,"filename":"image_18082025_11_08_24_9638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6d8b0029419e56046f6a1072e95706d2.jpg","text":"TemporaryFile(/tmp/multipartBody3100747739308922372asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519544271,"filename":"image_18082025_11_08_45_9661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1bc7d7717fe718837b79b94577a7ddce.jpg","text":"TemporaryFile(/tmp/multipartBody656605446023057653asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519544271,"filename":"image_18082025_11_08_35_10652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/758f0f8f0b775860220dd0be474c2343.jpg","text":"TemporaryFile(/tmp/multipartBody4255992024191857195asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519544271,"filename":"image_18082025_11_07_54_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7e7810db9c52f48508ef8410be37ef90.jpg","text":"TemporaryFile(/tmp/multipartBody8786085405305535092asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519544271,"filename":"image_18082025_11_08_15_9680.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377703127","file1":"1377703123","file0":"1377703120","file4":"1377703136","file5":"1377703140","file3":"1377703131"},"map_files_photo_id_array":[{"photo_id":"1377703140","filename":"file5"},{"photo_id":"1377703127","filename":"file2"},{"photo_id":"1377703136","filename":"file4"},{"photo_id":"1377703123","filename":"file1"},{"photo_id":"1377703120","filename":"file0"},{"photo_id":"1377703131","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377703136":["hashtag1","hashtag2"]},{"1377703127":["hashtag1","hashtag2"]},{"1377703120":["hashtag1","hashtag2"]},{"1377703123":["hashtag1","hashtag2"]},{"1377703140":["hashtag1","hashtag2"]},{"1377703131":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377703136, 1377703127, 1377703120, 1377703123, 1377703140, 1377703131)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.087058782577515 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:18:47.492263
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/18/image_18082025_14_18_44_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/14/18/image_18082025_14_18_35_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/14/18/image_18082025_14_18_25_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/14/18/image_18082025_14_18_14_9677.jpg', 2), ('/home/nano/Desktop/images/18082025/14/17/image_18082025_14_18_05_9671.jpg', 2), ('/home/nano/Desktop/images/18082025/14/17/image_18082025_14_17_55_10647.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/18/image_18082025_14_18_44_9630.jpg', '/home/nano/Desktop/images/18082025/14/18/image_18082025_14_18_35_9637.jpg', '/home/nano/Desktop/images/18082025/14/18/image_18082025_14_18_25_10667.jpg', '/home/nano/Desktop/images/18082025/14/18/image_18082025_14_18_14_9677.jpg', '/home/nano/Desktop/images/18082025/14/17/image_18082025_14_18_05_9671.jpg', '/home/nano/Desktop/images/18082025/14/17/image_18082025_14_17_55_10647.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/18/image_18082025_14_18_44_9630.jpg
/home/nano/Desktop/images/18082025/14/18/image_18082025_14_18_35_9637.jpg
/home/nano/Desktop/images/18082025/14/18/image_18082025_14_18_25_10667.jpg
/home/nano/Desktop/images/18082025/14/18/image_18082025_14_18_14_9677.jpg
/home/nano/Desktop/images/18082025/14/17/image_18082025_14_18_05_9671.jpg
/home/nano/Desktop/images/18082025/14/17/image_18082025_14_17_55_10647.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377703157","1377703150","1377703147","1377703155","1377703152","1377703160"],"photo_ids_order":["1377703147","1377703150","1377703152","1377703155","1377703157","1377703160"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/abba9aa6056fd807ee35189077b19472.jpg","text":"TemporaryFile(/tmp/multipartBody2402487354547325952asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519588819,"filename":"image_18082025_14_18_05_9671.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0ce53cecd837d1965acdb8ec4d07ac78.jpg","text":"TemporaryFile(/tmp/multipartBody5244479168167420755asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519588819,"filename":"image_18082025_14_18_35_9637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ae4b1ea19ba04f524f3a180e8b5b3f0f.jpg","text":"TemporaryFile(/tmp/multipartBody3169062785689275388asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519588819,"filename":"image_18082025_14_18_44_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fa871308232a850810b1ff5e9d6e4bcf.jpg","text":"TemporaryFile(/tmp/multipartBody1205758769768788194asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519588819,"filename":"image_18082025_14_18_14_9677.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/38b11b864083d67565750958995d63a9.jpg","text":"TemporaryFile(/tmp/multipartBody1356011075799539130asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519588819,"filename":"image_18082025_14_18_25_10667.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7fefd8660315f78e2fbfab543d56aa71.jpg","text":"TemporaryFile(/tmp/multipartBody5322250750443176689asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519588819,"filename":"image_18082025_14_17_55_10647.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377703152","file1":"1377703150","file0":"1377703147","file4":"1377703157","file5":"1377703160","file3":"1377703155"},"map_files_photo_id_array":[{"photo_id":"1377703160","filename":"file5"},{"photo_id":"1377703152","filename":"file2"},{"photo_id":"1377703157","filename":"file4"},{"photo_id":"1377703150","filename":"file1"},{"photo_id":"1377703147","filename":"file0"},{"photo_id":"1377703155","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377703157":["hashtag1","hashtag2"]},{"1377703150":["hashtag1","hashtag2"]},{"1377703147":["hashtag1","hashtag2"]},{"1377703155":["hashtag1","hashtag2"]},{"1377703152":["hashtag1","hashtag2"]},{"1377703160":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377703157, 1377703150, 1377703147, 1377703155, 1377703152, 1377703160)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.489874839782715 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:19:32.578554
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/19/image_18082025_14_19_34_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/14/19/image_18082025_14_19_25_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/14/19/image_18082025_14_19_14_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/14/18/image_18082025_14_19_05_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/14/18/image_18082025_14_18_55_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/11/07/image_18082025_11_07_45_9629.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/19/image_18082025_14_19_34_9636.jpg', '/home/nano/Desktop/images/18082025/14/19/image_18082025_14_19_25_10645.jpg', '/home/nano/Desktop/images/18082025/14/19/image_18082025_14_19_14_9654.jpg', '/home/nano/Desktop/images/18082025/14/18/image_18082025_14_19_05_9640.jpg', '/home/nano/Desktop/images/18082025/14/18/image_18082025_14_18_55_10647.jpg', '/home/nano/Desktop/images/18082025/11/07/image_18082025_11_07_45_9629.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/19/image_18082025_14_19_34_9636.jpg
/home/nano/Desktop/images/18082025/14/19/image_18082025_14_19_25_10645.jpg
/home/nano/Desktop/images/18082025/14/19/image_18082025_14_19_14_9654.jpg
/home/nano/Desktop/images/18082025/14/18/image_18082025_14_19_05_9640.jpg
/home/nano/Desktop/images/18082025/14/18/image_18082025_14_18_55_10647.jpg
/home/nano/Desktop/images/18082025/11/07/image_18082025_11_07_45_9629.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377703183","1377703177","1377703185","1377703179","1377703181","1377703175"],"photo_ids_order":["1377703175","1377703177","1377703179","1377703181","1377703183","1377703185"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c75b3077a37709eac56b21e090cc101e.jpg","text":"TemporaryFile(/tmp/multipartBody401611591717347653asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519633956,"filename":"image_18082025_14_18_55_10647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/25b776bcfd440949f5dedfb2d2b82f1e.jpg","text":"TemporaryFile(/tmp/multipartBody8933815346921854705asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519633956,"filename":"image_18082025_14_19_25_10645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3e5c66a2933613a9ed98075c7f9064f2.jpg","text":"TemporaryFile(/tmp/multipartBody2359897198512997348asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519633956,"filename":"image_18082025_11_07_45_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d7399f3519b9008b1728a3851b970c34.jpg","text":"TemporaryFile(/tmp/multipartBody8369454200082576619asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519633956,"filename":"image_18082025_14_19_14_9654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/abcdfa616deca4dab5521175975ba05f.jpg","text":"TemporaryFile(/tmp/multipartBody7128782128998396437asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519633956,"filename":"image_18082025_14_19_05_9640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5a6592c5e6dbd31596e7102856fe98d5.jpg","text":"TemporaryFile(/tmp/multipartBody3500911223861798978asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519633956,"filename":"image_18082025_14_19_34_9636.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377703179","file1":"1377703177","file0":"1377703175","file4":"1377703183","file5":"1377703185","file3":"1377703181"},"map_files_photo_id_array":[{"photo_id":"1377703185","filename":"file5"},{"photo_id":"1377703179","filename":"file2"},{"photo_id":"1377703183","filename":"file4"},{"photo_id":"1377703177","filename":"file1"},{"photo_id":"1377703175","filename":"file0"},{"photo_id":"1377703181","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377703183":["hashtag1","hashtag2"]},{"1377703177":["hashtag1","hashtag2"]},{"1377703185":["hashtag1","hashtag2"]},{"1377703179":["hashtag1","hashtag2"]},{"1377703181":["hashtag1","hashtag2"]},{"1377703175":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377703183, 1377703177, 1377703185, 1377703179, 1377703181, 1377703175)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.49604392051697 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:20:17.684927
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/20/image_18082025_14_20_45_10643.jpg', 2), ('/home/nano/Desktop/images/18082025/14/20/image_18082025_14_20_34_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/14/20/image_18082025_14_20_25_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/14/20/image_18082025_14_20_15_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/14/19/image_18082025_14_20_04_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/14/19/image_18082025_14_19_55_10647.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/20/image_18082025_14_20_45_10643.jpg', '/home/nano/Desktop/images/18082025/14/20/image_18082025_14_20_34_9657.jpg', '/home/nano/Desktop/images/18082025/14/20/image_18082025_14_20_25_9654.jpg', '/home/nano/Desktop/images/18082025/14/20/image_18082025_14_20_15_10660.jpg', '/home/nano/Desktop/images/18082025/14/19/image_18082025_14_20_04_9641.jpg', '/home/nano/Desktop/images/18082025/14/19/image_18082025_14_19_55_10647.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/20/image_18082025_14_20_45_10643.jpg
/home/nano/Desktop/images/18082025/14/20/image_18082025_14_20_34_9657.jpg
/home/nano/Desktop/images/18082025/14/20/image_18082025_14_20_25_9654.jpg
/home/nano/Desktop/images/18082025/14/20/image_18082025_14_20_15_10660.jpg
/home/nano/Desktop/images/18082025/14/19/image_18082025_14_20_04_9641.jpg
/home/nano/Desktop/images/18082025/14/19/image_18082025_14_19_55_10647.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.070399522781372 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:20:32.693822
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/20/image_18082025_14_20_45_10643.jpg', 2), ('/home/nano/Desktop/images/18082025/14/20/image_18082025_14_20_34_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/14/20/image_18082025_14_20_25_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/14/20/image_18082025_14_20_15_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/14/19/image_18082025_14_20_04_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/14/19/image_18082025_14_19_55_10647.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/20/image_18082025_14_20_45_10643.jpg', '/home/nano/Desktop/images/18082025/14/20/image_18082025_14_20_34_9657.jpg', '/home/nano/Desktop/images/18082025/14/20/image_18082025_14_20_25_9654.jpg', '/home/nano/Desktop/images/18082025/14/20/image_18082025_14_20_15_10660.jpg', '/home/nano/Desktop/images/18082025/14/19/image_18082025_14_20_04_9641.jpg', '/home/nano/Desktop/images/18082025/14/19/image_18082025_14_19_55_10647.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/20/image_18082025_14_20_45_10643.jpg
/home/nano/Desktop/images/18082025/14/20/image_18082025_14_20_34_9657.jpg
/home/nano/Desktop/images/18082025/14/20/image_18082025_14_20_25_9654.jpg
/home/nano/Desktop/images/18082025/14/20/image_18082025_14_20_15_10660.jpg
/home/nano/Desktop/images/18082025/14/19/image_18082025_14_20_04_9641.jpg
/home/nano/Desktop/images/18082025/14/19/image_18082025_14_19_55_10647.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377703217","1377703219","1377703213","1377703216","1377703221","1377703209"],"photo_ids_order":["1377703209","1377703213","1377703216","1377703217","1377703219","1377703221"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7ca567cc59d0dec342c332ec0a05edfe.jpg","text":"TemporaryFile(/tmp/multipartBody339342835093138655asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519693872,"filename":"image_18082025_14_20_15_10660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c13b40aa5f60dc7e68b56afd11722c46.jpg","text":"TemporaryFile(/tmp/multipartBody4317209622477157593asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519693872,"filename":"image_18082025_14_20_04_9641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/31c60a84b00e61d68c6e1daed1d41a73.jpg","text":"TemporaryFile(/tmp/multipartBody6821121417749609029asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519693872,"filename":"image_18082025_14_20_34_9657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4c72e3f1ea9e93a19b2987e63c178310.jpg","text":"TemporaryFile(/tmp/multipartBody2896623430396874304asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519693872,"filename":"image_18082025_14_20_25_9654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8685710df4052f2ecb145d8ca8d30ede.jpg","text":"TemporaryFile(/tmp/multipartBody130099220965904167asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519693872,"filename":"image_18082025_14_19_55_10647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4f56304d3dfe9bb6914cbfd03e2b22f9.jpg","text":"TemporaryFile(/tmp/multipartBody5204787782315016689asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519693872,"filename":"image_18082025_14_20_45_10643.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377703216","file1":"1377703213","file0":"1377703209","file4":"1377703219","file5":"1377703221","file3":"1377703217"},"map_files_photo_id_array":[{"photo_id":"1377703221","filename":"file5"},{"photo_id":"1377703216","filename":"file2"},{"photo_id":"1377703219","filename":"file4"},{"photo_id":"1377703213","filename":"file1"},{"photo_id":"1377703209","filename":"file0"},{"photo_id":"1377703217","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377703217":["hashtag1","hashtag2"]},{"1377703219":["hashtag1","hashtag2"]},{"1377703213":["hashtag1","hashtag2"]},{"1377703216":["hashtag1","hashtag2"]},{"1377703221":["hashtag1","hashtag2"]},{"1377703209":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377703217, 1377703219, 1377703213, 1377703216, 1377703221, 1377703209)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.96688103675842 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:21:16.761844
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/21/image_18082025_14_21_45_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/14/21/image_18082025_14_21_34_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/14/21/image_18082025_14_21_25_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/14/21/image_18082025_14_21_15_10662.jpg', 2), ('/home/nano/Desktop/images/18082025/14/20/image_18082025_14_21_04_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/14/20/image_18082025_14_20_55_9650.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/21/image_18082025_14_21_45_10642.jpg', '/home/nano/Desktop/images/18082025/14/21/image_18082025_14_21_34_9634.jpg', '/home/nano/Desktop/images/18082025/14/21/image_18082025_14_21_25_9633.jpg', '/home/nano/Desktop/images/18082025/14/21/image_18082025_14_21_15_10662.jpg', '/home/nano/Desktop/images/18082025/14/20/image_18082025_14_21_04_9649.jpg', '/home/nano/Desktop/images/18082025/14/20/image_18082025_14_20_55_9650.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/21/image_18082025_14_21_45_10642.jpg
/home/nano/Desktop/images/18082025/14/21/image_18082025_14_21_34_9634.jpg
/home/nano/Desktop/images/18082025/14/21/image_18082025_14_21_25_9633.jpg
/home/nano/Desktop/images/18082025/14/21/image_18082025_14_21_15_10662.jpg
/home/nano/Desktop/images/18082025/14/20/image_18082025_14_21_04_9649.jpg
/home/nano/Desktop/images/18082025/14/20/image_18082025_14_20_55_9650.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377703235","1377703237","1377703246","1377703249","1377703240","1377703242"],"photo_ids_order":["1377703235","1377703237","1377703240","1377703242","1377703246","1377703249"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/821473ceaf28f0b7b403106e60bf5b93.jpg","text":"TemporaryFile(/tmp/multipartBody6582521799004723818asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519738112,"filename":"image_18082025_14_21_45_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c6f48f8e70b19f3bfc3eeff3c8625aa7.jpg","text":"TemporaryFile(/tmp/multipartBody8635412908571668039asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519738112,"filename":"image_18082025_14_21_34_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4d0421f3d1004fa6d169f8580a8ae0a0.jpg","text":"TemporaryFile(/tmp/multipartBody8724022087920906396asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519738112,"filename":"image_18082025_14_21_04_9649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f8216792e035508e70f451ccda4a8abe.jpg","text":"TemporaryFile(/tmp/multipartBody4811113479850778772asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519738112,"filename":"image_18082025_14_20_55_9650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/16b4eba06ee90a986b70ba9e35ac90a4.jpg","text":"TemporaryFile(/tmp/multipartBody2367062846533993163asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519738112,"filename":"image_18082025_14_21_25_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/033ee9a39a671d0bd3b7e42e24154309.jpg","text":"TemporaryFile(/tmp/multipartBody7211616966032520070asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519738112,"filename":"image_18082025_14_21_15_10662.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377703240","file1":"1377703237","file0":"1377703235","file4":"1377703246","file5":"1377703249","file3":"1377703242"},"map_files_photo_id_array":[{"photo_id":"1377703249","filename":"file5"},{"photo_id":"1377703240","filename":"file2"},{"photo_id":"1377703246","filename":"file4"},{"photo_id":"1377703237","filename":"file1"},{"photo_id":"1377703235","filename":"file0"},{"photo_id":"1377703242","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377703235":["hashtag1","hashtag2"]},{"1377703237":["hashtag1","hashtag2"]},{"1377703246":["hashtag1","hashtag2"]},{"1377703249":["hashtag1","hashtag2"]},{"1377703240":["hashtag1","hashtag2"]},{"1377703242":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377703235, 1377703237, 1377703246, 1377703249, 1377703240, 1377703242)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.059603452682495 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:22:02.375165
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/22/image_18082025_14_22_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/11/07/image_18082025_11_07_35_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/11/07/image_18082025_11_07_24_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/11/07/image_18082025_11_07_15_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/11/06/image_18082025_11_07_05_10744.jpg', 2), ('/home/nano/Desktop/images/18082025/11/06/image_18082025_11_06_54_9630.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/22/image_18082025_14_22_34_9638.jpg', '/home/nano/Desktop/images/18082025/11/07/image_18082025_11_07_35_10659.jpg', '/home/nano/Desktop/images/18082025/11/07/image_18082025_11_07_24_9633.jpg', '/home/nano/Desktop/images/18082025/11/07/image_18082025_11_07_15_9637.jpg', '/home/nano/Desktop/images/18082025/11/06/image_18082025_11_07_05_10744.jpg', '/home/nano/Desktop/images/18082025/11/06/image_18082025_11_06_54_9630.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/22/image_18082025_14_22_34_9638.jpg
/home/nano/Desktop/images/18082025/11/07/image_18082025_11_07_35_10659.jpg
/home/nano/Desktop/images/18082025/11/07/image_18082025_11_07_24_9633.jpg
/home/nano/Desktop/images/18082025/11/07/image_18082025_11_07_15_9637.jpg
/home/nano/Desktop/images/18082025/11/06/image_18082025_11_07_05_10744.jpg
/home/nano/Desktop/images/18082025/11/06/image_18082025_11_06_54_9630.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377703262","1377703264","1377703272","1377703281","1377703277","1377703268"],"photo_ids_order":["1377703262","1377703264","1377703268","1377703272","1377703277","1377703281"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/664d698cba1e1fdf031e3e888f98b108.jpg","text":"TemporaryFile(/tmp/multipartBody5341992960185902544asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519783719,"filename":"image_18082025_14_22_34_9638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8bff274b07f0052202798d7118af319f.jpg","text":"TemporaryFile(/tmp/multipartBody8111248931688117085asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519783719,"filename":"image_18082025_11_07_35_10659.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/17eb3e83f3ed8986a5098f8c83c61de9.jpg","text":"TemporaryFile(/tmp/multipartBody6739261805151759461asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519783719,"filename":"image_18082025_11_07_15_9637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9f0eecc5d3b021b8fa54cb107906f9ff.jpg","text":"TemporaryFile(/tmp/multipartBody3764310015234238891asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519783719,"filename":"image_18082025_11_06_54_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dd66af25b4bdcae4faf1400900b33093.jpg","text":"TemporaryFile(/tmp/multipartBody6832296693857443768asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519783719,"filename":"image_18082025_11_07_05_10744.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/460a0c49ce55823e4488d9998507c6f3.jpg","text":"TemporaryFile(/tmp/multipartBody2508818660119068388asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519783719,"filename":"image_18082025_11_07_24_9633.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377703268","file1":"1377703264","file0":"1377703262","file4":"1377703277","file5":"1377703281","file3":"1377703272"},"map_files_photo_id_array":[{"photo_id":"1377703281","filename":"file5"},{"photo_id":"1377703268","filename":"file2"},{"photo_id":"1377703277","filename":"file4"},{"photo_id":"1377703264","filename":"file1"},{"photo_id":"1377703262","filename":"file0"},{"photo_id":"1377703272","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377703262":["hashtag1","hashtag2"]},{"1377703264":["hashtag1","hashtag2"]},{"1377703272":["hashtag1","hashtag2"]},{"1377703281":["hashtag1","hashtag2"]},{"1377703277":["hashtag1","hashtag2"]},{"1377703268":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377703262, 1377703264, 1377703272, 1377703281, 1377703277, 1377703268)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.59213137626648 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:22:46.871092
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/22/image_18082025_14_22_45_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/14/22/image_18082025_14_22_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/14/22/image_18082025_14_22_15_10677.jpg', 2), ('/home/nano/Desktop/images/18082025/14/21/image_18082025_14_22_04_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/14/21/image_18082025_14_21_54_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/11/06/image_18082025_11_06_45_9634.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/22/image_18082025_14_22_45_10642.jpg', '/home/nano/Desktop/images/18082025/14/22/image_18082025_14_22_24_9640.jpg', '/home/nano/Desktop/images/18082025/14/22/image_18082025_14_22_15_10677.jpg', '/home/nano/Desktop/images/18082025/14/21/image_18082025_14_22_04_9637.jpg', '/home/nano/Desktop/images/18082025/14/21/image_18082025_14_21_54_9634.jpg', '/home/nano/Desktop/images/18082025/11/06/image_18082025_11_06_45_9634.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/22/image_18082025_14_22_45_10642.jpg
/home/nano/Desktop/images/18082025/14/22/image_18082025_14_22_24_9640.jpg
/home/nano/Desktop/images/18082025/14/22/image_18082025_14_22_15_10677.jpg
/home/nano/Desktop/images/18082025/14/21/image_18082025_14_22_04_9637.jpg
/home/nano/Desktop/images/18082025/14/21/image_18082025_14_21_54_9634.jpg
/home/nano/Desktop/images/18082025/11/06/image_18082025_11_06_45_9634.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377703291","1377703294","1377703288","1377703306","1377703302","1377703298"],"photo_ids_order":["1377703288","1377703291","1377703294","1377703298","1377703302","1377703306"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d5a4ebce6fa432c6bfc601df14300210.jpg","text":"TemporaryFile(/tmp/multipartBody886255979461436313asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519828014,"filename":"image_18082025_14_22_24_9640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/aaeb7c595212c526d2061e217fab9777.jpg","text":"TemporaryFile(/tmp/multipartBody4966001359122957220asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519828014,"filename":"image_18082025_14_22_15_10677.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/71dee3d327c395cc72a0ab3b2b13b9d1.jpg","text":"TemporaryFile(/tmp/multipartBody1059869126761382061asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519828014,"filename":"image_18082025_14_22_45_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d619b985530349707c6b99231c591e87.jpg","text":"TemporaryFile(/tmp/multipartBody4558734758241773180asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519828014,"filename":"image_18082025_11_06_45_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a3d603e277426d42a1418211e9788dbd.jpg","text":"TemporaryFile(/tmp/multipartBody577667462634209251asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519828014,"filename":"image_18082025_14_21_54_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e590e189e0a23cfe9a5fd2ec0d1c794c.jpg","text":"TemporaryFile(/tmp/multipartBody4942933539883477141asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519828014,"filename":"image_18082025_14_22_04_9637.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377703294","file1":"1377703291","file0":"1377703288","file4":"1377703302","file5":"1377703306","file3":"1377703298"},"map_files_photo_id_array":[{"photo_id":"1377703306","filename":"file5"},{"photo_id":"1377703294","filename":"file2"},{"photo_id":"1377703302","filename":"file4"},{"photo_id":"1377703291","filename":"file1"},{"photo_id":"1377703288","filename":"file0"},{"photo_id":"1377703298","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377703291":["hashtag1","hashtag2"]},{"1377703294":["hashtag1","hashtag2"]},{"1377703288":["hashtag1","hashtag2"]},{"1377703306":["hashtag1","hashtag2"]},{"1377703302":["hashtag1","hashtag2"]},{"1377703298":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377703291, 1377703294, 1377703288, 1377703306, 1377703302, 1377703298)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.721641778945923 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:23:31.970363
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/23/image_18082025_14_23_45_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/14/23/image_18082025_14_23_35_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/14/23/image_18082025_14_23_24_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/14/23/image_18082025_14_23_15_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/14/22/image_18082025_14_23_05_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/14/22/image_18082025_14_22_54_9630.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/23/image_18082025_14_23_45_9635.jpg', '/home/nano/Desktop/images/18082025/14/23/image_18082025_14_23_35_10641.jpg', '/home/nano/Desktop/images/18082025/14/23/image_18082025_14_23_24_9648.jpg', '/home/nano/Desktop/images/18082025/14/23/image_18082025_14_23_15_9637.jpg', '/home/nano/Desktop/images/18082025/14/22/image_18082025_14_23_05_10673.jpg', '/home/nano/Desktop/images/18082025/14/22/image_18082025_14_22_54_9630.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/23/image_18082025_14_23_45_9635.jpg
/home/nano/Desktop/images/18082025/14/23/image_18082025_14_23_35_10641.jpg
/home/nano/Desktop/images/18082025/14/23/image_18082025_14_23_24_9648.jpg
/home/nano/Desktop/images/18082025/14/23/image_18082025_14_23_15_9637.jpg
/home/nano/Desktop/images/18082025/14/22/image_18082025_14_23_05_10673.jpg
/home/nano/Desktop/images/18082025/14/22/image_18082025_14_22_54_9630.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377703328","1377703336","1377703330","1377703324","1377703333","1377703326"],"photo_ids_order":["1377703324","1377703326","1377703328","1377703330","1377703333","1377703336"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8897ee0dd2bda90eb4f56609f63857e8.jpg","text":"TemporaryFile(/tmp/multipartBody9050571656829309275asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519873349,"filename":"image_18082025_14_23_24_9648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ce960e3eed622f8291ee32a3b98f3499.jpg","text":"TemporaryFile(/tmp/multipartBody4832555502952058717asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519873349,"filename":"image_18082025_14_22_54_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a6297d1fd1e8ce7a5a06500baa222c26.jpg","text":"TemporaryFile(/tmp/multipartBody1188309314622962882asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519873349,"filename":"image_18082025_14_23_15_9637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f13b231c631daa7973680991220d194f.jpg","text":"TemporaryFile(/tmp/multipartBody5448706470055899218asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519873349,"filename":"image_18082025_14_23_45_9635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bf6111d171f6dbdc9d06fd93e2789e65.jpg","text":"TemporaryFile(/tmp/multipartBody8395933367352633883asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519873349,"filename":"image_18082025_14_23_05_10673.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/de0719ef55671eb0547dd374ac37baa2.jpg","text":"TemporaryFile(/tmp/multipartBody5800671071050252566asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519873349,"filename":"image_18082025_14_23_35_10641.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377703328","file1":"1377703326","file0":"1377703324","file4":"1377703333","file5":"1377703336","file3":"1377703330"},"map_files_photo_id_array":[{"photo_id":"1377703336","filename":"file5"},{"photo_id":"1377703328","filename":"file2"},{"photo_id":"1377703333","filename":"file4"},{"photo_id":"1377703326","filename":"file1"},{"photo_id":"1377703324","filename":"file0"},{"photo_id":"1377703330","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377703328":["hashtag1","hashtag2"]},{"1377703336":["hashtag1","hashtag2"]},{"1377703330":["hashtag1","hashtag2"]},{"1377703324":["hashtag1","hashtag2"]},{"1377703333":["hashtag1","hashtag2"]},{"1377703326":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377703328, 1377703336, 1377703330, 1377703324, 1377703333, 1377703326)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.785671710968018 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:24:17.104085
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/24/image_18082025_14_24_44_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/14/24/image_18082025_14_24_35_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/14/24/image_18082025_14_24_24_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/14/23/image_18082025_14_24_05_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/14/23/image_18082025_14_23_54_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/11/06/image_18082025_11_06_35_10652.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/24/image_18082025_14_24_44_9633.jpg', '/home/nano/Desktop/images/18082025/14/24/image_18082025_14_24_35_10646.jpg', '/home/nano/Desktop/images/18082025/14/24/image_18082025_14_24_24_9637.jpg', '/home/nano/Desktop/images/18082025/14/23/image_18082025_14_24_05_10656.jpg', '/home/nano/Desktop/images/18082025/14/23/image_18082025_14_23_54_9634.jpg', '/home/nano/Desktop/images/18082025/11/06/image_18082025_11_06_35_10652.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/24/image_18082025_14_24_44_9633.jpg
/home/nano/Desktop/images/18082025/14/24/image_18082025_14_24_35_10646.jpg
/home/nano/Desktop/images/18082025/14/24/image_18082025_14_24_24_9637.jpg
/home/nano/Desktop/images/18082025/14/23/image_18082025_14_24_05_10656.jpg
/home/nano/Desktop/images/18082025/14/23/image_18082025_14_23_54_9634.jpg
/home/nano/Desktop/images/18082025/11/06/image_18082025_11_06_35_10652.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377703349","1377703360","1377703357","1377703364","1377703367","1377703352"],"photo_ids_order":["1377703349","1377703352","1377703357","1377703360","1377703364","1377703367"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ef6aaed753b69e4796062cfa843b20d8.jpg","text":"TemporaryFile(/tmp/multipartBody8090686805600072283asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519918550,"filename":"image_18082025_14_24_44_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1ffe68570111e82cd8477a4542c432e3.jpg","text":"TemporaryFile(/tmp/multipartBody3919077748028321908asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519918550,"filename":"image_18082025_14_24_05_10656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5a28732ddcc7b4c11b7c6f5b70b2bdaa.jpg","text":"TemporaryFile(/tmp/multipartBody3754941188289391235asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519918550,"filename":"image_18082025_14_24_24_9637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5e5b7e7e12bd672fbcd4af52c5fe02fe.jpg","text":"TemporaryFile(/tmp/multipartBody8197685524571934212asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519918550,"filename":"image_18082025_14_23_54_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/db847a468da34f998ffb8bc950eada1a.jpg","text":"TemporaryFile(/tmp/multipartBody8355875856995680856asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519918550,"filename":"image_18082025_11_06_35_10652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/29806ed51784f6ca5b5c2d059f456a76.jpg","text":"TemporaryFile(/tmp/multipartBody9115616929748110904asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519918550,"filename":"image_18082025_14_24_35_10646.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377703357","file1":"1377703352","file0":"1377703349","file4":"1377703364","file5":"1377703367","file3":"1377703360"},"map_files_photo_id_array":[{"photo_id":"1377703367","filename":"file5"},{"photo_id":"1377703357","filename":"file2"},{"photo_id":"1377703364","filename":"file4"},{"photo_id":"1377703352","filename":"file1"},{"photo_id":"1377703349","filename":"file0"},{"photo_id":"1377703360","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377703349":["hashtag1","hashtag2"]},{"1377703360":["hashtag1","hashtag2"]},{"1377703357":["hashtag1","hashtag2"]},{"1377703364":["hashtag1","hashtag2"]},{"1377703367":["hashtag1","hashtag2"]},{"1377703352":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377703349, 1377703360, 1377703357, 1377703364, 1377703367, 1377703352)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.757251739501953 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:25:02.920679
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/06/image_18082025_11_06_24_9704.jpg', 2), ('/home/nano/Desktop/images/18082025/11/06/image_18082025_11_06_15_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/11/05/image_18082025_11_06_05_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/11/05/image_18082025_11_05_54_9676.jpg', 2), ('/home/nano/Desktop/images/18082025/11/05/image_18082025_11_05_45_10616.jpg', 2), ('/home/nano/Desktop/images/18082025/11/05/image_18082025_11_05_34_9645.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/06/image_18082025_11_06_24_9704.jpg', '/home/nano/Desktop/images/18082025/11/06/image_18082025_11_06_15_9659.jpg', '/home/nano/Desktop/images/18082025/11/05/image_18082025_11_06_05_10658.jpg', '/home/nano/Desktop/images/18082025/11/05/image_18082025_11_05_54_9676.jpg', '/home/nano/Desktop/images/18082025/11/05/image_18082025_11_05_45_10616.jpg', '/home/nano/Desktop/images/18082025/11/05/image_18082025_11_05_34_9645.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/06/image_18082025_11_06_24_9704.jpg
/home/nano/Desktop/images/18082025/11/06/image_18082025_11_06_15_9659.jpg
/home/nano/Desktop/images/18082025/11/05/image_18082025_11_06_05_10658.jpg
/home/nano/Desktop/images/18082025/11/05/image_18082025_11_05_54_9676.jpg
/home/nano/Desktop/images/18082025/11/05/image_18082025_11_05_45_10616.jpg
/home/nano/Desktop/images/18082025/11/05/image_18082025_11_05_34_9645.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377703390","1377703380","1377703377","1377703394","1377703397","1377703385"],"photo_ids_order":["1377703377","1377703380","1377703385","1377703390","1377703394","1377703397"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/db046a17186f3062bbc84010e1a24518.jpg","text":"TemporaryFile(/tmp/multipartBody3340205671479910153asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519964080,"filename":"image_18082025_11_05_54_9676.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ac1f62b810c235d0e71f39a16ce1d045.jpg","text":"TemporaryFile(/tmp/multipartBody1160512744559377638asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519964080,"filename":"image_18082025_11_06_15_9659.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/acc4084bbb811bd22d76d43266cec90b.jpg","text":"TemporaryFile(/tmp/multipartBody3876664015182266504asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519964080,"filename":"image_18082025_11_06_24_9704.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/831e25681da4c09d6a840cfac94749a8.jpg","text":"TemporaryFile(/tmp/multipartBody3043257046994151107asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519964080,"filename":"image_18082025_11_05_45_10616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fee30f85079d19dfdce5a4791d18bd56.jpg","text":"TemporaryFile(/tmp/multipartBody1773895823331277522asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519964080,"filename":"image_18082025_11_05_34_9645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1719d1cf074b2431950ac4f102e10b58.jpg","text":"TemporaryFile(/tmp/multipartBody15426510873683200asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755519964080,"filename":"image_18082025_11_06_05_10658.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377703385","file1":"1377703380","file0":"1377703377","file4":"1377703394","file5":"1377703397","file3":"1377703390"},"map_files_photo_id_array":[{"photo_id":"1377703397","filename":"file5"},{"photo_id":"1377703385","filename":"file2"},{"photo_id":"1377703394","filename":"file4"},{"photo_id":"1377703380","filename":"file1"},{"photo_id":"1377703377","filename":"file0"},{"photo_id":"1377703390","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377703390":["hashtag1","hashtag2"]},{"1377703380":["hashtag1","hashtag2"]},{"1377703377":["hashtag1","hashtag2"]},{"1377703394":["hashtag1","hashtag2"]},{"1377703397":["hashtag1","hashtag2"]},{"1377703385":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377703390, 1377703380, 1377703377, 1377703394, 1377703397, 1377703385)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.814022302627563 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:25:47.209523
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/25/image_18082025_14_25_44_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/14/25/image_18082025_14_25_35_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/14/25/image_18082025_14_25_24_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/14/25/image_18082025_14_25_14_9675.jpg', 2), ('/home/nano/Desktop/images/18082025/14/24/image_18082025_14_25_05_10678.jpg', 2), ('/home/nano/Desktop/images/18082025/14/24/image_18082025_14_24_54_9631.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/25/image_18082025_14_25_44_9637.jpg', '/home/nano/Desktop/images/18082025/14/25/image_18082025_14_25_35_10645.jpg', '/home/nano/Desktop/images/18082025/14/25/image_18082025_14_25_24_9633.jpg', '/home/nano/Desktop/images/18082025/14/25/image_18082025_14_25_14_9675.jpg', '/home/nano/Desktop/images/18082025/14/24/image_18082025_14_25_05_10678.jpg', '/home/nano/Desktop/images/18082025/14/24/image_18082025_14_24_54_9631.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/25/image_18082025_14_25_44_9637.jpg
/home/nano/Desktop/images/18082025/14/25/image_18082025_14_25_35_10645.jpg
/home/nano/Desktop/images/18082025/14/25/image_18082025_14_25_24_9633.jpg
/home/nano/Desktop/images/18082025/14/25/image_18082025_14_25_14_9675.jpg
/home/nano/Desktop/images/18082025/14/24/image_18082025_14_25_05_10678.jpg
/home/nano/Desktop/images/18082025/14/24/image_18082025_14_24_54_9631.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377703427","1377703415","1377703423","1377703431","1377703419","1377703424"],"photo_ids_order":["1377703415","1377703419","1377703423","1377703424","1377703427","1377703431"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0a9c47cef4000ddb95cb81611aa4faff.jpg","text":"TemporaryFile(/tmp/multipartBody1587166893957268015asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520008449,"filename":"image_18082025_14_25_05_10678.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3e291c3ac58cdf9db175b89980446b81.jpg","text":"TemporaryFile(/tmp/multipartBody4027689241246341092asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520008449,"filename":"image_18082025_14_25_44_9637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/48db363baf6e95ab5689bbb16d68028e.jpg","text":"TemporaryFile(/tmp/multipartBody3070004838337583583asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520008449,"filename":"image_18082025_14_25_24_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/008a093c49a665bf92593e205922cd08.jpg","text":"TemporaryFile(/tmp/multipartBody219920006587404350asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520008449,"filename":"image_18082025_14_24_54_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c3cdeb0f19b650242384c10952abba82.jpg","text":"TemporaryFile(/tmp/multipartBody3801559985578951267asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520008449,"filename":"image_18082025_14_25_35_10645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b16393e6916283c77dea98b8a905532f.jpg","text":"TemporaryFile(/tmp/multipartBody5647298270633797619asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520008449,"filename":"image_18082025_14_25_14_9675.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377703423","file1":"1377703419","file0":"1377703415","file4":"1377703427","file5":"1377703431","file3":"1377703424"},"map_files_photo_id_array":[{"photo_id":"1377703431","filename":"file5"},{"photo_id":"1377703423","filename":"file2"},{"photo_id":"1377703427","filename":"file4"},{"photo_id":"1377703419","filename":"file1"},{"photo_id":"1377703415","filename":"file0"},{"photo_id":"1377703424","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377703427":["hashtag1","hashtag2"]},{"1377703415":["hashtag1","hashtag2"]},{"1377703423":["hashtag1","hashtag2"]},{"1377703431":["hashtag1","hashtag2"]},{"1377703419":["hashtag1","hashtag2"]},{"1377703424":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377703427, 1377703415, 1377703423, 1377703431, 1377703419, 1377703424)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.800628900527954 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:26:32.313283
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/26/image_18082025_14_26_44_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/14/26/image_18082025_14_26_35_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/14/26/image_18082025_14_26_25_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/14/26/image_18082025_14_26_14_9699.jpg', 2), ('/home/nano/Desktop/images/18082025/14/25/image_18082025_14_26_05_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/14/25/image_18082025_14_25_55_10644.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/26/image_18082025_14_26_44_9636.jpg', '/home/nano/Desktop/images/18082025/14/26/image_18082025_14_26_35_9631.jpg', '/home/nano/Desktop/images/18082025/14/26/image_18082025_14_26_25_10668.jpg', '/home/nano/Desktop/images/18082025/14/26/image_18082025_14_26_14_9699.jpg', '/home/nano/Desktop/images/18082025/14/25/image_18082025_14_26_05_9640.jpg', '/home/nano/Desktop/images/18082025/14/25/image_18082025_14_25_55_10644.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/26/image_18082025_14_26_44_9636.jpg
/home/nano/Desktop/images/18082025/14/26/image_18082025_14_26_35_9631.jpg
/home/nano/Desktop/images/18082025/14/26/image_18082025_14_26_25_10668.jpg
/home/nano/Desktop/images/18082025/14/26/image_18082025_14_26_14_9699.jpg
/home/nano/Desktop/images/18082025/14/25/image_18082025_14_26_05_9640.jpg
/home/nano/Desktop/images/18082025/14/25/image_18082025_14_25_55_10644.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377703462","1377703459","1377703464","1377703452","1377703455","1377703449"],"photo_ids_order":["1377703449","1377703452","1377703455","1377703459","1377703462","1377703464"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e35c640bb84198477bd3d84a3441b2e9.jpg","text":"TemporaryFile(/tmp/multipartBody7424553826613189369asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520053615,"filename":"image_18082025_14_26_05_9640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/11afc634bc2b7426236b0b9f5281fff8.jpg","text":"TemporaryFile(/tmp/multipartBody9172620960344178888asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520053615,"filename":"image_18082025_14_26_14_9699.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/207d94d4443a82d04c01decec5346db4.jpg","text":"TemporaryFile(/tmp/multipartBody450552242681324877asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520053615,"filename":"image_18082025_14_25_55_10644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/efdb165e565d72e5ad1168e9e27c0885.jpg","text":"TemporaryFile(/tmp/multipartBody120454666654031563asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520053615,"filename":"image_18082025_14_26_35_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/eff53d5ad678179f23cca3270407d4a4.jpg","text":"TemporaryFile(/tmp/multipartBody4869520349093410821asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520053615,"filename":"image_18082025_14_26_25_10668.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f730c4746548778428f88c700e540b00.jpg","text":"TemporaryFile(/tmp/multipartBody833410177543616712asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520053615,"filename":"image_18082025_14_26_44_9636.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377703455","file1":"1377703452","file0":"1377703449","file4":"1377703462","file5":"1377703464","file3":"1377703459"},"map_files_photo_id_array":[{"photo_id":"1377703464","filename":"file5"},{"photo_id":"1377703455","filename":"file2"},{"photo_id":"1377703462","filename":"file4"},{"photo_id":"1377703452","filename":"file1"},{"photo_id":"1377703449","filename":"file0"},{"photo_id":"1377703459","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377703462":["hashtag1","hashtag2"]},{"1377703459":["hashtag1","hashtag2"]},{"1377703464":["hashtag1","hashtag2"]},{"1377703452":["hashtag1","hashtag2"]},{"1377703455":["hashtag1","hashtag2"]},{"1377703449":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377703462, 1377703459, 1377703464, 1377703452, 1377703455, 1377703449)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.286867141723633 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:27:17.423601
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/27/image_18082025_14_27_44_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/14/27/image_18082025_14_27_35_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/14/27/image_18082025_14_27_25_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/14/27/image_18082025_14_27_14_9670.jpg', 2), ('/home/nano/Desktop/images/18082025/14/26/image_18082025_14_27_05_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/14/26/image_18082025_14_26_55_10642.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/27/image_18082025_14_27_44_9632.jpg', '/home/nano/Desktop/images/18082025/14/27/image_18082025_14_27_35_9634.jpg', '/home/nano/Desktop/images/18082025/14/27/image_18082025_14_27_25_10641.jpg', '/home/nano/Desktop/images/18082025/14/27/image_18082025_14_27_14_9670.jpg', '/home/nano/Desktop/images/18082025/14/26/image_18082025_14_27_05_9641.jpg', '/home/nano/Desktop/images/18082025/14/26/image_18082025_14_26_55_10642.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/27/image_18082025_14_27_44_9632.jpg
/home/nano/Desktop/images/18082025/14/27/image_18082025_14_27_35_9634.jpg
/home/nano/Desktop/images/18082025/14/27/image_18082025_14_27_25_10641.jpg
/home/nano/Desktop/images/18082025/14/27/image_18082025_14_27_14_9670.jpg
/home/nano/Desktop/images/18082025/14/26/image_18082025_14_27_05_9641.jpg
/home/nano/Desktop/images/18082025/14/26/image_18082025_14_26_55_10642.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377703489","1377703483","1377703491","1377703479","1377703493","1377703487"],"photo_ids_order":["1377703479","1377703483","1377703487","1377703489","1377703491","1377703493"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bd61739300dabc9f8724a2e98a210a49.jpg","text":"TemporaryFile(/tmp/multipartBody5965978610513055175asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520098534,"filename":"image_18082025_14_27_14_9670.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ff2c4ba415cdedaf92483be387d499f7.jpg","text":"TemporaryFile(/tmp/multipartBody7029395152805186347asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520098534,"filename":"image_18082025_14_27_35_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2baf68ecb809976df9bc117fea04d54b.jpg","text":"TemporaryFile(/tmp/multipartBody7622437629021760041asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520098534,"filename":"image_18082025_14_27_05_9641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3e7b3e79c2f1517eb929162011c4b2f8.jpg","text":"TemporaryFile(/tmp/multipartBody2270199824674225090asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520098534,"filename":"image_18082025_14_27_44_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5adf05bddd858648872fda264606903e.jpg","text":"TemporaryFile(/tmp/multipartBody7703424812497122905asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520098534,"filename":"image_18082025_14_26_55_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7212acd163315dd0b4b7ce641b62371e.jpg","text":"TemporaryFile(/tmp/multipartBody3633073310225498338asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520098534,"filename":"image_18082025_14_27_25_10641.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377703487","file1":"1377703483","file0":"1377703479","file4":"1377703491","file5":"1377703493","file3":"1377703489"},"map_files_photo_id_array":[{"photo_id":"1377703493","filename":"file5"},{"photo_id":"1377703487","filename":"file2"},{"photo_id":"1377703491","filename":"file4"},{"photo_id":"1377703483","filename":"file1"},{"photo_id":"1377703479","filename":"file0"},{"photo_id":"1377703489","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377703489":["hashtag1","hashtag2"]},{"1377703483":["hashtag1","hashtag2"]},{"1377703491":["hashtag1","hashtag2"]},{"1377703479":["hashtag1","hashtag2"]},{"1377703493":["hashtag1","hashtag2"]},{"1377703487":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377703489, 1377703483, 1377703491, 1377703479, 1377703493, 1377703487)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.37560820579529 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:28:03.159267
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/05/image_18082025_11_05_24_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/11/05/image_18082025_11_05_15_9791.jpg', 2), ('/home/nano/Desktop/images/18082025/11/04/image_18082025_11_05_05_10755.jpg', 2), ('/home/nano/Desktop/images/18082025/11/04/image_18082025_11_04_54_9734.jpg', 2), ('/home/nano/Desktop/images/18082025/11/04/image_18082025_11_04_45_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/11/04/image_18082025_11_04_35_10656.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/05/image_18082025_11_05_24_9630.jpg', '/home/nano/Desktop/images/18082025/11/05/image_18082025_11_05_15_9791.jpg', '/home/nano/Desktop/images/18082025/11/04/image_18082025_11_05_05_10755.jpg', '/home/nano/Desktop/images/18082025/11/04/image_18082025_11_04_54_9734.jpg', '/home/nano/Desktop/images/18082025/11/04/image_18082025_11_04_45_9625.jpg', '/home/nano/Desktop/images/18082025/11/04/image_18082025_11_04_35_10656.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/05/image_18082025_11_05_24_9630.jpg
/home/nano/Desktop/images/18082025/11/05/image_18082025_11_05_15_9791.jpg
/home/nano/Desktop/images/18082025/11/04/image_18082025_11_05_05_10755.jpg
/home/nano/Desktop/images/18082025/11/04/image_18082025_11_04_54_9734.jpg
/home/nano/Desktop/images/18082025/11/04/image_18082025_11_04_45_9625.jpg
/home/nano/Desktop/images/18082025/11/04/image_18082025_11_04_35_10656.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377703511","1377703514","1377703516","1377703519","1377703504","1377703509"],"photo_ids_order":["1377703504","1377703509","1377703511","1377703514","1377703516","1377703519"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b1692ab981f7ec43b32f1afb6cac4347.jpg","text":"TemporaryFile(/tmp/multipartBody5870116231535861223asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520144680,"filename":"image_18082025_11_05_05_10755.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/52f9cb5d6079aa39ffa4c4e6a67d1231.jpg","text":"TemporaryFile(/tmp/multipartBody7924425385654994668asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520144680,"filename":"image_18082025_11_04_54_9734.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/08ff695e90f74e75564fdf822c53128b.jpg","text":"TemporaryFile(/tmp/multipartBody5441646851049000489asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520144680,"filename":"image_18082025_11_04_45_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/db75a8a581592469cf2efe8eeb9d82c6.jpg","text":"TemporaryFile(/tmp/multipartBody4819786033219704169asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520144680,"filename":"image_18082025_11_04_35_10656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c5d67b07d5b1ba4922bf2e7e01ca5e45.jpg","text":"TemporaryFile(/tmp/multipartBody5679420867125866679asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520144680,"filename":"image_18082025_11_05_24_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b9dfed3358f50f330123aa34b8505910.jpg","text":"TemporaryFile(/tmp/multipartBody5712385422321838366asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520144680,"filename":"image_18082025_11_05_15_9791.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377703511","file1":"1377703509","file0":"1377703504","file4":"1377703516","file5":"1377703519","file3":"1377703514"},"map_files_photo_id_array":[{"photo_id":"1377703519","filename":"file5"},{"photo_id":"1377703511","filename":"file2"},{"photo_id":"1377703516","filename":"file4"},{"photo_id":"1377703509","filename":"file1"},{"photo_id":"1377703504","filename":"file0"},{"photo_id":"1377703514","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377703511":["hashtag1","hashtag2"]},{"1377703514":["hashtag1","hashtag2"]},{"1377703516":["hashtag1","hashtag2"]},{"1377703519":["hashtag1","hashtag2"]},{"1377703504":["hashtag1","hashtag2"]},{"1377703509":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377703511, 1377703514, 1377703516, 1377703519, 1377703504, 1377703509)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.40493321418762 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:28:47.541941
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/28/image_18082025_14_28_45_10643.jpg', 2), ('/home/nano/Desktop/images/18082025/14/28/image_18082025_14_28_25_10664.jpg', 2), ('/home/nano/Desktop/images/18082025/14/27/image_18082025_14_28_04_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/14/27/image_18082025_14_27_55_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/11/04/image_18082025_11_04_24_9714.jpg', 2), ('/home/nano/Desktop/images/18082025/11/04/image_18082025_11_04_15_9760.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/28/image_18082025_14_28_45_10643.jpg', '/home/nano/Desktop/images/18082025/14/28/image_18082025_14_28_25_10664.jpg', '/home/nano/Desktop/images/18082025/14/27/image_18082025_14_28_04_9632.jpg', '/home/nano/Desktop/images/18082025/14/27/image_18082025_14_27_55_10644.jpg', '/home/nano/Desktop/images/18082025/11/04/image_18082025_11_04_24_9714.jpg', '/home/nano/Desktop/images/18082025/11/04/image_18082025_11_04_15_9760.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/28/image_18082025_14_28_45_10643.jpg
/home/nano/Desktop/images/18082025/14/28/image_18082025_14_28_25_10664.jpg
/home/nano/Desktop/images/18082025/14/27/image_18082025_14_28_04_9632.jpg
/home/nano/Desktop/images/18082025/14/27/image_18082025_14_27_55_10644.jpg
/home/nano/Desktop/images/18082025/11/04/image_18082025_11_04_24_9714.jpg
/home/nano/Desktop/images/18082025/11/04/image_18082025_11_04_15_9760.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377703532","1377703535","1377703534","1377703533","1377703541","1377703538"],"photo_ids_order":["1377703532","1377703533","1377703534","1377703535","1377703538","1377703541"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a9b04dc49612d3374a57f06ea59e3d85.jpg","text":"TemporaryFile(/tmp/multipartBody8509136035057580060asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520188767,"filename":"image_18082025_14_28_45_10643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0e240173a795a5daa5d17db69e811af0.jpg","text":"TemporaryFile(/tmp/multipartBody2708742763076441075asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520188767,"filename":"image_18082025_14_27_55_10644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/63071b5e7e871b8edf9721bc1afd7a97.jpg","text":"TemporaryFile(/tmp/multipartBody3631678880638986631asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520188767,"filename":"image_18082025_14_28_04_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0275aae7abe83613653a6103e2361825.jpg","text":"TemporaryFile(/tmp/multipartBody1851705656528454695asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520188767,"filename":"image_18082025_14_28_25_10664.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3c17e2ab2f2defbaef1a725d9166a1d7.jpg","text":"TemporaryFile(/tmp/multipartBody8842702263980800518asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520188767,"filename":"image_18082025_11_04_15_9760.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/49769c5af27caa39c2c2f39efbbed4d0.jpg","text":"TemporaryFile(/tmp/multipartBody5430990741998973561asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520188767,"filename":"image_18082025_11_04_24_9714.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377703534","file1":"1377703533","file0":"1377703532","file4":"1377703538","file5":"1377703541","file3":"1377703535"},"map_files_photo_id_array":[{"photo_id":"1377703541","filename":"file5"},{"photo_id":"1377703534","filename":"file2"},{"photo_id":"1377703538","filename":"file4"},{"photo_id":"1377703533","filename":"file1"},{"photo_id":"1377703532","filename":"file0"},{"photo_id":"1377703535","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377703532":["hashtag1","hashtag2"]},{"1377703535":["hashtag1","hashtag2"]},{"1377703534":["hashtag1","hashtag2"]},{"1377703533":["hashtag1","hashtag2"]},{"1377703541":["hashtag1","hashtag2"]},{"1377703538":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377703532, 1377703535, 1377703534, 1377703533, 1377703541, 1377703538)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.89014458656311 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:29:32.632384
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/29/image_18082025_14_29_34_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/14/29/image_18082025_14_29_25_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/14/29/image_18082025_14_29_15_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/14/28/image_18082025_14_29_04_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/14/28/image_18082025_14_28_55_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/11/03/image_18082025_11_04_05_9737.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/29/image_18082025_14_29_34_9633.jpg', '/home/nano/Desktop/images/18082025/14/29/image_18082025_14_29_25_9651.jpg', '/home/nano/Desktop/images/18082025/14/29/image_18082025_14_29_15_10667.jpg', '/home/nano/Desktop/images/18082025/14/28/image_18082025_14_29_04_9640.jpg', '/home/nano/Desktop/images/18082025/14/28/image_18082025_14_28_55_9632.jpg', '/home/nano/Desktop/images/18082025/11/03/image_18082025_11_04_05_9737.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/29/image_18082025_14_29_34_9633.jpg
/home/nano/Desktop/images/18082025/14/29/image_18082025_14_29_25_9651.jpg
/home/nano/Desktop/images/18082025/14/29/image_18082025_14_29_15_10667.jpg
/home/nano/Desktop/images/18082025/14/28/image_18082025_14_29_04_9640.jpg
/home/nano/Desktop/images/18082025/14/28/image_18082025_14_28_55_9632.jpg
/home/nano/Desktop/images/18082025/11/03/image_18082025_11_04_05_9737.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377703564","1377703574","1377703568","1377703562","1377703571","1377703565"],"photo_ids_order":["1377703562","1377703564","1377703565","1377703568","1377703571","1377703574"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/aa14d2344be92b09a19c62c9f79fa63a.jpg","text":"TemporaryFile(/tmp/multipartBody8057133442721440307asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520233921,"filename":"image_18082025_14_29_25_9651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9199fa0081747959218cb2ad6551c287.jpg","text":"TemporaryFile(/tmp/multipartBody1250230078477579619asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520233921,"filename":"image_18082025_11_04_05_9737.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ec8eb1693860dee9712eff8842cd1e0d.jpg","text":"TemporaryFile(/tmp/multipartBody5937823451078539502asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520233921,"filename":"image_18082025_14_29_04_9640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6864d6cbac51fcfc931845bc490c78ce.jpg","text":"TemporaryFile(/tmp/multipartBody4544636385024769833asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520233921,"filename":"image_18082025_14_29_34_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/61fe9616b6ea9a2cdda62ea7aab6701b.jpg","text":"TemporaryFile(/tmp/multipartBody2447409981676024698asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520233921,"filename":"image_18082025_14_28_55_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e8f467e228d2295513fed6bb872daa07.jpg","text":"TemporaryFile(/tmp/multipartBody437097385802763798asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520233921,"filename":"image_18082025_14_29_15_10667.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377703565","file1":"1377703564","file0":"1377703562","file4":"1377703571","file5":"1377703574","file3":"1377703568"},"map_files_photo_id_array":[{"photo_id":"1377703574","filename":"file5"},{"photo_id":"1377703565","filename":"file2"},{"photo_id":"1377703571","filename":"file4"},{"photo_id":"1377703564","filename":"file1"},{"photo_id":"1377703562","filename":"file0"},{"photo_id":"1377703568","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377703564":["hashtag1","hashtag2"]},{"1377703574":["hashtag1","hashtag2"]},{"1377703568":["hashtag1","hashtag2"]},{"1377703562":["hashtag1","hashtag2"]},{"1377703571":["hashtag1","hashtag2"]},{"1377703565":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377703564, 1377703574, 1377703568, 1377703562, 1377703571, 1377703565)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.985148191452026 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:30:16.760732
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/30/image_18082025_14_30_45_10662.jpg', 2), ('/home/nano/Desktop/images/18082025/14/30/image_18082025_14_30_34_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/14/30/image_18082025_14_30_25_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/14/30/image_18082025_14_30_15_10686.jpg', 2), ('/home/nano/Desktop/images/18082025/14/29/image_18082025_14_30_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/14/29/image_18082025_14_29_55_9634.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/30/image_18082025_14_30_45_10662.jpg', '/home/nano/Desktop/images/18082025/14/30/image_18082025_14_30_34_9633.jpg', '/home/nano/Desktop/images/18082025/14/30/image_18082025_14_30_25_9646.jpg', '/home/nano/Desktop/images/18082025/14/30/image_18082025_14_30_15_10686.jpg', '/home/nano/Desktop/images/18082025/14/29/image_18082025_14_30_04_9655.jpg', '/home/nano/Desktop/images/18082025/14/29/image_18082025_14_29_55_9634.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/30/image_18082025_14_30_45_10662.jpg
/home/nano/Desktop/images/18082025/14/30/image_18082025_14_30_34_9633.jpg
/home/nano/Desktop/images/18082025/14/30/image_18082025_14_30_25_9646.jpg
/home/nano/Desktop/images/18082025/14/30/image_18082025_14_30_15_10686.jpg
/home/nano/Desktop/images/18082025/14/29/image_18082025_14_30_04_9655.jpg
/home/nano/Desktop/images/18082025/14/29/image_18082025_14_29_55_9634.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377703601","1377703593","1377703596","1377703599","1377703586","1377703589"],"photo_ids_order":["1377703586","1377703589","1377703593","1377703596","1377703599","1377703601"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/22f45f8a68c33c77fda67305c172e3c7.jpg","text":"TemporaryFile(/tmp/multipartBody4846497271235025590asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520278168,"filename":"image_18082025_14_29_55_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e921eed5597d89995486a889670b6beb.jpg","text":"TemporaryFile(/tmp/multipartBody4413796426346868664asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520278168,"filename":"image_18082025_14_30_25_9646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7131788e10473b55640da1043164374c.jpg","text":"TemporaryFile(/tmp/multipartBody1528030127998161550asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520278168,"filename":"image_18082025_14_30_15_10686.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9f076df7be577f7f61bf5d860a410f18.jpg","text":"TemporaryFile(/tmp/multipartBody7822550014666649974asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520278168,"filename":"image_18082025_14_30_04_9655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cca6a730802a3618fc33b52b1989b7f5.jpg","text":"TemporaryFile(/tmp/multipartBody2044996670577018840asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520278168,"filename":"image_18082025_14_30_45_10662.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0d140e6a3f61b45af50a779325e5b2b7.jpg","text":"TemporaryFile(/tmp/multipartBody5340183568334607302asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520278168,"filename":"image_18082025_14_30_34_9633.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377703593","file1":"1377703589","file0":"1377703586","file4":"1377703599","file5":"1377703601","file3":"1377703596"},"map_files_photo_id_array":[{"photo_id":"1377703601","filename":"file5"},{"photo_id":"1377703593","filename":"file2"},{"photo_id":"1377703599","filename":"file4"},{"photo_id":"1377703589","filename":"file1"},{"photo_id":"1377703586","filename":"file0"},{"photo_id":"1377703596","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377703601":["hashtag1","hashtag2"]},{"1377703593":["hashtag1","hashtag2"]},{"1377703596":["hashtag1","hashtag2"]},{"1377703599":["hashtag1","hashtag2"]},{"1377703586":["hashtag1","hashtag2"]},{"1377703589":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377703601, 1377703593, 1377703596, 1377703599, 1377703586, 1377703589)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.7878475189209 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:31:02.596226
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/03/image_18082025_11_03_55_10739.jpg', 2), ('/home/nano/Desktop/images/18082025/11/03/image_18082025_11_03_44_9717.jpg', 2), ('/home/nano/Desktop/images/18082025/11/03/image_18082025_11_03_35_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/11/03/image_18082025_11_03_25_10741.jpg', 2), ('/home/nano/Desktop/images/18082025/11/03/image_18082025_11_03_14_9676.jpg', 2), ('/home/nano/Desktop/images/18082025/11/02/image_18082025_11_03_05_9760.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/03/image_18082025_11_03_55_10739.jpg', '/home/nano/Desktop/images/18082025/11/03/image_18082025_11_03_44_9717.jpg', '/home/nano/Desktop/images/18082025/11/03/image_18082025_11_03_35_9643.jpg', '/home/nano/Desktop/images/18082025/11/03/image_18082025_11_03_25_10741.jpg', '/home/nano/Desktop/images/18082025/11/03/image_18082025_11_03_14_9676.jpg', '/home/nano/Desktop/images/18082025/11/02/image_18082025_11_03_05_9760.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/03/image_18082025_11_03_55_10739.jpg
/home/nano/Desktop/images/18082025/11/03/image_18082025_11_03_44_9717.jpg
/home/nano/Desktop/images/18082025/11/03/image_18082025_11_03_35_9643.jpg
/home/nano/Desktop/images/18082025/11/03/image_18082025_11_03_25_10741.jpg
/home/nano/Desktop/images/18082025/11/03/image_18082025_11_03_14_9676.jpg
/home/nano/Desktop/images/18082025/11/02/image_18082025_11_03_05_9760.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377703619","1377703610","1377703616","1377703626","1377703614","1377703622"],"photo_ids_order":["1377703610","1377703614","1377703616","1377703619","1377703622","1377703626"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dfe384312f5ea16836975d528c4e4fdd.jpg","text":"TemporaryFile(/tmp/multipartBody1607555020378971771asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520324117,"filename":"image_18082025_11_03_25_10741.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f2f060e44090e87fb7f123965f2c78cd.jpg","text":"TemporaryFile(/tmp/multipartBody5726085881610824298asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520324117,"filename":"image_18082025_11_03_55_10739.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/108347f5c4aae522a57c625a08759916.jpg","text":"TemporaryFile(/tmp/multipartBody3810019431331869578asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520324117,"filename":"image_18082025_11_03_35_9643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/56b625a1ef1629ded859d6c1c634f341.jpg","text":"TemporaryFile(/tmp/multipartBody3322116643378607131asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520324117,"filename":"image_18082025_11_03_05_9760.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a7c19593cc9c1f8c07c82ec1ac23a4c4.jpg","text":"TemporaryFile(/tmp/multipartBody3556891213176203465asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520324117,"filename":"image_18082025_11_03_44_9717.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/17d3b31b013658075b7d0ab0365c1a63.jpg","text":"TemporaryFile(/tmp/multipartBody868144117662596690asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520324117,"filename":"image_18082025_11_03_14_9676.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377703616","file1":"1377703614","file0":"1377703610","file4":"1377703622","file5":"1377703626","file3":"1377703619"},"map_files_photo_id_array":[{"photo_id":"1377703626","filename":"file5"},{"photo_id":"1377703616","filename":"file2"},{"photo_id":"1377703622","filename":"file4"},{"photo_id":"1377703614","filename":"file1"},{"photo_id":"1377703610","filename":"file0"},{"photo_id":"1377703619","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377703619":["hashtag1","hashtag2"]},{"1377703610":["hashtag1","hashtag2"]},{"1377703616":["hashtag1","hashtag2"]},{"1377703626":["hashtag1","hashtag2"]},{"1377703614":["hashtag1","hashtag2"]},{"1377703622":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377703619, 1377703610, 1377703616, 1377703626, 1377703614, 1377703622)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.847208738327026 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:31:46.870452
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/31/image_18082025_14_31_45_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/14/31/image_18082025_14_31_35_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/14/31/image_18082025_14_31_24_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/14/31/image_18082025_14_31_15_10672.jpg', 2), ('/home/nano/Desktop/images/18082025/14/30/image_18082025_14_31_04_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/14/30/image_18082025_14_30_54_9633.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/31/image_18082025_14_31_45_9631.jpg', '/home/nano/Desktop/images/18082025/14/31/image_18082025_14_31_35_10640.jpg', '/home/nano/Desktop/images/18082025/14/31/image_18082025_14_31_24_9656.jpg', '/home/nano/Desktop/images/18082025/14/31/image_18082025_14_31_15_10672.jpg', '/home/nano/Desktop/images/18082025/14/30/image_18082025_14_31_04_9646.jpg', '/home/nano/Desktop/images/18082025/14/30/image_18082025_14_30_54_9633.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/31/image_18082025_14_31_45_9631.jpg
/home/nano/Desktop/images/18082025/14/31/image_18082025_14_31_35_10640.jpg
/home/nano/Desktop/images/18082025/14/31/image_18082025_14_31_24_9656.jpg
/home/nano/Desktop/images/18082025/14/31/image_18082025_14_31_15_10672.jpg
/home/nano/Desktop/images/18082025/14/30/image_18082025_14_31_04_9646.jpg
/home/nano/Desktop/images/18082025/14/30/image_18082025_14_30_54_9633.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377703651","1377703648","1377703644","1377703638","1377703641","1377703655"],"photo_ids_order":["1377703638","1377703641","1377703644","1377703648","1377703651","1377703655"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5b68ff8a1e772c8e0f4c228acafe7fe0.jpg","text":"TemporaryFile(/tmp/multipartBody7954107874080807180asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520368659,"filename":"image_18082025_14_31_04_9646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/279087877940276f619f534d90e8d8c6.jpg","text":"TemporaryFile(/tmp/multipartBody1664063846929906823asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520368659,"filename":"image_18082025_14_31_15_10672.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fd759d260fb68d0f8a2aa25f592d167c.jpg","text":"TemporaryFile(/tmp/multipartBody8537097571596973833asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520368659,"filename":"image_18082025_14_31_24_9656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/190f40918b7a6da0d0abfa8874b0b5de.jpg","text":"TemporaryFile(/tmp/multipartBody7790790044010942415asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520368659,"filename":"image_18082025_14_31_45_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d7bf59b1612d46dde2533bfbd26e8b77.jpg","text":"TemporaryFile(/tmp/multipartBody8765242672784191554asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520368659,"filename":"image_18082025_14_31_35_10640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e1839ad604b7097eaf41d088c3b36896.jpg","text":"TemporaryFile(/tmp/multipartBody8777326157674652423asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520368659,"filename":"image_18082025_14_30_54_9633.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377703644","file1":"1377703641","file0":"1377703638","file4":"1377703651","file5":"1377703655","file3":"1377703648"},"map_files_photo_id_array":[{"photo_id":"1377703655","filename":"file5"},{"photo_id":"1377703644","filename":"file2"},{"photo_id":"1377703651","filename":"file4"},{"photo_id":"1377703641","filename":"file1"},{"photo_id":"1377703638","filename":"file0"},{"photo_id":"1377703648","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377703651":["hashtag1","hashtag2"]},{"1377703648":["hashtag1","hashtag2"]},{"1377703644":["hashtag1","hashtag2"]},{"1377703638":["hashtag1","hashtag2"]},{"1377703641":["hashtag1","hashtag2"]},{"1377703655":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377703651, 1377703648, 1377703644, 1377703638, 1377703641, 1377703655)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.02306866645813 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:32:31.959540
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/32/image_18082025_14_32_45_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/14/32/image_18082025_14_32_24_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/14/32/image_18082025_14_32_15_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/14/31/image_18082025_14_32_05_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/14/31/image_18082025_14_31_54_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/11/02/image_18082025_11_02_55_9752.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/32/image_18082025_14_32_45_9631.jpg', '/home/nano/Desktop/images/18082025/14/32/image_18082025_14_32_24_9633.jpg', '/home/nano/Desktop/images/18082025/14/32/image_18082025_14_32_15_9642.jpg', '/home/nano/Desktop/images/18082025/14/31/image_18082025_14_32_05_10642.jpg', '/home/nano/Desktop/images/18082025/14/31/image_18082025_14_31_54_9636.jpg', '/home/nano/Desktop/images/18082025/11/02/image_18082025_11_02_55_9752.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/32/image_18082025_14_32_45_9631.jpg
/home/nano/Desktop/images/18082025/14/32/image_18082025_14_32_24_9633.jpg
/home/nano/Desktop/images/18082025/14/32/image_18082025_14_32_15_9642.jpg
/home/nano/Desktop/images/18082025/14/31/image_18082025_14_32_05_10642.jpg
/home/nano/Desktop/images/18082025/14/31/image_18082025_14_31_54_9636.jpg
/home/nano/Desktop/images/18082025/11/02/image_18082025_11_02_55_9752.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377703672","1377703680","1377703668","1377703685","1377703688","1377703676"],"photo_ids_order":["1377703668","1377703672","1377703676","1377703680","1377703685","1377703688"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f73f27f3236fdecb85ec09c2160d7fc1.jpg","text":"TemporaryFile(/tmp/multipartBody1906838480376682930asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520413445,"filename":"image_18082025_14_32_24_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a8ced74c9a89d4aca25156f8a885eff5.jpg","text":"TemporaryFile(/tmp/multipartBody8876068248928083812asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520413445,"filename":"image_18082025_14_32_05_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/24c9df61a7141e32dcfc720c941a4fb4.jpg","text":"TemporaryFile(/tmp/multipartBody4861228443946858005asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520413445,"filename":"image_18082025_14_32_45_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/37b01abe0aff65d6bcf521b646b3da51.jpg","text":"TemporaryFile(/tmp/multipartBody841729703258149588asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520413445,"filename":"image_18082025_14_31_54_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/751b1df8751fbf8a65f50bb80805acd8.jpg","text":"TemporaryFile(/tmp/multipartBody5865773342933448797asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520413445,"filename":"image_18082025_11_02_55_9752.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f37c8720123a7ed5c1054fafa1de1bf3.jpg","text":"TemporaryFile(/tmp/multipartBody5761765474053590631asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520413445,"filename":"image_18082025_14_32_15_9642.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377703676","file1":"1377703672","file0":"1377703668","file4":"1377703685","file5":"1377703688","file3":"1377703680"},"map_files_photo_id_array":[{"photo_id":"1377703688","filename":"file5"},{"photo_id":"1377703676","filename":"file2"},{"photo_id":"1377703685","filename":"file4"},{"photo_id":"1377703672","filename":"file1"},{"photo_id":"1377703668","filename":"file0"},{"photo_id":"1377703680","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377703672":["hashtag1","hashtag2"]},{"1377703680":["hashtag1","hashtag2"]},{"1377703668":["hashtag1","hashtag2"]},{"1377703685":["hashtag1","hashtag2"]},{"1377703688":["hashtag1","hashtag2"]},{"1377703676":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377703672, 1377703680, 1377703668, 1377703685, 1377703688, 1377703676)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.849866151809692 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:33:17.104785
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/33/image_18082025_14_33_44_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/14/33/image_18082025_14_33_35_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/14/33/image_18082025_14_33_24_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/14/33/image_18082025_14_33_14_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/14/32/image_18082025_14_33_05_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/14/32/image_18082025_14_32_54_9636.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/33/image_18082025_14_33_44_9649.jpg', '/home/nano/Desktop/images/18082025/14/33/image_18082025_14_33_35_10641.jpg', '/home/nano/Desktop/images/18082025/14/33/image_18082025_14_33_24_9633.jpg', '/home/nano/Desktop/images/18082025/14/33/image_18082025_14_33_14_9640.jpg', '/home/nano/Desktop/images/18082025/14/32/image_18082025_14_33_05_10644.jpg', '/home/nano/Desktop/images/18082025/14/32/image_18082025_14_32_54_9636.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/33/image_18082025_14_33_44_9649.jpg
/home/nano/Desktop/images/18082025/14/33/image_18082025_14_33_35_10641.jpg
/home/nano/Desktop/images/18082025/14/33/image_18082025_14_33_24_9633.jpg
/home/nano/Desktop/images/18082025/14/33/image_18082025_14_33_14_9640.jpg
/home/nano/Desktop/images/18082025/14/32/image_18082025_14_33_05_10644.jpg
/home/nano/Desktop/images/18082025/14/32/image_18082025_14_32_54_9636.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377703706","1377703720","1377703714","1377703717","1377703702","1377703711"],"photo_ids_order":["1377703702","1377703706","1377703711","1377703714","1377703717","1377703720"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4196e09d8923e9f5e8d30dcc0ac92d68.jpg","text":"TemporaryFile(/tmp/multipartBody5375576282843369580asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520458713,"filename":"image_18082025_14_33_35_10641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2980300158a0ff32c52b016bf651c639.jpg","text":"TemporaryFile(/tmp/multipartBody878331888640497670asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520458713,"filename":"image_18082025_14_32_54_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0a224f00ca54eeaa930a5c5c69e0c617.jpg","text":"TemporaryFile(/tmp/multipartBody2149769349505890777asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520458713,"filename":"image_18082025_14_33_14_9640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6d886ba3e0574037bb9229b8704735f2.jpg","text":"TemporaryFile(/tmp/multipartBody7555079997365116747asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520458713,"filename":"image_18082025_14_33_05_10644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c9e80037635ed5217b25bc7a17b3aee0.jpg","text":"TemporaryFile(/tmp/multipartBody8716335339530905921asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520458713,"filename":"image_18082025_14_33_44_9649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4fcdc1ad4aa11b907984eb95be6cdace.jpg","text":"TemporaryFile(/tmp/multipartBody505120601548754637asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520458713,"filename":"image_18082025_14_33_24_9633.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377703711","file1":"1377703706","file0":"1377703702","file4":"1377703717","file5":"1377703720","file3":"1377703714"},"map_files_photo_id_array":[{"photo_id":"1377703720","filename":"file5"},{"photo_id":"1377703711","filename":"file2"},{"photo_id":"1377703717","filename":"file4"},{"photo_id":"1377703706","filename":"file1"},{"photo_id":"1377703702","filename":"file0"},{"photo_id":"1377703714","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377703706":["hashtag1","hashtag2"]},{"1377703720":["hashtag1","hashtag2"]},{"1377703714":["hashtag1","hashtag2"]},{"1377703717":["hashtag1","hashtag2"]},{"1377703702":["hashtag1","hashtag2"]},{"1377703711":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377703706, 1377703720, 1377703714, 1377703717, 1377703702, 1377703711)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.71085333824158 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:34:02.977548
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/02/image_18082025_11_02_45_10756.jpg', 2), ('/home/nano/Desktop/images/18082025/11/02/image_18082025_11_02_34_9732.jpg', 2), ('/home/nano/Desktop/images/18082025/11/02/image_18082025_11_02_24_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/11/02/image_18082025_11_02_15_9788.jpg', 2), ('/home/nano/Desktop/images/18082025/11/01/image_18082025_11_02_05_10684.jpg', 2), ('/home/nano/Desktop/images/18082025/11/01/image_18082025_11_01_54_9680.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/02/image_18082025_11_02_45_10756.jpg', '/home/nano/Desktop/images/18082025/11/02/image_18082025_11_02_34_9732.jpg', '/home/nano/Desktop/images/18082025/11/02/image_18082025_11_02_24_9644.jpg', '/home/nano/Desktop/images/18082025/11/02/image_18082025_11_02_15_9788.jpg', '/home/nano/Desktop/images/18082025/11/01/image_18082025_11_02_05_10684.jpg', '/home/nano/Desktop/images/18082025/11/01/image_18082025_11_01_54_9680.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/02/image_18082025_11_02_45_10756.jpg
/home/nano/Desktop/images/18082025/11/02/image_18082025_11_02_34_9732.jpg
/home/nano/Desktop/images/18082025/11/02/image_18082025_11_02_24_9644.jpg
/home/nano/Desktop/images/18082025/11/02/image_18082025_11_02_15_9788.jpg
/home/nano/Desktop/images/18082025/11/01/image_18082025_11_02_05_10684.jpg
/home/nano/Desktop/images/18082025/11/01/image_18082025_11_01_54_9680.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377703744","1377703732","1377703735","1377703725","1377703740","1377703728"],"photo_ids_order":["1377703725","1377703728","1377703732","1377703735","1377703740","1377703744"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/72d8acd0010935717fce0a72d5229031.jpg","text":"TemporaryFile(/tmp/multipartBody8227646120951820488asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520504839,"filename":"image_18082025_11_01_54_9680.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b503087d1de51026f45fe54dff1ef160.jpg","text":"TemporaryFile(/tmp/multipartBody2655666186938294390asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520504839,"filename":"image_18082025_11_02_24_9644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6a5b6ba689fd5845318c630184979be5.jpg","text":"TemporaryFile(/tmp/multipartBody8649420911232554656asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520504839,"filename":"image_18082025_11_02_15_9788.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/92b77dff8ec0ef1c60b822862d00192e.jpg","text":"TemporaryFile(/tmp/multipartBody5293484554419484810asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520504839,"filename":"image_18082025_11_02_45_10756.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/468130aed4ec066d2e26e10d3c18094b.jpg","text":"TemporaryFile(/tmp/multipartBody4040447420438044617asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520504839,"filename":"image_18082025_11_02_05_10684.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fd0c1b718a46f55f5d33058da892b5ed.jpg","text":"TemporaryFile(/tmp/multipartBody4120250681911742664asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520504839,"filename":"image_18082025_11_02_34_9732.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377703732","file1":"1377703728","file0":"1377703725","file4":"1377703740","file5":"1377703744","file3":"1377703735"},"map_files_photo_id_array":[{"photo_id":"1377703744","filename":"file5"},{"photo_id":"1377703732","filename":"file2"},{"photo_id":"1377703740","filename":"file4"},{"photo_id":"1377703728","filename":"file1"},{"photo_id":"1377703725","filename":"file0"},{"photo_id":"1377703735","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377703744":["hashtag1","hashtag2"]},{"1377703732":["hashtag1","hashtag2"]},{"1377703735":["hashtag1","hashtag2"]},{"1377703725":["hashtag1","hashtag2"]},{"1377703740":["hashtag1","hashtag2"]},{"1377703728":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377703744, 1377703732, 1377703735, 1377703725, 1377703740, 1377703728)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.152416706085205 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:34:47.241386
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/34/image_18082025_14_34_44_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/14/34/image_18082025_14_34_35_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/14/34/image_18082025_14_34_25_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/14/34/image_18082025_14_34_14_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/14/33/image_18082025_14_34_05_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/14/33/image_18082025_14_33_55_10644.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/34/image_18082025_14_34_44_9633.jpg', '/home/nano/Desktop/images/18082025/14/34/image_18082025_14_34_35_9637.jpg', '/home/nano/Desktop/images/18082025/14/34/image_18082025_14_34_25_10654.jpg', '/home/nano/Desktop/images/18082025/14/34/image_18082025_14_34_14_9664.jpg', '/home/nano/Desktop/images/18082025/14/33/image_18082025_14_34_05_9654.jpg', '/home/nano/Desktop/images/18082025/14/33/image_18082025_14_33_55_10644.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/34/image_18082025_14_34_44_9633.jpg
/home/nano/Desktop/images/18082025/14/34/image_18082025_14_34_35_9637.jpg
/home/nano/Desktop/images/18082025/14/34/image_18082025_14_34_25_10654.jpg
/home/nano/Desktop/images/18082025/14/34/image_18082025_14_34_14_9664.jpg
/home/nano/Desktop/images/18082025/14/33/image_18082025_14_34_05_9654.jpg
/home/nano/Desktop/images/18082025/14/33/image_18082025_14_33_55_10644.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.2631590366363525 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:35:03.007396
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/34/image_18082025_14_34_44_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/14/34/image_18082025_14_34_35_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/14/34/image_18082025_14_34_25_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/14/34/image_18082025_14_34_14_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/14/33/image_18082025_14_34_05_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/14/33/image_18082025_14_33_55_10644.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/34/image_18082025_14_34_44_9633.jpg', '/home/nano/Desktop/images/18082025/14/34/image_18082025_14_34_35_9637.jpg', '/home/nano/Desktop/images/18082025/14/34/image_18082025_14_34_25_10654.jpg', '/home/nano/Desktop/images/18082025/14/34/image_18082025_14_34_14_9664.jpg', '/home/nano/Desktop/images/18082025/14/33/image_18082025_14_34_05_9654.jpg', '/home/nano/Desktop/images/18082025/14/33/image_18082025_14_33_55_10644.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/34/image_18082025_14_34_44_9633.jpg
/home/nano/Desktop/images/18082025/14/34/image_18082025_14_34_35_9637.jpg
/home/nano/Desktop/images/18082025/14/34/image_18082025_14_34_25_10654.jpg
/home/nano/Desktop/images/18082025/14/34/image_18082025_14_34_14_9664.jpg
/home/nano/Desktop/images/18082025/14/33/image_18082025_14_34_05_9654.jpg
/home/nano/Desktop/images/18082025/14/33/image_18082025_14_33_55_10644.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377703771","1377703756","1377703776","1377703761","1377703767","1377703763"],"photo_ids_order":["1377703756","1377703761","1377703763","1377703767","1377703771","1377703776"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d6466a2ec1ea09301d1c443988c352ed.jpg","text":"TemporaryFile(/tmp/multipartBody3700084163536560629asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520564302,"filename":"image_18082025_14_34_05_9654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/46f5d00ee8b32cd9495cb45f82af66d8.jpg","text":"TemporaryFile(/tmp/multipartBody1143598410130507505asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520564302,"filename":"image_18082025_14_34_44_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9b8984e684b025e64a8340a3953629a5.jpg","text":"TemporaryFile(/tmp/multipartBody3336588239688775169asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520564302,"filename":"image_18082025_14_33_55_10644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2d90f1cceeadf50dd6ef59f78461bd52.jpg","text":"TemporaryFile(/tmp/multipartBody5958725897769984747asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520564302,"filename":"image_18082025_14_34_35_9637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a96c4101f502f6c36d4ab0acdebc199f.jpg","text":"TemporaryFile(/tmp/multipartBody6935492371441554813asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520564302,"filename":"image_18082025_14_34_14_9664.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/570f3ec96c55446f00c29601298571e8.jpg","text":"TemporaryFile(/tmp/multipartBody871072739309569239asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520564302,"filename":"image_18082025_14_34_25_10654.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377703763","file1":"1377703761","file0":"1377703756","file4":"1377703771","file5":"1377703776","file3":"1377703767"},"map_files_photo_id_array":[{"photo_id":"1377703776","filename":"file5"},{"photo_id":"1377703763","filename":"file2"},{"photo_id":"1377703771","filename":"file4"},{"photo_id":"1377703761","filename":"file1"},{"photo_id":"1377703756","filename":"file0"},{"photo_id":"1377703767","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377703771":["hashtag1","hashtag2"]},{"1377703756":["hashtag1","hashtag2"]},{"1377703776":["hashtag1","hashtag2"]},{"1377703761":["hashtag1","hashtag2"]},{"1377703767":["hashtag1","hashtag2"]},{"1377703763":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377703771, 1377703756, 1377703776, 1377703761, 1377703767, 1377703763)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.681960344314575 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:35:47.381353
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/35/image_18082025_14_35_44_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/14/35/image_18082025_14_35_35_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/14/35/image_18082025_14_35_25_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/14/35/image_18082025_14_35_14_9674.jpg', 2), ('/home/nano/Desktop/images/18082025/14/34/image_18082025_14_35_05_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/14/34/image_18082025_14_34_55_10644.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/35/image_18082025_14_35_44_9649.jpg', '/home/nano/Desktop/images/18082025/14/35/image_18082025_14_35_35_9633.jpg', '/home/nano/Desktop/images/18082025/14/35/image_18082025_14_35_25_10642.jpg', '/home/nano/Desktop/images/18082025/14/35/image_18082025_14_35_14_9674.jpg', '/home/nano/Desktop/images/18082025/14/34/image_18082025_14_35_05_9656.jpg', '/home/nano/Desktop/images/18082025/14/34/image_18082025_14_34_55_10644.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/35/image_18082025_14_35_44_9649.jpg
/home/nano/Desktop/images/18082025/14/35/image_18082025_14_35_35_9633.jpg
/home/nano/Desktop/images/18082025/14/35/image_18082025_14_35_25_10642.jpg
/home/nano/Desktop/images/18082025/14/35/image_18082025_14_35_14_9674.jpg
/home/nano/Desktop/images/18082025/14/34/image_18082025_14_35_05_9656.jpg
/home/nano/Desktop/images/18082025/14/34/image_18082025_14_34_55_10644.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377703801","1377703788","1377703797","1377703790","1377703793","1377703787"],"photo_ids_order":["1377703787","1377703788","1377703790","1377703793","1377703797","1377703801"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bb985098647905d19168540a10946fdf.jpg","text":"TemporaryFile(/tmp/multipartBody5934550732480894582asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520608798,"filename":"image_18082025_14_34_55_10644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4db990067df32fec9a092dfa22366a51.jpg","text":"TemporaryFile(/tmp/multipartBody6793647781126860865asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520608798,"filename":"image_18082025_14_35_35_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/eb3382eaf9fa0147aeccb92cd62a70b3.jpg","text":"TemporaryFile(/tmp/multipartBody4821528732102677042asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520608798,"filename":"image_18082025_14_35_05_9656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/64787bf8b7563e91c4272ac5064426b0.jpg","text":"TemporaryFile(/tmp/multipartBody3155511435435123010asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520608798,"filename":"image_18082025_14_35_25_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3686dcb877e826265fb8799f9e141891.jpg","text":"TemporaryFile(/tmp/multipartBody5816847023526154154asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520608798,"filename":"image_18082025_14_35_14_9674.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/03501ab230522144c28aee00dfdb3be8.jpg","text":"TemporaryFile(/tmp/multipartBody4105064352791147115asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520608798,"filename":"image_18082025_14_35_44_9649.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377703790","file1":"1377703788","file0":"1377703787","file4":"1377703797","file5":"1377703801","file3":"1377703793"},"map_files_photo_id_array":[{"photo_id":"1377703801","filename":"file5"},{"photo_id":"1377703790","filename":"file2"},{"photo_id":"1377703797","filename":"file4"},{"photo_id":"1377703788","filename":"file1"},{"photo_id":"1377703787","filename":"file0"},{"photo_id":"1377703793","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377703801":["hashtag1","hashtag2"]},{"1377703788":["hashtag1","hashtag2"]},{"1377703797":["hashtag1","hashtag2"]},{"1377703790":["hashtag1","hashtag2"]},{"1377703793":["hashtag1","hashtag2"]},{"1377703787":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377703801, 1377703788, 1377703797, 1377703790, 1377703793, 1377703787)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.51764392852783 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:36:32.473416
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/36/image_18082025_14_36_44_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/14/36/image_18082025_14_36_34_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/14/36/image_18082025_14_36_25_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/14/36/image_18082025_14_36_14_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/14/35/image_18082025_14_36_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/14/35/image_18082025_14_35_55_10647.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/36/image_18082025_14_36_44_9628.jpg', '/home/nano/Desktop/images/18082025/14/36/image_18082025_14_36_34_9652.jpg', '/home/nano/Desktop/images/18082025/14/36/image_18082025_14_36_25_10656.jpg', '/home/nano/Desktop/images/18082025/14/36/image_18082025_14_36_14_9659.jpg', '/home/nano/Desktop/images/18082025/14/35/image_18082025_14_36_04_9655.jpg', '/home/nano/Desktop/images/18082025/14/35/image_18082025_14_35_55_10647.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/36/image_18082025_14_36_44_9628.jpg
/home/nano/Desktop/images/18082025/14/36/image_18082025_14_36_34_9652.jpg
/home/nano/Desktop/images/18082025/14/36/image_18082025_14_36_25_10656.jpg
/home/nano/Desktop/images/18082025/14/36/image_18082025_14_36_14_9659.jpg
/home/nano/Desktop/images/18082025/14/35/image_18082025_14_36_04_9655.jpg
/home/nano/Desktop/images/18082025/14/35/image_18082025_14_35_55_10647.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377703831","1377703828","1377703816","1377703824","1377703818","1377703820"],"photo_ids_order":["1377703816","1377703818","1377703820","1377703824","1377703828","1377703831"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/74d1a9de978f19757751f7d8be5fba82.jpg","text":"TemporaryFile(/tmp/multipartBody8078635464730308136asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520653810,"filename":"image_18082025_14_35_55_10647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2378b0d963a501f2b2eb497637391934.jpg","text":"TemporaryFile(/tmp/multipartBody6487798913928189221asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520653810,"filename":"image_18082025_14_36_04_9655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/be9f0db58f546a1bbb6ee19ac920a717.jpg","text":"TemporaryFile(/tmp/multipartBody4714814248594853581asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520653810,"filename":"image_18082025_14_36_44_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d68b6ec630bcece78bacc77b653a42ab.jpg","text":"TemporaryFile(/tmp/multipartBody5901835504731188873asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520653810,"filename":"image_18082025_14_36_14_9659.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/95e22478102d6a2b44e250193f67c08d.jpg","text":"TemporaryFile(/tmp/multipartBody4137116311091923402asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520653810,"filename":"image_18082025_14_36_34_9652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9da00992f5eb8b7aa650f2b4d123b40a.jpg","text":"TemporaryFile(/tmp/multipartBody7103571456812984334asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520653810,"filename":"image_18082025_14_36_25_10656.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377703820","file1":"1377703818","file0":"1377703816","file4":"1377703828","file5":"1377703831","file3":"1377703824"},"map_files_photo_id_array":[{"photo_id":"1377703831","filename":"file5"},{"photo_id":"1377703820","filename":"file2"},{"photo_id":"1377703828","filename":"file4"},{"photo_id":"1377703818","filename":"file1"},{"photo_id":"1377703816","filename":"file0"},{"photo_id":"1377703824","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377703831":["hashtag1","hashtag2"]},{"1377703828":["hashtag1","hashtag2"]},{"1377703816":["hashtag1","hashtag2"]},{"1377703824":["hashtag1","hashtag2"]},{"1377703818":["hashtag1","hashtag2"]},{"1377703820":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377703831, 1377703828, 1377703816, 1377703824, 1377703818, 1377703820)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.00640654563904 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:37:17.590344
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/37/image_18082025_14_37_45_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/14/37/image_18082025_14_37_34_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/14/37/image_18082025_14_37_25_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/14/37/image_18082025_14_37_15_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/14/36/image_18082025_14_37_04_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/14/36/image_18082025_14_36_55_10642.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/37/image_18082025_14_37_45_10641.jpg', '/home/nano/Desktop/images/18082025/14/37/image_18082025_14_37_34_9636.jpg', '/home/nano/Desktop/images/18082025/14/37/image_18082025_14_37_25_9629.jpg', '/home/nano/Desktop/images/18082025/14/37/image_18082025_14_37_15_10665.jpg', '/home/nano/Desktop/images/18082025/14/36/image_18082025_14_37_04_9642.jpg', '/home/nano/Desktop/images/18082025/14/36/image_18082025_14_36_55_10642.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/37/image_18082025_14_37_45_10641.jpg
/home/nano/Desktop/images/18082025/14/37/image_18082025_14_37_34_9636.jpg
/home/nano/Desktop/images/18082025/14/37/image_18082025_14_37_25_9629.jpg
/home/nano/Desktop/images/18082025/14/37/image_18082025_14_37_15_10665.jpg
/home/nano/Desktop/images/18082025/14/36/image_18082025_14_37_04_9642.jpg
/home/nano/Desktop/images/18082025/14/36/image_18082025_14_36_55_10642.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377703850","1377703860","1377703854","1377703857","1377703847","1377703862"],"photo_ids_order":["1377703847","1377703850","1377703854","1377703857","1377703860","1377703862"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5a616f65492470838e3b32457f07d5dd.jpg","text":"TemporaryFile(/tmp/multipartBody666503715643861933asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520698848,"filename":"image_18082025_14_37_34_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e0395e53385e780a87e976f5cdb462e5.jpg","text":"TemporaryFile(/tmp/multipartBody5641702776418595912asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520698848,"filename":"image_18082025_14_37_04_9642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1cf5006dbc5e8b62b5c7180e7f33af8d.jpg","text":"TemporaryFile(/tmp/multipartBody5969923714395045008asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520698848,"filename":"image_18082025_14_37_25_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/712de86e856bc63508d784bdfb0d4945.jpg","text":"TemporaryFile(/tmp/multipartBody6801092850060617789asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520698848,"filename":"image_18082025_14_37_15_10665.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a1535a72b474d6176548fa9e6c37fada.jpg","text":"TemporaryFile(/tmp/multipartBody6989490914185968515asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520698848,"filename":"image_18082025_14_37_45_10641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d04913629e5e9ed426b44d304995b191.jpg","text":"TemporaryFile(/tmp/multipartBody8517169778696404579asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520698848,"filename":"image_18082025_14_36_55_10642.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377703854","file1":"1377703850","file0":"1377703847","file4":"1377703860","file5":"1377703862","file3":"1377703857"},"map_files_photo_id_array":[{"photo_id":"1377703862","filename":"file5"},{"photo_id":"1377703854","filename":"file2"},{"photo_id":"1377703860","filename":"file4"},{"photo_id":"1377703850","filename":"file1"},{"photo_id":"1377703847","filename":"file0"},{"photo_id":"1377703857","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377703850":["hashtag1","hashtag2"]},{"1377703860":["hashtag1","hashtag2"]},{"1377703854":["hashtag1","hashtag2"]},{"1377703857":["hashtag1","hashtag2"]},{"1377703847":["hashtag1","hashtag2"]},{"1377703862":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377703850, 1377703860, 1377703854, 1377703857, 1377703847, 1377703862)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.543993949890137 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:38:03.181887
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/01/image_18082025_11_01_45_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/11/01/image_18082025_11_01_34_9708.jpg', 2), ('/home/nano/Desktop/images/18082025/11/01/image_18082025_11_01_24_9703.jpg', 2), ('/home/nano/Desktop/images/18082025/11/01/image_18082025_11_01_15_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/11/00/image_18082025_11_01_05_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/11/00/image_18082025_11_00_54_9647.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/01/image_18082025_11_01_45_10635.jpg', '/home/nano/Desktop/images/18082025/11/01/image_18082025_11_01_34_9708.jpg', '/home/nano/Desktop/images/18082025/11/01/image_18082025_11_01_24_9703.jpg', '/home/nano/Desktop/images/18082025/11/01/image_18082025_11_01_15_9658.jpg', '/home/nano/Desktop/images/18082025/11/00/image_18082025_11_01_05_10669.jpg', '/home/nano/Desktop/images/18082025/11/00/image_18082025_11_00_54_9647.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/01/image_18082025_11_01_45_10635.jpg
/home/nano/Desktop/images/18082025/11/01/image_18082025_11_01_34_9708.jpg
/home/nano/Desktop/images/18082025/11/01/image_18082025_11_01_24_9703.jpg
/home/nano/Desktop/images/18082025/11/01/image_18082025_11_01_15_9658.jpg
/home/nano/Desktop/images/18082025/11/00/image_18082025_11_01_05_10669.jpg
/home/nano/Desktop/images/18082025/11/00/image_18082025_11_00_54_9647.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377703879","1377703872","1377703875","1377703883","1377703886","1377703889"],"photo_ids_order":["1377703872","1377703875","1377703879","1377703883","1377703886","1377703889"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/764d43e7e202cac5fcc51efe67a35cca.jpg","text":"TemporaryFile(/tmp/multipartBody3292263388663608489asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520745090,"filename":"image_18082025_11_01_24_9703.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fec8aee056f47f710e9547670d686ef0.jpg","text":"TemporaryFile(/tmp/multipartBody6186440512976995067asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520745090,"filename":"image_18082025_11_01_45_10635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/47f0c705f4b3deef9407cb7b9f701ace.jpg","text":"TemporaryFile(/tmp/multipartBody3247434489472732456asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520745090,"filename":"image_18082025_11_01_34_9708.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/86f31b36691984b793514171daec4d9e.jpg","text":"TemporaryFile(/tmp/multipartBody5744657563594637034asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520745090,"filename":"image_18082025_11_01_15_9658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/68e5a23a24bf4119d1591fe517163988.jpg","text":"TemporaryFile(/tmp/multipartBody3327493879745402837asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520745090,"filename":"image_18082025_11_01_05_10669.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/988ca4906669a5ef5ad0a10b791be870.jpg","text":"TemporaryFile(/tmp/multipartBody8850560620887850087asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520745090,"filename":"image_18082025_11_00_54_9647.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377703879","file1":"1377703875","file0":"1377703872","file4":"1377703886","file5":"1377703889","file3":"1377703883"},"map_files_photo_id_array":[{"photo_id":"1377703889","filename":"file5"},{"photo_id":"1377703879","filename":"file2"},{"photo_id":"1377703886","filename":"file4"},{"photo_id":"1377703875","filename":"file1"},{"photo_id":"1377703872","filename":"file0"},{"photo_id":"1377703883","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377703879":["hashtag1","hashtag2"]},{"1377703872":["hashtag1","hashtag2"]},{"1377703875":["hashtag1","hashtag2"]},{"1377703883":["hashtag1","hashtag2"]},{"1377703886":["hashtag1","hashtag2"]},{"1377703889":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377703879, 1377703872, 1377703875, 1377703883, 1377703886, 1377703889)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.36014461517334 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:38:47.670864
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/38/image_18082025_14_38_24_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/14/38/image_18082025_14_38_15_10679.jpg', 2), ('/home/nano/Desktop/images/18082025/14/37/image_18082025_14_38_04_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/14/37/image_18082025_14_37_55_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/11/00/image_18082025_11_00_45_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/11/00/image_18082025_11_00_35_10647.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/38/image_18082025_14_38_24_9633.jpg', '/home/nano/Desktop/images/18082025/14/38/image_18082025_14_38_15_10679.jpg', '/home/nano/Desktop/images/18082025/14/37/image_18082025_14_38_04_9636.jpg', '/home/nano/Desktop/images/18082025/14/37/image_18082025_14_37_55_9632.jpg', '/home/nano/Desktop/images/18082025/11/00/image_18082025_11_00_45_9644.jpg', '/home/nano/Desktop/images/18082025/11/00/image_18082025_11_00_35_10647.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/38/image_18082025_14_38_24_9633.jpg
/home/nano/Desktop/images/18082025/14/38/image_18082025_14_38_15_10679.jpg
/home/nano/Desktop/images/18082025/14/37/image_18082025_14_38_04_9636.jpg
/home/nano/Desktop/images/18082025/14/37/image_18082025_14_37_55_9632.jpg
/home/nano/Desktop/images/18082025/11/00/image_18082025_11_00_45_9644.jpg
/home/nano/Desktop/images/18082025/11/00/image_18082025_11_00_35_10647.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377703901","1377703906","1377703900","1377703899","1377703903","1377703898"],"photo_ids_order":["1377703898","1377703899","1377703900","1377703901","1377703903","1377703906"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5f01bfe3876df1b64e6c34f949a54986.jpg","text":"TemporaryFile(/tmp/multipartBody8945250232514805384asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520789000,"filename":"image_18082025_14_37_55_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/be79141cd5555967ad3089c741a25b0c.jpg","text":"TemporaryFile(/tmp/multipartBody9089031346270526461asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520789000,"filename":"image_18082025_11_00_35_10647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/26cce6ceb33f9da2006b1031fae5ef46.jpg","text":"TemporaryFile(/tmp/multipartBody5983398861031344249asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520789000,"filename":"image_18082025_14_38_04_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9b73f41e59b416cf4155273a071ec0fa.jpg","text":"TemporaryFile(/tmp/multipartBody2356377071613477590asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520789000,"filename":"image_18082025_14_38_15_10679.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e949a276c83671bb4e78479e155cf189.jpg","text":"TemporaryFile(/tmp/multipartBody1713260161267543359asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520789000,"filename":"image_18082025_11_00_45_9644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0f47b666bb9d639a7933d400f45c7086.jpg","text":"TemporaryFile(/tmp/multipartBody5532029705208297592asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520789000,"filename":"image_18082025_14_38_24_9633.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377703900","file1":"1377703899","file0":"1377703898","file4":"1377703903","file5":"1377703906","file3":"1377703901"},"map_files_photo_id_array":[{"photo_id":"1377703906","filename":"file5"},{"photo_id":"1377703900","filename":"file2"},{"photo_id":"1377703903","filename":"file4"},{"photo_id":"1377703899","filename":"file1"},{"photo_id":"1377703898","filename":"file0"},{"photo_id":"1377703901","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377703901":["hashtag1","hashtag2"]},{"1377703906":["hashtag1","hashtag2"]},{"1377703900":["hashtag1","hashtag2"]},{"1377703899":["hashtag1","hashtag2"]},{"1377703903":["hashtag1","hashtag2"]},{"1377703898":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377703901, 1377703906, 1377703900, 1377703899, 1377703903, 1377703898)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.531555652618408 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:39:31.797419
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/39/image_18082025_14_39_45_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/14/39/image_18082025_14_39_35_10643.jpg', 2), ('/home/nano/Desktop/images/18082025/14/39/image_18082025_14_39_24_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/14/39/image_18082025_14_39_15_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/14/38/image_18082025_14_39_05_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/14/38/image_18082025_14_38_45_10642.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/39/image_18082025_14_39_45_9640.jpg', '/home/nano/Desktop/images/18082025/14/39/image_18082025_14_39_35_10643.jpg', '/home/nano/Desktop/images/18082025/14/39/image_18082025_14_39_24_9630.jpg', '/home/nano/Desktop/images/18082025/14/39/image_18082025_14_39_15_9659.jpg', '/home/nano/Desktop/images/18082025/14/38/image_18082025_14_39_05_10659.jpg', '/home/nano/Desktop/images/18082025/14/38/image_18082025_14_38_45_10642.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/39/image_18082025_14_39_45_9640.jpg
/home/nano/Desktop/images/18082025/14/39/image_18082025_14_39_35_10643.jpg
/home/nano/Desktop/images/18082025/14/39/image_18082025_14_39_24_9630.jpg
/home/nano/Desktop/images/18082025/14/39/image_18082025_14_39_15_9659.jpg
/home/nano/Desktop/images/18082025/14/38/image_18082025_14_39_05_10659.jpg
/home/nano/Desktop/images/18082025/14/38/image_18082025_14_38_45_10642.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377703922","1377703919","1377703924","1377703918","1377703926","1377703920"],"photo_ids_order":["1377703918","1377703919","1377703920","1377703922","1377703924","1377703926"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/40a2e1e8a5ec6c730214edd44d6e5b7b.jpg","text":"TemporaryFile(/tmp/multipartBody2001780520158569111asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520833412,"filename":"image_18082025_14_39_15_9659.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7771905110a2abf725b2b0c80bdf41ce.jpg","text":"TemporaryFile(/tmp/multipartBody5196632901019668695asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520833412,"filename":"image_18082025_14_39_35_10643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/20850a36ccb98c9ff5ad94d194a20175.jpg","text":"TemporaryFile(/tmp/multipartBody7932886414269076075asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520833412,"filename":"image_18082025_14_39_05_10659.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/063ec70b0152d270fa675b21f8ab51df.jpg","text":"TemporaryFile(/tmp/multipartBody519698989656176099asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520833412,"filename":"image_18082025_14_39_45_9640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/528c9cf3d54afc1a75619d6351053a6c.jpg","text":"TemporaryFile(/tmp/multipartBody1008345779127776786asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520833412,"filename":"image_18082025_14_38_45_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/31b83b3f0220acc6aba13a9393201a1c.jpg","text":"TemporaryFile(/tmp/multipartBody1360642798880295480asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520833412,"filename":"image_18082025_14_39_24_9630.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377703920","file1":"1377703919","file0":"1377703918","file4":"1377703924","file5":"1377703926","file3":"1377703922"},"map_files_photo_id_array":[{"photo_id":"1377703926","filename":"file5"},{"photo_id":"1377703920","filename":"file2"},{"photo_id":"1377703924","filename":"file4"},{"photo_id":"1377703919","filename":"file1"},{"photo_id":"1377703918","filename":"file0"},{"photo_id":"1377703922","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377703922":["hashtag1","hashtag2"]},{"1377703919":["hashtag1","hashtag2"]},{"1377703924":["hashtag1","hashtag2"]},{"1377703918":["hashtag1","hashtag2"]},{"1377703926":["hashtag1","hashtag2"]},{"1377703920":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377703922, 1377703919, 1377703924, 1377703918, 1377703926, 1377703920)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.080270767211914 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:40:16.878667
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/40/image_18082025_14_40_54_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/14/40/image_18082025_14_40_35_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/14/40/image_18082025_14_40_24_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/14/40/image_18082025_14_40_15_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/14/39/image_18082025_14_40_05_10683.jpg', 2), ('/home/nano/Desktop/images/18082025/14/39/image_18082025_14_39_54_9634.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/40/image_18082025_14_40_54_9630.jpg', '/home/nano/Desktop/images/18082025/14/40/image_18082025_14_40_35_10642.jpg', '/home/nano/Desktop/images/18082025/14/40/image_18082025_14_40_24_9644.jpg', '/home/nano/Desktop/images/18082025/14/40/image_18082025_14_40_15_9661.jpg', '/home/nano/Desktop/images/18082025/14/39/image_18082025_14_40_05_10683.jpg', '/home/nano/Desktop/images/18082025/14/39/image_18082025_14_39_54_9634.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/40/image_18082025_14_40_54_9630.jpg
/home/nano/Desktop/images/18082025/14/40/image_18082025_14_40_35_10642.jpg
/home/nano/Desktop/images/18082025/14/40/image_18082025_14_40_24_9644.jpg
/home/nano/Desktop/images/18082025/14/40/image_18082025_14_40_15_9661.jpg
/home/nano/Desktop/images/18082025/14/39/image_18082025_14_40_05_10683.jpg
/home/nano/Desktop/images/18082025/14/39/image_18082025_14_39_54_9634.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377703937","1377703944","1377703947","1377703952","1377703949","1377703940"],"photo_ids_order":["1377703937","1377703940","1377703944","1377703947","1377703949","1377703952"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d4f389c62078d911e26dfd1bbb55c02c.jpg","text":"TemporaryFile(/tmp/multipartBody7532084110558003003asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520878217,"filename":"image_18082025_14_40_54_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/89d6febfe2aa240acbcaeb1c91a70535.jpg","text":"TemporaryFile(/tmp/multipartBody8668906333869327196asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520878217,"filename":"image_18082025_14_40_24_9644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/80537954e067f206c8ea9ebb9c2243a1.jpg","text":"TemporaryFile(/tmp/multipartBody3021289952272476603asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520878217,"filename":"image_18082025_14_40_15_9661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cbbb82bf96999c298c4d6b3f7352358c.jpg","text":"TemporaryFile(/tmp/multipartBody3062634982685942166asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520878217,"filename":"image_18082025_14_39_54_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d5181f0199139e0192f02b17b8439497.jpg","text":"TemporaryFile(/tmp/multipartBody513554961904455534asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520878217,"filename":"image_18082025_14_40_05_10683.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/68949ec35a9fb0c05c3bf3ef26515334.jpg","text":"TemporaryFile(/tmp/multipartBody7568257454272520695asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520878217,"filename":"image_18082025_14_40_35_10642.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377703944","file1":"1377703940","file0":"1377703937","file4":"1377703949","file5":"1377703952","file3":"1377703947"},"map_files_photo_id_array":[{"photo_id":"1377703952","filename":"file5"},{"photo_id":"1377703944","filename":"file2"},{"photo_id":"1377703949","filename":"file4"},{"photo_id":"1377703940","filename":"file1"},{"photo_id":"1377703937","filename":"file0"},{"photo_id":"1377703947","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377703937":["hashtag1","hashtag2"]},{"1377703944":["hashtag1","hashtag2"]},{"1377703947":["hashtag1","hashtag2"]},{"1377703952":["hashtag1","hashtag2"]},{"1377703949":["hashtag1","hashtag2"]},{"1377703940":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377703937, 1377703944, 1377703947, 1377703952, 1377703949, 1377703940)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.442163228988647 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:41:02.640601
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/11/00/image_18082025_11_00_24_9727.jpg', 2), ('/home/nano/Desktop/images/18082025/11/00/image_18082025_11_00_15_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/10/59/image_18082025_11_00_05_10720.jpg', 2), ('/home/nano/Desktop/images/18082025/10/59/image_18082025_10_59_54_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/10/59/image_18082025_10_59_45_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/10/59/image_18082025_10_59_35_10703.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/11/00/image_18082025_11_00_24_9727.jpg', '/home/nano/Desktop/images/18082025/11/00/image_18082025_11_00_15_9656.jpg', '/home/nano/Desktop/images/18082025/10/59/image_18082025_11_00_05_10720.jpg', '/home/nano/Desktop/images/18082025/10/59/image_18082025_10_59_54_9653.jpg', '/home/nano/Desktop/images/18082025/10/59/image_18082025_10_59_45_9613.jpg', '/home/nano/Desktop/images/18082025/10/59/image_18082025_10_59_35_10703.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/11/00/image_18082025_11_00_24_9727.jpg
/home/nano/Desktop/images/18082025/11/00/image_18082025_11_00_15_9656.jpg
/home/nano/Desktop/images/18082025/10/59/image_18082025_11_00_05_10720.jpg
/home/nano/Desktop/images/18082025/10/59/image_18082025_10_59_54_9653.jpg
/home/nano/Desktop/images/18082025/10/59/image_18082025_10_59_45_9613.jpg
/home/nano/Desktop/images/18082025/10/59/image_18082025_10_59_35_10703.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377703969","1377703963","1377703972","1377703966","1377703958","1377703961"],"photo_ids_order":["1377703958","1377703961","1377703963","1377703966","1377703969","1377703972"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a3c2022017522486199a915e1f8f0f5d.jpg","text":"TemporaryFile(/tmp/multipartBody6968682858659074244asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520923846,"filename":"image_18082025_10_59_45_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e478298f07c1d016cb7fb9f551de2736.jpg","text":"TemporaryFile(/tmp/multipartBody2379098890447775476asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520923846,"filename":"image_18082025_11_00_05_10720.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a81338a65b03e2cec3a11b75aa43e8f3.jpg","text":"TemporaryFile(/tmp/multipartBody8564612964359641134asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520923846,"filename":"image_18082025_10_59_35_10703.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5e1e9f82aadd5920d6e943ab3c7e9c49.jpg","text":"TemporaryFile(/tmp/multipartBody7395900707982841037asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520923846,"filename":"image_18082025_10_59_54_9653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7fe2e7d126321fd7d0dce7d63323e243.jpg","text":"TemporaryFile(/tmp/multipartBody6479136767761233365asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520923846,"filename":"image_18082025_11_00_24_9727.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/337e081a79bd9fc39ab3dd0b430e0663.jpg","text":"TemporaryFile(/tmp/multipartBody8402490110780595164asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520923846,"filename":"image_18082025_11_00_15_9656.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377703963","file1":"1377703961","file0":"1377703958","file4":"1377703969","file5":"1377703972","file3":"1377703966"},"map_files_photo_id_array":[{"photo_id":"1377703972","filename":"file5"},{"photo_id":"1377703963","filename":"file2"},{"photo_id":"1377703969","filename":"file4"},{"photo_id":"1377703961","filename":"file1"},{"photo_id":"1377703958","filename":"file0"},{"photo_id":"1377703966","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377703969":["hashtag1","hashtag2"]},{"1377703963":["hashtag1","hashtag2"]},{"1377703972":["hashtag1","hashtag2"]},{"1377703966":["hashtag1","hashtag2"]},{"1377703958":["hashtag1","hashtag2"]},{"1377703961":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377703969, 1377703963, 1377703972, 1377703966, 1377703958, 1377703961)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.159268140792847 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:41:47.114651
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/41/image_18082025_14_41_44_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/14/41/image_18082025_14_41_35_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/14/41/image_18082025_14_41_24_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/14/41/image_18082025_14_41_14_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/14/40/image_18082025_14_41_05_10677.jpg', 2), ('/home/nano/Desktop/images/18082025/14/40/image_18082025_14_40_45_9635.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/41/image_18082025_14_41_44_9633.jpg', '/home/nano/Desktop/images/18082025/14/41/image_18082025_14_41_35_10660.jpg', '/home/nano/Desktop/images/18082025/14/41/image_18082025_14_41_24_9632.jpg', '/home/nano/Desktop/images/18082025/14/41/image_18082025_14_41_14_9645.jpg', '/home/nano/Desktop/images/18082025/14/40/image_18082025_14_41_05_10677.jpg', '/home/nano/Desktop/images/18082025/14/40/image_18082025_14_40_45_9635.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/41/image_18082025_14_41_44_9633.jpg
/home/nano/Desktop/images/18082025/14/41/image_18082025_14_41_35_10660.jpg
/home/nano/Desktop/images/18082025/14/41/image_18082025_14_41_24_9632.jpg
/home/nano/Desktop/images/18082025/14/41/image_18082025_14_41_14_9645.jpg
/home/nano/Desktop/images/18082025/14/40/image_18082025_14_41_05_10677.jpg
/home/nano/Desktop/images/18082025/14/40/image_18082025_14_40_45_9635.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377703987","1377703990","1377703998","1377703983","1377703994","1377703985"],"photo_ids_order":["1377703983","1377703985","1377703987","1377703990","1377703994","1377703998"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a740cd7734efa140c3e8bbf60ad4f80b.jpg","text":"TemporaryFile(/tmp/multipartBody531331290015818971asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520968479,"filename":"image_18082025_14_41_24_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/90b00377ca4bff494f3d29a93c44d610.jpg","text":"TemporaryFile(/tmp/multipartBody3907451866739855355asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520968479,"filename":"image_18082025_14_41_14_9645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f5cc247def498394c1342398a1a8a46f.jpg","text":"TemporaryFile(/tmp/multipartBody5737011960735275301asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520968479,"filename":"image_18082025_14_40_45_9635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dc733821449ae886994fd53955fc460b.jpg","text":"TemporaryFile(/tmp/multipartBody3040177163255007061asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520968479,"filename":"image_18082025_14_41_44_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8e1a344f8df8a5d7aff82dca40098abf.jpg","text":"TemporaryFile(/tmp/multipartBody877696008107039348asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520968479,"filename":"image_18082025_14_41_05_10677.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5fed5947927e970f2455e2f8768d2d84.jpg","text":"TemporaryFile(/tmp/multipartBody8740865551537308963asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755520968479,"filename":"image_18082025_14_41_35_10660.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377703987","file1":"1377703985","file0":"1377703983","file4":"1377703994","file5":"1377703998","file3":"1377703990"},"map_files_photo_id_array":[{"photo_id":"1377703998","filename":"file5"},{"photo_id":"1377703987","filename":"file2"},{"photo_id":"1377703994","filename":"file4"},{"photo_id":"1377703985","filename":"file1"},{"photo_id":"1377703983","filename":"file0"},{"photo_id":"1377703990","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377703987":["hashtag1","hashtag2"]},{"1377703990":["hashtag1","hashtag2"]},{"1377703998":["hashtag1","hashtag2"]},{"1377703983":["hashtag1","hashtag2"]},{"1377703994":["hashtag1","hashtag2"]},{"1377703985":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377703987, 1377703990, 1377703998, 1377703983, 1377703994, 1377703985)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.05636548995972 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:42:32.206189
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/42/image_18082025_14_42_44_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/14/42/image_18082025_14_42_35_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/14/42/image_18082025_14_42_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/14/41/image_18082025_14_42_05_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/14/41/image_18082025_14_41_55_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/10/59/image_18082025_10_59_24_9685.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/42/image_18082025_14_42_44_9637.jpg', '/home/nano/Desktop/images/18082025/14/42/image_18082025_14_42_35_9629.jpg', '/home/nano/Desktop/images/18082025/14/42/image_18082025_14_42_14_9658.jpg', '/home/nano/Desktop/images/18082025/14/41/image_18082025_14_42_05_9645.jpg', '/home/nano/Desktop/images/18082025/14/41/image_18082025_14_41_55_10641.jpg', '/home/nano/Desktop/images/18082025/10/59/image_18082025_10_59_24_9685.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/42/image_18082025_14_42_44_9637.jpg
/home/nano/Desktop/images/18082025/14/42/image_18082025_14_42_35_9629.jpg
/home/nano/Desktop/images/18082025/14/42/image_18082025_14_42_14_9658.jpg
/home/nano/Desktop/images/18082025/14/41/image_18082025_14_42_05_9645.jpg
/home/nano/Desktop/images/18082025/14/41/image_18082025_14_41_55_10641.jpg
/home/nano/Desktop/images/18082025/10/59/image_18082025_10_59_24_9685.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377704012","1377704014","1377704008","1377704016","1377704010","1377704015"],"photo_ids_order":["1377704008","1377704010","1377704012","1377704014","1377704015","1377704016"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/88bcae4c2ed24030106fe0f04d37a893.jpg","text":"TemporaryFile(/tmp/multipartBody6344189178051527694asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521013545,"filename":"image_18082025_14_42_14_9658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5366b701f669f0915319fb8f1267545e.jpg","text":"TemporaryFile(/tmp/multipartBody1206044478750989793asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521013545,"filename":"image_18082025_14_42_05_9645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d559db9d3e1b9946db432e9406531790.jpg","text":"TemporaryFile(/tmp/multipartBody81087310296638665asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521013545,"filename":"image_18082025_14_42_44_9637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a9225971b8bebc4178e98d4fc9086f4c.jpg","text":"TemporaryFile(/tmp/multipartBody8857301912644526026asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521013545,"filename":"image_18082025_10_59_24_9685.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7beb8b521f47fae4679bb29fc88e806a.jpg","text":"TemporaryFile(/tmp/multipartBody6014919513590962734asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521013545,"filename":"image_18082025_14_42_35_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/effe0ab7dca385126c6490d03984cb44.jpg","text":"TemporaryFile(/tmp/multipartBody5406647645114490458asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521013545,"filename":"image_18082025_14_41_55_10641.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377704012","file1":"1377704010","file0":"1377704008","file4":"1377704015","file5":"1377704016","file3":"1377704014"},"map_files_photo_id_array":[{"photo_id":"1377704016","filename":"file5"},{"photo_id":"1377704012","filename":"file2"},{"photo_id":"1377704015","filename":"file4"},{"photo_id":"1377704010","filename":"file1"},{"photo_id":"1377704008","filename":"file0"},{"photo_id":"1377704014","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377704012":["hashtag1","hashtag2"]},{"1377704014":["hashtag1","hashtag2"]},{"1377704008":["hashtag1","hashtag2"]},{"1377704016":["hashtag1","hashtag2"]},{"1377704010":["hashtag1","hashtag2"]},{"1377704015":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377704012, 1377704014, 1377704008, 1377704016, 1377704010, 1377704015)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.656399965286255 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:43:17.299318
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/43/image_18082025_14_43_44_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/14/43/image_18082025_14_43_34_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/14/43/image_18082025_14_43_25_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/14/43/image_18082025_14_43_14_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/14/42/image_18082025_14_43_05_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/14/42/image_18082025_14_42_55_10637.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/43/image_18082025_14_43_44_9636.jpg', '/home/nano/Desktop/images/18082025/14/43/image_18082025_14_43_34_9631.jpg', '/home/nano/Desktop/images/18082025/14/43/image_18082025_14_43_25_10639.jpg', '/home/nano/Desktop/images/18082025/14/43/image_18082025_14_43_14_9661.jpg', '/home/nano/Desktop/images/18082025/14/42/image_18082025_14_43_05_9648.jpg', '/home/nano/Desktop/images/18082025/14/42/image_18082025_14_42_55_10637.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/43/image_18082025_14_43_44_9636.jpg
/home/nano/Desktop/images/18082025/14/43/image_18082025_14_43_34_9631.jpg
/home/nano/Desktop/images/18082025/14/43/image_18082025_14_43_25_10639.jpg
/home/nano/Desktop/images/18082025/14/43/image_18082025_14_43_14_9661.jpg
/home/nano/Desktop/images/18082025/14/42/image_18082025_14_43_05_9648.jpg
/home/nano/Desktop/images/18082025/14/42/image_18082025_14_42_55_10637.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377704032","1377704034","1377704031","1377704025","1377704028","1377704033"],"photo_ids_order":["1377704025","1377704028","1377704031","1377704032","1377704033","1377704034"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/eed8b4eb4163d5ead5d8a43a90ce3d7f.jpg","text":"TemporaryFile(/tmp/multipartBody4153062395499876080asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521058607,"filename":"image_18082025_14_43_14_9661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b670fc550ca1419f408ed4051f0a21d7.jpg","text":"TemporaryFile(/tmp/multipartBody6555447138527690686asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521058607,"filename":"image_18082025_14_42_55_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a76ef44b4881007f31f36b202fc579f4.jpg","text":"TemporaryFile(/tmp/multipartBody127840883025263200asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521058607,"filename":"image_18082025_14_43_25_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7d3bf315c4bc22fc72ed79a1344c957d.jpg","text":"TemporaryFile(/tmp/multipartBody7959910203660430981asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521058607,"filename":"image_18082025_14_43_44_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c2eb98f0c1dc6dddf9a50f2869a98d76.jpg","text":"TemporaryFile(/tmp/multipartBody710453206678882327asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521058607,"filename":"image_18082025_14_43_34_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7620e5457504358f3ec729a866edbb66.jpg","text":"TemporaryFile(/tmp/multipartBody6796242436989402551asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521058607,"filename":"image_18082025_14_43_05_9648.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377704031","file1":"1377704028","file0":"1377704025","file4":"1377704033","file5":"1377704034","file3":"1377704032"},"map_files_photo_id_array":[{"photo_id":"1377704034","filename":"file5"},{"photo_id":"1377704031","filename":"file2"},{"photo_id":"1377704033","filename":"file4"},{"photo_id":"1377704028","filename":"file1"},{"photo_id":"1377704025","filename":"file0"},{"photo_id":"1377704032","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377704032":["hashtag1","hashtag2"]},{"1377704034":["hashtag1","hashtag2"]},{"1377704031":["hashtag1","hashtag2"]},{"1377704025":["hashtag1","hashtag2"]},{"1377704028":["hashtag1","hashtag2"]},{"1377704033":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377704032, 1377704034, 1377704031, 1377704025, 1377704028, 1377704033)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.13007855415344 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:44:03.071055
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/59/image_18082025_10_59_15_9689.jpg', 2), ('/home/nano/Desktop/images/18082025/10/58/image_18082025_10_59_05_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/10/58/image_18082025_10_58_54_9718.jpg', 2), ('/home/nano/Desktop/images/18082025/10/58/image_18082025_10_58_45_9735.jpg', 2), ('/home/nano/Desktop/images/18082025/10/58/image_18082025_10_58_35_10718.jpg', 2), ('/home/nano/Desktop/images/18082025/10/58/image_18082025_10_58_24_9658.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/59/image_18082025_10_59_15_9689.jpg', '/home/nano/Desktop/images/18082025/10/58/image_18082025_10_59_05_10638.jpg', '/home/nano/Desktop/images/18082025/10/58/image_18082025_10_58_54_9718.jpg', '/home/nano/Desktop/images/18082025/10/58/image_18082025_10_58_45_9735.jpg', '/home/nano/Desktop/images/18082025/10/58/image_18082025_10_58_35_10718.jpg', '/home/nano/Desktop/images/18082025/10/58/image_18082025_10_58_24_9658.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/59/image_18082025_10_59_15_9689.jpg
/home/nano/Desktop/images/18082025/10/58/image_18082025_10_59_05_10638.jpg
/home/nano/Desktop/images/18082025/10/58/image_18082025_10_58_54_9718.jpg
/home/nano/Desktop/images/18082025/10/58/image_18082025_10_58_45_9735.jpg
/home/nano/Desktop/images/18082025/10/58/image_18082025_10_58_35_10718.jpg
/home/nano/Desktop/images/18082025/10/58/image_18082025_10_58_24_9658.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377704044","1377704047","1377704049","1377704051","1377704045","1377704054"],"photo_ids_order":["1377704044","1377704045","1377704047","1377704049","1377704051","1377704054"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/42cda14f9273d8a7e69e2cb05e06aa6b.jpg","text":"TemporaryFile(/tmp/multipartBody2485003780405558589asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521104827,"filename":"image_18082025_10_59_15_9689.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d3821616bac400f363da6da7d512ed6a.jpg","text":"TemporaryFile(/tmp/multipartBody3942955987429367614asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521104827,"filename":"image_18082025_10_58_54_9718.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7812ffab815bffb17ebab0006e418fda.jpg","text":"TemporaryFile(/tmp/multipartBody2310976763525266234asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521104827,"filename":"image_18082025_10_58_45_9735.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d1aa4a0c96fa2646f733ec17387d6e55.jpg","text":"TemporaryFile(/tmp/multipartBody8296917842086859074asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521104827,"filename":"image_18082025_10_58_35_10718.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/adee0761dcd9f4c89ed5d37551d5f30b.jpg","text":"TemporaryFile(/tmp/multipartBody4801407237915553858asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521104827,"filename":"image_18082025_10_59_05_10638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f4c212a75b540094e8b070cae7e4b37d.jpg","text":"TemporaryFile(/tmp/multipartBody4452550692392458146asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521104827,"filename":"image_18082025_10_58_24_9658.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377704047","file1":"1377704045","file0":"1377704044","file4":"1377704051","file5":"1377704054","file3":"1377704049"},"map_files_photo_id_array":[{"photo_id":"1377704054","filename":"file5"},{"photo_id":"1377704047","filename":"file2"},{"photo_id":"1377704051","filename":"file4"},{"photo_id":"1377704045","filename":"file1"},{"photo_id":"1377704044","filename":"file0"},{"photo_id":"1377704049","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377704044":["hashtag1","hashtag2"]},{"1377704047":["hashtag1","hashtag2"]},{"1377704049":["hashtag1","hashtag2"]},{"1377704051":["hashtag1","hashtag2"]},{"1377704045":["hashtag1","hashtag2"]},{"1377704054":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377704044, 1377704047, 1377704049, 1377704051, 1377704045, 1377704054)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.43387293815613 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:44:47.393837
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/44/image_18082025_14_44_45_10643.jpg', 2), ('/home/nano/Desktop/images/18082025/14/44/image_18082025_14_44_34_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/14/44/image_18082025_14_44_25_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/14/44/image_18082025_14_44_14_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/14/43/image_18082025_14_44_04_9677.jpg', 2), ('/home/nano/Desktop/images/18082025/14/43/image_18082025_14_43_55_10642.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/44/image_18082025_14_44_45_10643.jpg', '/home/nano/Desktop/images/18082025/14/44/image_18082025_14_44_34_9633.jpg', '/home/nano/Desktop/images/18082025/14/44/image_18082025_14_44_25_10655.jpg', '/home/nano/Desktop/images/18082025/14/44/image_18082025_14_44_14_9659.jpg', '/home/nano/Desktop/images/18082025/14/43/image_18082025_14_44_04_9677.jpg', '/home/nano/Desktop/images/18082025/14/43/image_18082025_14_43_55_10642.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/44/image_18082025_14_44_45_10643.jpg
/home/nano/Desktop/images/18082025/14/44/image_18082025_14_44_34_9633.jpg
/home/nano/Desktop/images/18082025/14/44/image_18082025_14_44_25_10655.jpg
/home/nano/Desktop/images/18082025/14/44/image_18082025_14_44_14_9659.jpg
/home/nano/Desktop/images/18082025/14/43/image_18082025_14_44_04_9677.jpg
/home/nano/Desktop/images/18082025/14/43/image_18082025_14_43_55_10642.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377704071","1377704065","1377704067","1377704076","1377704072","1377704069"],"photo_ids_order":["1377704065","1377704067","1377704069","1377704071","1377704072","1377704076"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4b3d36ceb7baf84010d6a5cbb8bc63af.jpg","text":"TemporaryFile(/tmp/multipartBody4225842899082425396asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521148891,"filename":"image_18082025_14_44_14_9659.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e775956b7688689d59fb03b362a9b283.jpg","text":"TemporaryFile(/tmp/multipartBody7651375503178079484asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521148891,"filename":"image_18082025_14_44_45_10643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d497266809d156a86bfb128d8bdb37aa.jpg","text":"TemporaryFile(/tmp/multipartBody2184080527174008707asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521148891,"filename":"image_18082025_14_44_34_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d7a17838c4665712f9acdf860b84d3b2.jpg","text":"TemporaryFile(/tmp/multipartBody1684292331116193628asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521148891,"filename":"image_18082025_14_43_55_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fdd96e9daaa3e17b4c92bd6b23a490f8.jpg","text":"TemporaryFile(/tmp/multipartBody4226093417326806805asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521148891,"filename":"image_18082025_14_44_04_9677.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ec250b11a83011192f939ce729fefaf9.jpg","text":"TemporaryFile(/tmp/multipartBody5174342904224243448asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521148891,"filename":"image_18082025_14_44_25_10655.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377704069","file1":"1377704067","file0":"1377704065","file4":"1377704072","file5":"1377704076","file3":"1377704071"},"map_files_photo_id_array":[{"photo_id":"1377704076","filename":"file5"},{"photo_id":"1377704069","filename":"file2"},{"photo_id":"1377704072","filename":"file4"},{"photo_id":"1377704067","filename":"file1"},{"photo_id":"1377704065","filename":"file0"},{"photo_id":"1377704071","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377704071":["hashtag1","hashtag2"]},{"1377704065":["hashtag1","hashtag2"]},{"1377704067":["hashtag1","hashtag2"]},{"1377704076":["hashtag1","hashtag2"]},{"1377704072":["hashtag1","hashtag2"]},{"1377704069":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377704071, 1377704065, 1377704067, 1377704076, 1377704072, 1377704069)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.117498636245728 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:45:32.574905
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/45/image_18082025_14_45_45_10643.jpg', 2), ('/home/nano/Desktop/images/18082025/14/45/image_18082025_14_45_34_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/14/45/image_18082025_14_45_25_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/14/45/image_18082025_14_45_15_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/14/44/image_18082025_14_44_55_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/10/58/image_18082025_10_58_14_9672.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/45/image_18082025_14_45_45_10643.jpg', '/home/nano/Desktop/images/18082025/14/45/image_18082025_14_45_34_9630.jpg', '/home/nano/Desktop/images/18082025/14/45/image_18082025_14_45_25_9634.jpg', '/home/nano/Desktop/images/18082025/14/45/image_18082025_14_45_15_10663.jpg', '/home/nano/Desktop/images/18082025/14/44/image_18082025_14_44_55_9636.jpg', '/home/nano/Desktop/images/18082025/10/58/image_18082025_10_58_14_9672.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/45/image_18082025_14_45_45_10643.jpg
/home/nano/Desktop/images/18082025/14/45/image_18082025_14_45_34_9630.jpg
/home/nano/Desktop/images/18082025/14/45/image_18082025_14_45_25_9634.jpg
/home/nano/Desktop/images/18082025/14/45/image_18082025_14_45_15_10663.jpg
/home/nano/Desktop/images/18082025/14/44/image_18082025_14_44_55_9636.jpg
/home/nano/Desktop/images/18082025/10/58/image_18082025_10_58_14_9672.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377704089","1377704098","1377704101","1377704091","1377704093","1377704096"],"photo_ids_order":["1377704089","1377704091","1377704093","1377704096","1377704098","1377704101"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6843bf46941f9f13041eb472be295eb4.jpg","text":"TemporaryFile(/tmp/multipartBody2694242389436961490asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521193721,"filename":"image_18082025_14_45_45_10643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fc1161a6bc61fa54d76f13f5f5a123b8.jpg","text":"TemporaryFile(/tmp/multipartBody5248616195716122858asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521193721,"filename":"image_18082025_14_44_55_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8fef92dbc00193150ea87a60093d16ba.jpg","text":"TemporaryFile(/tmp/multipartBody3789940477262192869asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521193721,"filename":"image_18082025_10_58_14_9672.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/505770c63b71357fd6b9eba5974b30a4.jpg","text":"TemporaryFile(/tmp/multipartBody1541547715944688560asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521193721,"filename":"image_18082025_14_45_34_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ff0ff069c9d345b65919e7bb6dc1eaa8.jpg","text":"TemporaryFile(/tmp/multipartBody1278708183395693719asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521193721,"filename":"image_18082025_14_45_25_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8f5e8874b29050b8d2c045b33c90e0fc.jpg","text":"TemporaryFile(/tmp/multipartBody9209047493586038623asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521193721,"filename":"image_18082025_14_45_15_10663.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377704093","file1":"1377704091","file0":"1377704089","file4":"1377704098","file5":"1377704101","file3":"1377704096"},"map_files_photo_id_array":[{"photo_id":"1377704101","filename":"file5"},{"photo_id":"1377704093","filename":"file2"},{"photo_id":"1377704098","filename":"file4"},{"photo_id":"1377704091","filename":"file1"},{"photo_id":"1377704089","filename":"file0"},{"photo_id":"1377704096","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377704089":["hashtag1","hashtag2"]},{"1377704098":["hashtag1","hashtag2"]},{"1377704101":["hashtag1","hashtag2"]},{"1377704091":["hashtag1","hashtag2"]},{"1377704093":["hashtag1","hashtag2"]},{"1377704096":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377704089, 1377704098, 1377704101, 1377704091, 1377704093, 1377704096)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.870561361312866 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:46:17.623870
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/46/image_18082025_14_46_45_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/14/46/image_18082025_14_46_24_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/14/46/image_18082025_14_46_15_10662.jpg', 2), ('/home/nano/Desktop/images/18082025/14/45/image_18082025_14_46_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/14/45/image_18082025_14_45_55_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/10/57/image_18082025_10_58_05_10635.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/46/image_18082025_14_46_45_10644.jpg', '/home/nano/Desktop/images/18082025/14/46/image_18082025_14_46_24_9634.jpg', '/home/nano/Desktop/images/18082025/14/46/image_18082025_14_46_15_10662.jpg', '/home/nano/Desktop/images/18082025/14/45/image_18082025_14_46_04_9639.jpg', '/home/nano/Desktop/images/18082025/14/45/image_18082025_14_45_55_9633.jpg', '/home/nano/Desktop/images/18082025/10/57/image_18082025_10_58_05_10635.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/46/image_18082025_14_46_45_10644.jpg
/home/nano/Desktop/images/18082025/14/46/image_18082025_14_46_24_9634.jpg
/home/nano/Desktop/images/18082025/14/46/image_18082025_14_46_15_10662.jpg
/home/nano/Desktop/images/18082025/14/45/image_18082025_14_46_04_9639.jpg
/home/nano/Desktop/images/18082025/14/45/image_18082025_14_45_55_9633.jpg
/home/nano/Desktop/images/18082025/10/57/image_18082025_10_58_05_10635.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377704119","1377704113","1377704121","1377704115","1377704111","1377704117"],"photo_ids_order":["1377704111","1377704113","1377704115","1377704117","1377704119","1377704121"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/adeb95518480166040afbbb2525ec17e.jpg","text":"TemporaryFile(/tmp/multipartBody6666048316817592117asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521238769,"filename":"image_18082025_14_45_55_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ba9cef650e5a189870cdedcc8eea2c03.jpg","text":"TemporaryFile(/tmp/multipartBody4500178312117332469asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521238769,"filename":"image_18082025_14_46_24_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/77e36ac57929964878b7060b3973d847.jpg","text":"TemporaryFile(/tmp/multipartBody7916795740266069999asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521238769,"filename":"image_18082025_10_58_05_10635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5e647fbb5c62639166e861bbc286a3d1.jpg","text":"TemporaryFile(/tmp/multipartBody2477837374365948435asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521238769,"filename":"image_18082025_14_46_15_10662.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2e8c26957b6aaa09d9ebfc1579b58040.jpg","text":"TemporaryFile(/tmp/multipartBody3635701974829186464asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521238769,"filename":"image_18082025_14_46_45_10644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b191c5576d3cc315f4f6cf97678a1816.jpg","text":"TemporaryFile(/tmp/multipartBody8516778624914282036asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521238769,"filename":"image_18082025_14_46_04_9639.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377704115","file1":"1377704113","file0":"1377704111","file4":"1377704119","file5":"1377704121","file3":"1377704117"},"map_files_photo_id_array":[{"photo_id":"1377704121","filename":"file5"},{"photo_id":"1377704115","filename":"file2"},{"photo_id":"1377704119","filename":"file4"},{"photo_id":"1377704113","filename":"file1"},{"photo_id":"1377704111","filename":"file0"},{"photo_id":"1377704117","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377704119":["hashtag1","hashtag2"]},{"1377704113":["hashtag1","hashtag2"]},{"1377704121":["hashtag1","hashtag2"]},{"1377704115":["hashtag1","hashtag2"]},{"1377704111":["hashtag1","hashtag2"]},{"1377704117":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377704119, 1377704113, 1377704121, 1377704115, 1377704111, 1377704117)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.888642072677612 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:47:03.359289
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/57/image_18082025_10_57_54_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/10/57/image_18082025_10_57_45_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/10/57/image_18082025_10_57_35_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/10/57/image_18082025_10_57_24_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/10/57/image_18082025_10_57_15_9685.jpg', 2), ('/home/nano/Desktop/images/18082025/10/56/image_18082025_10_57_05_10646.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/57/image_18082025_10_57_54_9620.jpg', '/home/nano/Desktop/images/18082025/10/57/image_18082025_10_57_45_9623.jpg', '/home/nano/Desktop/images/18082025/10/57/image_18082025_10_57_35_10621.jpg', '/home/nano/Desktop/images/18082025/10/57/image_18082025_10_57_24_9619.jpg', '/home/nano/Desktop/images/18082025/10/57/image_18082025_10_57_15_9685.jpg', '/home/nano/Desktop/images/18082025/10/56/image_18082025_10_57_05_10646.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/57/image_18082025_10_57_54_9620.jpg
/home/nano/Desktop/images/18082025/10/57/image_18082025_10_57_45_9623.jpg
/home/nano/Desktop/images/18082025/10/57/image_18082025_10_57_35_10621.jpg
/home/nano/Desktop/images/18082025/10/57/image_18082025_10_57_24_9619.jpg
/home/nano/Desktop/images/18082025/10/57/image_18082025_10_57_15_9685.jpg
/home/nano/Desktop/images/18082025/10/56/image_18082025_10_57_05_10646.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377704134","1377704136","1377704138","1377704132","1377704141","1377704129"],"photo_ids_order":["1377704129","1377704132","1377704134","1377704136","1377704138","1377704141"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a3666109d6729bb3252c15aa045cca24.jpg","text":"TemporaryFile(/tmp/multipartBody3397472675909037056asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521284768,"filename":"image_18082025_10_57_35_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bb30dd5fa679b9bf3e20a1bedc9e952f.jpg","text":"TemporaryFile(/tmp/multipartBody8912089184981335304asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521284768,"filename":"image_18082025_10_57_24_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/90e9b94b86c72b93e50fa0143be5f2a8.jpg","text":"TemporaryFile(/tmp/multipartBody8566452558411693268asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521284768,"filename":"image_18082025_10_57_15_9685.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cface95505e11e00461f17bb41f129ca.jpg","text":"TemporaryFile(/tmp/multipartBody4234025181562600423asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521284768,"filename":"image_18082025_10_57_45_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/892f9f13fb1bc9da2d3d76d78a0b52ef.jpg","text":"TemporaryFile(/tmp/multipartBody6755021913830766173asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521284768,"filename":"image_18082025_10_57_05_10646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d32286235091259c8d1f381adbe1cb99.jpg","text":"TemporaryFile(/tmp/multipartBody3820564988226832228asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521284768,"filename":"image_18082025_10_57_54_9620.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377704134","file1":"1377704132","file0":"1377704129","file4":"1377704138","file5":"1377704141","file3":"1377704136"},"map_files_photo_id_array":[{"photo_id":"1377704141","filename":"file5"},{"photo_id":"1377704134","filename":"file2"},{"photo_id":"1377704138","filename":"file4"},{"photo_id":"1377704132","filename":"file1"},{"photo_id":"1377704129","filename":"file0"},{"photo_id":"1377704136","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377704134":["hashtag1","hashtag2"]},{"1377704136":["hashtag1","hashtag2"]},{"1377704138":["hashtag1","hashtag2"]},{"1377704132":["hashtag1","hashtag2"]},{"1377704141":["hashtag1","hashtag2"]},{"1377704129":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377704134, 1377704136, 1377704138, 1377704132, 1377704141, 1377704129)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.61137533187866 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:47:47.713085
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/47/image_18082025_14_47_45_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/14/47/image_18082025_14_47_35_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/14/47/image_18082025_14_47_24_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/14/46/image_18082025_14_47_05_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/14/46/image_18082025_14_46_54_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/10/56/image_18082025_10_56_54_9619.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/47/image_18082025_14_47_45_9630.jpg', '/home/nano/Desktop/images/18082025/14/47/image_18082025_14_47_35_10639.jpg', '/home/nano/Desktop/images/18082025/14/47/image_18082025_14_47_24_9634.jpg', '/home/nano/Desktop/images/18082025/14/46/image_18082025_14_47_05_10654.jpg', '/home/nano/Desktop/images/18082025/14/46/image_18082025_14_46_54_9635.jpg', '/home/nano/Desktop/images/18082025/10/56/image_18082025_10_56_54_9619.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/47/image_18082025_14_47_45_9630.jpg
/home/nano/Desktop/images/18082025/14/47/image_18082025_14_47_35_10639.jpg
/home/nano/Desktop/images/18082025/14/47/image_18082025_14_47_24_9634.jpg
/home/nano/Desktop/images/18082025/14/46/image_18082025_14_47_05_10654.jpg
/home/nano/Desktop/images/18082025/14/46/image_18082025_14_46_54_9635.jpg
/home/nano/Desktop/images/18082025/10/56/image_18082025_10_56_54_9619.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377704151","1377704160","1377704148","1377704157","1377704150","1377704153"],"photo_ids_order":["1377704148","1377704150","1377704151","1377704153","1377704157","1377704160"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cf5ed1e52590f71cc49265fc9e7f1b4a.jpg","text":"TemporaryFile(/tmp/multipartBody453972178472815227asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521329015,"filename":"image_18082025_14_47_24_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c2a02df09d3c129bf533ca06a0590a03.jpg","text":"TemporaryFile(/tmp/multipartBody4180882278448245747asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521329015,"filename":"image_18082025_10_56_54_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b44b5beb9001ead4de65193392d234ad.jpg","text":"TemporaryFile(/tmp/multipartBody1400716712131916238asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521329015,"filename":"image_18082025_14_47_45_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6b9de1158843f61420f21b0d1f5beb1f.jpg","text":"TemporaryFile(/tmp/multipartBody8991948388995461681asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521329015,"filename":"image_18082025_14_46_54_9635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d9bb56d81f9d3aacd108aeabcd6ca66e.jpg","text":"TemporaryFile(/tmp/multipartBody4446392651547305478asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521329015,"filename":"image_18082025_14_47_35_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/400f583f28e983ca0b1f80f105e8de36.jpg","text":"TemporaryFile(/tmp/multipartBody3697887516685033234asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521329015,"filename":"image_18082025_14_47_05_10654.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377704151","file1":"1377704150","file0":"1377704148","file4":"1377704157","file5":"1377704160","file3":"1377704153"},"map_files_photo_id_array":[{"photo_id":"1377704160","filename":"file5"},{"photo_id":"1377704151","filename":"file2"},{"photo_id":"1377704157","filename":"file4"},{"photo_id":"1377704150","filename":"file1"},{"photo_id":"1377704148","filename":"file0"},{"photo_id":"1377704153","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377704151":["hashtag1","hashtag2"]},{"1377704160":["hashtag1","hashtag2"]},{"1377704148":["hashtag1","hashtag2"]},{"1377704157":["hashtag1","hashtag2"]},{"1377704150":["hashtag1","hashtag2"]},{"1377704153":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377704151, 1377704160, 1377704148, 1377704157, 1377704150, 1377704153)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.12829566001892 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:48:31.830780
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/48/image_18082025_14_48_44_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/14/48/image_18082025_14_48_35_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/14/48/image_18082025_14_48_24_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/14/48/image_18082025_14_48_15_9665.jpg', 2), ('/home/nano/Desktop/images/18082025/14/47/image_18082025_14_48_05_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/14/47/image_18082025_14_47_54_9632.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/48/image_18082025_14_48_44_9649.jpg', '/home/nano/Desktop/images/18082025/14/48/image_18082025_14_48_35_10641.jpg', '/home/nano/Desktop/images/18082025/14/48/image_18082025_14_48_24_9647.jpg', '/home/nano/Desktop/images/18082025/14/48/image_18082025_14_48_15_9665.jpg', '/home/nano/Desktop/images/18082025/14/47/image_18082025_14_48_05_10648.jpg', '/home/nano/Desktop/images/18082025/14/47/image_18082025_14_47_54_9632.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/48/image_18082025_14_48_44_9649.jpg
/home/nano/Desktop/images/18082025/14/48/image_18082025_14_48_35_10641.jpg
/home/nano/Desktop/images/18082025/14/48/image_18082025_14_48_24_9647.jpg
/home/nano/Desktop/images/18082025/14/48/image_18082025_14_48_15_9665.jpg
/home/nano/Desktop/images/18082025/14/47/image_18082025_14_48_05_10648.jpg
/home/nano/Desktop/images/18082025/14/47/image_18082025_14_47_54_9632.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377704188","1377704182","1377704184","1377704178","1377704180","1377704186"],"photo_ids_order":["1377704178","1377704180","1377704182","1377704184","1377704186","1377704188"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a106d96a2a3987043a350b2e3b84c568.jpg","text":"TemporaryFile(/tmp/multipartBody7885973660703951898asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521373294,"filename":"image_18082025_14_47_54_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/de5671a0c284a484f8019789534bb1b1.jpg","text":"TemporaryFile(/tmp/multipartBody3870276782901792169asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521373294,"filename":"image_18082025_14_48_24_9647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/27f63b28f143102debfc25f37d2d9a91.jpg","text":"TemporaryFile(/tmp/multipartBody1259204288583248901asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521373294,"filename":"image_18082025_14_48_15_9665.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1990d418f1643d60f93ffc52b6d24aeb.jpg","text":"TemporaryFile(/tmp/multipartBody2887869101215232180asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521373294,"filename":"image_18082025_14_48_44_9649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0ae4f19aa2b7db96a3ff523cc4273566.jpg","text":"TemporaryFile(/tmp/multipartBody3022792380850169540asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521373294,"filename":"image_18082025_14_48_35_10641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1d479d750bb7338b3b962310717e0124.jpg","text":"TemporaryFile(/tmp/multipartBody8631600925151908012asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521373294,"filename":"image_18082025_14_48_05_10648.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377704182","file1":"1377704180","file0":"1377704178","file4":"1377704186","file5":"1377704188","file3":"1377704184"},"map_files_photo_id_array":[{"photo_id":"1377704188","filename":"file5"},{"photo_id":"1377704182","filename":"file2"},{"photo_id":"1377704186","filename":"file4"},{"photo_id":"1377704180","filename":"file1"},{"photo_id":"1377704178","filename":"file0"},{"photo_id":"1377704184","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377704188":["hashtag1","hashtag2"]},{"1377704182":["hashtag1","hashtag2"]},{"1377704184":["hashtag1","hashtag2"]},{"1377704178":["hashtag1","hashtag2"]},{"1377704180":["hashtag1","hashtag2"]},{"1377704186":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377704188, 1377704182, 1377704184, 1377704178, 1377704180, 1377704186)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.14909315109253 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:49:16.954876
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/49/image_18082025_14_49_44_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/14/49/image_18082025_14_49_35_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/14/49/image_18082025_14_49_25_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/14/49/image_18082025_14_49_14_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/14/48/image_18082025_14_49_05_10657.jpg', 2), ('/home/nano/Desktop/images/18082025/14/48/image_18082025_14_48_54_9636.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/49/image_18082025_14_49_44_9633.jpg', '/home/nano/Desktop/images/18082025/14/49/image_18082025_14_49_35_9635.jpg', '/home/nano/Desktop/images/18082025/14/49/image_18082025_14_49_25_10644.jpg', '/home/nano/Desktop/images/18082025/14/49/image_18082025_14_49_14_9645.jpg', '/home/nano/Desktop/images/18082025/14/48/image_18082025_14_49_05_10657.jpg', '/home/nano/Desktop/images/18082025/14/48/image_18082025_14_48_54_9636.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/49/image_18082025_14_49_44_9633.jpg
/home/nano/Desktop/images/18082025/14/49/image_18082025_14_49_35_9635.jpg
/home/nano/Desktop/images/18082025/14/49/image_18082025_14_49_25_10644.jpg
/home/nano/Desktop/images/18082025/14/49/image_18082025_14_49_14_9645.jpg
/home/nano/Desktop/images/18082025/14/48/image_18082025_14_49_05_10657.jpg
/home/nano/Desktop/images/18082025/14/48/image_18082025_14_48_54_9636.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377704203","1377704212","1377704206","1377704208","1377704210","1377704201"],"photo_ids_order":["1377704201","1377704203","1377704206","1377704208","1377704210","1377704212"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4d376bff7915e2542737c5a6c40727f8.jpg","text":"TemporaryFile(/tmp/multipartBody7922590607523724858asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521418159,"filename":"image_18082025_14_49_35_9635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ea635863305ceb9f03a912fb16aa93da.jpg","text":"TemporaryFile(/tmp/multipartBody897602072740059736asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521418159,"filename":"image_18082025_14_48_54_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8c2d8de0efee652dc5f898771b7df8aa.jpg","text":"TemporaryFile(/tmp/multipartBody63125115134067739asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521418159,"filename":"image_18082025_14_49_25_10644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8180173e01badf10386b87fba5d3f355.jpg","text":"TemporaryFile(/tmp/multipartBody5996394394448879259asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521418159,"filename":"image_18082025_14_49_14_9645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e1fa81354380d39480f3696d26ba4507.jpg","text":"TemporaryFile(/tmp/multipartBody2646621017281145306asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521418159,"filename":"image_18082025_14_49_05_10657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bed0cfa3609cea9082efcb181f9a58b9.jpg","text":"TemporaryFile(/tmp/multipartBody2969058997249590592asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521418159,"filename":"image_18082025_14_49_44_9633.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377704206","file1":"1377704203","file0":"1377704201","file4":"1377704210","file5":"1377704212","file3":"1377704208"},"map_files_photo_id_array":[{"photo_id":"1377704212","filename":"file5"},{"photo_id":"1377704206","filename":"file2"},{"photo_id":"1377704210","filename":"file4"},{"photo_id":"1377704203","filename":"file1"},{"photo_id":"1377704201","filename":"file0"},{"photo_id":"1377704208","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377704203":["hashtag1","hashtag2"]},{"1377704212":["hashtag1","hashtag2"]},{"1377704206":["hashtag1","hashtag2"]},{"1377704208":["hashtag1","hashtag2"]},{"1377704210":["hashtag1","hashtag2"]},{"1377704201":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377704203, 1377704212, 1377704206, 1377704208, 1377704210, 1377704201)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.47516393661499 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:50:02.562716
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/56/image_18082025_10_56_45_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/10/56/image_18082025_10_56_34_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/10/56/image_18082025_10_56_24_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/10/56/image_18082025_10_56_15_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/10/55/image_18082025_10_56_04_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/10/55/image_18082025_10_55_55_9610.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/56/image_18082025_10_56_45_10624.jpg', '/home/nano/Desktop/images/18082025/10/56/image_18082025_10_56_34_9614.jpg', '/home/nano/Desktop/images/18082025/10/56/image_18082025_10_56_24_9610.jpg', '/home/nano/Desktop/images/18082025/10/56/image_18082025_10_56_15_10659.jpg', '/home/nano/Desktop/images/18082025/10/55/image_18082025_10_56_04_9622.jpg', '/home/nano/Desktop/images/18082025/10/55/image_18082025_10_55_55_9610.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/56/image_18082025_10_56_45_10624.jpg
/home/nano/Desktop/images/18082025/10/56/image_18082025_10_56_34_9614.jpg
/home/nano/Desktop/images/18082025/10/56/image_18082025_10_56_24_9610.jpg
/home/nano/Desktop/images/18082025/10/56/image_18082025_10_56_15_10659.jpg
/home/nano/Desktop/images/18082025/10/55/image_18082025_10_56_04_9622.jpg
/home/nano/Desktop/images/18082025/10/55/image_18082025_10_55_55_9610.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377704232","1377704229","1377704220","1377704237","1377704240","1377704222"],"photo_ids_order":["1377704220","1377704222","1377704229","1377704232","1377704237","1377704240"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e85d6a8cc1741674c6c6e635acef691f.jpg","text":"TemporaryFile(/tmp/multipartBody4729542898882042224asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521463982,"filename":"image_18082025_10_56_15_10659.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c668cbc8e916fc2d7dda9ee1f8508dd6.jpg","text":"TemporaryFile(/tmp/multipartBody278423421374255245asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521463982,"filename":"image_18082025_10_56_24_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ed6dc03d64c62c634b4fbd6212c1acef.jpg","text":"TemporaryFile(/tmp/multipartBody6168202761809506253asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521463982,"filename":"image_18082025_10_56_45_10624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f0c411c1723c818315c69d05c93c1009.jpg","text":"TemporaryFile(/tmp/multipartBody7330192717926310582asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521463982,"filename":"image_18082025_10_56_04_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c5450cb8560e55005fe975733d5c4c84.jpg","text":"TemporaryFile(/tmp/multipartBody7181634494425461329asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521463982,"filename":"image_18082025_10_55_55_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/61ce240a68f848ce26cecc01ef6bdfa8.jpg","text":"TemporaryFile(/tmp/multipartBody8825907800806494158asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521463982,"filename":"image_18082025_10_56_34_9614.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377704229","file1":"1377704222","file0":"1377704220","file4":"1377704237","file5":"1377704240","file3":"1377704232"},"map_files_photo_id_array":[{"photo_id":"1377704240","filename":"file5"},{"photo_id":"1377704229","filename":"file2"},{"photo_id":"1377704237","filename":"file4"},{"photo_id":"1377704222","filename":"file1"},{"photo_id":"1377704220","filename":"file0"},{"photo_id":"1377704232","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377704232":["hashtag1","hashtag2"]},{"1377704229":["hashtag1","hashtag2"]},{"1377704220":["hashtag1","hashtag2"]},{"1377704237":["hashtag1","hashtag2"]},{"1377704240":["hashtag1","hashtag2"]},{"1377704222":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377704232, 1377704229, 1377704220, 1377704237, 1377704240, 1377704222)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.27515935897827 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:50:47.029216
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/50/image_18082025_14_50_44_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/14/50/image_18082025_14_50_35_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/14/50/image_18082025_14_50_25_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/14/50/image_18082025_14_50_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/14/49/image_18082025_14_50_05_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/14/49/image_18082025_14_49_55_10664.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/50/image_18082025_14_50_44_9629.jpg', '/home/nano/Desktop/images/18082025/14/50/image_18082025_14_50_35_9634.jpg', '/home/nano/Desktop/images/18082025/14/50/image_18082025_14_50_25_10659.jpg', '/home/nano/Desktop/images/18082025/14/50/image_18082025_14_50_14_9656.jpg', '/home/nano/Desktop/images/18082025/14/49/image_18082025_14_50_05_9654.jpg', '/home/nano/Desktop/images/18082025/14/49/image_18082025_14_49_55_10664.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/50/image_18082025_14_50_44_9629.jpg
/home/nano/Desktop/images/18082025/14/50/image_18082025_14_50_35_9634.jpg
/home/nano/Desktop/images/18082025/14/50/image_18082025_14_50_25_10659.jpg
/home/nano/Desktop/images/18082025/14/50/image_18082025_14_50_14_9656.jpg
/home/nano/Desktop/images/18082025/14/49/image_18082025_14_50_05_9654.jpg
/home/nano/Desktop/images/18082025/14/49/image_18082025_14_49_55_10664.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377704248","1377704251","1377704250","1377704244","1377704255","1377704246"],"photo_ids_order":["1377704244","1377704246","1377704248","1377704250","1377704251","1377704255"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c5b4942afa43ac652aae8969b6226d7b.jpg","text":"TemporaryFile(/tmp/multipartBody7929553432862778392asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521508565,"filename":"image_18082025_14_50_25_10659.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/43fbb366aba00b78c116da88668ae9d8.jpg","text":"TemporaryFile(/tmp/multipartBody534710583659079601asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521508565,"filename":"image_18082025_14_50_05_9654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/18cc1320274b3c00a3d98f314d26428c.jpg","text":"TemporaryFile(/tmp/multipartBody9103038345319987129asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521508565,"filename":"image_18082025_14_50_14_9656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ea0d2ad5ff7a04f214f10e534cdc2325.jpg","text":"TemporaryFile(/tmp/multipartBody8572532746083969005asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521508565,"filename":"image_18082025_14_50_44_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ffc9838f5162173357d99cf876e0b61c.jpg","text":"TemporaryFile(/tmp/multipartBody4390287374566977825asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521508565,"filename":"image_18082025_14_49_55_10664.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/65b0c58e5346e9c369681182012676b3.jpg","text":"TemporaryFile(/tmp/multipartBody3437824737922803142asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521508565,"filename":"image_18082025_14_50_35_9634.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377704248","file1":"1377704246","file0":"1377704244","file4":"1377704251","file5":"1377704255","file3":"1377704250"},"map_files_photo_id_array":[{"photo_id":"1377704255","filename":"file5"},{"photo_id":"1377704248","filename":"file2"},{"photo_id":"1377704251","filename":"file4"},{"photo_id":"1377704246","filename":"file1"},{"photo_id":"1377704244","filename":"file0"},{"photo_id":"1377704250","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377704248":["hashtag1","hashtag2"]},{"1377704251":["hashtag1","hashtag2"]},{"1377704250":["hashtag1","hashtag2"]},{"1377704244":["hashtag1","hashtag2"]},{"1377704255":["hashtag1","hashtag2"]},{"1377704246":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377704248, 1377704251, 1377704250, 1377704244, 1377704255, 1377704246)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.29379868507385 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:51:32.153433
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/51/image_18082025_14_51_44_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/14/51/image_18082025_14_51_34_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/14/51/image_18082025_14_51_25_10662.jpg', 2), ('/home/nano/Desktop/images/18082025/14/51/image_18082025_14_51_14_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/14/50/image_18082025_14_51_05_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/14/50/image_18082025_14_50_55_10642.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/51/image_18082025_14_51_44_9648.jpg', '/home/nano/Desktop/images/18082025/14/51/image_18082025_14_51_34_9634.jpg', '/home/nano/Desktop/images/18082025/14/51/image_18082025_14_51_25_10662.jpg', '/home/nano/Desktop/images/18082025/14/51/image_18082025_14_51_14_9650.jpg', '/home/nano/Desktop/images/18082025/14/50/image_18082025_14_51_05_9636.jpg', '/home/nano/Desktop/images/18082025/14/50/image_18082025_14_50_55_10642.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/51/image_18082025_14_51_44_9648.jpg
/home/nano/Desktop/images/18082025/14/51/image_18082025_14_51_34_9634.jpg
/home/nano/Desktop/images/18082025/14/51/image_18082025_14_51_25_10662.jpg
/home/nano/Desktop/images/18082025/14/51/image_18082025_14_51_14_9650.jpg
/home/nano/Desktop/images/18082025/14/50/image_18082025_14_51_05_9636.jpg
/home/nano/Desktop/images/18082025/14/50/image_18082025_14_50_55_10642.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377704275","1377704277","1377704265","1377704273","1377704270","1377704267"],"photo_ids_order":["1377704265","1377704267","1377704270","1377704273","1377704275","1377704277"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8fd828f6c91f2f660b9ee23e6a4443df.jpg","text":"TemporaryFile(/tmp/multipartBody2447888108617650980asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521553583,"filename":"image_18082025_14_51_05_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/01954cd089a62d8362978b4245f0d379.jpg","text":"TemporaryFile(/tmp/multipartBody8309999436551985195asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521553583,"filename":"image_18082025_14_50_55_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b44a9901253611daf523788954c50fe9.jpg","text":"TemporaryFile(/tmp/multipartBody7434306119871878437asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521553583,"filename":"image_18082025_14_51_44_9648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6051c5db634c0a1f0146ca638ef9f02c.jpg","text":"TemporaryFile(/tmp/multipartBody2514026908718606317asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521553583,"filename":"image_18082025_14_51_14_9650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a4bd6b17be18500412ba6ae983301a1a.jpg","text":"TemporaryFile(/tmp/multipartBody2290203131020176639asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521553583,"filename":"image_18082025_14_51_25_10662.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e37b5729d2b43de2e45ac3d1375f6f37.jpg","text":"TemporaryFile(/tmp/multipartBody8627368976360404756asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521553583,"filename":"image_18082025_14_51_34_9634.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377704270","file1":"1377704267","file0":"1377704265","file4":"1377704275","file5":"1377704277","file3":"1377704273"},"map_files_photo_id_array":[{"photo_id":"1377704277","filename":"file5"},{"photo_id":"1377704270","filename":"file2"},{"photo_id":"1377704275","filename":"file4"},{"photo_id":"1377704267","filename":"file1"},{"photo_id":"1377704265","filename":"file0"},{"photo_id":"1377704273","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377704275":["hashtag1","hashtag2"]},{"1377704277":["hashtag1","hashtag2"]},{"1377704265":["hashtag1","hashtag2"]},{"1377704273":["hashtag1","hashtag2"]},{"1377704270":["hashtag1","hashtag2"]},{"1377704267":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377704275, 1377704277, 1377704265, 1377704273, 1377704270, 1377704267)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.414029598236084 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:52:17.224249
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/52/image_18082025_14_52_45_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/14/52/image_18082025_14_52_34_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/14/52/image_18082025_14_52_25_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/14/52/image_18082025_14_52_14_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/14/51/image_18082025_14_52_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/14/51/image_18082025_14_51_55_10644.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/52/image_18082025_14_52_45_10647.jpg', '/home/nano/Desktop/images/18082025/14/52/image_18082025_14_52_34_9636.jpg', '/home/nano/Desktop/images/18082025/14/52/image_18082025_14_52_25_10645.jpg', '/home/nano/Desktop/images/18082025/14/52/image_18082025_14_52_14_9657.jpg', '/home/nano/Desktop/images/18082025/14/51/image_18082025_14_52_04_9655.jpg', '/home/nano/Desktop/images/18082025/14/51/image_18082025_14_51_55_10644.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/52/image_18082025_14_52_45_10647.jpg
/home/nano/Desktop/images/18082025/14/52/image_18082025_14_52_34_9636.jpg
/home/nano/Desktop/images/18082025/14/52/image_18082025_14_52_25_10645.jpg
/home/nano/Desktop/images/18082025/14/52/image_18082025_14_52_14_9657.jpg
/home/nano/Desktop/images/18082025/14/51/image_18082025_14_52_04_9655.jpg
/home/nano/Desktop/images/18082025/14/51/image_18082025_14_51_55_10644.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377704303","1377704293","1377704301","1377704297","1377704299","1377704290"],"photo_ids_order":["1377704290","1377704293","1377704297","1377704299","1377704301","1377704303"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/009be3286a4923e7c14882150bf891c5.jpg","text":"TemporaryFile(/tmp/multipartBody7230401221484575514asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521598602,"filename":"image_18082025_14_51_55_10644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/54661b7be41c54e9164403c2e94b6b45.jpg","text":"TemporaryFile(/tmp/multipartBody2087675175431204717asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521598602,"filename":"image_18082025_14_52_34_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6ddd6cb9d52568feb6b36ff476a8a43b.jpg","text":"TemporaryFile(/tmp/multipartBody2625034626151789277asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521598602,"filename":"image_18082025_14_52_04_9655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ace1312639a97967eb8890f3f784c4c2.jpg","text":"TemporaryFile(/tmp/multipartBody8447886087525950482asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521598602,"filename":"image_18082025_14_52_25_10645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ce96e691f505d64f37c1d8ca0a28ae51.jpg","text":"TemporaryFile(/tmp/multipartBody6732083906434927620asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521598602,"filename":"image_18082025_14_52_14_9657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5b28c39382aba7a8d10340d9b0403ccd.jpg","text":"TemporaryFile(/tmp/multipartBody1354685602316599707asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521598602,"filename":"image_18082025_14_52_45_10647.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377704297","file1":"1377704293","file0":"1377704290","file4":"1377704301","file5":"1377704303","file3":"1377704299"},"map_files_photo_id_array":[{"photo_id":"1377704303","filename":"file5"},{"photo_id":"1377704297","filename":"file2"},{"photo_id":"1377704301","filename":"file4"},{"photo_id":"1377704293","filename":"file1"},{"photo_id":"1377704290","filename":"file0"},{"photo_id":"1377704299","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377704303":["hashtag1","hashtag2"]},{"1377704293":["hashtag1","hashtag2"]},{"1377704301":["hashtag1","hashtag2"]},{"1377704297":["hashtag1","hashtag2"]},{"1377704299":["hashtag1","hashtag2"]},{"1377704290":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377704303, 1377704293, 1377704301, 1377704297, 1377704299, 1377704290)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.687212228775024 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:53:02.979325
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/55/image_18082025_10_55_45_10622.jpg', 2), ('/home/nano/Desktop/images/18082025/10/55/image_18082025_10_55_34_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/10/55/image_18082025_10_55_25_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/10/55/image_18082025_10_55_14_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/10/54/image_18082025_10_55_04_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/10/54/image_18082025_10_54_55_10650.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/55/image_18082025_10_55_45_10622.jpg', '/home/nano/Desktop/images/18082025/10/55/image_18082025_10_55_34_9619.jpg', '/home/nano/Desktop/images/18082025/10/55/image_18082025_10_55_25_10624.jpg', '/home/nano/Desktop/images/18082025/10/55/image_18082025_10_55_14_9643.jpg', '/home/nano/Desktop/images/18082025/10/54/image_18082025_10_55_04_9654.jpg', '/home/nano/Desktop/images/18082025/10/54/image_18082025_10_54_55_10650.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/55/image_18082025_10_55_45_10622.jpg
/home/nano/Desktop/images/18082025/10/55/image_18082025_10_55_34_9619.jpg
/home/nano/Desktop/images/18082025/10/55/image_18082025_10_55_25_10624.jpg
/home/nano/Desktop/images/18082025/10/55/image_18082025_10_55_14_9643.jpg
/home/nano/Desktop/images/18082025/10/54/image_18082025_10_55_04_9654.jpg
/home/nano/Desktop/images/18082025/10/54/image_18082025_10_54_55_10650.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377704314","1377704328","1377704307","1377704310","1377704324","1377704318"],"photo_ids_order":["1377704307","1377704310","1377704314","1377704318","1377704324","1377704328"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/479c14b61b2bb45dde6ee78a432e7aef.jpg","text":"TemporaryFile(/tmp/multipartBody6247110801700553619asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521644313,"filename":"image_18082025_10_55_25_10624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bd85e4fbb075036cdbe8718b6f6a6305.jpg","text":"TemporaryFile(/tmp/multipartBody5866011413511449768asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521644313,"filename":"image_18082025_10_54_55_10650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0fa6033cdbab649351d373ad73c83f57.jpg","text":"TemporaryFile(/tmp/multipartBody4004992442033521683asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521644313,"filename":"image_18082025_10_55_45_10622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3e577f300abad810bed4e7496844a90b.jpg","text":"TemporaryFile(/tmp/multipartBody3705107594975863738asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521644313,"filename":"image_18082025_10_55_34_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3aad988f93700cc6e23d1b34e77eeefb.jpg","text":"TemporaryFile(/tmp/multipartBody8698656109441224966asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521644313,"filename":"image_18082025_10_55_04_9654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/eff95584b8692d97ac45578cd2417c20.jpg","text":"TemporaryFile(/tmp/multipartBody5703474966074894153asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521644313,"filename":"image_18082025_10_55_14_9643.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377704314","file1":"1377704310","file0":"1377704307","file4":"1377704324","file5":"1377704328","file3":"1377704318"},"map_files_photo_id_array":[{"photo_id":"1377704328","filename":"file5"},{"photo_id":"1377704314","filename":"file2"},{"photo_id":"1377704324","filename":"file4"},{"photo_id":"1377704310","filename":"file1"},{"photo_id":"1377704307","filename":"file0"},{"photo_id":"1377704318","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377704314":["hashtag1","hashtag2"]},{"1377704328":["hashtag1","hashtag2"]},{"1377704307":["hashtag1","hashtag2"]},{"1377704310":["hashtag1","hashtag2"]},{"1377704324":["hashtag1","hashtag2"]},{"1377704318":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377704314, 1377704328, 1377704307, 1377704310, 1377704324, 1377704318)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.92008948326111 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:53:47.317363
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/53/image_18082025_14_53_45_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/14/53/image_18082025_14_53_34_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/14/53/image_18082025_14_53_25_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/14/53/image_18082025_14_53_15_10687.jpg', 2), ('/home/nano/Desktop/images/18082025/14/52/image_18082025_14_53_04_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/14/52/image_18082025_14_52_55_9650.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/53/image_18082025_14_53_45_10638.jpg', '/home/nano/Desktop/images/18082025/14/53/image_18082025_14_53_34_9633.jpg', '/home/nano/Desktop/images/18082025/14/53/image_18082025_14_53_25_9634.jpg', '/home/nano/Desktop/images/18082025/14/53/image_18082025_14_53_15_10687.jpg', '/home/nano/Desktop/images/18082025/14/52/image_18082025_14_53_04_9649.jpg', '/home/nano/Desktop/images/18082025/14/52/image_18082025_14_52_55_9650.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/53/image_18082025_14_53_45_10638.jpg
/home/nano/Desktop/images/18082025/14/53/image_18082025_14_53_34_9633.jpg
/home/nano/Desktop/images/18082025/14/53/image_18082025_14_53_25_9634.jpg
/home/nano/Desktop/images/18082025/14/53/image_18082025_14_53_15_10687.jpg
/home/nano/Desktop/images/18082025/14/52/image_18082025_14_53_04_9649.jpg
/home/nano/Desktop/images/18082025/14/52/image_18082025_14_52_55_9650.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377704341","1377704344","1377704337","1377704336","1377704339","1377704348"],"photo_ids_order":["1377704336","1377704337","1377704339","1377704341","1377704344","1377704348"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/77205eb0dff4f5baf982a6925ea7f04d.jpg","text":"TemporaryFile(/tmp/multipartBody4913964527990071062asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521688539,"filename":"image_18082025_14_53_15_10687.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/842cd45b922138b182ae007e25a7a372.jpg","text":"TemporaryFile(/tmp/multipartBody5472906024190621176asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521688539,"filename":"image_18082025_14_53_04_9649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b6e7a6d4367eb1846606c158353afdbb.jpg","text":"TemporaryFile(/tmp/multipartBody132154930832880701asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521688539,"filename":"image_18082025_14_53_34_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a81212d271953c434394125fec6c0345.jpg","text":"TemporaryFile(/tmp/multipartBody6484678931811867922asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521688539,"filename":"image_18082025_14_53_45_10638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c5171c568ec7f4109907baf0676d91a4.jpg","text":"TemporaryFile(/tmp/multipartBody4464623829104056655asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521688539,"filename":"image_18082025_14_53_25_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b4cdddeb407f149adcadcc4bf3327a61.jpg","text":"TemporaryFile(/tmp/multipartBody583864093685053851asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521688539,"filename":"image_18082025_14_52_55_9650.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377704339","file1":"1377704337","file0":"1377704336","file4":"1377704344","file5":"1377704348","file3":"1377704341"},"map_files_photo_id_array":[{"photo_id":"1377704348","filename":"file5"},{"photo_id":"1377704339","filename":"file2"},{"photo_id":"1377704344","filename":"file4"},{"photo_id":"1377704337","filename":"file1"},{"photo_id":"1377704336","filename":"file0"},{"photo_id":"1377704341","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377704341":["hashtag1","hashtag2"]},{"1377704344":["hashtag1","hashtag2"]},{"1377704337":["hashtag1","hashtag2"]},{"1377704336":["hashtag1","hashtag2"]},{"1377704339":["hashtag1","hashtag2"]},{"1377704348":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377704341, 1377704344, 1377704337, 1377704336, 1377704339, 1377704348)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.837910175323486 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:54:32.422712
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/54/image_18082025_14_54_45_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/14/54/image_18082025_14_54_35_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/14/54/image_18082025_14_54_24_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/14/54/image_18082025_14_54_15_10657.jpg', 2), ('/home/nano/Desktop/images/18082025/14/53/image_18082025_14_54_04_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/14/53/image_18082025_14_53_54_9611.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/54/image_18082025_14_54_45_9613.jpg', '/home/nano/Desktop/images/18082025/14/54/image_18082025_14_54_35_10628.jpg', '/home/nano/Desktop/images/18082025/14/54/image_18082025_14_54_24_9645.jpg', '/home/nano/Desktop/images/18082025/14/54/image_18082025_14_54_15_10657.jpg', '/home/nano/Desktop/images/18082025/14/53/image_18082025_14_54_04_9622.jpg', '/home/nano/Desktop/images/18082025/14/53/image_18082025_14_53_54_9611.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/54/image_18082025_14_54_45_9613.jpg
/home/nano/Desktop/images/18082025/14/54/image_18082025_14_54_35_10628.jpg
/home/nano/Desktop/images/18082025/14/54/image_18082025_14_54_24_9645.jpg
/home/nano/Desktop/images/18082025/14/54/image_18082025_14_54_15_10657.jpg
/home/nano/Desktop/images/18082025/14/53/image_18082025_14_54_04_9622.jpg
/home/nano/Desktop/images/18082025/14/53/image_18082025_14_53_54_9611.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377704371","1377704365","1377704368","1377704370","1377704367","1377704363"],"photo_ids_order":["1377704363","1377704365","1377704367","1377704368","1377704370","1377704371"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/208c10e48b4891b99c2e560c8e3e4074.jpg","text":"TemporaryFile(/tmp/multipartBody5070417818950130101asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521733605,"filename":"image_18082025_14_53_54_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e7e8f6e5e6397b5759d1a015e69836c1.jpg","text":"TemporaryFile(/tmp/multipartBody217097316304914029asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521733605,"filename":"image_18082025_14_54_35_10628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/195e02ded1611aede8b04a2efe92a1c2.jpg","text":"TemporaryFile(/tmp/multipartBody8926014690352006862asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521733605,"filename":"image_18082025_14_54_15_10657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d9399f332d03ccb0c5ee4913bfe3edab.jpg","text":"TemporaryFile(/tmp/multipartBody1505270464943490059asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521733605,"filename":"image_18082025_14_54_04_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5609193a764239b209e1ab76bb6525ac.jpg","text":"TemporaryFile(/tmp/multipartBody1070046236277635157asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521733605,"filename":"image_18082025_14_54_24_9645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/45a8b26de600c4aff742e5797afee2ad.jpg","text":"TemporaryFile(/tmp/multipartBody5702898394541729470asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521733605,"filename":"image_18082025_14_54_45_9613.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377704367","file1":"1377704365","file0":"1377704363","file4":"1377704370","file5":"1377704371","file3":"1377704368"},"map_files_photo_id_array":[{"photo_id":"1377704371","filename":"file5"},{"photo_id":"1377704367","filename":"file2"},{"photo_id":"1377704370","filename":"file4"},{"photo_id":"1377704365","filename":"file1"},{"photo_id":"1377704363","filename":"file0"},{"photo_id":"1377704368","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377704371":["hashtag1","hashtag2"]},{"1377704365":["hashtag1","hashtag2"]},{"1377704368":["hashtag1","hashtag2"]},{"1377704370":["hashtag1","hashtag2"]},{"1377704367":["hashtag1","hashtag2"]},{"1377704363":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377704371, 1377704365, 1377704368, 1377704370, 1377704367, 1377704363)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.78068518638611 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:55:17.543173
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/55/image_18082025_14_55_44_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/14/55/image_18082025_14_55_35_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/14/55/image_18082025_14_55_24_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/14/55/image_18082025_14_55_15_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/14/54/image_18082025_14_55_05_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/14/54/image_18082025_14_54_54_9606.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/55/image_18082025_14_55_44_9610.jpg', '/home/nano/Desktop/images/18082025/14/55/image_18082025_14_55_35_10628.jpg', '/home/nano/Desktop/images/18082025/14/55/image_18082025_14_55_24_9611.jpg', '/home/nano/Desktop/images/18082025/14/55/image_18082025_14_55_15_9638.jpg', '/home/nano/Desktop/images/18082025/14/54/image_18082025_14_55_05_10646.jpg', '/home/nano/Desktop/images/18082025/14/54/image_18082025_14_54_54_9606.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/55/image_18082025_14_55_44_9610.jpg
/home/nano/Desktop/images/18082025/14/55/image_18082025_14_55_35_10628.jpg
/home/nano/Desktop/images/18082025/14/55/image_18082025_14_55_24_9611.jpg
/home/nano/Desktop/images/18082025/14/55/image_18082025_14_55_15_9638.jpg
/home/nano/Desktop/images/18082025/14/54/image_18082025_14_55_05_10646.jpg
/home/nano/Desktop/images/18082025/14/54/image_18082025_14_54_54_9606.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377704392","1377704389","1377704394","1377704382","1377704385","1377704395"],"photo_ids_order":["1377704382","1377704385","1377704389","1377704392","1377704394","1377704395"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b198fcc26d1023d2058a6f63b6d4211b.jpg","text":"TemporaryFile(/tmp/multipartBody8328227983522353885asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521778649,"filename":"image_18082025_14_55_15_9638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5e6b34f7fb2895ccfc1aaf3188f014d8.jpg","text":"TemporaryFile(/tmp/multipartBody472871707111551274asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521778649,"filename":"image_18082025_14_55_24_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fe7a2b5823d4c20d3b4db57f219cfd29.jpg","text":"TemporaryFile(/tmp/multipartBody8438487640489140035asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521778649,"filename":"image_18082025_14_55_05_10646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3ac9c354339a6c2768380fa0ab350bc5.jpg","text":"TemporaryFile(/tmp/multipartBody2808426674059455135asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521778649,"filename":"image_18082025_14_55_44_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d83be4f4c0b9ce3d6b1da0aa6d943e7a.jpg","text":"TemporaryFile(/tmp/multipartBody6072288847471257861asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521778649,"filename":"image_18082025_14_55_35_10628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ed5c5d40f8bac0d89c3ed054f9a6d032.jpg","text":"TemporaryFile(/tmp/multipartBody3583893365511079621asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521778649,"filename":"image_18082025_14_54_54_9606.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377704389","file1":"1377704385","file0":"1377704382","file4":"1377704394","file5":"1377704395","file3":"1377704392"},"map_files_photo_id_array":[{"photo_id":"1377704395","filename":"file5"},{"photo_id":"1377704389","filename":"file2"},{"photo_id":"1377704394","filename":"file4"},{"photo_id":"1377704385","filename":"file1"},{"photo_id":"1377704382","filename":"file0"},{"photo_id":"1377704392","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377704392":["hashtag1","hashtag2"]},{"1377704389":["hashtag1","hashtag2"]},{"1377704394":["hashtag1","hashtag2"]},{"1377704382":["hashtag1","hashtag2"]},{"1377704385":["hashtag1","hashtag2"]},{"1377704395":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377704392, 1377704389, 1377704394, 1377704382, 1377704385, 1377704395)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.98865818977356 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:56:03.239485
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/54/image_18082025_10_54_44_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/10/54/image_18082025_10_54_35_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/10/54/image_18082025_10_54_25_10634.jpg', 2), ('/home/nano/Desktop/images/18082025/10/54/image_18082025_10_54_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/10/53/image_18082025_10_54_05_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/10/53/image_18082025_10_53_55_10623.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/54/image_18082025_10_54_44_9628.jpg', '/home/nano/Desktop/images/18082025/10/54/image_18082025_10_54_35_9606.jpg', '/home/nano/Desktop/images/18082025/10/54/image_18082025_10_54_25_10634.jpg', '/home/nano/Desktop/images/18082025/10/54/image_18082025_10_54_14_9656.jpg', '/home/nano/Desktop/images/18082025/10/53/image_18082025_10_54_05_9611.jpg', '/home/nano/Desktop/images/18082025/10/53/image_18082025_10_53_55_10623.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/54/image_18082025_10_54_44_9628.jpg
/home/nano/Desktop/images/18082025/10/54/image_18082025_10_54_35_9606.jpg
/home/nano/Desktop/images/18082025/10/54/image_18082025_10_54_25_10634.jpg
/home/nano/Desktop/images/18082025/10/54/image_18082025_10_54_14_9656.jpg
/home/nano/Desktop/images/18082025/10/53/image_18082025_10_54_05_9611.jpg
/home/nano/Desktop/images/18082025/10/53/image_18082025_10_53_55_10623.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377704422","1377704416","1377704419","1377704407","1377704412","1377704426"],"photo_ids_order":["1377704407","1377704412","1377704416","1377704419","1377704422","1377704426"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d069cdd8ac05d48fc4d6bd57f627cd1c.jpg","text":"TemporaryFile(/tmp/multipartBody8858416667774077713asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521824478,"filename":"image_18082025_10_54_05_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6b57890efea34dadef8e470f24636516.jpg","text":"TemporaryFile(/tmp/multipartBody3319023537788527578asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521824478,"filename":"image_18082025_10_54_25_10634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/51f16f08f7adbd8d235fa0e8b8d2cdd4.jpg","text":"TemporaryFile(/tmp/multipartBody1825587067670042573asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521824478,"filename":"image_18082025_10_54_14_9656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6dfb2ae9dd9daa369b37d52c85610d7b.jpg","text":"TemporaryFile(/tmp/multipartBody499698009100006468asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521824478,"filename":"image_18082025_10_54_44_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/649bcb1603900499c67d756ecca11ad8.jpg","text":"TemporaryFile(/tmp/multipartBody5785928962828717079asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521824478,"filename":"image_18082025_10_54_35_9606.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/917de8b635e6b17ab55ee9e3d2d8bdee.jpg","text":"TemporaryFile(/tmp/multipartBody7904698363739244935asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521824478,"filename":"image_18082025_10_53_55_10623.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377704416","file1":"1377704412","file0":"1377704407","file4":"1377704422","file5":"1377704426","file3":"1377704419"},"map_files_photo_id_array":[{"photo_id":"1377704426","filename":"file5"},{"photo_id":"1377704416","filename":"file2"},{"photo_id":"1377704422","filename":"file4"},{"photo_id":"1377704412","filename":"file1"},{"photo_id":"1377704407","filename":"file0"},{"photo_id":"1377704419","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377704422":["hashtag1","hashtag2"]},{"1377704416":["hashtag1","hashtag2"]},{"1377704419":["hashtag1","hashtag2"]},{"1377704407":["hashtag1","hashtag2"]},{"1377704412":["hashtag1","hashtag2"]},{"1377704426":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377704422, 1377704416, 1377704419, 1377704407, 1377704412, 1377704426)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.15899705886841 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:56:47.730084
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/56/image_18082025_14_56_44_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/14/56/image_18082025_14_56_34_9604.jpg', 2), ('/home/nano/Desktop/images/18082025/14/56/image_18082025_14_56_25_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/14/56/image_18082025_14_56_14_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/14/55/image_18082025_14_56_05_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/14/55/image_18082025_14_55_55_10613.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/56/image_18082025_14_56_44_9610.jpg', '/home/nano/Desktop/images/18082025/14/56/image_18082025_14_56_34_9604.jpg', '/home/nano/Desktop/images/18082025/14/56/image_18082025_14_56_25_10623.jpg', '/home/nano/Desktop/images/18082025/14/56/image_18082025_14_56_14_9634.jpg', '/home/nano/Desktop/images/18082025/14/55/image_18082025_14_56_05_9621.jpg', '/home/nano/Desktop/images/18082025/14/55/image_18082025_14_55_55_10613.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/56/image_18082025_14_56_44_9610.jpg
/home/nano/Desktop/images/18082025/14/56/image_18082025_14_56_34_9604.jpg
/home/nano/Desktop/images/18082025/14/56/image_18082025_14_56_25_10623.jpg
/home/nano/Desktop/images/18082025/14/56/image_18082025_14_56_14_9634.jpg
/home/nano/Desktop/images/18082025/14/55/image_18082025_14_56_05_9621.jpg
/home/nano/Desktop/images/18082025/14/55/image_18082025_14_55_55_10613.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377704440","1377704443","1377704445","1377704436","1377704441","1377704438"],"photo_ids_order":["1377704436","1377704438","1377704440","1377704441","1377704443","1377704445"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ca3a62d2636cfedb56cec1c08c037651.jpg","text":"TemporaryFile(/tmp/multipartBody4690391995898844779asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521869170,"filename":"image_18082025_14_56_25_10623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/74d45cbfe0582e91da1b305a71789d57.jpg","text":"TemporaryFile(/tmp/multipartBody3951368199188806713asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521869170,"filename":"image_18082025_14_56_05_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e717ca68cd4de16a13899452862265f4.jpg","text":"TemporaryFile(/tmp/multipartBody8006598453277752976asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521869170,"filename":"image_18082025_14_55_55_10613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/99be1ea1359d3fa50a35d0c541760768.jpg","text":"TemporaryFile(/tmp/multipartBody7573335745595968658asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521869170,"filename":"image_18082025_14_56_44_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5c96ac098362fc0523d358c0866ee0ec.jpg","text":"TemporaryFile(/tmp/multipartBody2753667702916635127asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521869170,"filename":"image_18082025_14_56_14_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/755f7c48d0e5fbfe4bcca593f911ef3c.jpg","text":"TemporaryFile(/tmp/multipartBody2106070256236419559asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521869170,"filename":"image_18082025_14_56_34_9604.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377704440","file1":"1377704438","file0":"1377704436","file4":"1377704443","file5":"1377704445","file3":"1377704441"},"map_files_photo_id_array":[{"photo_id":"1377704445","filename":"file5"},{"photo_id":"1377704440","filename":"file2"},{"photo_id":"1377704443","filename":"file4"},{"photo_id":"1377704438","filename":"file1"},{"photo_id":"1377704436","filename":"file0"},{"photo_id":"1377704441","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377704440":["hashtag1","hashtag2"]},{"1377704443":["hashtag1","hashtag2"]},{"1377704445":["hashtag1","hashtag2"]},{"1377704436":["hashtag1","hashtag2"]},{"1377704441":["hashtag1","hashtag2"]},{"1377704438":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377704440, 1377704443, 1377704445, 1377704436, 1377704441, 1377704438)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.296093940734863 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:57:31.873113
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/57/image_18082025_14_57_44_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/14/57/image_18082025_14_57_35_9739.jpg', 2), ('/home/nano/Desktop/images/18082025/14/57/image_18082025_14_57_25_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/14/57/image_18082025_14_57_14_9777.jpg', 2), ('/home/nano/Desktop/images/18082025/14/56/image_18082025_14_57_05_9773.jpg', 2), ('/home/nano/Desktop/images/18082025/14/56/image_18082025_14_56_55_10636.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/57/image_18082025_14_57_44_9654.jpg', '/home/nano/Desktop/images/18082025/14/57/image_18082025_14_57_35_9739.jpg', '/home/nano/Desktop/images/18082025/14/57/image_18082025_14_57_25_10651.jpg', '/home/nano/Desktop/images/18082025/14/57/image_18082025_14_57_14_9777.jpg', '/home/nano/Desktop/images/18082025/14/56/image_18082025_14_57_05_9773.jpg', '/home/nano/Desktop/images/18082025/14/56/image_18082025_14_56_55_10636.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/57/image_18082025_14_57_44_9654.jpg
/home/nano/Desktop/images/18082025/14/57/image_18082025_14_57_35_9739.jpg
/home/nano/Desktop/images/18082025/14/57/image_18082025_14_57_25_10651.jpg
/home/nano/Desktop/images/18082025/14/57/image_18082025_14_57_14_9777.jpg
/home/nano/Desktop/images/18082025/14/56/image_18082025_14_57_05_9773.jpg
/home/nano/Desktop/images/18082025/14/56/image_18082025_14_56_55_10636.jpg
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:58:02.589642
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/57/image_18082025_14_57_44_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/14/57/image_18082025_14_57_35_9739.jpg', 2), ('/home/nano/Desktop/images/18082025/14/57/image_18082025_14_57_25_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/14/57/image_18082025_14_57_14_9777.jpg', 2), ('/home/nano/Desktop/images/18082025/14/56/image_18082025_14_57_05_9773.jpg', 2), ('/home/nano/Desktop/images/18082025/14/56/image_18082025_14_56_55_10636.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/57/image_18082025_14_57_44_9654.jpg', '/home/nano/Desktop/images/18082025/14/57/image_18082025_14_57_35_9739.jpg', '/home/nano/Desktop/images/18082025/14/57/image_18082025_14_57_25_10651.jpg', '/home/nano/Desktop/images/18082025/14/57/image_18082025_14_57_14_9777.jpg', '/home/nano/Desktop/images/18082025/14/56/image_18082025_14_57_05_9773.jpg', '/home/nano/Desktop/images/18082025/14/56/image_18082025_14_56_55_10636.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/57/image_18082025_14_57_44_9654.jpg
/home/nano/Desktop/images/18082025/14/57/image_18082025_14_57_35_9739.jpg
/home/nano/Desktop/images/18082025/14/57/image_18082025_14_57_25_10651.jpg
/home/nano/Desktop/images/18082025/14/57/image_18082025_14_57_14_9777.jpg
/home/nano/Desktop/images/18082025/14/56/image_18082025_14_57_05_9773.jpg
/home/nano/Desktop/images/18082025/14/56/image_18082025_14_56_55_10636.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377704481","1377704484","1377704478","1377704480","1377704483","1377704482"],"photo_ids_order":["1377704478","1377704480","1377704481","1377704482","1377704483","1377704484"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a9c890d4ab8c3779d60e629eb30b9696.jpg","text":"TemporaryFile(/tmp/multipartBody7900157086105201664asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521944003,"filename":"image_18082025_14_57_25_10651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/df602b39740c2cccdf0a14c814d0b48d.jpg","text":"TemporaryFile(/tmp/multipartBody6518730953078425150asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521944003,"filename":"image_18082025_14_56_55_10636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/338356637948b899c4a2975d6884c2a6.jpg","text":"TemporaryFile(/tmp/multipartBody9126112855880047373asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521944003,"filename":"image_18082025_14_57_44_9654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/526382044589839d2ded9e02218d4c44.jpg","text":"TemporaryFile(/tmp/multipartBody1698809010908351631asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521944003,"filename":"image_18082025_14_57_35_9739.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d876025bf7493ee8dc9f923305c552b7.jpg","text":"TemporaryFile(/tmp/multipartBody1018620755593338515asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521944003,"filename":"image_18082025_14_57_05_9773.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b17c492de52f9e6ab98d340b22b91bb7.jpg","text":"TemporaryFile(/tmp/multipartBody8098315990833186684asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755521944003,"filename":"image_18082025_14_57_14_9777.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377704481","file1":"1377704480","file0":"1377704478","file4":"1377704483","file5":"1377704484","file3":"1377704482"},"map_files_photo_id_array":[{"photo_id":"1377704484","filename":"file5"},{"photo_id":"1377704481","filename":"file2"},{"photo_id":"1377704483","filename":"file4"},{"photo_id":"1377704480","filename":"file1"},{"photo_id":"1377704478","filename":"file0"},{"photo_id":"1377704482","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377704481":["hashtag1","hashtag2"]},{"1377704484":["hashtag1","hashtag2"]},{"1377704478":["hashtag1","hashtag2"]},{"1377704480":["hashtag1","hashtag2"]},{"1377704483":["hashtag1","hashtag2"]},{"1377704482":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377704481, 1377704484, 1377704478, 1377704480, 1377704483, 1377704482)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.93817687034607 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:59:03.102450
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/58/image_18082025_14_58_44_9605.jpg', 2), ('/home/nano/Desktop/images/18082025/14/58/image_18082025_14_58_35_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/14/58/image_18082025_14_58_25_10617.jpg', 2), ('/home/nano/Desktop/images/18082025/14/58/image_18082025_14_58_14_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/14/57/image_18082025_14_58_05_9706.jpg', 2), ('/home/nano/Desktop/images/18082025/14/57/image_18082025_14_57_55_10663.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/58/image_18082025_14_58_44_9605.jpg', '/home/nano/Desktop/images/18082025/14/58/image_18082025_14_58_35_9606.jpg', '/home/nano/Desktop/images/18082025/14/58/image_18082025_14_58_25_10617.jpg', '/home/nano/Desktop/images/18082025/14/58/image_18082025_14_58_14_9647.jpg', '/home/nano/Desktop/images/18082025/14/57/image_18082025_14_58_05_9706.jpg', '/home/nano/Desktop/images/18082025/14/57/image_18082025_14_57_55_10663.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/58/image_18082025_14_58_44_9605.jpg
/home/nano/Desktop/images/18082025/14/58/image_18082025_14_58_35_9606.jpg
/home/nano/Desktop/images/18082025/14/58/image_18082025_14_58_25_10617.jpg
/home/nano/Desktop/images/18082025/14/58/image_18082025_14_58_14_9647.jpg
/home/nano/Desktop/images/18082025/14/57/image_18082025_14_58_05_9706.jpg
/home/nano/Desktop/images/18082025/14/57/image_18082025_14_57_55_10663.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377704490","1377704505","1377704498","1377704502","1377704486","1377704494"],"photo_ids_order":["1377704486","1377704490","1377704494","1377704498","1377704502","1377704505"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/44720f3aa180c5952a9297a79c42ef62.jpg","text":"TemporaryFile(/tmp/multipartBody537414376456607821asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522004249,"filename":"image_18082025_14_58_35_9606.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b9b9d1ad34aec1201f87f171ad420073.jpg","text":"TemporaryFile(/tmp/multipartBody1992721161069714512asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522004249,"filename":"image_18082025_14_57_55_10663.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/56f562d98c991dbd5e2b597f0457f1aa.jpg","text":"TemporaryFile(/tmp/multipartBody1028397044579648896asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522004249,"filename":"image_18082025_14_58_14_9647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/199b5691f9fc128ce361f78fe97d765b.jpg","text":"TemporaryFile(/tmp/multipartBody4527009344138809923asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522004249,"filename":"image_18082025_14_58_05_9706.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bffe04e3454fb4a8afa40bc232e32980.jpg","text":"TemporaryFile(/tmp/multipartBody3140573254636897552asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522004249,"filename":"image_18082025_14_58_44_9605.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/492d1cd3a42f81b472ba096bfded5c0c.jpg","text":"TemporaryFile(/tmp/multipartBody5886497410504864042asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522004249,"filename":"image_18082025_14_58_25_10617.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377704494","file1":"1377704490","file0":"1377704486","file4":"1377704502","file5":"1377704505","file3":"1377704498"},"map_files_photo_id_array":[{"photo_id":"1377704505","filename":"file5"},{"photo_id":"1377704494","filename":"file2"},{"photo_id":"1377704502","filename":"file4"},{"photo_id":"1377704490","filename":"file1"},{"photo_id":"1377704486","filename":"file0"},{"photo_id":"1377704498","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377704490":["hashtag1","hashtag2"]},{"1377704505":["hashtag1","hashtag2"]},{"1377704498":["hashtag1","hashtag2"]},{"1377704502":["hashtag1","hashtag2"]},{"1377704486":["hashtag1","hashtag2"]},{"1377704494":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377704490, 1377704505, 1377704498, 1377704502, 1377704486, 1377704494)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.879685163497925 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 14:59:47.185947
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/14/59/image_18082025_14_59_45_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/14/59/image_18082025_14_59_34_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/14/59/image_18082025_14_59_25_10613.jpg', 2), ('/home/nano/Desktop/images/18082025/14/59/image_18082025_14_59_14_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/14/58/image_18082025_14_59_04_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/14/58/image_18082025_14_58_55_10618.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/14/59/image_18082025_14_59_45_10642.jpg', '/home/nano/Desktop/images/18082025/14/59/image_18082025_14_59_34_9611.jpg', '/home/nano/Desktop/images/18082025/14/59/image_18082025_14_59_25_10613.jpg', '/home/nano/Desktop/images/18082025/14/59/image_18082025_14_59_14_9652.jpg', '/home/nano/Desktop/images/18082025/14/58/image_18082025_14_59_04_9621.jpg', '/home/nano/Desktop/images/18082025/14/58/image_18082025_14_58_55_10618.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/14/59/image_18082025_14_59_45_10642.jpg
/home/nano/Desktop/images/18082025/14/59/image_18082025_14_59_34_9611.jpg
/home/nano/Desktop/images/18082025/14/59/image_18082025_14_59_25_10613.jpg
/home/nano/Desktop/images/18082025/14/59/image_18082025_14_59_14_9652.jpg
/home/nano/Desktop/images/18082025/14/58/image_18082025_14_59_04_9621.jpg
/home/nano/Desktop/images/18082025/14/58/image_18082025_14_58_55_10618.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377704518","1377704523","1377704520","1377704514","1377704516","1377704513"],"photo_ids_order":["1377704513","1377704514","1377704516","1377704518","1377704520","1377704523"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a00f4868409198d5688e02d1f1ba5996.jpg","text":"TemporaryFile(/tmp/multipartBody6169294695420253049asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522048397,"filename":"image_18082025_14_59_14_9652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/93235a0ab9aea335b2cb6530404139cc.jpg","text":"TemporaryFile(/tmp/multipartBody6032710766311950718asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522048397,"filename":"image_18082025_14_58_55_10618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/68277bfe24d9415f86afa426afcf30f6.jpg","text":"TemporaryFile(/tmp/multipartBody1081526461466756083asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522048397,"filename":"image_18082025_14_59_04_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d0dbc593f77cb4e061ea7941746fbfb4.jpg","text":"TemporaryFile(/tmp/multipartBody6054683986144124592asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522048397,"filename":"image_18082025_14_59_34_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b41fe7b847cd534aef9c1c70af5d8c16.jpg","text":"TemporaryFile(/tmp/multipartBody493503176680451590asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522048397,"filename":"image_18082025_14_59_25_10613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f891e92fdb7e41bb0619aab22308ea8d.jpg","text":"TemporaryFile(/tmp/multipartBody4868772423626350959asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522048397,"filename":"image_18082025_14_59_45_10642.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377704516","file1":"1377704514","file0":"1377704513","file4":"1377704520","file5":"1377704523","file3":"1377704518"},"map_files_photo_id_array":[{"photo_id":"1377704523","filename":"file5"},{"photo_id":"1377704516","filename":"file2"},{"photo_id":"1377704520","filename":"file4"},{"photo_id":"1377704514","filename":"file1"},{"photo_id":"1377704513","filename":"file0"},{"photo_id":"1377704518","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377704518":["hashtag1","hashtag2"]},{"1377704523":["hashtag1","hashtag2"]},{"1377704520":["hashtag1","hashtag2"]},{"1377704514":["hashtag1","hashtag2"]},{"1377704516":["hashtag1","hashtag2"]},{"1377704513":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377704518, 1377704523, 1377704520, 1377704514, 1377704516, 1377704513)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.397857666015625 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:00:32.304683
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/00/image_18082025_15_00_45_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/15/00/image_18082025_15_00_34_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/15/00/image_18082025_15_00_24_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/15/00/image_18082025_15_00_15_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/14/59/image_18082025_15_00_04_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/14/59/image_18082025_14_59_55_9629.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/00/image_18082025_15_00_45_10626.jpg', '/home/nano/Desktop/images/18082025/15/00/image_18082025_15_00_34_9608.jpg', '/home/nano/Desktop/images/18082025/15/00/image_18082025_15_00_24_9652.jpg', '/home/nano/Desktop/images/18082025/15/00/image_18082025_15_00_15_10632.jpg', '/home/nano/Desktop/images/18082025/14/59/image_18082025_15_00_04_9616.jpg', '/home/nano/Desktop/images/18082025/14/59/image_18082025_14_59_55_9629.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/00/image_18082025_15_00_45_10626.jpg
/home/nano/Desktop/images/18082025/15/00/image_18082025_15_00_34_9608.jpg
/home/nano/Desktop/images/18082025/15/00/image_18082025_15_00_24_9652.jpg
/home/nano/Desktop/images/18082025/15/00/image_18082025_15_00_15_10632.jpg
/home/nano/Desktop/images/18082025/14/59/image_18082025_15_00_04_9616.jpg
/home/nano/Desktop/images/18082025/14/59/image_18082025_14_59_55_9629.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377704551","1377704554","1377704556","1377704544","1377704546","1377704549"],"photo_ids_order":["1377704544","1377704546","1377704549","1377704551","1377704554","1377704556"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f3e2daad8b998eb5b29a3747a78a11ab.jpg","text":"TemporaryFile(/tmp/multipartBody6892777951974160230asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522093584,"filename":"image_18082025_15_00_15_10632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ee602cc25f1335f955a703317b8d922c.jpg","text":"TemporaryFile(/tmp/multipartBody9085702926027601269asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522093584,"filename":"image_18082025_15_00_04_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7ee6543caa69a3c3bbeee615e3234278.jpg","text":"TemporaryFile(/tmp/multipartBody5707357314810974427asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522093584,"filename":"image_18082025_14_59_55_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b8eaf69058505eb67551a5840ee336e2.jpg","text":"TemporaryFile(/tmp/multipartBody8882071023317658086asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522093584,"filename":"image_18082025_15_00_45_10626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c0c294e9d49e62aafd11025222cf8402.jpg","text":"TemporaryFile(/tmp/multipartBody556548216112379810asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522093584,"filename":"image_18082025_15_00_34_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f98a0419704bef30750d0dd77f89ad4a.jpg","text":"TemporaryFile(/tmp/multipartBody8086726213917925552asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522093584,"filename":"image_18082025_15_00_24_9652.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377704549","file1":"1377704546","file0":"1377704544","file4":"1377704554","file5":"1377704556","file3":"1377704551"},"map_files_photo_id_array":[{"photo_id":"1377704556","filename":"file5"},{"photo_id":"1377704549","filename":"file2"},{"photo_id":"1377704554","filename":"file4"},{"photo_id":"1377704546","filename":"file1"},{"photo_id":"1377704544","filename":"file0"},{"photo_id":"1377704551","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377704551":["hashtag1","hashtag2"]},{"1377704554":["hashtag1","hashtag2"]},{"1377704556":["hashtag1","hashtag2"]},{"1377704544":["hashtag1","hashtag2"]},{"1377704546":["hashtag1","hashtag2"]},{"1377704549":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377704551, 1377704554, 1377704556, 1377704544, 1377704546, 1377704549)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.161298990249634 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:01:17.402277
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/01/image_18082025_15_01_44_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/15/01/image_18082025_15_01_35_10619.jpg', 2), ('/home/nano/Desktop/images/18082025/15/01/image_18082025_15_01_24_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/15/01/image_18082025_15_01_15_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/15/00/image_18082025_15_01_05_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/15/00/image_18082025_15_00_54_9612.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/01/image_18082025_15_01_44_9609.jpg', '/home/nano/Desktop/images/18082025/15/01/image_18082025_15_01_35_10619.jpg', '/home/nano/Desktop/images/18082025/15/01/image_18082025_15_01_24_9620.jpg', '/home/nano/Desktop/images/18082025/15/01/image_18082025_15_01_15_9630.jpg', '/home/nano/Desktop/images/18082025/15/00/image_18082025_15_01_05_10626.jpg', '/home/nano/Desktop/images/18082025/15/00/image_18082025_15_00_54_9612.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/01/image_18082025_15_01_44_9609.jpg
/home/nano/Desktop/images/18082025/15/01/image_18082025_15_01_35_10619.jpg
/home/nano/Desktop/images/18082025/15/01/image_18082025_15_01_24_9620.jpg
/home/nano/Desktop/images/18082025/15/01/image_18082025_15_01_15_9630.jpg
/home/nano/Desktop/images/18082025/15/00/image_18082025_15_01_05_10626.jpg
/home/nano/Desktop/images/18082025/15/00/image_18082025_15_00_54_9612.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377704578","1377704572","1377704580","1377704568","1377704579","1377704576"],"photo_ids_order":["1377704568","1377704572","1377704576","1377704578","1377704579","1377704580"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1c911c22337b0ec3336dc5da07467908.jpg","text":"TemporaryFile(/tmp/multipartBody728971334690579883asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522138808,"filename":"image_18082025_15_01_15_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/366cf0ce049484e4cc82a1aec7340de7.jpg","text":"TemporaryFile(/tmp/multipartBody490128328531536972asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522138808,"filename":"image_18082025_15_01_35_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9c44c334e6f26d96f1df0a492b2a4c2d.jpg","text":"TemporaryFile(/tmp/multipartBody375560706400404989asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522138808,"filename":"image_18082025_15_00_54_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/21157a00fe87a76e38daa53ddb1a52b4.jpg","text":"TemporaryFile(/tmp/multipartBody1369116467977373435asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522138808,"filename":"image_18082025_15_01_44_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/162b1c2ac5b48b7f4cd815b93f1608f5.jpg","text":"TemporaryFile(/tmp/multipartBody7525513990156778598asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522138808,"filename":"image_18082025_15_01_05_10626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d3f7f0b7d76728e843444a783d91081a.jpg","text":"TemporaryFile(/tmp/multipartBody5286231055631230392asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522138808,"filename":"image_18082025_15_01_24_9620.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377704576","file1":"1377704572","file0":"1377704568","file4":"1377704579","file5":"1377704580","file3":"1377704578"},"map_files_photo_id_array":[{"photo_id":"1377704580","filename":"file5"},{"photo_id":"1377704576","filename":"file2"},{"photo_id":"1377704579","filename":"file4"},{"photo_id":"1377704572","filename":"file1"},{"photo_id":"1377704568","filename":"file0"},{"photo_id":"1377704578","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377704578":["hashtag1","hashtag2"]},{"1377704572":["hashtag1","hashtag2"]},{"1377704580":["hashtag1","hashtag2"]},{"1377704568":["hashtag1","hashtag2"]},{"1377704579":["hashtag1","hashtag2"]},{"1377704576":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377704578, 1377704572, 1377704580, 1377704568, 1377704579, 1377704576)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.023192405700684 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:02:03.075539
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/53/image_18082025_10_53_44_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/10/53/image_18082025_10_53_35_10681.jpg', 2), ('/home/nano/Desktop/images/18082025/10/53/image_18082025_10_53_24_9723.jpg', 2), ('/home/nano/Desktop/images/18082025/10/53/image_18082025_10_53_14_9820.jpg', 2), ('/home/nano/Desktop/images/18082025/10/52/image_18082025_10_53_05_9808.jpg', 2), ('/home/nano/Desktop/images/18082025/10/52/image_18082025_10_52_55_9817.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/53/image_18082025_10_53_44_9623.jpg', '/home/nano/Desktop/images/18082025/10/53/image_18082025_10_53_35_10681.jpg', '/home/nano/Desktop/images/18082025/10/53/image_18082025_10_53_24_9723.jpg', '/home/nano/Desktop/images/18082025/10/53/image_18082025_10_53_14_9820.jpg', '/home/nano/Desktop/images/18082025/10/52/image_18082025_10_53_05_9808.jpg', '/home/nano/Desktop/images/18082025/10/52/image_18082025_10_52_55_9817.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/53/image_18082025_10_53_44_9623.jpg
/home/nano/Desktop/images/18082025/10/53/image_18082025_10_53_35_10681.jpg
/home/nano/Desktop/images/18082025/10/53/image_18082025_10_53_24_9723.jpg
/home/nano/Desktop/images/18082025/10/53/image_18082025_10_53_14_9820.jpg
/home/nano/Desktop/images/18082025/10/52/image_18082025_10_53_05_9808.jpg
/home/nano/Desktop/images/18082025/10/52/image_18082025_10_52_55_9817.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377704599","1377704590","1377704587","1377704602","1377704593","1377704596"],"photo_ids_order":["1377704587","1377704590","1377704593","1377704596","1377704599","1377704602"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/270ce71b95d250b5c460a6b58d06dc3c.jpg","text":"TemporaryFile(/tmp/multipartBody605546510436154464asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522184931,"filename":"image_18082025_10_53_05_9808.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1a3e7055066acd613e4aec65fb415af3.jpg","text":"TemporaryFile(/tmp/multipartBody812490978457577068asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522184931,"filename":"image_18082025_10_53_35_10681.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8f161a181b0cd5edbc49c66a556fa664.jpg","text":"TemporaryFile(/tmp/multipartBody1276813841569970429asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522184931,"filename":"image_18082025_10_53_44_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/61543346f8325604bc51b814e4341040.jpg","text":"TemporaryFile(/tmp/multipartBody7619120047908844300asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522184931,"filename":"image_18082025_10_52_55_9817.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/88407720b0cba60daa4bdbbad09dc1f0.jpg","text":"TemporaryFile(/tmp/multipartBody6279266948615358975asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522184931,"filename":"image_18082025_10_53_24_9723.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d42087e91959ae882bdf9c838dcb5d49.jpg","text":"TemporaryFile(/tmp/multipartBody6192610792253728995asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522184931,"filename":"image_18082025_10_53_14_9820.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377704593","file1":"1377704590","file0":"1377704587","file4":"1377704599","file5":"1377704602","file3":"1377704596"},"map_files_photo_id_array":[{"photo_id":"1377704602","filename":"file5"},{"photo_id":"1377704593","filename":"file2"},{"photo_id":"1377704599","filename":"file4"},{"photo_id":"1377704590","filename":"file1"},{"photo_id":"1377704587","filename":"file0"},{"photo_id":"1377704596","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377704599":["hashtag1","hashtag2"]},{"1377704590":["hashtag1","hashtag2"]},{"1377704587":["hashtag1","hashtag2"]},{"1377704602":["hashtag1","hashtag2"]},{"1377704593":["hashtag1","hashtag2"]},{"1377704596":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377704599, 1377704590, 1377704587, 1377704602, 1377704593, 1377704596)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.70746111869812 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:02:47.487245
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/02/image_18082025_15_02_44_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/15/02/image_18082025_15_02_35_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/15/02/image_18082025_15_02_25_10622.jpg', 2), ('/home/nano/Desktop/images/18082025/15/02/image_18082025_15_02_14_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/15/01/image_18082025_15_02_05_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/15/01/image_18082025_15_01_55_10618.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/02/image_18082025_15_02_44_9606.jpg', '/home/nano/Desktop/images/18082025/15/02/image_18082025_15_02_35_9623.jpg', '/home/nano/Desktop/images/18082025/15/02/image_18082025_15_02_25_10622.jpg', '/home/nano/Desktop/images/18082025/15/02/image_18082025_15_02_14_9637.jpg', '/home/nano/Desktop/images/18082025/15/01/image_18082025_15_02_05_9644.jpg', '/home/nano/Desktop/images/18082025/15/01/image_18082025_15_01_55_10618.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/02/image_18082025_15_02_44_9606.jpg
/home/nano/Desktop/images/18082025/15/02/image_18082025_15_02_35_9623.jpg
/home/nano/Desktop/images/18082025/15/02/image_18082025_15_02_25_10622.jpg
/home/nano/Desktop/images/18082025/15/02/image_18082025_15_02_14_9637.jpg
/home/nano/Desktop/images/18082025/15/01/image_18082025_15_02_05_9644.jpg
/home/nano/Desktop/images/18082025/15/01/image_18082025_15_01_55_10618.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377704611","1377704613","1377704621","1377704615","1377704609","1377704618"],"photo_ids_order":["1377704609","1377704611","1377704613","1377704615","1377704618","1377704621"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fb10b76df76cd126df371e93d19a68b9.jpg","text":"TemporaryFile(/tmp/multipartBody6501227446522709959asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522228869,"filename":"image_18082025_15_02_35_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d9785265bd71f962bd711b070a9097d7.jpg","text":"TemporaryFile(/tmp/multipartBody6962387768849286561asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522228869,"filename":"image_18082025_15_02_25_10622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a2472db0e9e9467a96f824288b78313f.jpg","text":"TemporaryFile(/tmp/multipartBody4091258024240714924asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522228869,"filename":"image_18082025_15_01_55_10618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/220b4da8a9144fcab4e948271b1d0b4f.jpg","text":"TemporaryFile(/tmp/multipartBody6529522342007157522asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522228869,"filename":"image_18082025_15_02_14_9637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f61224ee206dc57065679768e1332b16.jpg","text":"TemporaryFile(/tmp/multipartBody4757756678293962204asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522228869,"filename":"image_18082025_15_02_44_9606.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/55631092dbaffbb7e620f58a829d0626.jpg","text":"TemporaryFile(/tmp/multipartBody4796842010492022941asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522228869,"filename":"image_18082025_15_02_05_9644.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377704613","file1":"1377704611","file0":"1377704609","file4":"1377704618","file5":"1377704621","file3":"1377704615"},"map_files_photo_id_array":[{"photo_id":"1377704621","filename":"file5"},{"photo_id":"1377704613","filename":"file2"},{"photo_id":"1377704618","filename":"file4"},{"photo_id":"1377704611","filename":"file1"},{"photo_id":"1377704609","filename":"file0"},{"photo_id":"1377704615","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377704611":["hashtag1","hashtag2"]},{"1377704613":["hashtag1","hashtag2"]},{"1377704621":["hashtag1","hashtag2"]},{"1377704615":["hashtag1","hashtag2"]},{"1377704609":["hashtag1","hashtag2"]},{"1377704618":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377704611, 1377704613, 1377704621, 1377704615, 1377704609, 1377704618)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.54427218437195 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:03:32.611393
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/03/image_18082025_15_03_45_10616.jpg', 2), ('/home/nano/Desktop/images/18082025/15/03/image_18082025_15_03_34_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/15/03/image_18082025_15_03_25_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/15/03/image_18082025_15_03_14_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/15/02/image_18082025_15_03_04_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/15/02/image_18082025_15_02_55_10627.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/03/image_18082025_15_03_45_10616.jpg', '/home/nano/Desktop/images/18082025/15/03/image_18082025_15_03_34_9617.jpg', '/home/nano/Desktop/images/18082025/15/03/image_18082025_15_03_25_10621.jpg', '/home/nano/Desktop/images/18082025/15/03/image_18082025_15_03_14_9630.jpg', '/home/nano/Desktop/images/18082025/15/02/image_18082025_15_03_04_9623.jpg', '/home/nano/Desktop/images/18082025/15/02/image_18082025_15_02_55_10627.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/03/image_18082025_15_03_45_10616.jpg
/home/nano/Desktop/images/18082025/15/03/image_18082025_15_03_34_9617.jpg
/home/nano/Desktop/images/18082025/15/03/image_18082025_15_03_25_10621.jpg
/home/nano/Desktop/images/18082025/15/03/image_18082025_15_03_14_9630.jpg
/home/nano/Desktop/images/18082025/15/02/image_18082025_15_03_04_9623.jpg
/home/nano/Desktop/images/18082025/15/02/image_18082025_15_02_55_10627.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377704644","1377704638","1377704641","1377704643","1377704637","1377704639"],"photo_ids_order":["1377704637","1377704638","1377704639","1377704641","1377704643","1377704644"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5b099bd4380a0a1da2d629b1c5867e9d.jpg","text":"TemporaryFile(/tmp/multipartBody1885911309403077263asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522273844,"filename":"image_18082025_15_02_55_10627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5cc4333513c2fadba6b367c77eda084b.jpg","text":"TemporaryFile(/tmp/multipartBody3456503803056164987asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522273844,"filename":"image_18082025_15_03_34_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0abd0d5618bac31e6ae70d4815ad2bff.jpg","text":"TemporaryFile(/tmp/multipartBody4506771487229342998asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522273844,"filename":"image_18082025_15_03_14_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9e8d8cb0d7d5beada4ed22ed01226249.jpg","text":"TemporaryFile(/tmp/multipartBody9211243768064303585asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522273844,"filename":"image_18082025_15_03_04_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/818c60be2c315d80f804a5042c0664b4.jpg","text":"TemporaryFile(/tmp/multipartBody7763665152555993337asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522273844,"filename":"image_18082025_15_03_45_10616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d39ac2fb620e1b1e6eb3c7b3b03d17df.jpg","text":"TemporaryFile(/tmp/multipartBody5217931410719438839asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522273844,"filename":"image_18082025_15_03_25_10621.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377704639","file1":"1377704638","file0":"1377704637","file4":"1377704643","file5":"1377704644","file3":"1377704641"},"map_files_photo_id_array":[{"photo_id":"1377704644","filename":"file5"},{"photo_id":"1377704639","filename":"file2"},{"photo_id":"1377704643","filename":"file4"},{"photo_id":"1377704638","filename":"file1"},{"photo_id":"1377704637","filename":"file0"},{"photo_id":"1377704641","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377704644":["hashtag1","hashtag2"]},{"1377704638":["hashtag1","hashtag2"]},{"1377704641":["hashtag1","hashtag2"]},{"1377704643":["hashtag1","hashtag2"]},{"1377704637":["hashtag1","hashtag2"]},{"1377704639":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377704644, 1377704638, 1377704641, 1377704643, 1377704637, 1377704639)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.477484226226807 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:04:03.647308
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/52/image_18082025_10_52_45_10750.jpg', 2), ('/home/nano/Desktop/images/18082025/10/52/image_18082025_10_52_34_9761.jpg', 2), ('/home/nano/Desktop/images/18082025/10/52/image_18082025_10_52_24_9727.jpg', 2), ('/home/nano/Desktop/images/18082025/10/52/image_18082025_10_52_15_9740.jpg', 2), ('/home/nano/Desktop/images/18082025/10/51/image_18082025_10_52_05_10731.jpg', 2), ('/home/nano/Desktop/images/18082025/10/51/image_18082025_10_51_54_9729.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/52/image_18082025_10_52_45_10750.jpg', '/home/nano/Desktop/images/18082025/10/52/image_18082025_10_52_34_9761.jpg', '/home/nano/Desktop/images/18082025/10/52/image_18082025_10_52_24_9727.jpg', '/home/nano/Desktop/images/18082025/10/52/image_18082025_10_52_15_9740.jpg', '/home/nano/Desktop/images/18082025/10/51/image_18082025_10_52_05_10731.jpg', '/home/nano/Desktop/images/18082025/10/51/image_18082025_10_51_54_9729.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/52/image_18082025_10_52_45_10750.jpg
/home/nano/Desktop/images/18082025/10/52/image_18082025_10_52_34_9761.jpg
/home/nano/Desktop/images/18082025/10/52/image_18082025_10_52_24_9727.jpg
/home/nano/Desktop/images/18082025/10/52/image_18082025_10_52_15_9740.jpg
/home/nano/Desktop/images/18082025/10/51/image_18082025_10_52_05_10731.jpg
/home/nano/Desktop/images/18082025/10/51/image_18082025_10_51_54_9729.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377704661","1377704655","1377704664","1377704658","1377704652","1377704648"],"photo_ids_order":["1377704648","1377704652","1377704655","1377704658","1377704661","1377704664"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5adbe03e4470c0f474b695c9fdb80ffd.jpg","text":"TemporaryFile(/tmp/multipartBody8360565979019306291asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522305568,"filename":"image_18082025_10_52_05_10731.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ff8ad7cf0e1a321879d77b7bd7b99358.jpg","text":"TemporaryFile(/tmp/multipartBody8211700486376265659asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522305568,"filename":"image_18082025_10_52_24_9727.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/989281564f484d39d437c89029f328f4.jpg","text":"TemporaryFile(/tmp/multipartBody5828421705963361540asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522305568,"filename":"image_18082025_10_51_54_9729.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ecef9e1f24962653102cd3bc6ede79d2.jpg","text":"TemporaryFile(/tmp/multipartBody4247035472386730974asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522305568,"filename":"image_18082025_10_52_15_9740.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e6716a57a5ce93feb0528e300bcc59f3.jpg","text":"TemporaryFile(/tmp/multipartBody3405866966693291096asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522305568,"filename":"image_18082025_10_52_34_9761.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d08c75470f8c7279be5b0a646586c48f.jpg","text":"TemporaryFile(/tmp/multipartBody1932242747802534403asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522305568,"filename":"image_18082025_10_52_45_10750.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377704655","file1":"1377704652","file0":"1377704648","file4":"1377704661","file5":"1377704664","file3":"1377704658"},"map_files_photo_id_array":[{"photo_id":"1377704664","filename":"file5"},{"photo_id":"1377704655","filename":"file2"},{"photo_id":"1377704661","filename":"file4"},{"photo_id":"1377704652","filename":"file1"},{"photo_id":"1377704648","filename":"file0"},{"photo_id":"1377704658","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377704661":["hashtag1","hashtag2"]},{"1377704655":["hashtag1","hashtag2"]},{"1377704664":["hashtag1","hashtag2"]},{"1377704658":["hashtag1","hashtag2"]},{"1377704652":["hashtag1","hashtag2"]},{"1377704648":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377704661, 1377704655, 1377704664, 1377704658, 1377704652, 1377704648)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.45510959625244 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:04:47.722145
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/04/image_18082025_15_04_45_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/15/04/image_18082025_15_04_35_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/15/04/image_18082025_15_04_24_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/15/04/image_18082025_15_04_15_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/15/03/image_18082025_15_04_04_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/15/03/image_18082025_15_03_55_9610.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/04/image_18082025_15_04_45_9608.jpg', '/home/nano/Desktop/images/18082025/15/04/image_18082025_15_04_35_10626.jpg', '/home/nano/Desktop/images/18082025/15/04/image_18082025_15_04_24_9620.jpg', '/home/nano/Desktop/images/18082025/15/04/image_18082025_15_04_15_10638.jpg', '/home/nano/Desktop/images/18082025/15/03/image_18082025_15_04_04_9610.jpg', '/home/nano/Desktop/images/18082025/15/03/image_18082025_15_03_55_9610.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/04/image_18082025_15_04_45_9608.jpg
/home/nano/Desktop/images/18082025/15/04/image_18082025_15_04_35_10626.jpg
/home/nano/Desktop/images/18082025/15/04/image_18082025_15_04_24_9620.jpg
/home/nano/Desktop/images/18082025/15/04/image_18082025_15_04_15_10638.jpg
/home/nano/Desktop/images/18082025/15/03/image_18082025_15_04_04_9610.jpg
/home/nano/Desktop/images/18082025/15/03/image_18082025_15_03_55_9610.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377704671","1377704679","1377704673","1377704670","1377704672","1377704675"],"photo_ids_order":["1377704670","1377704671","1377704672","1377704673","1377704675","1377704679"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b119c20c04fb9efa8c1fe88238a9fb22.jpg","text":"TemporaryFile(/tmp/multipartBody1716814752924796152asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522349168,"filename":"image_18082025_15_04_35_10626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0fe9017b23db489c4e48a8c897cd157e.jpg","text":"TemporaryFile(/tmp/multipartBody6141804520494209239asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522349168,"filename":"image_18082025_15_03_55_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3f17642446130b2bc545a0e172a6625d.jpg","text":"TemporaryFile(/tmp/multipartBody6677403246051329800asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522349168,"filename":"image_18082025_15_04_15_10638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dee20cca368dac26a407f00a31432f92.jpg","text":"TemporaryFile(/tmp/multipartBody8457109299698971388asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522349168,"filename":"image_18082025_15_04_45_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fd7edc113e098bb867d7e47f6002b333.jpg","text":"TemporaryFile(/tmp/multipartBody1466355312583104500asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522349168,"filename":"image_18082025_15_04_24_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/007fe3f5a48603eae031d53d75cd0bfc.jpg","text":"TemporaryFile(/tmp/multipartBody3856184658259438483asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522349168,"filename":"image_18082025_15_04_04_9610.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377704672","file1":"1377704671","file0":"1377704670","file4":"1377704675","file5":"1377704679","file3":"1377704673"},"map_files_photo_id_array":[{"photo_id":"1377704679","filename":"file5"},{"photo_id":"1377704672","filename":"file2"},{"photo_id":"1377704675","filename":"file4"},{"photo_id":"1377704671","filename":"file1"},{"photo_id":"1377704670","filename":"file0"},{"photo_id":"1377704673","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377704671":["hashtag1","hashtag2"]},{"1377704679":["hashtag1","hashtag2"]},{"1377704673":["hashtag1","hashtag2"]},{"1377704670":["hashtag1","hashtag2"]},{"1377704672":["hashtag1","hashtag2"]},{"1377704675":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377704671, 1377704679, 1377704673, 1377704670, 1377704672, 1377704675)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.60216522216797 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:05:31.823886
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/05/image_18082025_15_05_44_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/15/05/image_18082025_15_05_35_10622.jpg', 2), ('/home/nano/Desktop/images/18082025/15/05/image_18082025_15_05_24_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/15/05/image_18082025_15_05_15_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/15/04/image_18082025_15_05_05_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/15/04/image_18082025_15_04_54_9615.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/05/image_18082025_15_05_44_9606.jpg', '/home/nano/Desktop/images/18082025/15/05/image_18082025_15_05_35_10622.jpg', '/home/nano/Desktop/images/18082025/15/05/image_18082025_15_05_24_9625.jpg', '/home/nano/Desktop/images/18082025/15/05/image_18082025_15_05_15_9634.jpg', '/home/nano/Desktop/images/18082025/15/04/image_18082025_15_05_05_10627.jpg', '/home/nano/Desktop/images/18082025/15/04/image_18082025_15_04_54_9615.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/05/image_18082025_15_05_44_9606.jpg
/home/nano/Desktop/images/18082025/15/05/image_18082025_15_05_35_10622.jpg
/home/nano/Desktop/images/18082025/15/05/image_18082025_15_05_24_9625.jpg
/home/nano/Desktop/images/18082025/15/05/image_18082025_15_05_15_9634.jpg
/home/nano/Desktop/images/18082025/15/04/image_18082025_15_05_05_10627.jpg
/home/nano/Desktop/images/18082025/15/04/image_18082025_15_04_54_9615.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377704707","1377704704","1377704700","1377704714","1377704702","1377704711"],"photo_ids_order":["1377704700","1377704702","1377704704","1377704707","1377704711","1377704714"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4832b4721aa6c4320256fa578dff7ef7.jpg","text":"TemporaryFile(/tmp/multipartBody4738297254446635006asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522393190,"filename":"image_18082025_15_05_15_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1707a8cb1f74dbaa16779cf1e6006a12.jpg","text":"TemporaryFile(/tmp/multipartBody7985420231732245265asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522393190,"filename":"image_18082025_15_05_24_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c1707ebcf8ebf7a730b17d404ce38038.jpg","text":"TemporaryFile(/tmp/multipartBody6096295672113475651asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522393190,"filename":"image_18082025_15_05_44_9606.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c08553d7117b17c55b730a2f26a565dc.jpg","text":"TemporaryFile(/tmp/multipartBody8215246205368981621asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522393190,"filename":"image_18082025_15_04_54_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c0b47140ae12f0491fb7551f476324c9.jpg","text":"TemporaryFile(/tmp/multipartBody7980457809535788908asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522393190,"filename":"image_18082025_15_05_35_10622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bf36f58919acd8952c63a0b04953a9a3.jpg","text":"TemporaryFile(/tmp/multipartBody4414943995284016428asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522393190,"filename":"image_18082025_15_05_05_10627.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377704704","file1":"1377704702","file0":"1377704700","file4":"1377704711","file5":"1377704714","file3":"1377704707"},"map_files_photo_id_array":[{"photo_id":"1377704714","filename":"file5"},{"photo_id":"1377704704","filename":"file2"},{"photo_id":"1377704711","filename":"file4"},{"photo_id":"1377704702","filename":"file1"},{"photo_id":"1377704700","filename":"file0"},{"photo_id":"1377704707","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377704707":["hashtag1","hashtag2"]},{"1377704704":["hashtag1","hashtag2"]},{"1377704700":["hashtag1","hashtag2"]},{"1377704714":["hashtag1","hashtag2"]},{"1377704702":["hashtag1","hashtag2"]},{"1377704711":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377704707, 1377704704, 1377704700, 1377704714, 1377704702, 1377704711)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.254315614700317 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:06:16.922151
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/06/image_18082025_15_06_44_9605.jpg', 2), ('/home/nano/Desktop/images/18082025/15/06/image_18082025_15_06_34_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/15/06/image_18082025_15_06_25_10620.jpg', 2), ('/home/nano/Desktop/images/18082025/15/06/image_18082025_15_06_14_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/15/05/image_18082025_15_06_05_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/15/05/image_18082025_15_05_55_10616.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/06/image_18082025_15_06_44_9605.jpg', '/home/nano/Desktop/images/18082025/15/06/image_18082025_15_06_34_9611.jpg', '/home/nano/Desktop/images/18082025/15/06/image_18082025_15_06_25_10620.jpg', '/home/nano/Desktop/images/18082025/15/06/image_18082025_15_06_14_9637.jpg', '/home/nano/Desktop/images/18082025/15/05/image_18082025_15_06_05_9613.jpg', '/home/nano/Desktop/images/18082025/15/05/image_18082025_15_05_55_10616.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/06/image_18082025_15_06_44_9605.jpg
/home/nano/Desktop/images/18082025/15/06/image_18082025_15_06_34_9611.jpg
/home/nano/Desktop/images/18082025/15/06/image_18082025_15_06_25_10620.jpg
/home/nano/Desktop/images/18082025/15/06/image_18082025_15_06_14_9637.jpg
/home/nano/Desktop/images/18082025/15/05/image_18082025_15_06_05_9613.jpg
/home/nano/Desktop/images/18082025/15/05/image_18082025_15_05_55_10616.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377704731","1377704725","1377704734","1377704728","1377704736","1377704739"],"photo_ids_order":["1377704725","1377704728","1377704731","1377704734","1377704736","1377704739"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3d88758d1f7923d5129584f720af6112.jpg","text":"TemporaryFile(/tmp/multipartBody1560125472918884825asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522438227,"filename":"image_18082025_15_06_25_10620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ba6351e0c30a4c41e5d2627e6c64d7b9.jpg","text":"TemporaryFile(/tmp/multipartBody7153383347958017205asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522438227,"filename":"image_18082025_15_06_44_9605.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/053de91cd640069f929040bd989d0472.jpg","text":"TemporaryFile(/tmp/multipartBody1704215491789253427asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522438227,"filename":"image_18082025_15_06_14_9637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cfdfce6c824ee5dd9653f4b7b3eab9ef.jpg","text":"TemporaryFile(/tmp/multipartBody124471136877937629asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522438227,"filename":"image_18082025_15_06_34_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/09d615dee1d906c4e58c348cc3e85474.jpg","text":"TemporaryFile(/tmp/multipartBody8451399792615977669asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522438227,"filename":"image_18082025_15_06_05_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/08e360230b23a82fb0660c11825e8ae0.jpg","text":"TemporaryFile(/tmp/multipartBody5195135858203851493asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522438227,"filename":"image_18082025_15_05_55_10616.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377704731","file1":"1377704728","file0":"1377704725","file4":"1377704736","file5":"1377704739","file3":"1377704734"},"map_files_photo_id_array":[{"photo_id":"1377704739","filename":"file5"},{"photo_id":"1377704731","filename":"file2"},{"photo_id":"1377704736","filename":"file4"},{"photo_id":"1377704728","filename":"file1"},{"photo_id":"1377704725","filename":"file0"},{"photo_id":"1377704734","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377704731":["hashtag1","hashtag2"]},{"1377704725":["hashtag1","hashtag2"]},{"1377704734":["hashtag1","hashtag2"]},{"1377704728":["hashtag1","hashtag2"]},{"1377704736":["hashtag1","hashtag2"]},{"1377704739":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377704731, 1377704725, 1377704734, 1377704728, 1377704736, 1377704739)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.06148910522461 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:07:02.626201
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/51/image_18082025_10_51_44_9675.jpg', 2), ('/home/nano/Desktop/images/18082025/10/51/image_18082025_10_51_35_10725.jpg', 2), ('/home/nano/Desktop/images/18082025/10/51/image_18082025_10_51_24_9742.jpg', 2), ('/home/nano/Desktop/images/18082025/10/51/image_18082025_10_51_14_9745.jpg', 2), ('/home/nano/Desktop/images/18082025/10/50/image_18082025_10_51_05_9756.jpg', 2), ('/home/nano/Desktop/images/18082025/10/50/image_18082025_10_50_55_10709.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/51/image_18082025_10_51_44_9675.jpg', '/home/nano/Desktop/images/18082025/10/51/image_18082025_10_51_35_10725.jpg', '/home/nano/Desktop/images/18082025/10/51/image_18082025_10_51_24_9742.jpg', '/home/nano/Desktop/images/18082025/10/51/image_18082025_10_51_14_9745.jpg', '/home/nano/Desktop/images/18082025/10/50/image_18082025_10_51_05_9756.jpg', '/home/nano/Desktop/images/18082025/10/50/image_18082025_10_50_55_10709.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/51/image_18082025_10_51_44_9675.jpg
/home/nano/Desktop/images/18082025/10/51/image_18082025_10_51_35_10725.jpg
/home/nano/Desktop/images/18082025/10/51/image_18082025_10_51_24_9742.jpg
/home/nano/Desktop/images/18082025/10/51/image_18082025_10_51_14_9745.jpg
/home/nano/Desktop/images/18082025/10/50/image_18082025_10_51_05_9756.jpg
/home/nano/Desktop/images/18082025/10/50/image_18082025_10_50_55_10709.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377704758","1377704767","1377704748","1377704762","1377704771","1377704753"],"photo_ids_order":["1377704748","1377704753","1377704758","1377704762","1377704767","1377704771"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e4f5c7a16367a25bd1d8fda74d8c5edf.jpg","text":"TemporaryFile(/tmp/multipartBody6498443169993433177asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522484416,"filename":"image_18082025_10_51_24_9742.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/552e0324904deb0feacdbc6fa4c29303.jpg","text":"TemporaryFile(/tmp/multipartBody3296898551210023917asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522484416,"filename":"image_18082025_10_51_05_9756.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9b070f3da1a1a0dc1b226f53f2895b0f.jpg","text":"TemporaryFile(/tmp/multipartBody2070091515557514962asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522484416,"filename":"image_18082025_10_51_44_9675.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dac4117ae1fe4ad6d114cb492834aa16.jpg","text":"TemporaryFile(/tmp/multipartBody3519553930413064628asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522484416,"filename":"image_18082025_10_51_14_9745.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/714e7a8ec85df4504c309b2a14699d6f.jpg","text":"TemporaryFile(/tmp/multipartBody8883327920344350427asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522484416,"filename":"image_18082025_10_50_55_10709.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/13f33611bb1097fcf881fc6b71c33b7f.jpg","text":"TemporaryFile(/tmp/multipartBody4600543154043175816asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522484416,"filename":"image_18082025_10_51_35_10725.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377704758","file1":"1377704753","file0":"1377704748","file4":"1377704767","file5":"1377704771","file3":"1377704762"},"map_files_photo_id_array":[{"photo_id":"1377704771","filename":"file5"},{"photo_id":"1377704758","filename":"file2"},{"photo_id":"1377704767","filename":"file4"},{"photo_id":"1377704753","filename":"file1"},{"photo_id":"1377704748","filename":"file0"},{"photo_id":"1377704762","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377704758":["hashtag1","hashtag2"]},{"1377704767":["hashtag1","hashtag2"]},{"1377704748":["hashtag1","hashtag2"]},{"1377704762":["hashtag1","hashtag2"]},{"1377704771":["hashtag1","hashtag2"]},{"1377704753":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377704758, 1377704767, 1377704748, 1377704762, 1377704771, 1377704753)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.67288112640381 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:07:47.046780
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/07/image_18082025_15_07_45_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/15/07/image_18082025_15_07_34_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/15/07/image_18082025_15_07_25_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/15/07/image_18082025_15_07_15_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/15/06/image_18082025_15_07_04_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/15/06/image_18082025_15_06_55_10636.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/07/image_18082025_15_07_45_10628.jpg', '/home/nano/Desktop/images/18082025/15/07/image_18082025_15_07_34_9618.jpg', '/home/nano/Desktop/images/18082025/15/07/image_18082025_15_07_25_9625.jpg', '/home/nano/Desktop/images/18082025/15/07/image_18082025_15_07_15_10647.jpg', '/home/nano/Desktop/images/18082025/15/06/image_18082025_15_07_04_9615.jpg', '/home/nano/Desktop/images/18082025/15/06/image_18082025_15_06_55_10636.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/07/image_18082025_15_07_45_10628.jpg
/home/nano/Desktop/images/18082025/15/07/image_18082025_15_07_34_9618.jpg
/home/nano/Desktop/images/18082025/15/07/image_18082025_15_07_25_9625.jpg
/home/nano/Desktop/images/18082025/15/07/image_18082025_15_07_15_10647.jpg
/home/nano/Desktop/images/18082025/15/06/image_18082025_15_07_04_9615.jpg
/home/nano/Desktop/images/18082025/15/06/image_18082025_15_06_55_10636.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377704779","1377704781","1377704783","1377704777","1377704786","1377704788"],"photo_ids_order":["1377704777","1377704779","1377704781","1377704783","1377704786","1377704788"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2c66909d307b205a0cb851b2c141b35e.jpg","text":"TemporaryFile(/tmp/multipartBody5588551138951629346asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522528400,"filename":"image_18082025_15_07_34_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3bf3cd8ec59943e0f7d376bac5d29817.jpg","text":"TemporaryFile(/tmp/multipartBody8702088202075210242asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522528400,"filename":"image_18082025_15_07_25_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e3b90d8e6bc881d141b498c5d801a29a.jpg","text":"TemporaryFile(/tmp/multipartBody8326563850755837065asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522528400,"filename":"image_18082025_15_07_15_10647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bd121e88ec915c2f55f40acaae89707d.jpg","text":"TemporaryFile(/tmp/multipartBody6252978404992934953asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522528400,"filename":"image_18082025_15_07_45_10628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/443ad77e82d185b99bc585cb7db282db.jpg","text":"TemporaryFile(/tmp/multipartBody6781382408914767753asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522528400,"filename":"image_18082025_15_07_04_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/27c590a598d9dcb23d55f1532e2c6044.jpg","text":"TemporaryFile(/tmp/multipartBody8317850538330233511asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522528400,"filename":"image_18082025_15_06_55_10636.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377704781","file1":"1377704779","file0":"1377704777","file4":"1377704786","file5":"1377704788","file3":"1377704783"},"map_files_photo_id_array":[{"photo_id":"1377704788","filename":"file5"},{"photo_id":"1377704781","filename":"file2"},{"photo_id":"1377704786","filename":"file4"},{"photo_id":"1377704779","filename":"file1"},{"photo_id":"1377704777","filename":"file0"},{"photo_id":"1377704783","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377704779":["hashtag1","hashtag2"]},{"1377704781":["hashtag1","hashtag2"]},{"1377704783":["hashtag1","hashtag2"]},{"1377704777":["hashtag1","hashtag2"]},{"1377704786":["hashtag1","hashtag2"]},{"1377704788":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377704779, 1377704781, 1377704783, 1377704777, 1377704786, 1377704788)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.197443962097168 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:08:32.125267
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/08/image_18082025_15_08_45_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/15/08/image_18082025_15_08_35_10620.jpg', 2), ('/home/nano/Desktop/images/18082025/15/08/image_18082025_15_08_24_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/15/08/image_18082025_15_08_15_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/15/07/image_18082025_15_08_04_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/15/07/image_18082025_15_07_54_9613.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/08/image_18082025_15_08_45_9609.jpg', '/home/nano/Desktop/images/18082025/15/08/image_18082025_15_08_35_10620.jpg', '/home/nano/Desktop/images/18082025/15/08/image_18082025_15_08_24_9621.jpg', '/home/nano/Desktop/images/18082025/15/08/image_18082025_15_08_15_10646.jpg', '/home/nano/Desktop/images/18082025/15/07/image_18082025_15_08_04_9629.jpg', '/home/nano/Desktop/images/18082025/15/07/image_18082025_15_07_54_9613.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/08/image_18082025_15_08_45_9609.jpg
/home/nano/Desktop/images/18082025/15/08/image_18082025_15_08_35_10620.jpg
/home/nano/Desktop/images/18082025/15/08/image_18082025_15_08_24_9621.jpg
/home/nano/Desktop/images/18082025/15/08/image_18082025_15_08_15_10646.jpg
/home/nano/Desktop/images/18082025/15/07/image_18082025_15_08_04_9629.jpg
/home/nano/Desktop/images/18082025/15/07/image_18082025_15_07_54_9613.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377704806","1377704800","1377704802","1377704808","1377704807","1377704804"],"photo_ids_order":["1377704800","1377704802","1377704804","1377704806","1377704807","1377704808"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/aa54566314f447a43814352c8b6586f1.jpg","text":"TemporaryFile(/tmp/multipartBody4547855048180151569asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522573626,"filename":"image_18082025_15_08_15_10646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3729cf0ba2907bc6d095245c49e70dcc.jpg","text":"TemporaryFile(/tmp/multipartBody5585592419989000177asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522573626,"filename":"image_18082025_15_08_45_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6198f16a2d6cb3d91f399cae9cf351d5.jpg","text":"TemporaryFile(/tmp/multipartBody1369186169696530343asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522573626,"filename":"image_18082025_15_08_35_10620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d575d35e91cb8468e77e5442a827d4b2.jpg","text":"TemporaryFile(/tmp/multipartBody6414630571047242908asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522573626,"filename":"image_18082025_15_07_54_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fe6c289533413b7021355fa467ba195a.jpg","text":"TemporaryFile(/tmp/multipartBody2371491273732892806asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522573626,"filename":"image_18082025_15_08_04_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/850c9cb5c9594f81f3b2b94279df7999.jpg","text":"TemporaryFile(/tmp/multipartBody6171280587068054589asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522573626,"filename":"image_18082025_15_08_24_9621.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377704804","file1":"1377704802","file0":"1377704800","file4":"1377704807","file5":"1377704808","file3":"1377704806"},"map_files_photo_id_array":[{"photo_id":"1377704808","filename":"file5"},{"photo_id":"1377704804","filename":"file2"},{"photo_id":"1377704807","filename":"file4"},{"photo_id":"1377704802","filename":"file1"},{"photo_id":"1377704800","filename":"file0"},{"photo_id":"1377704806","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377704806":["hashtag1","hashtag2"]},{"1377704800":["hashtag1","hashtag2"]},{"1377704802":["hashtag1","hashtag2"]},{"1377704808":["hashtag1","hashtag2"]},{"1377704807":["hashtag1","hashtag2"]},{"1377704804":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377704806, 1377704800, 1377704802, 1377704808, 1377704807, 1377704804)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.015963554382324 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:09:17.282554
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/09/image_18082025_15_09_45_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/15/09/image_18082025_15_09_35_10737.jpg', 2), ('/home/nano/Desktop/images/18082025/15/09/image_18082025_15_09_24_9665.jpg', 2), ('/home/nano/Desktop/images/18082025/15/09/image_18082025_15_09_14_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/15/08/image_18082025_15_09_05_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/15/08/image_18082025_15_08_54_9611.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/09/image_18082025_15_09_45_9663.jpg', '/home/nano/Desktop/images/18082025/15/09/image_18082025_15_09_35_10737.jpg', '/home/nano/Desktop/images/18082025/15/09/image_18082025_15_09_24_9665.jpg', '/home/nano/Desktop/images/18082025/15/09/image_18082025_15_09_14_9641.jpg', '/home/nano/Desktop/images/18082025/15/08/image_18082025_15_09_05_10632.jpg', '/home/nano/Desktop/images/18082025/15/08/image_18082025_15_08_54_9611.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/09/image_18082025_15_09_45_9663.jpg
/home/nano/Desktop/images/18082025/15/09/image_18082025_15_09_35_10737.jpg
/home/nano/Desktop/images/18082025/15/09/image_18082025_15_09_24_9665.jpg
/home/nano/Desktop/images/18082025/15/09/image_18082025_15_09_14_9641.jpg
/home/nano/Desktop/images/18082025/15/08/image_18082025_15_09_05_10632.jpg
/home/nano/Desktop/images/18082025/15/08/image_18082025_15_08_54_9611.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377704842","1377704832","1377704841","1377704844","1377704838","1377704828"],"photo_ids_order":["1377704828","1377704832","1377704838","1377704841","1377704842","1377704844"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/280faafff1054824b193d476463c7b6e.jpg","text":"TemporaryFile(/tmp/multipartBody7017408920928226658asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522618959,"filename":"image_18082025_15_09_05_10632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ff8866b6dbc6323d7107653cfaa26ef5.jpg","text":"TemporaryFile(/tmp/multipartBody4630300601331802965asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522618959,"filename":"image_18082025_15_09_35_10737.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/023e85b7f373e10e0c6426116ed8e9c5.jpg","text":"TemporaryFile(/tmp/multipartBody2333277388865220133asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522618959,"filename":"image_18082025_15_09_14_9641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1b5852cf1e627fab2aaab6316504f08a.jpg","text":"TemporaryFile(/tmp/multipartBody7682454670260790338asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522618959,"filename":"image_18082025_15_08_54_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e8e03965a60b527b8d3479386f400598.jpg","text":"TemporaryFile(/tmp/multipartBody396836310731474957asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522618959,"filename":"image_18082025_15_09_24_9665.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/107ef9938e2bd4999da56831864ea26d.jpg","text":"TemporaryFile(/tmp/multipartBody4900618023772958833asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522618959,"filename":"image_18082025_15_09_45_9663.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377704838","file1":"1377704832","file0":"1377704828","file4":"1377704842","file5":"1377704844","file3":"1377704841"},"map_files_photo_id_array":[{"photo_id":"1377704844","filename":"file5"},{"photo_id":"1377704838","filename":"file2"},{"photo_id":"1377704842","filename":"file4"},{"photo_id":"1377704832","filename":"file1"},{"photo_id":"1377704828","filename":"file0"},{"photo_id":"1377704841","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377704842":["hashtag1","hashtag2"]},{"1377704832":["hashtag1","hashtag2"]},{"1377704841":["hashtag1","hashtag2"]},{"1377704844":["hashtag1","hashtag2"]},{"1377704838":["hashtag1","hashtag2"]},{"1377704828":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377704842, 1377704832, 1377704841, 1377704844, 1377704838, 1377704828)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.777836561203003 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:10:02.880723
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/50/image_18082025_10_50_44_9725.jpg', 2), ('/home/nano/Desktop/images/18082025/10/50/image_18082025_10_50_34_9749.jpg', 2), ('/home/nano/Desktop/images/18082025/10/50/image_18082025_10_50_25_9822.jpg', 2), ('/home/nano/Desktop/images/18082025/10/50/image_18082025_10_50_15_10738.jpg', 2), ('/home/nano/Desktop/images/18082025/10/49/image_18082025_10_50_04_9716.jpg', 2), ('/home/nano/Desktop/images/18082025/10/49/image_18082025_10_49_54_9722.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/50/image_18082025_10_50_44_9725.jpg', '/home/nano/Desktop/images/18082025/10/50/image_18082025_10_50_34_9749.jpg', '/home/nano/Desktop/images/18082025/10/50/image_18082025_10_50_25_9822.jpg', '/home/nano/Desktop/images/18082025/10/50/image_18082025_10_50_15_10738.jpg', '/home/nano/Desktop/images/18082025/10/49/image_18082025_10_50_04_9716.jpg', '/home/nano/Desktop/images/18082025/10/49/image_18082025_10_49_54_9722.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/50/image_18082025_10_50_44_9725.jpg
/home/nano/Desktop/images/18082025/10/50/image_18082025_10_50_34_9749.jpg
/home/nano/Desktop/images/18082025/10/50/image_18082025_10_50_25_9822.jpg
/home/nano/Desktop/images/18082025/10/50/image_18082025_10_50_15_10738.jpg
/home/nano/Desktop/images/18082025/10/49/image_18082025_10_50_04_9716.jpg
/home/nano/Desktop/images/18082025/10/49/image_18082025_10_49_54_9722.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377704875","1377704871","1377704865","1377704868","1377704862","1377704858"],"photo_ids_order":["1377704858","1377704862","1377704865","1377704868","1377704871","1377704875"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/78ffe468f808661c119e7eaba43c5018.jpg","text":"TemporaryFile(/tmp/multipartBody1239945918234816295asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522664875,"filename":"image_18082025_10_49_54_9722.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5118ed87da0042b10abdb64b298fefde.jpg","text":"TemporaryFile(/tmp/multipartBody1958289606350539358asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522664875,"filename":"image_18082025_10_50_04_9716.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/60e7d69a91e2fefd34d665b5bf64429e.jpg","text":"TemporaryFile(/tmp/multipartBody8327307638633509197asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522664875,"filename":"image_18082025_10_50_25_9822.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/aedd12ffec74d0c0fa80e98cbe8f68a6.jpg","text":"TemporaryFile(/tmp/multipartBody2991889448026281724asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522664875,"filename":"image_18082025_10_50_15_10738.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/549c7857787113099c5db3eea663db24.jpg","text":"TemporaryFile(/tmp/multipartBody2861212435943162809asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522664875,"filename":"image_18082025_10_50_34_9749.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cc93a2fed7e47ba7070fe6a561f1a824.jpg","text":"TemporaryFile(/tmp/multipartBody5836521800148001852asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522664875,"filename":"image_18082025_10_50_44_9725.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377704865","file1":"1377704862","file0":"1377704858","file4":"1377704871","file5":"1377704875","file3":"1377704868"},"map_files_photo_id_array":[{"photo_id":"1377704875","filename":"file5"},{"photo_id":"1377704865","filename":"file2"},{"photo_id":"1377704871","filename":"file4"},{"photo_id":"1377704862","filename":"file1"},{"photo_id":"1377704858","filename":"file0"},{"photo_id":"1377704868","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377704875":["hashtag1","hashtag2"]},{"1377704871":["hashtag1","hashtag2"]},{"1377704865":["hashtag1","hashtag2"]},{"1377704868":["hashtag1","hashtag2"]},{"1377704862":["hashtag1","hashtag2"]},{"1377704858":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377704875, 1377704871, 1377704865, 1377704868, 1377704862, 1377704858)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.22050762176514 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:10:47.407841
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/10/image_18082025_15_10_45_10677.jpg', 2), ('/home/nano/Desktop/images/18082025/15/10/image_18082025_15_10_34_9685.jpg', 2), ('/home/nano/Desktop/images/18082025/15/10/image_18082025_15_10_25_9765.jpg', 2), ('/home/nano/Desktop/images/18082025/15/10/image_18082025_15_10_15_10705.jpg', 2), ('/home/nano/Desktop/images/18082025/15/09/image_18082025_15_10_04_9829.jpg', 2), ('/home/nano/Desktop/images/18082025/15/09/image_18082025_15_09_54_9801.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/10/image_18082025_15_10_45_10677.jpg', '/home/nano/Desktop/images/18082025/15/10/image_18082025_15_10_34_9685.jpg', '/home/nano/Desktop/images/18082025/15/10/image_18082025_15_10_25_9765.jpg', '/home/nano/Desktop/images/18082025/15/10/image_18082025_15_10_15_10705.jpg', '/home/nano/Desktop/images/18082025/15/09/image_18082025_15_10_04_9829.jpg', '/home/nano/Desktop/images/18082025/15/09/image_18082025_15_09_54_9801.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/10/image_18082025_15_10_45_10677.jpg
/home/nano/Desktop/images/18082025/15/10/image_18082025_15_10_34_9685.jpg
/home/nano/Desktop/images/18082025/15/10/image_18082025_15_10_25_9765.jpg
/home/nano/Desktop/images/18082025/15/10/image_18082025_15_10_15_10705.jpg
/home/nano/Desktop/images/18082025/15/09/image_18082025_15_10_04_9829.jpg
/home/nano/Desktop/images/18082025/15/09/image_18082025_15_09_54_9801.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377704881","1377704883","1377704886","1377704882","1377704890","1377704884"],"photo_ids_order":["1377704881","1377704882","1377704883","1377704884","1377704886","1377704890"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a906d8e061c063bf78bd80ee8fed87e2.jpg","text":"TemporaryFile(/tmp/multipartBody1389390288147364142asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522709186,"filename":"image_18082025_15_10_45_10677.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0b0b111ebdd1d5ad4a19fe972e42ebab.jpg","text":"TemporaryFile(/tmp/multipartBody7509286707618054221asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522709186,"filename":"image_18082025_15_10_25_9765.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/83b9f33d53edea6256a4f3ccb44efb41.jpg","text":"TemporaryFile(/tmp/multipartBody192942135358366066asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522709186,"filename":"image_18082025_15_10_04_9829.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/97cca851f843ceb0f84340da2e0d2635.jpg","text":"TemporaryFile(/tmp/multipartBody7388294707056806680asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522709186,"filename":"image_18082025_15_10_34_9685.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b868b2430d2a946ce10c971520a96ca1.jpg","text":"TemporaryFile(/tmp/multipartBody7847689541803092069asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522709186,"filename":"image_18082025_15_09_54_9801.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1159bc856a23341eab2c1446c17013bb.jpg","text":"TemporaryFile(/tmp/multipartBody7492228241296248732asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522709186,"filename":"image_18082025_15_10_15_10705.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377704883","file1":"1377704882","file0":"1377704881","file4":"1377704886","file5":"1377704890","file3":"1377704884"},"map_files_photo_id_array":[{"photo_id":"1377704890","filename":"file5"},{"photo_id":"1377704883","filename":"file2"},{"photo_id":"1377704886","filename":"file4"},{"photo_id":"1377704882","filename":"file1"},{"photo_id":"1377704881","filename":"file0"},{"photo_id":"1377704884","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377704881":["hashtag1","hashtag2"]},{"1377704883":["hashtag1","hashtag2"]},{"1377704886":["hashtag1","hashtag2"]},{"1377704882":["hashtag1","hashtag2"]},{"1377704890":["hashtag1","hashtag2"]},{"1377704884":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377704881, 1377704883, 1377704886, 1377704882, 1377704890, 1377704884)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.72326159477234 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:11:32.536670
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/11/image_18082025_15_11_44_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/15/11/image_18082025_15_11_35_9755.jpg', 2), ('/home/nano/Desktop/images/18082025/15/11/image_18082025_15_11_25_10768.jpg', 2), ('/home/nano/Desktop/images/18082025/15/11/image_18082025_15_11_14_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/15/10/image_18082025_15_11_04_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/15/10/image_18082025_15_10_55_9749.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/11/image_18082025_15_11_44_9652.jpg', '/home/nano/Desktop/images/18082025/15/11/image_18082025_15_11_35_9755.jpg', '/home/nano/Desktop/images/18082025/15/11/image_18082025_15_11_25_10768.jpg', '/home/nano/Desktop/images/18082025/15/11/image_18082025_15_11_14_9661.jpg', '/home/nano/Desktop/images/18082025/15/10/image_18082025_15_11_04_9647.jpg', '/home/nano/Desktop/images/18082025/15/10/image_18082025_15_10_55_9749.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/11/image_18082025_15_11_44_9652.jpg
/home/nano/Desktop/images/18082025/15/11/image_18082025_15_11_35_9755.jpg
/home/nano/Desktop/images/18082025/15/11/image_18082025_15_11_25_10768.jpg
/home/nano/Desktop/images/18082025/15/11/image_18082025_15_11_14_9661.jpg
/home/nano/Desktop/images/18082025/15/10/image_18082025_15_11_04_9647.jpg
/home/nano/Desktop/images/18082025/15/10/image_18082025_15_10_55_9749.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377704911","1377704920","1377704913","1377704916","1377704909","1377704918"],"photo_ids_order":["1377704909","1377704911","1377704913","1377704916","1377704918","1377704920"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/964cc4746dd9db1a6e9ed6de3688aa7e.jpg","text":"TemporaryFile(/tmp/multipartBody4479973459550880048asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522754195,"filename":"image_18082025_15_11_35_9755.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5ad707b5722adee5606c8f596ca429d0.jpg","text":"TemporaryFile(/tmp/multipartBody4934014668512195928asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522754195,"filename":"image_18082025_15_10_55_9749.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/85a36267c9c6b856165ede2ac88c8b02.jpg","text":"TemporaryFile(/tmp/multipartBody2749719854949877915asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522754195,"filename":"image_18082025_15_11_25_10768.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a576c04a3f91968e1f5f9f018dc18474.jpg","text":"TemporaryFile(/tmp/multipartBody1955562829070332026asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522754195,"filename":"image_18082025_15_11_14_9661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3446388e80a354128fa8595cbd6c8a78.jpg","text":"TemporaryFile(/tmp/multipartBody6871044921373224906asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522754195,"filename":"image_18082025_15_11_44_9652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1e5bdf586d3241530e3090e7854d875c.jpg","text":"TemporaryFile(/tmp/multipartBody3104278409896425529asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522754195,"filename":"image_18082025_15_11_04_9647.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377704913","file1":"1377704911","file0":"1377704909","file4":"1377704918","file5":"1377704920","file3":"1377704916"},"map_files_photo_id_array":[{"photo_id":"1377704920","filename":"file5"},{"photo_id":"1377704913","filename":"file2"},{"photo_id":"1377704918","filename":"file4"},{"photo_id":"1377704911","filename":"file1"},{"photo_id":"1377704909","filename":"file0"},{"photo_id":"1377704916","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377704911":["hashtag1","hashtag2"]},{"1377704920":["hashtag1","hashtag2"]},{"1377704913":["hashtag1","hashtag2"]},{"1377704916":["hashtag1","hashtag2"]},{"1377704909":["hashtag1","hashtag2"]},{"1377704918":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377704911, 1377704920, 1377704913, 1377704916, 1377704909, 1377704918)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.317708253860474 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:12:17.666441
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/12/image_18082025_15_12_44_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/15/12/image_18082025_15_12_35_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/15/12/image_18082025_15_12_25_10707.jpg', 2), ('/home/nano/Desktop/images/18082025/15/12/image_18082025_15_12_14_9682.jpg', 2), ('/home/nano/Desktop/images/18082025/15/11/image_18082025_15_12_05_9679.jpg', 2), ('/home/nano/Desktop/images/18082025/15/11/image_18082025_15_11_55_10645.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/12/image_18082025_15_12_44_9613.jpg', '/home/nano/Desktop/images/18082025/15/12/image_18082025_15_12_35_9610.jpg', '/home/nano/Desktop/images/18082025/15/12/image_18082025_15_12_25_10707.jpg', '/home/nano/Desktop/images/18082025/15/12/image_18082025_15_12_14_9682.jpg', '/home/nano/Desktop/images/18082025/15/11/image_18082025_15_12_05_9679.jpg', '/home/nano/Desktop/images/18082025/15/11/image_18082025_15_11_55_10645.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/12/image_18082025_15_12_44_9613.jpg
/home/nano/Desktop/images/18082025/15/12/image_18082025_15_12_35_9610.jpg
/home/nano/Desktop/images/18082025/15/12/image_18082025_15_12_25_10707.jpg
/home/nano/Desktop/images/18082025/15/12/image_18082025_15_12_14_9682.jpg
/home/nano/Desktop/images/18082025/15/11/image_18082025_15_12_05_9679.jpg
/home/nano/Desktop/images/18082025/15/11/image_18082025_15_11_55_10645.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377704941","1377704938","1377704951","1377704945","1377704948","1377704933"],"photo_ids_order":["1377704933","1377704938","1377704941","1377704945","1377704948","1377704951"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8955a86caf4029e842da51f87a3fa48d.jpg","text":"TemporaryFile(/tmp/multipartBody494694606635310616asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522799190,"filename":"image_18082025_15_12_25_10707.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8d0da58f30b3cfa9ed5305c6efee49f3.jpg","text":"TemporaryFile(/tmp/multipartBody2113459060492453633asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522799190,"filename":"image_18082025_15_12_35_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/303fb57ad2b9556d978d4ebbca3e17c6.jpg","text":"TemporaryFile(/tmp/multipartBody1289660857073553341asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522799190,"filename":"image_18082025_15_11_55_10645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e4672e2b0d66a0d9d428454a7ae45589.jpg","text":"TemporaryFile(/tmp/multipartBody744142106704369480asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522799190,"filename":"image_18082025_15_12_14_9682.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/eb729208d214d9d606abcf23b47ba8ef.jpg","text":"TemporaryFile(/tmp/multipartBody7920174766020237714asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522799190,"filename":"image_18082025_15_12_05_9679.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1d80e1b8e33fccac00fca478faa47198.jpg","text":"TemporaryFile(/tmp/multipartBody5931321124395614214asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522799190,"filename":"image_18082025_15_12_44_9613.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377704941","file1":"1377704938","file0":"1377704933","file4":"1377704948","file5":"1377704951","file3":"1377704945"},"map_files_photo_id_array":[{"photo_id":"1377704951","filename":"file5"},{"photo_id":"1377704941","filename":"file2"},{"photo_id":"1377704948","filename":"file4"},{"photo_id":"1377704938","filename":"file1"},{"photo_id":"1377704933","filename":"file0"},{"photo_id":"1377704945","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377704941":["hashtag1","hashtag2"]},{"1377704938":["hashtag1","hashtag2"]},{"1377704951":["hashtag1","hashtag2"]},{"1377704945":["hashtag1","hashtag2"]},{"1377704948":["hashtag1","hashtag2"]},{"1377704933":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377704941, 1377704938, 1377704951, 1377704945, 1377704948, 1377704933)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.18436574935913 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:13:02.248271
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/49/image_18082025_10_49_45_9716.jpg', 2), ('/home/nano/Desktop/images/18082025/10/49/image_18082025_10_49_35_10706.jpg', 2), ('/home/nano/Desktop/images/18082025/10/49/image_18082025_10_49_24_9713.jpg', 2), ('/home/nano/Desktop/images/18082025/10/49/image_18082025_10_49_15_9716.jpg', 2), ('/home/nano/Desktop/images/18082025/10/48/image_18082025_10_49_05_10733.jpg', 2), ('/home/nano/Desktop/images/18082025/10/48/image_18082025_10_48_54_9726.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/49/image_18082025_10_49_45_9716.jpg', '/home/nano/Desktop/images/18082025/10/49/image_18082025_10_49_35_10706.jpg', '/home/nano/Desktop/images/18082025/10/49/image_18082025_10_49_24_9713.jpg', '/home/nano/Desktop/images/18082025/10/49/image_18082025_10_49_15_9716.jpg', '/home/nano/Desktop/images/18082025/10/48/image_18082025_10_49_05_10733.jpg', '/home/nano/Desktop/images/18082025/10/48/image_18082025_10_48_54_9726.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/49/image_18082025_10_49_45_9716.jpg
/home/nano/Desktop/images/18082025/10/49/image_18082025_10_49_35_10706.jpg
/home/nano/Desktop/images/18082025/10/49/image_18082025_10_49_24_9713.jpg
/home/nano/Desktop/images/18082025/10/49/image_18082025_10_49_15_9716.jpg
/home/nano/Desktop/images/18082025/10/48/image_18082025_10_49_05_10733.jpg
/home/nano/Desktop/images/18082025/10/48/image_18082025_10_48_54_9726.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377704977","1377704962","1377704959","1377704967","1377704981","1377704972"],"photo_ids_order":["1377704959","1377704962","1377704967","1377704972","1377704977","1377704981"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/52086d7a016a863b3df6abe389866d12.jpg","text":"TemporaryFile(/tmp/multipartBody8638410772892148388asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522844387,"filename":"image_18082025_10_49_05_10733.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0bb672926d7be9d1397aaeea5e8649bf.jpg","text":"TemporaryFile(/tmp/multipartBody913810586031838694asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522844387,"filename":"image_18082025_10_49_35_10706.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/14cd54fe4af16560394057ce6439ad7c.jpg","text":"TemporaryFile(/tmp/multipartBody2928177151621935265asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522844387,"filename":"image_18082025_10_49_45_9716.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/56e23cd7b22ae0887e29c2031f4bd199.jpg","text":"TemporaryFile(/tmp/multipartBody5349874423690505831asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522844387,"filename":"image_18082025_10_49_24_9713.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f761e6b7620da94927a4a3c83a4536de.jpg","text":"TemporaryFile(/tmp/multipartBody8477404683996421662asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522844387,"filename":"image_18082025_10_48_54_9726.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/db3df7c527755f2cfcd049cdf38155b8.jpg","text":"TemporaryFile(/tmp/multipartBody8644918663237130518asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522844387,"filename":"image_18082025_10_49_15_9716.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377704967","file1":"1377704962","file0":"1377704959","file4":"1377704977","file5":"1377704981","file3":"1377704972"},"map_files_photo_id_array":[{"photo_id":"1377704981","filename":"file5"},{"photo_id":"1377704967","filename":"file2"},{"photo_id":"1377704977","filename":"file4"},{"photo_id":"1377704962","filename":"file1"},{"photo_id":"1377704959","filename":"file0"},{"photo_id":"1377704972","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377704977":["hashtag1","hashtag2"]},{"1377704962":["hashtag1","hashtag2"]},{"1377704959":["hashtag1","hashtag2"]},{"1377704967":["hashtag1","hashtag2"]},{"1377704981":["hashtag1","hashtag2"]},{"1377704972":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377704977, 1377704962, 1377704959, 1377704967, 1377704981, 1377704972)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.05053162574768 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:13:46.767774
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/13/image_18082025_15_13_45_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/15/13/image_18082025_15_13_34_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/15/13/image_18082025_15_13_25_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/15/13/image_18082025_15_13_14_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/15/12/image_18082025_15_13_04_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/15/12/image_18082025_15_12_55_10617.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/13/image_18082025_15_13_45_10630.jpg', '/home/nano/Desktop/images/18082025/15/13/image_18082025_15_13_34_9607.jpg', '/home/nano/Desktop/images/18082025/15/13/image_18082025_15_13_25_10621.jpg', '/home/nano/Desktop/images/18082025/15/13/image_18082025_15_13_14_9652.jpg', '/home/nano/Desktop/images/18082025/15/12/image_18082025_15_13_04_9628.jpg', '/home/nano/Desktop/images/18082025/15/12/image_18082025_15_12_55_10617.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/13/image_18082025_15_13_45_10630.jpg
/home/nano/Desktop/images/18082025/15/13/image_18082025_15_13_34_9607.jpg
/home/nano/Desktop/images/18082025/15/13/image_18082025_15_13_25_10621.jpg
/home/nano/Desktop/images/18082025/15/13/image_18082025_15_13_14_9652.jpg
/home/nano/Desktop/images/18082025/15/12/image_18082025_15_13_04_9628.jpg
/home/nano/Desktop/images/18082025/15/12/image_18082025_15_12_55_10617.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377704989","1377704994","1377704991","1377704999","1377704996","1377704992"],"photo_ids_order":["1377704989","1377704991","1377704992","1377704994","1377704996","1377704999"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ae0bc97e7340e5949a00c67140dc9156.jpg","text":"TemporaryFile(/tmp/multipartBody779115074646266376asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522888033,"filename":"image_18082025_15_13_45_10630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/76539385c44af08a518ba3124caaf188.jpg","text":"TemporaryFile(/tmp/multipartBody8419866064169804103asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522888033,"filename":"image_18082025_15_13_14_9652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d101c26d49f0b03b3bc1d7af6699e547.jpg","text":"TemporaryFile(/tmp/multipartBody6811454575666026454asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522888033,"filename":"image_18082025_15_13_34_9607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/06749c878198d6434fc3a5aa6119dbf5.jpg","text":"TemporaryFile(/tmp/multipartBody6866348378796336330asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522888033,"filename":"image_18082025_15_12_55_10617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fb0a18f1ec728ffa54eb379c87420e65.jpg","text":"TemporaryFile(/tmp/multipartBody8261544639632743914asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522888033,"filename":"image_18082025_15_13_04_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cc0585c868dd3723b350edb6455edf92.jpg","text":"TemporaryFile(/tmp/multipartBody3249577618537409134asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522888033,"filename":"image_18082025_15_13_25_10621.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377704992","file1":"1377704991","file0":"1377704989","file4":"1377704996","file5":"1377704999","file3":"1377704994"},"map_files_photo_id_array":[{"photo_id":"1377704999","filename":"file5"},{"photo_id":"1377704992","filename":"file2"},{"photo_id":"1377704996","filename":"file4"},{"photo_id":"1377704991","filename":"file1"},{"photo_id":"1377704989","filename":"file0"},{"photo_id":"1377704994","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377704989":["hashtag1","hashtag2"]},{"1377704994":["hashtag1","hashtag2"]},{"1377704991":["hashtag1","hashtag2"]},{"1377704999":["hashtag1","hashtag2"]},{"1377704996":["hashtag1","hashtag2"]},{"1377704992":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377704989, 1377704994, 1377704991, 1377704999, 1377704996, 1377704992)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.08858823776245 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:14:31.899574
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/14/image_18082025_15_14_45_10622.jpg', 2), ('/home/nano/Desktop/images/18082025/15/14/image_18082025_15_14_34_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/15/14/image_18082025_15_14_24_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/15/14/image_18082025_15_14_15_10657.jpg', 2), ('/home/nano/Desktop/images/18082025/15/13/image_18082025_15_14_04_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/15/13/image_18082025_15_13_55_9608.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/14/image_18082025_15_14_45_10622.jpg', '/home/nano/Desktop/images/18082025/15/14/image_18082025_15_14_34_9613.jpg', '/home/nano/Desktop/images/18082025/15/14/image_18082025_15_14_24_9614.jpg', '/home/nano/Desktop/images/18082025/15/14/image_18082025_15_14_15_10657.jpg', '/home/nano/Desktop/images/18082025/15/13/image_18082025_15_14_04_9632.jpg', '/home/nano/Desktop/images/18082025/15/13/image_18082025_15_13_55_9608.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/14/image_18082025_15_14_45_10622.jpg
/home/nano/Desktop/images/18082025/15/14/image_18082025_15_14_34_9613.jpg
/home/nano/Desktop/images/18082025/15/14/image_18082025_15_14_24_9614.jpg
/home/nano/Desktop/images/18082025/15/14/image_18082025_15_14_15_10657.jpg
/home/nano/Desktop/images/18082025/15/13/image_18082025_15_14_04_9632.jpg
/home/nano/Desktop/images/18082025/15/13/image_18082025_15_13_55_9608.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377705013","1377705021","1377705015","1377705018","1377705020","1377705017"],"photo_ids_order":["1377705013","1377705015","1377705017","1377705018","1377705020","1377705021"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/60ed8dcc038eebb6929ed658bf92e322.jpg","text":"TemporaryFile(/tmp/multipartBody723861622868587448asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522933392,"filename":"image_18082025_15_14_45_10622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b37b795cd6a881652fefbdfe0a4f1cf8.jpg","text":"TemporaryFile(/tmp/multipartBody1206206698015932222asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522933392,"filename":"image_18082025_15_13_55_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/165f488823a28f2342462d97e1ca4946.jpg","text":"TemporaryFile(/tmp/multipartBody769573087680381222asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522933392,"filename":"image_18082025_15_14_34_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0ba53f900999c0d0dd2da17a8b3f1f44.jpg","text":"TemporaryFile(/tmp/multipartBody4445463971309924922asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522933392,"filename":"image_18082025_15_14_15_10657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/91e5c062d27002e2b3352c4e2ffb3701.jpg","text":"TemporaryFile(/tmp/multipartBody371377974378075075asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522933392,"filename":"image_18082025_15_14_04_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3e564a7d3324d635f2d484ee423d980d.jpg","text":"TemporaryFile(/tmp/multipartBody4976667724876044063asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522933392,"filename":"image_18082025_15_14_24_9614.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377705017","file1":"1377705015","file0":"1377705013","file4":"1377705020","file5":"1377705021","file3":"1377705018"},"map_files_photo_id_array":[{"photo_id":"1377705021","filename":"file5"},{"photo_id":"1377705017","filename":"file2"},{"photo_id":"1377705020","filename":"file4"},{"photo_id":"1377705015","filename":"file1"},{"photo_id":"1377705013","filename":"file0"},{"photo_id":"1377705018","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377705013":["hashtag1","hashtag2"]},{"1377705021":["hashtag1","hashtag2"]},{"1377705015":["hashtag1","hashtag2"]},{"1377705018":["hashtag1","hashtag2"]},{"1377705020":["hashtag1","hashtag2"]},{"1377705017":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377705013, 1377705021, 1377705015, 1377705018, 1377705020, 1377705017)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.755897283554077 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:15:17.020830
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/15/image_18082025_15_15_44_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/15/15/image_18082025_15_15_35_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/15/15/image_18082025_15_15_24_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/15/15/image_18082025_15_15_15_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/15/14/image_18082025_15_15_05_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/15/14/image_18082025_15_14_54_9616.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/15/image_18082025_15_15_44_9629.jpg', '/home/nano/Desktop/images/18082025/15/15/image_18082025_15_15_35_10626.jpg', '/home/nano/Desktop/images/18082025/15/15/image_18082025_15_15_24_9615.jpg', '/home/nano/Desktop/images/18082025/15/15/image_18082025_15_15_15_9615.jpg', '/home/nano/Desktop/images/18082025/15/14/image_18082025_15_15_05_10627.jpg', '/home/nano/Desktop/images/18082025/15/14/image_18082025_15_14_54_9616.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/15/image_18082025_15_15_44_9629.jpg
/home/nano/Desktop/images/18082025/15/15/image_18082025_15_15_35_10626.jpg
/home/nano/Desktop/images/18082025/15/15/image_18082025_15_15_24_9615.jpg
/home/nano/Desktop/images/18082025/15/15/image_18082025_15_15_15_9615.jpg
/home/nano/Desktop/images/18082025/15/14/image_18082025_15_15_05_10627.jpg
/home/nano/Desktop/images/18082025/15/14/image_18082025_15_14_54_9616.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377705039","1377705048","1377705042","1377705032","1377705035","1377705046"],"photo_ids_order":["1377705032","1377705035","1377705039","1377705042","1377705046","1377705048"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c90e685e7d906f075fbe3b60e514acd4.jpg","text":"TemporaryFile(/tmp/multipartBody8183076632152515037asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522978226,"filename":"image_18082025_15_15_24_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/58e5f2b064c0213e5c7e71d123e04d29.jpg","text":"TemporaryFile(/tmp/multipartBody5939944417638619949asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522978226,"filename":"image_18082025_15_14_54_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b74d6e73949515e91473fdc93f847c14.jpg","text":"TemporaryFile(/tmp/multipartBody5898396632710813579asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522978226,"filename":"image_18082025_15_15_15_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1a984ca7060828b8899ed5cf42dea759.jpg","text":"TemporaryFile(/tmp/multipartBody3875860541604177990asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522978226,"filename":"image_18082025_15_15_44_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a7aac794a52dbecbe43b709a56f3cb86.jpg","text":"TemporaryFile(/tmp/multipartBody706657834060845473asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522978226,"filename":"image_18082025_15_15_35_10626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/14f8d8ccac5000c1f7af360a47ab0fc0.jpg","text":"TemporaryFile(/tmp/multipartBody3932855680533610853asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755522978226,"filename":"image_18082025_15_15_05_10627.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377705039","file1":"1377705035","file0":"1377705032","file4":"1377705046","file5":"1377705048","file3":"1377705042"},"map_files_photo_id_array":[{"photo_id":"1377705048","filename":"file5"},{"photo_id":"1377705039","filename":"file2"},{"photo_id":"1377705046","filename":"file4"},{"photo_id":"1377705035","filename":"file1"},{"photo_id":"1377705032","filename":"file0"},{"photo_id":"1377705042","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377705039":["hashtag1","hashtag2"]},{"1377705048":["hashtag1","hashtag2"]},{"1377705042":["hashtag1","hashtag2"]},{"1377705032":["hashtag1","hashtag2"]},{"1377705035":["hashtag1","hashtag2"]},{"1377705046":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377705039, 1377705048, 1377705042, 1377705032, 1377705035, 1377705046)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.37869167327881 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:16:02.623418
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/48/image_18082025_10_48_44_9729.jpg', 2), ('/home/nano/Desktop/images/18082025/10/48/image_18082025_10_48_35_9744.jpg', 2), ('/home/nano/Desktop/images/18082025/10/48/image_18082025_10_48_25_10764.jpg', 2), ('/home/nano/Desktop/images/18082025/10/48/image_18082025_10_48_14_9843.jpg', 2), ('/home/nano/Desktop/images/18082025/10/47/image_18082025_10_48_04_9731.jpg', 2), ('/home/nano/Desktop/images/18082025/10/47/image_18082025_10_47_55_9725.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/48/image_18082025_10_48_44_9729.jpg', '/home/nano/Desktop/images/18082025/10/48/image_18082025_10_48_35_9744.jpg', '/home/nano/Desktop/images/18082025/10/48/image_18082025_10_48_25_10764.jpg', '/home/nano/Desktop/images/18082025/10/48/image_18082025_10_48_14_9843.jpg', '/home/nano/Desktop/images/18082025/10/47/image_18082025_10_48_04_9731.jpg', '/home/nano/Desktop/images/18082025/10/47/image_18082025_10_47_55_9725.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/48/image_18082025_10_48_44_9729.jpg
/home/nano/Desktop/images/18082025/10/48/image_18082025_10_48_35_9744.jpg
/home/nano/Desktop/images/18082025/10/48/image_18082025_10_48_25_10764.jpg
/home/nano/Desktop/images/18082025/10/48/image_18082025_10_48_14_9843.jpg
/home/nano/Desktop/images/18082025/10/47/image_18082025_10_48_04_9731.jpg
/home/nano/Desktop/images/18082025/10/47/image_18082025_10_47_55_9725.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377705063","1377705066","1377705069","1377705074","1377705071","1377705079"],"photo_ids_order":["1377705063","1377705066","1377705069","1377705071","1377705074","1377705079"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/aa3a3905eefdae15a7f33ad4b1356169.jpg","text":"TemporaryFile(/tmp/multipartBody1276795014543308754asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523024693,"filename":"image_18082025_10_48_44_9729.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/db0eeec5f4d2c844eda537ebcca3ddf4.jpg","text":"TemporaryFile(/tmp/multipartBody6909563694092236682asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523024693,"filename":"image_18082025_10_48_35_9744.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fc0c9926b5fb1511861d76e4cd8ab143.jpg","text":"TemporaryFile(/tmp/multipartBody9164120787126381373asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523024693,"filename":"image_18082025_10_48_25_10764.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5f87e64d9ba6d0c575fa4113aec2eeb8.jpg","text":"TemporaryFile(/tmp/multipartBody154877816332230187asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523024693,"filename":"image_18082025_10_48_04_9731.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a74537336fab77d78b9c5257b19523b8.jpg","text":"TemporaryFile(/tmp/multipartBody730833580998009036asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523024693,"filename":"image_18082025_10_48_14_9843.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/89a1e4752745299b21a33ebdf3262af1.jpg","text":"TemporaryFile(/tmp/multipartBody136899988966437537asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523024693,"filename":"image_18082025_10_47_55_9725.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377705069","file1":"1377705066","file0":"1377705063","file4":"1377705074","file5":"1377705079","file3":"1377705071"},"map_files_photo_id_array":[{"photo_id":"1377705079","filename":"file5"},{"photo_id":"1377705069","filename":"file2"},{"photo_id":"1377705074","filename":"file4"},{"photo_id":"1377705066","filename":"file1"},{"photo_id":"1377705063","filename":"file0"},{"photo_id":"1377705071","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377705063":["hashtag1","hashtag2"]},{"1377705066":["hashtag1","hashtag2"]},{"1377705069":["hashtag1","hashtag2"]},{"1377705074":["hashtag1","hashtag2"]},{"1377705071":["hashtag1","hashtag2"]},{"1377705079":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377705063, 1377705066, 1377705069, 1377705074, 1377705071, 1377705079)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.1601619720459 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:16:47.113803
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/16/image_18082025_15_16_44_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/15/16/image_18082025_15_16_35_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/15/16/image_18082025_15_16_25_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/15/16/image_18082025_15_16_14_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/15/15/image_18082025_15_16_05_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/15/15/image_18082025_15_15_55_10616.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/16/image_18082025_15_16_44_9607.jpg', '/home/nano/Desktop/images/18082025/15/16/image_18082025_15_16_35_9613.jpg', '/home/nano/Desktop/images/18082025/15/16/image_18082025_15_16_25_10623.jpg', '/home/nano/Desktop/images/18082025/15/16/image_18082025_15_16_14_9639.jpg', '/home/nano/Desktop/images/18082025/15/15/image_18082025_15_16_05_9615.jpg', '/home/nano/Desktop/images/18082025/15/15/image_18082025_15_15_55_10616.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/16/image_18082025_15_16_44_9607.jpg
/home/nano/Desktop/images/18082025/15/16/image_18082025_15_16_35_9613.jpg
/home/nano/Desktop/images/18082025/15/16/image_18082025_15_16_25_10623.jpg
/home/nano/Desktop/images/18082025/15/16/image_18082025_15_16_14_9639.jpg
/home/nano/Desktop/images/18082025/15/15/image_18082025_15_16_05_9615.jpg
/home/nano/Desktop/images/18082025/15/15/image_18082025_15_15_55_10616.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377705087","1377705092","1377705086","1377705089","1377705085","1377705088"],"photo_ids_order":["1377705085","1377705086","1377705087","1377705088","1377705089","1377705092"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/156e9c545020308f0e31a52ed7c8e25d.jpg","text":"TemporaryFile(/tmp/multipartBody5581495127410035162asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523068643,"filename":"image_18082025_15_16_25_10623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0866acca3771a59d884936ae28a9fae3.jpg","text":"TemporaryFile(/tmp/multipartBody6398850686166988032asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523068643,"filename":"image_18082025_15_15_55_10616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7f2dde06bc92d1ee96470a2b8833b57e.jpg","text":"TemporaryFile(/tmp/multipartBody3571396371456206945asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523068643,"filename":"image_18082025_15_16_35_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d6acb40c06707d4ba7cce25d514d6a28.jpg","text":"TemporaryFile(/tmp/multipartBody5558573738002578411asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523068643,"filename":"image_18082025_15_16_05_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1297e60fd61347e28c9069b26804fab0.jpg","text":"TemporaryFile(/tmp/multipartBody8664267012923033486asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523068643,"filename":"image_18082025_15_16_44_9607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/314a765d0857c42a7fcc986a6448fb0b.jpg","text":"TemporaryFile(/tmp/multipartBody8202381233722530946asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523068643,"filename":"image_18082025_15_16_14_9639.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377705087","file1":"1377705086","file0":"1377705085","file4":"1377705089","file5":"1377705092","file3":"1377705088"},"map_files_photo_id_array":[{"photo_id":"1377705092","filename":"file5"},{"photo_id":"1377705087","filename":"file2"},{"photo_id":"1377705089","filename":"file4"},{"photo_id":"1377705086","filename":"file1"},{"photo_id":"1377705085","filename":"file0"},{"photo_id":"1377705088","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377705087":["hashtag1","hashtag2"]},{"1377705092":["hashtag1","hashtag2"]},{"1377705086":["hashtag1","hashtag2"]},{"1377705089":["hashtag1","hashtag2"]},{"1377705085":["hashtag1","hashtag2"]},{"1377705088":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377705087, 1377705092, 1377705086, 1377705089, 1377705085, 1377705088)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.60250210762024 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:17:32.179628
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/17/image_18082025_15_17_45_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/15/17/image_18082025_15_17_34_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/15/17/image_18082025_15_17_25_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/15/17/image_18082025_15_17_15_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/15/16/image_18082025_15_17_04_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/15/16/image_18082025_15_16_55_10628.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/17/image_18082025_15_17_45_10621.jpg', '/home/nano/Desktop/images/18082025/15/17/image_18082025_15_17_34_9606.jpg', '/home/nano/Desktop/images/18082025/15/17/image_18082025_15_17_25_9606.jpg', '/home/nano/Desktop/images/18082025/15/17/image_18082025_15_17_15_10649.jpg', '/home/nano/Desktop/images/18082025/15/16/image_18082025_15_17_04_9615.jpg', '/home/nano/Desktop/images/18082025/15/16/image_18082025_15_16_55_10628.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/17/image_18082025_15_17_45_10621.jpg
/home/nano/Desktop/images/18082025/15/17/image_18082025_15_17_34_9606.jpg
/home/nano/Desktop/images/18082025/15/17/image_18082025_15_17_25_9606.jpg
/home/nano/Desktop/images/18082025/15/17/image_18082025_15_17_15_10649.jpg
/home/nano/Desktop/images/18082025/15/16/image_18082025_15_17_04_9615.jpg
/home/nano/Desktop/images/18082025/15/16/image_18082025_15_16_55_10628.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377705115","1377705118","1377705120","1377705117","1377705122","1377705116"],"photo_ids_order":["1377705115","1377705116","1377705117","1377705118","1377705120","1377705122"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c56413726f15c4c1fe9792b1423fda93.jpg","text":"TemporaryFile(/tmp/multipartBody7214422947143669788asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523113517,"filename":"image_18082025_15_17_45_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c6c57d93d0a6d947a3c2b454dbd6ddb8.jpg","text":"TemporaryFile(/tmp/multipartBody390116729978897158asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523113517,"filename":"image_18082025_15_17_15_10649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bccba90b70ed95fe52bfeefa2135422c.jpg","text":"TemporaryFile(/tmp/multipartBody6532571300029100857asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523113517,"filename":"image_18082025_15_17_04_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/186e74498f95fd98996834f05824cfcc.jpg","text":"TemporaryFile(/tmp/multipartBody4571856140041211276asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523113517,"filename":"image_18082025_15_17_25_9606.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b50fbd15521b50266a52cde3c39f45b2.jpg","text":"TemporaryFile(/tmp/multipartBody2185893911310475646asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523113517,"filename":"image_18082025_15_16_55_10628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3d2ce6d4b44f86a4c0667e9a0a2502e4.jpg","text":"TemporaryFile(/tmp/multipartBody3824210869839303427asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523113517,"filename":"image_18082025_15_17_34_9606.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377705117","file1":"1377705116","file0":"1377705115","file4":"1377705120","file5":"1377705122","file3":"1377705118"},"map_files_photo_id_array":[{"photo_id":"1377705122","filename":"file5"},{"photo_id":"1377705117","filename":"file2"},{"photo_id":"1377705120","filename":"file4"},{"photo_id":"1377705116","filename":"file1"},{"photo_id":"1377705115","filename":"file0"},{"photo_id":"1377705118","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377705115":["hashtag1","hashtag2"]},{"1377705118":["hashtag1","hashtag2"]},{"1377705120":["hashtag1","hashtag2"]},{"1377705117":["hashtag1","hashtag2"]},{"1377705122":["hashtag1","hashtag2"]},{"1377705116":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377705115, 1377705118, 1377705120, 1377705117, 1377705122, 1377705116)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.515866994857788 secondes ---
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:18:17.304470
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/18/image_18082025_15_18_45_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/15/18/image_18082025_15_18_35_10617.jpg', 2), ('/home/nano/Desktop/images/18082025/15/18/image_18082025_15_18_24_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/15/18/image_18082025_15_18_15_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/15/17/image_18082025_15_18_04_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/15/17/image_18082025_15_17_54_9609.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/18/image_18082025_15_18_45_9617.jpg', '/home/nano/Desktop/images/18082025/15/18/image_18082025_15_18_35_10617.jpg', '/home/nano/Desktop/images/18082025/15/18/image_18082025_15_18_24_9607.jpg', '/home/nano/Desktop/images/18082025/15/18/image_18082025_15_18_15_10649.jpg', '/home/nano/Desktop/images/18082025/15/17/image_18082025_15_18_04_9628.jpg', '/home/nano/Desktop/images/18082025/15/17/image_18082025_15_17_54_9609.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/18/image_18082025_15_18_45_9617.jpg
/home/nano/Desktop/images/18082025/15/18/image_18082025_15_18_35_10617.jpg
/home/nano/Desktop/images/18082025/15/18/image_18082025_15_18_24_9607.jpg
/home/nano/Desktop/images/18082025/15/18/image_18082025_15_18_15_10649.jpg
/home/nano/Desktop/images/18082025/15/17/image_18082025_15_18_04_9628.jpg
/home/nano/Desktop/images/18082025/15/17/image_18082025_15_17_54_9609.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377705142","1377705149","1377705137","1377705151","1377705145","1377705148"],"photo_ids_order":["1377705137","1377705142","1377705145","1377705148","1377705149","1377705151"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7192d2057b67f19f61c258b8be6adcd4.jpg","text":"TemporaryFile(/tmp/multipartBody5631618491643681191asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523158802,"filename":"image_18082025_15_18_35_10617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7928d5a218d98813e58895177092783e.jpg","text":"TemporaryFile(/tmp/multipartBody6028671352542199612asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523158802,"filename":"image_18082025_15_18_04_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9425dd897b641a9a7a0c46cd5b440c04.jpg","text":"TemporaryFile(/tmp/multipartBody25548983930236168asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523158802,"filename":"image_18082025_15_18_45_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/48f0038c932538217ef2f4c808766fb1.jpg","text":"TemporaryFile(/tmp/multipartBody7037732914087298020asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523158802,"filename":"image_18082025_15_17_54_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/26f21e2ec32bdf2187f37a4a402d75c9.jpg","text":"TemporaryFile(/tmp/multipartBody3695875378939478878asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523158802,"filename":"image_18082025_15_18_24_9607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/301b61e02f30de9be5a8f7cd4a3dbd9e.jpg","text":"TemporaryFile(/tmp/multipartBody7199745460484131442asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523158802,"filename":"image_18082025_15_18_15_10649.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377705145","file1":"1377705142","file0":"1377705137","file4":"1377705149","file5":"1377705151","file3":"1377705148"},"map_files_photo_id_array":[{"photo_id":"1377705151","filename":"file5"},{"photo_id":"1377705145","filename":"file2"},{"photo_id":"1377705149","filename":"file4"},{"photo_id":"1377705142","filename":"file1"},{"photo_id":"1377705137","filename":"file0"},{"photo_id":"1377705148","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377705142":["hashtag1","hashtag2"]},{"1377705149":["hashtag1","hashtag2"]},{"1377705137":["hashtag1","hashtag2"]},{"1377705151":["hashtag1","hashtag2"]},{"1377705145":["hashtag1","hashtag2"]},{"1377705148":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377705142, 1377705149, 1377705137, 1377705151, 1377705145, 1377705148)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.94757580757141 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:19:03.406403
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/47/image_18082025_10_47_45_10732.jpg', 2), ('/home/nano/Desktop/images/18082025/10/47/image_18082025_10_47_34_9718.jpg', 2), ('/home/nano/Desktop/images/18082025/10/47/image_18082025_10_47_24_9713.jpg', 2), ('/home/nano/Desktop/images/18082025/10/47/image_18082025_10_47_15_9747.jpg', 2), ('/home/nano/Desktop/images/18082025/10/46/image_18082025_10_47_05_10755.jpg', 2), ('/home/nano/Desktop/images/18082025/10/46/image_18082025_10_46_54_9698.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/47/image_18082025_10_47_45_10732.jpg', '/home/nano/Desktop/images/18082025/10/47/image_18082025_10_47_34_9718.jpg', '/home/nano/Desktop/images/18082025/10/47/image_18082025_10_47_24_9713.jpg', '/home/nano/Desktop/images/18082025/10/47/image_18082025_10_47_15_9747.jpg', '/home/nano/Desktop/images/18082025/10/46/image_18082025_10_47_05_10755.jpg', '/home/nano/Desktop/images/18082025/10/46/image_18082025_10_46_54_9698.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/47/image_18082025_10_47_45_10732.jpg
/home/nano/Desktop/images/18082025/10/47/image_18082025_10_47_34_9718.jpg
/home/nano/Desktop/images/18082025/10/47/image_18082025_10_47_24_9713.jpg
/home/nano/Desktop/images/18082025/10/47/image_18082025_10_47_15_9747.jpg
/home/nano/Desktop/images/18082025/10/46/image_18082025_10_47_05_10755.jpg
/home/nano/Desktop/images/18082025/10/46/image_18082025_10_46_54_9698.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377705165","1377705179","1377705172","1377705175","1377705169","1377705160"],"photo_ids_order":["1377705160","1377705165","1377705169","1377705172","1377705175","1377705179"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2ab82383b7ae841a46ad6355699c8870.jpg","text":"TemporaryFile(/tmp/multipartBody4250742203297201899asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523205369,"filename":"image_18082025_10_47_34_9718.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9c3c4897e284c9bc957f5fd8a0089e20.jpg","text":"TemporaryFile(/tmp/multipartBody4178192517477711961asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523205369,"filename":"image_18082025_10_46_54_9698.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3067cd266ce32bc08527922fd14678bd.jpg","text":"TemporaryFile(/tmp/multipartBody2104496226503933990asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523205369,"filename":"image_18082025_10_47_15_9747.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/da040966ded3fad66e46583a11b1edc2.jpg","text":"TemporaryFile(/tmp/multipartBody3033497401984242581asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523205369,"filename":"image_18082025_10_47_05_10755.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a970ac777ac5f3505c3954d020bd2dad.jpg","text":"TemporaryFile(/tmp/multipartBody4013568031309346816asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523205369,"filename":"image_18082025_10_47_24_9713.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/433483b3d420ed008569150874586796.jpg","text":"TemporaryFile(/tmp/multipartBody8908966564218964346asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523205369,"filename":"image_18082025_10_47_45_10732.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377705169","file1":"1377705165","file0":"1377705160","file4":"1377705175","file5":"1377705179","file3":"1377705172"},"map_files_photo_id_array":[{"photo_id":"1377705179","filename":"file5"},{"photo_id":"1377705169","filename":"file2"},{"photo_id":"1377705175","filename":"file4"},{"photo_id":"1377705165","filename":"file1"},{"photo_id":"1377705160","filename":"file0"},{"photo_id":"1377705172","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377705165":["hashtag1","hashtag2"]},{"1377705179":["hashtag1","hashtag2"]},{"1377705172":["hashtag1","hashtag2"]},{"1377705175":["hashtag1","hashtag2"]},{"1377705169":["hashtag1","hashtag2"]},{"1377705160":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377705165, 1377705179, 1377705172, 1377705175, 1377705169, 1377705160)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.788952350616455 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:19:47.402496
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/19/image_18082025_15_19_44_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/15/19/image_18082025_15_19_35_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/15/19/image_18082025_15_19_14_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/15/18/image_18082025_15_19_05_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/15/18/image_18082025_15_18_54_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/10/46/image_18082025_10_46_44_9742.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/19/image_18082025_15_19_44_9650.jpg', '/home/nano/Desktop/images/18082025/15/19/image_18082025_15_19_35_10623.jpg', '/home/nano/Desktop/images/18082025/15/19/image_18082025_15_19_14_9638.jpg', '/home/nano/Desktop/images/18082025/15/18/image_18082025_15_19_05_10636.jpg', '/home/nano/Desktop/images/18082025/15/18/image_18082025_15_18_54_9612.jpg', '/home/nano/Desktop/images/18082025/10/46/image_18082025_10_46_44_9742.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/19/image_18082025_15_19_44_9650.jpg
/home/nano/Desktop/images/18082025/15/19/image_18082025_15_19_35_10623.jpg
/home/nano/Desktop/images/18082025/15/19/image_18082025_15_19_14_9638.jpg
/home/nano/Desktop/images/18082025/15/18/image_18082025_15_19_05_10636.jpg
/home/nano/Desktop/images/18082025/15/18/image_18082025_15_18_54_9612.jpg
/home/nano/Desktop/images/18082025/10/46/image_18082025_10_46_44_9742.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377705192","1377705195","1377705198","1377705203","1377705190","1377705193"],"photo_ids_order":["1377705190","1377705192","1377705193","1377705195","1377705198","1377705203"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f7632575812887bf59dedbcf7e8aa0de.jpg","text":"TemporaryFile(/tmp/multipartBody6241698184307744356asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523248735,"filename":"image_18082025_15_19_35_10623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fd4ea872858ce50915730a2e4ff96041.jpg","text":"TemporaryFile(/tmp/multipartBody1353163135012089915asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523248735,"filename":"image_18082025_15_19_05_10636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7fafbc57317ba46c69a18fcee510ba0b.jpg","text":"TemporaryFile(/tmp/multipartBody8728037740699622145asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523248735,"filename":"image_18082025_15_18_54_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dc7c844883d609e854da380f9394dd00.jpg","text":"TemporaryFile(/tmp/multipartBody3551207170485127693asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523248735,"filename":"image_18082025_10_46_44_9742.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/973fbe919b4bc7305fa953cb985dea65.jpg","text":"TemporaryFile(/tmp/multipartBody8001674430767730956asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523248735,"filename":"image_18082025_15_19_44_9650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6b4e2ef035851281497886aed0f46917.jpg","text":"TemporaryFile(/tmp/multipartBody1467686697675624963asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523248735,"filename":"image_18082025_15_19_14_9638.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377705193","file1":"1377705192","file0":"1377705190","file4":"1377705198","file5":"1377705203","file3":"1377705195"},"map_files_photo_id_array":[{"photo_id":"1377705203","filename":"file5"},{"photo_id":"1377705193","filename":"file2"},{"photo_id":"1377705198","filename":"file4"},{"photo_id":"1377705192","filename":"file1"},{"photo_id":"1377705190","filename":"file0"},{"photo_id":"1377705195","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377705192":["hashtag1","hashtag2"]},{"1377705195":["hashtag1","hashtag2"]},{"1377705198":["hashtag1","hashtag2"]},{"1377705203":["hashtag1","hashtag2"]},{"1377705190":["hashtag1","hashtag2"]},{"1377705193":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377705192, 1377705195, 1377705198, 1377705203, 1377705190, 1377705193)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.05176138877869 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:20:32.504875
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/20/image_18082025_15_20_44_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/15/20/image_18082025_15_20_35_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/15/20/image_18082025_15_20_25_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/15/20/image_18082025_15_20_14_9693.jpg', 2), ('/home/nano/Desktop/images/18082025/15/19/image_18082025_15_20_05_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/15/19/image_18082025_15_19_55_10619.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/20/image_18082025_15_20_44_9649.jpg', '/home/nano/Desktop/images/18082025/15/20/image_18082025_15_20_35_9639.jpg', '/home/nano/Desktop/images/18082025/15/20/image_18082025_15_20_25_10638.jpg', '/home/nano/Desktop/images/18082025/15/20/image_18082025_15_20_14_9693.jpg', '/home/nano/Desktop/images/18082025/15/19/image_18082025_15_20_05_9654.jpg', '/home/nano/Desktop/images/18082025/15/19/image_18082025_15_19_55_10619.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/20/image_18082025_15_20_44_9649.jpg
/home/nano/Desktop/images/18082025/15/20/image_18082025_15_20_35_9639.jpg
/home/nano/Desktop/images/18082025/15/20/image_18082025_15_20_25_10638.jpg
/home/nano/Desktop/images/18082025/15/20/image_18082025_15_20_14_9693.jpg
/home/nano/Desktop/images/18082025/15/19/image_18082025_15_20_05_9654.jpg
/home/nano/Desktop/images/18082025/15/19/image_18082025_15_19_55_10619.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377705220","1377705228","1377705222","1377705224","1377705227","1377705226"],"photo_ids_order":["1377705220","1377705222","1377705224","1377705226","1377705227","1377705228"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/066b35465a8283356656d77fc6c4bc9d.jpg","text":"TemporaryFile(/tmp/multipartBody7007024969969428064asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523294048,"filename":"image_18082025_15_20_44_9649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/97a8e8e913148da2984ebfd64a3f1072.jpg","text":"TemporaryFile(/tmp/multipartBody5772171123168184535asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523294048,"filename":"image_18082025_15_19_55_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b32a3185cb6ef433046204de40214b6d.jpg","text":"TemporaryFile(/tmp/multipartBody5177826704021235649asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523294048,"filename":"image_18082025_15_20_35_9639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/020fa18a4341192355065d766cdb00e0.jpg","text":"TemporaryFile(/tmp/multipartBody5306173018913170228asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523294048,"filename":"image_18082025_15_20_25_10638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/574b33b5aa07a819eec934331f2f4126.jpg","text":"TemporaryFile(/tmp/multipartBody2703580374213125091asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523294048,"filename":"image_18082025_15_20_05_9654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c2995d2c101e16fdad1c5b903fa7efa3.jpg","text":"TemporaryFile(/tmp/multipartBody7310439649149868742asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523294048,"filename":"image_18082025_15_20_14_9693.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377705224","file1":"1377705222","file0":"1377705220","file4":"1377705227","file5":"1377705228","file3":"1377705226"},"map_files_photo_id_array":[{"photo_id":"1377705228","filename":"file5"},{"photo_id":"1377705224","filename":"file2"},{"photo_id":"1377705227","filename":"file4"},{"photo_id":"1377705222","filename":"file1"},{"photo_id":"1377705220","filename":"file0"},{"photo_id":"1377705226","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377705220":["hashtag1","hashtag2"]},{"1377705228":["hashtag1","hashtag2"]},{"1377705222":["hashtag1","hashtag2"]},{"1377705224":["hashtag1","hashtag2"]},{"1377705227":["hashtag1","hashtag2"]},{"1377705226":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377705220, 1377705228, 1377705222, 1377705224, 1377705227, 1377705226)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.57956290245056 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:21:17.595284
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/21/image_18082025_15_21_44_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/15/21/image_18082025_15_21_35_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/15/21/image_18082025_15_21_25_10678.jpg', 2), ('/home/nano/Desktop/images/18082025/15/21/image_18082025_15_21_14_9670.jpg', 2), ('/home/nano/Desktop/images/18082025/15/20/image_18082025_15_21_05_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/15/20/image_18082025_15_20_55_10649.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/21/image_18082025_15_21_44_9626.jpg', '/home/nano/Desktop/images/18082025/15/21/image_18082025_15_21_35_9643.jpg', '/home/nano/Desktop/images/18082025/15/21/image_18082025_15_21_25_10678.jpg', '/home/nano/Desktop/images/18082025/15/21/image_18082025_15_21_14_9670.jpg', '/home/nano/Desktop/images/18082025/15/20/image_18082025_15_21_05_9618.jpg', '/home/nano/Desktop/images/18082025/15/20/image_18082025_15_20_55_10649.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/21/image_18082025_15_21_44_9626.jpg
/home/nano/Desktop/images/18082025/15/21/image_18082025_15_21_35_9643.jpg
/home/nano/Desktop/images/18082025/15/21/image_18082025_15_21_25_10678.jpg
/home/nano/Desktop/images/18082025/15/21/image_18082025_15_21_14_9670.jpg
/home/nano/Desktop/images/18082025/15/20/image_18082025_15_21_05_9618.jpg
/home/nano/Desktop/images/18082025/15/20/image_18082025_15_20_55_10649.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377705256","1377705258","1377705254","1377705257","1377705250","1377705244"],"photo_ids_order":["1377705244","1377705250","1377705254","1377705256","1377705257","1377705258"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/897a5b3b984d83ea65a8a335b537a1eb.jpg","text":"TemporaryFile(/tmp/multipartBody4113099624710064397asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523338843,"filename":"image_18082025_15_21_14_9670.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ebb82981bf974114b75fea9addbe0ce0.jpg","text":"TemporaryFile(/tmp/multipartBody6838030751227067005asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523338843,"filename":"image_18082025_15_20_55_10649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1e3585e86cb79b8aafed23de1dfa89eb.jpg","text":"TemporaryFile(/tmp/multipartBody1307199131984621153asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523338843,"filename":"image_18082025_15_21_25_10678.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c234c9816033dcec54906bf50b681b9b.jpg","text":"TemporaryFile(/tmp/multipartBody2669745148419295515asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523338843,"filename":"image_18082025_15_21_05_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ee11ac0c0c8a36cc00c8694984a73680.jpg","text":"TemporaryFile(/tmp/multipartBody4423061080482344274asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523338843,"filename":"image_18082025_15_21_35_9643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1b95756029e0c705453be7619d5ab3a8.jpg","text":"TemporaryFile(/tmp/multipartBody8429071190312064045asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523338843,"filename":"image_18082025_15_21_44_9626.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377705254","file1":"1377705250","file0":"1377705244","file4":"1377705257","file5":"1377705258","file3":"1377705256"},"map_files_photo_id_array":[{"photo_id":"1377705258","filename":"file5"},{"photo_id":"1377705254","filename":"file2"},{"photo_id":"1377705257","filename":"file4"},{"photo_id":"1377705250","filename":"file1"},{"photo_id":"1377705244","filename":"file0"},{"photo_id":"1377705256","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377705256":["hashtag1","hashtag2"]},{"1377705258":["hashtag1","hashtag2"]},{"1377705254":["hashtag1","hashtag2"]},{"1377705257":["hashtag1","hashtag2"]},{"1377705250":["hashtag1","hashtag2"]},{"1377705244":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377705256, 1377705258, 1377705254, 1377705257, 1377705250, 1377705244)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.111494302749634 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:22:03.278525
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/46/image_18082025_10_46_35_9733.jpg', 2), ('/home/nano/Desktop/images/18082025/10/46/image_18082025_10_46_25_10714.jpg', 2), ('/home/nano/Desktop/images/18082025/10/46/image_18082025_10_46_14_9744.jpg', 2), ('/home/nano/Desktop/images/18082025/10/45/image_18082025_10_46_05_9734.jpg', 2), ('/home/nano/Desktop/images/18082025/10/45/image_18082025_10_45_55_9722.jpg', 2), ('/home/nano/Desktop/images/18082025/10/45/image_18082025_10_45_45_10731.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/46/image_18082025_10_46_35_9733.jpg', '/home/nano/Desktop/images/18082025/10/46/image_18082025_10_46_25_10714.jpg', '/home/nano/Desktop/images/18082025/10/46/image_18082025_10_46_14_9744.jpg', '/home/nano/Desktop/images/18082025/10/45/image_18082025_10_46_05_9734.jpg', '/home/nano/Desktop/images/18082025/10/45/image_18082025_10_45_55_9722.jpg', '/home/nano/Desktop/images/18082025/10/45/image_18082025_10_45_45_10731.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/46/image_18082025_10_46_35_9733.jpg
/home/nano/Desktop/images/18082025/10/46/image_18082025_10_46_25_10714.jpg
/home/nano/Desktop/images/18082025/10/46/image_18082025_10_46_14_9744.jpg
/home/nano/Desktop/images/18082025/10/45/image_18082025_10_46_05_9734.jpg
/home/nano/Desktop/images/18082025/10/45/image_18082025_10_45_55_9722.jpg
/home/nano/Desktop/images/18082025/10/45/image_18082025_10_45_45_10731.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.889125108718872 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:22:17.744929
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/22/image_18082025_15_22_45_10616.jpg', 2), ('/home/nano/Desktop/images/18082025/15/22/image_18082025_15_22_34_9605.jpg', 2), ('/home/nano/Desktop/images/18082025/15/22/image_18082025_15_22_25_10703.jpg', 2), ('/home/nano/Desktop/images/18082025/15/22/image_18082025_15_22_14_9683.jpg', 2), ('/home/nano/Desktop/images/18082025/15/21/image_18082025_15_22_04_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/15/21/image_18082025_15_21_55_10610.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/22/image_18082025_15_22_45_10616.jpg', '/home/nano/Desktop/images/18082025/15/22/image_18082025_15_22_34_9605.jpg', '/home/nano/Desktop/images/18082025/15/22/image_18082025_15_22_25_10703.jpg', '/home/nano/Desktop/images/18082025/15/22/image_18082025_15_22_14_9683.jpg', '/home/nano/Desktop/images/18082025/15/21/image_18082025_15_22_04_9657.jpg', '/home/nano/Desktop/images/18082025/15/21/image_18082025_15_21_55_10610.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/22/image_18082025_15_22_45_10616.jpg
/home/nano/Desktop/images/18082025/15/22/image_18082025_15_22_34_9605.jpg
/home/nano/Desktop/images/18082025/15/22/image_18082025_15_22_25_10703.jpg
/home/nano/Desktop/images/18082025/15/22/image_18082025_15_22_14_9683.jpg
/home/nano/Desktop/images/18082025/15/21/image_18082025_15_22_04_9657.jpg
/home/nano/Desktop/images/18082025/15/21/image_18082025_15_21_55_10610.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377705291","1377705282","1377705293","1377705295","1377705289","1377705286"],"photo_ids_order":["1377705282","1377705286","1377705289","1377705291","1377705293","1377705295"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9fe5892cafd2745ef19f597f96452614.jpg","text":"TemporaryFile(/tmp/multipartBody296340829187784228asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523399044,"filename":"image_18082025_15_22_14_9683.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/281e8f2d0fbef72f7c016e72a39a9589.jpg","text":"TemporaryFile(/tmp/multipartBody5862864616014066850asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523399044,"filename":"image_18082025_15_22_45_10616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/71d4b0a89ea360326f163bfa92e20107.jpg","text":"TemporaryFile(/tmp/multipartBody3815756709678828493asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523399044,"filename":"image_18082025_15_22_04_9657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/72ba83dd7c924ae437666419727cc183.jpg","text":"TemporaryFile(/tmp/multipartBody5387084314181728927asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523399044,"filename":"image_18082025_15_21_55_10610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ee3d72f906849db0a4ab11fe84d7ed6c.jpg","text":"TemporaryFile(/tmp/multipartBody7226014282890814691asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523399044,"filename":"image_18082025_15_22_25_10703.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fe2e852cdc19a0cbf2629056e86cd04b.jpg","text":"TemporaryFile(/tmp/multipartBody9013441834542413496asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523399044,"filename":"image_18082025_15_22_34_9605.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377705289","file1":"1377705286","file0":"1377705282","file4":"1377705293","file5":"1377705295","file3":"1377705291"},"map_files_photo_id_array":[{"photo_id":"1377705295","filename":"file5"},{"photo_id":"1377705289","filename":"file2"},{"photo_id":"1377705293","filename":"file4"},{"photo_id":"1377705286","filename":"file1"},{"photo_id":"1377705282","filename":"file0"},{"photo_id":"1377705291","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377705291":["hashtag1","hashtag2"]},{"1377705282":["hashtag1","hashtag2"]},{"1377705293":["hashtag1","hashtag2"]},{"1377705295":["hashtag1","hashtag2"]},{"1377705289":["hashtag1","hashtag2"]},{"1377705286":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377705291, 1377705282, 1377705293, 1377705295, 1377705289, 1377705286)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.4594988822937 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:23:02.316751
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/46/image_18082025_10_46_35_9733.jpg', 2), ('/home/nano/Desktop/images/18082025/10/46/image_18082025_10_46_25_10714.jpg', 2), ('/home/nano/Desktop/images/18082025/10/46/image_18082025_10_46_14_9744.jpg', 2), ('/home/nano/Desktop/images/18082025/10/45/image_18082025_10_46_05_9734.jpg', 2), ('/home/nano/Desktop/images/18082025/10/45/image_18082025_10_45_55_9722.jpg', 2), ('/home/nano/Desktop/images/18082025/10/45/image_18082025_10_45_45_10731.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/46/image_18082025_10_46_35_9733.jpg', '/home/nano/Desktop/images/18082025/10/46/image_18082025_10_46_25_10714.jpg', '/home/nano/Desktop/images/18082025/10/46/image_18082025_10_46_14_9744.jpg', '/home/nano/Desktop/images/18082025/10/45/image_18082025_10_46_05_9734.jpg', '/home/nano/Desktop/images/18082025/10/45/image_18082025_10_45_55_9722.jpg', '/home/nano/Desktop/images/18082025/10/45/image_18082025_10_45_45_10731.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/46/image_18082025_10_46_35_9733.jpg
/home/nano/Desktop/images/18082025/10/46/image_18082025_10_46_25_10714.jpg
/home/nano/Desktop/images/18082025/10/46/image_18082025_10_46_14_9744.jpg
/home/nano/Desktop/images/18082025/10/45/image_18082025_10_46_05_9734.jpg
/home/nano/Desktop/images/18082025/10/45/image_18082025_10_45_55_9722.jpg
/home/nano/Desktop/images/18082025/10/45/image_18082025_10_45_45_10731.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377705319","1377705309","1377705300","1377705314","1377705323","1377705305"],"photo_ids_order":["1377705300","1377705305","1377705309","1377705314","1377705319","1377705323"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e63bea6b1433265b8e5bc998ed78b29a.jpg","text":"TemporaryFile(/tmp/multipartBody1077116321736749515asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523443889,"filename":"image_18082025_10_45_55_9722.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/31377dbcd6c6959e1b601ee078b00b41.jpg","text":"TemporaryFile(/tmp/multipartBody2853618864111108356asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523443889,"filename":"image_18082025_10_46_14_9744.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e54fcc2743fb36bcfdd0fb8664b38aad.jpg","text":"TemporaryFile(/tmp/multipartBody5078540531014942706asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523443889,"filename":"image_18082025_10_46_35_9733.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d7c99d17261fe0c288220fce12cb4a3d.jpg","text":"TemporaryFile(/tmp/multipartBody5942634588672885543asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523443889,"filename":"image_18082025_10_46_05_9734.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e3958a50e60fd185d070c2cc64169bd6.jpg","text":"TemporaryFile(/tmp/multipartBody3499030087790189042asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523443889,"filename":"image_18082025_10_45_45_10731.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c4b09eafef4a5c269b35edd76664d0e7.jpg","text":"TemporaryFile(/tmp/multipartBody1805385709147959521asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523443889,"filename":"image_18082025_10_46_25_10714.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377705309","file1":"1377705305","file0":"1377705300","file4":"1377705319","file5":"1377705323","file3":"1377705314"},"map_files_photo_id_array":[{"photo_id":"1377705323","filename":"file5"},{"photo_id":"1377705309","filename":"file2"},{"photo_id":"1377705319","filename":"file4"},{"photo_id":"1377705305","filename":"file1"},{"photo_id":"1377705300","filename":"file0"},{"photo_id":"1377705314","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377705319":["hashtag1","hashtag2"]},{"1377705309":["hashtag1","hashtag2"]},{"1377705300":["hashtag1","hashtag2"]},{"1377705314":["hashtag1","hashtag2"]},{"1377705323":["hashtag1","hashtag2"]},{"1377705305":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377705319, 1377705309, 1377705300, 1377705314, 1377705323, 1377705305)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.699570417404175 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:23:46.833141
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/23/image_18082025_15_23_45_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/15/23/image_18082025_15_23_34_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/15/23/image_18082025_15_23_25_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/15/23/image_18082025_15_23_15_10680.jpg', 2), ('/home/nano/Desktop/images/18082025/15/22/image_18082025_15_23_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/15/22/image_18082025_15_22_55_9641.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/23/image_18082025_15_23_45_10623.jpg', '/home/nano/Desktop/images/18082025/15/23/image_18082025_15_23_34_9616.jpg', '/home/nano/Desktop/images/18082025/15/23/image_18082025_15_23_25_9638.jpg', '/home/nano/Desktop/images/18082025/15/23/image_18082025_15_23_15_10680.jpg', '/home/nano/Desktop/images/18082025/15/22/image_18082025_15_23_04_9651.jpg', '/home/nano/Desktop/images/18082025/15/22/image_18082025_15_22_55_9641.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/23/image_18082025_15_23_45_10623.jpg
/home/nano/Desktop/images/18082025/15/23/image_18082025_15_23_34_9616.jpg
/home/nano/Desktop/images/18082025/15/23/image_18082025_15_23_25_9638.jpg
/home/nano/Desktop/images/18082025/15/23/image_18082025_15_23_15_10680.jpg
/home/nano/Desktop/images/18082025/15/22/image_18082025_15_23_04_9651.jpg
/home/nano/Desktop/images/18082025/15/22/image_18082025_15_22_55_9641.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377705330","1377705333","1377705332","1377705341","1377705335","1377705338"],"photo_ids_order":["1377705330","1377705332","1377705333","1377705335","1377705338","1377705341"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/511588212baf3572165c1d1509b78400.jpg","text":"TemporaryFile(/tmp/multipartBody6288556323462818asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523488357,"filename":"image_18082025_15_23_45_10623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/abe74725a3f42a9d66a69087274ff6dc.jpg","text":"TemporaryFile(/tmp/multipartBody4594594046848110623asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523488357,"filename":"image_18082025_15_23_25_9638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/69f93cc1db88b302d3e74f6fd1ee5ed7.jpg","text":"TemporaryFile(/tmp/multipartBody2498253883759774647asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523488357,"filename":"image_18082025_15_23_34_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f7e529b6c4cf9ea83dccd91f284b30b4.jpg","text":"TemporaryFile(/tmp/multipartBody8449495001608101875asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523488357,"filename":"image_18082025_15_22_55_9641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2abe4b6ca41d7e4c42ef42310b167893.jpg","text":"TemporaryFile(/tmp/multipartBody7345937970371869553asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523488357,"filename":"image_18082025_15_23_15_10680.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c971e72032c76b3eaba310c35783afec.jpg","text":"TemporaryFile(/tmp/multipartBody3973323693733445699asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523488357,"filename":"image_18082025_15_23_04_9651.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377705333","file1":"1377705332","file0":"1377705330","file4":"1377705338","file5":"1377705341","file3":"1377705335"},"map_files_photo_id_array":[{"photo_id":"1377705341","filename":"file5"},{"photo_id":"1377705333","filename":"file2"},{"photo_id":"1377705338","filename":"file4"},{"photo_id":"1377705332","filename":"file1"},{"photo_id":"1377705330","filename":"file0"},{"photo_id":"1377705335","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377705330":["hashtag1","hashtag2"]},{"1377705333":["hashtag1","hashtag2"]},{"1377705332":["hashtag1","hashtag2"]},{"1377705341":["hashtag1","hashtag2"]},{"1377705335":["hashtag1","hashtag2"]},{"1377705338":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377705330, 1377705333, 1377705332, 1377705341, 1377705335, 1377705338)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.53635311126709 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:24:31.954495
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/24/image_18082025_15_24_45_10662.jpg', 2), ('/home/nano/Desktop/images/18082025/15/24/image_18082025_15_24_34_9678.jpg', 2), ('/home/nano/Desktop/images/18082025/15/24/image_18082025_15_24_24_9603.jpg', 2), ('/home/nano/Desktop/images/18082025/15/24/image_18082025_15_24_15_10670.jpg', 2), ('/home/nano/Desktop/images/18082025/15/23/image_18082025_15_24_04_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/15/23/image_18082025_15_23_54_9615.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/24/image_18082025_15_24_45_10662.jpg', '/home/nano/Desktop/images/18082025/15/24/image_18082025_15_24_34_9678.jpg', '/home/nano/Desktop/images/18082025/15/24/image_18082025_15_24_24_9603.jpg', '/home/nano/Desktop/images/18082025/15/24/image_18082025_15_24_15_10670.jpg', '/home/nano/Desktop/images/18082025/15/23/image_18082025_15_24_04_9610.jpg', '/home/nano/Desktop/images/18082025/15/23/image_18082025_15_23_54_9615.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/24/image_18082025_15_24_45_10662.jpg
/home/nano/Desktop/images/18082025/15/24/image_18082025_15_24_34_9678.jpg
/home/nano/Desktop/images/18082025/15/24/image_18082025_15_24_24_9603.jpg
/home/nano/Desktop/images/18082025/15/24/image_18082025_15_24_15_10670.jpg
/home/nano/Desktop/images/18082025/15/23/image_18082025_15_24_04_9610.jpg
/home/nano/Desktop/images/18082025/15/23/image_18082025_15_23_54_9615.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377705355","1377705360","1377705363","1377705357","1377705362","1377705358"],"photo_ids_order":["1377705355","1377705357","1377705358","1377705360","1377705362","1377705363"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9a198a1dfaff99202370edf5df90a7f1.jpg","text":"TemporaryFile(/tmp/multipartBody1018106552314782903asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523533364,"filename":"image_18082025_15_24_45_10662.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b6a8791a74c411d45f30ccfa262c9494.jpg","text":"TemporaryFile(/tmp/multipartBody109120276225082211asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523533364,"filename":"image_18082025_15_24_15_10670.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2ba1b1d1b8d8aeae7f6df94e8c5b31d5.jpg","text":"TemporaryFile(/tmp/multipartBody6935165128891325611asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523533364,"filename":"image_18082025_15_23_54_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/31c147fba5267a632d0ed17007551303.jpg","text":"TemporaryFile(/tmp/multipartBody8822010566129089264asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523533364,"filename":"image_18082025_15_24_34_9678.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/254c960d1d53040d100b6a82d959dfa8.jpg","text":"TemporaryFile(/tmp/multipartBody1750519020292927027asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523533364,"filename":"image_18082025_15_24_04_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e1dbb5349971e79493b0f03bc7d74585.jpg","text":"TemporaryFile(/tmp/multipartBody898192294541959226asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523533364,"filename":"image_18082025_15_24_24_9603.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377705358","file1":"1377705357","file0":"1377705355","file4":"1377705362","file5":"1377705363","file3":"1377705360"},"map_files_photo_id_array":[{"photo_id":"1377705363","filename":"file5"},{"photo_id":"1377705358","filename":"file2"},{"photo_id":"1377705362","filename":"file4"},{"photo_id":"1377705357","filename":"file1"},{"photo_id":"1377705355","filename":"file0"},{"photo_id":"1377705360","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377705355":["hashtag1","hashtag2"]},{"1377705360":["hashtag1","hashtag2"]},{"1377705363":["hashtag1","hashtag2"]},{"1377705357":["hashtag1","hashtag2"]},{"1377705362":["hashtag1","hashtag2"]},{"1377705358":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377705355, 1377705360, 1377705363, 1377705357, 1377705362, 1377705358)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.264403581619263 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:25:17.175005
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/25/image_18082025_15_25_45_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/15/25/image_18082025_15_25_35_10615.jpg', 2), ('/home/nano/Desktop/images/18082025/15/25/image_18082025_15_25_24_9604.jpg', 2), ('/home/nano/Desktop/images/18082025/15/25/image_18082025_15_25_15_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/15/24/image_18082025_15_25_05_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/15/24/image_18082025_15_24_54_9667.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/25/image_18082025_15_25_45_9619.jpg', '/home/nano/Desktop/images/18082025/15/25/image_18082025_15_25_35_10615.jpg', '/home/nano/Desktop/images/18082025/15/25/image_18082025_15_25_24_9604.jpg', '/home/nano/Desktop/images/18082025/15/25/image_18082025_15_25_15_9651.jpg', '/home/nano/Desktop/images/18082025/15/24/image_18082025_15_25_05_10637.jpg', '/home/nano/Desktop/images/18082025/15/24/image_18082025_15_24_54_9667.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/25/image_18082025_15_25_45_9619.jpg
/home/nano/Desktop/images/18082025/15/25/image_18082025_15_25_35_10615.jpg
/home/nano/Desktop/images/18082025/15/25/image_18082025_15_25_24_9604.jpg
/home/nano/Desktop/images/18082025/15/25/image_18082025_15_25_15_9651.jpg
/home/nano/Desktop/images/18082025/15/24/image_18082025_15_25_05_10637.jpg
/home/nano/Desktop/images/18082025/15/24/image_18082025_15_24_54_9667.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377705390","1377705384","1377705393","1377705387","1377705380","1377705374"],"photo_ids_order":["1377705374","1377705380","1377705384","1377705387","1377705390","1377705393"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5244aa6c1379ca6079191ab9a7a5a3a8.jpg","text":"TemporaryFile(/tmp/multipartBody5662587376772578395asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523578372,"filename":"image_18082025_15_25_05_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d6e0c572b934dd2974a321850d40404d.jpg","text":"TemporaryFile(/tmp/multipartBody4215034654123572903asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523578372,"filename":"image_18082025_15_25_24_9604.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fa7be98fd5e57d10cf7dd794ed84d521.jpg","text":"TemporaryFile(/tmp/multipartBody1493939475134157505asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523578372,"filename":"image_18082025_15_24_54_9667.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/feb31c3a51688cb43e6684d59f1c03d1.jpg","text":"TemporaryFile(/tmp/multipartBody3770944381595510496asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523578372,"filename":"image_18082025_15_25_15_9651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9065b5c58088e818aed4a39024ecdbdc.jpg","text":"TemporaryFile(/tmp/multipartBody2588344025169808364asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523578372,"filename":"image_18082025_15_25_35_10615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f4221bec247a68de15692ece5e65cb86.jpg","text":"TemporaryFile(/tmp/multipartBody6778697033109873366asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523578372,"filename":"image_18082025_15_25_45_9619.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377705384","file1":"1377705380","file0":"1377705374","file4":"1377705390","file5":"1377705393","file3":"1377705387"},"map_files_photo_id_array":[{"photo_id":"1377705393","filename":"file5"},{"photo_id":"1377705384","filename":"file2"},{"photo_id":"1377705390","filename":"file4"},{"photo_id":"1377705380","filename":"file1"},{"photo_id":"1377705374","filename":"file0"},{"photo_id":"1377705387","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377705390":["hashtag1","hashtag2"]},{"1377705384":["hashtag1","hashtag2"]},{"1377705393":["hashtag1","hashtag2"]},{"1377705387":["hashtag1","hashtag2"]},{"1377705380":["hashtag1","hashtag2"]},{"1377705374":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377705390, 1377705384, 1377705393, 1377705387, 1377705380, 1377705374)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.147650480270386 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:26:02.785213
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/45/image_18082025_10_45_34_9751.jpg', 2), ('/home/nano/Desktop/images/18082025/10/45/image_18082025_10_45_25_9722.jpg', 2), ('/home/nano/Desktop/images/18082025/10/45/image_18082025_10_45_15_9880.jpg', 2), ('/home/nano/Desktop/images/18082025/10/44/image_18082025_10_45_05_10728.jpg', 2), ('/home/nano/Desktop/images/18082025/10/44/image_18082025_10_44_54_9730.jpg', 2), ('/home/nano/Desktop/images/18082025/10/44/image_18082025_10_44_44_9799.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/45/image_18082025_10_45_34_9751.jpg', '/home/nano/Desktop/images/18082025/10/45/image_18082025_10_45_25_9722.jpg', '/home/nano/Desktop/images/18082025/10/45/image_18082025_10_45_15_9880.jpg', '/home/nano/Desktop/images/18082025/10/44/image_18082025_10_45_05_10728.jpg', '/home/nano/Desktop/images/18082025/10/44/image_18082025_10_44_54_9730.jpg', '/home/nano/Desktop/images/18082025/10/44/image_18082025_10_44_44_9799.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/45/image_18082025_10_45_34_9751.jpg
/home/nano/Desktop/images/18082025/10/45/image_18082025_10_45_25_9722.jpg
/home/nano/Desktop/images/18082025/10/45/image_18082025_10_45_15_9880.jpg
/home/nano/Desktop/images/18082025/10/44/image_18082025_10_45_05_10728.jpg
/home/nano/Desktop/images/18082025/10/44/image_18082025_10_44_54_9730.jpg
/home/nano/Desktop/images/18082025/10/44/image_18082025_10_44_44_9799.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377705415","1377705418","1377705411","1377705408","1377705413","1377705404"],"photo_ids_order":["1377705404","1377705408","1377705411","1377705413","1377705415","1377705418"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1bc45871f348740d39dd5ce5909d6f78.jpg","text":"TemporaryFile(/tmp/multipartBody7575828598250115545asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523624283,"filename":"image_18082025_10_44_54_9730.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5fe9a7fbaf82148bb48ef992e87a3260.jpg","text":"TemporaryFile(/tmp/multipartBody2735594004921861753asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523624283,"filename":"image_18082025_10_44_44_9799.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9d691e664a4d9d7d796fddc2f9fbe724.jpg","text":"TemporaryFile(/tmp/multipartBody3946130865575914829asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523624283,"filename":"image_18082025_10_45_15_9880.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4040bc4e3e4e57f6365fa9af73e070d4.jpg","text":"TemporaryFile(/tmp/multipartBody1140040003293061616asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523624283,"filename":"image_18082025_10_45_25_9722.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b5f08ddfab3dbef5c3547ef34c54ee69.jpg","text":"TemporaryFile(/tmp/multipartBody7591545608547297211asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523624283,"filename":"image_18082025_10_45_05_10728.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/41cbbd399fe3bda74092aa2ffbc9401d.jpg","text":"TemporaryFile(/tmp/multipartBody7562447906795739412asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523624283,"filename":"image_18082025_10_45_34_9751.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377705411","file1":"1377705408","file0":"1377705404","file4":"1377705415","file5":"1377705418","file3":"1377705413"},"map_files_photo_id_array":[{"photo_id":"1377705418","filename":"file5"},{"photo_id":"1377705411","filename":"file2"},{"photo_id":"1377705415","filename":"file4"},{"photo_id":"1377705408","filename":"file1"},{"photo_id":"1377705404","filename":"file0"},{"photo_id":"1377705413","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377705415":["hashtag1","hashtag2"]},{"1377705418":["hashtag1","hashtag2"]},{"1377705411":["hashtag1","hashtag2"]},{"1377705408":["hashtag1","hashtag2"]},{"1377705413":["hashtag1","hashtag2"]},{"1377705404":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377705415, 1377705418, 1377705411, 1377705408, 1377705413, 1377705404)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.90227699279785 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:26:47.192331
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/26/image_18082025_15_26_44_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/15/26/image_18082025_15_26_35_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/15/26/image_18082025_15_26_14_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/15/25/image_18082025_15_26_05_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/15/25/image_18082025_15_25_54_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/10/44/image_18082025_10_44_35_9680.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/26/image_18082025_15_26_44_9607.jpg', '/home/nano/Desktop/images/18082025/15/26/image_18082025_15_26_35_9626.jpg', '/home/nano/Desktop/images/18082025/15/26/image_18082025_15_26_14_9630.jpg', '/home/nano/Desktop/images/18082025/15/25/image_18082025_15_26_05_10630.jpg', '/home/nano/Desktop/images/18082025/15/25/image_18082025_15_25_54_9629.jpg', '/home/nano/Desktop/images/18082025/10/44/image_18082025_10_44_35_9680.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/26/image_18082025_15_26_44_9607.jpg
/home/nano/Desktop/images/18082025/15/26/image_18082025_15_26_35_9626.jpg
/home/nano/Desktop/images/18082025/15/26/image_18082025_15_26_14_9630.jpg
/home/nano/Desktop/images/18082025/15/25/image_18082025_15_26_05_10630.jpg
/home/nano/Desktop/images/18082025/15/25/image_18082025_15_25_54_9629.jpg
/home/nano/Desktop/images/18082025/10/44/image_18082025_10_44_35_9680.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377705426","1377705434","1377705428","1377705425","1377705430","1377705424"],"photo_ids_order":["1377705424","1377705425","1377705426","1377705428","1377705430","1377705434"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1559c52401e1b950d4dea4611b00991c.jpg","text":"TemporaryFile(/tmp/multipartBody8828737453538174249asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523668562,"filename":"image_18082025_15_26_14_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/082eefd81459311a67612df0b3e25b08.jpg","text":"TemporaryFile(/tmp/multipartBody7079917942299423359asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523668562,"filename":"image_18082025_10_44_35_9680.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/175dbd97ac650bd07c18689da261b8b7.jpg","text":"TemporaryFile(/tmp/multipartBody5417529739499410679asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523668562,"filename":"image_18082025_15_26_05_10630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d88f5c8a1319cfa64a05c40082bbc4be.jpg","text":"TemporaryFile(/tmp/multipartBody5615524581963115653asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523668562,"filename":"image_18082025_15_26_35_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/412a10a4ffc6eeee8fce69f52a8b56ee.jpg","text":"TemporaryFile(/tmp/multipartBody6583609262997701461asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523668562,"filename":"image_18082025_15_25_54_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4939ffaf4dd319d0c1d7c479ea1798d1.jpg","text":"TemporaryFile(/tmp/multipartBody5759386824668193169asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523668562,"filename":"image_18082025_15_26_44_9607.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377705426","file1":"1377705425","file0":"1377705424","file4":"1377705430","file5":"1377705434","file3":"1377705428"},"map_files_photo_id_array":[{"photo_id":"1377705434","filename":"file5"},{"photo_id":"1377705426","filename":"file2"},{"photo_id":"1377705430","filename":"file4"},{"photo_id":"1377705425","filename":"file1"},{"photo_id":"1377705424","filename":"file0"},{"photo_id":"1377705428","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377705426":["hashtag1","hashtag2"]},{"1377705434":["hashtag1","hashtag2"]},{"1377705428":["hashtag1","hashtag2"]},{"1377705425":["hashtag1","hashtag2"]},{"1377705430":["hashtag1","hashtag2"]},{"1377705424":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377705426, 1377705434, 1377705428, 1377705425, 1377705430, 1377705424)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.113442420959473 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:27:32.266512
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/27/image_18082025_15_27_45_10616.jpg', 2), ('/home/nano/Desktop/images/18082025/15/27/image_18082025_15_27_34_9605.jpg', 2), ('/home/nano/Desktop/images/18082025/15/27/image_18082025_15_27_25_10619.jpg', 2), ('/home/nano/Desktop/images/18082025/15/27/image_18082025_15_27_14_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/15/26/image_18082025_15_27_05_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/15/26/image_18082025_15_26_55_10637.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/27/image_18082025_15_27_45_10616.jpg', '/home/nano/Desktop/images/18082025/15/27/image_18082025_15_27_34_9605.jpg', '/home/nano/Desktop/images/18082025/15/27/image_18082025_15_27_25_10619.jpg', '/home/nano/Desktop/images/18082025/15/27/image_18082025_15_27_14_9630.jpg', '/home/nano/Desktop/images/18082025/15/26/image_18082025_15_27_05_9644.jpg', '/home/nano/Desktop/images/18082025/15/26/image_18082025_15_26_55_10637.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/27/image_18082025_15_27_45_10616.jpg
/home/nano/Desktop/images/18082025/15/27/image_18082025_15_27_34_9605.jpg
/home/nano/Desktop/images/18082025/15/27/image_18082025_15_27_25_10619.jpg
/home/nano/Desktop/images/18082025/15/27/image_18082025_15_27_14_9630.jpg
/home/nano/Desktop/images/18082025/15/26/image_18082025_15_27_05_9644.jpg
/home/nano/Desktop/images/18082025/15/26/image_18082025_15_26_55_10637.jpg
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377705453","1377705459","1377705450","1377705452","1377705455","1377705457"],"photo_ids_order":["1377705450","1377705452","1377705453","1377705455","1377705457","1377705459"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4b494dca213b510b9900ef6887272571.jpg","text":"TemporaryFile(/tmp/multipartBody8408161276533057257asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523713522,"filename":"image_18082025_15_27_25_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cf4c23b85895a8e87afdb989f2e26547.jpg","text":"TemporaryFile(/tmp/multipartBody3585249863714362166asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523713522,"filename":"image_18082025_15_26_55_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e06ddb06ee9ba9b4c85809231013f4fc.jpg","text":"TemporaryFile(/tmp/multipartBody3919476627478531981asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523713522,"filename":"image_18082025_15_27_45_10616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/857e3aaf293f490ad4011c269d2dd625.jpg","text":"TemporaryFile(/tmp/multipartBody8787713812107060658asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523713522,"filename":"image_18082025_15_27_34_9605.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/917cca19ffa641695eae5b1ae9529d53.jpg","text":"TemporaryFile(/tmp/multipartBody6456073429079096467asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523713522,"filename":"image_18082025_15_27_14_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cabef411d8fbbf1c23f6a201792fac54.jpg","text":"TemporaryFile(/tmp/multipartBody1468473136541801374asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523713522,"filename":"image_18082025_15_27_05_9644.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377705453","file1":"1377705452","file0":"1377705450","file4":"1377705457","file5":"1377705459","file3":"1377705455"},"map_files_photo_id_array":[{"photo_id":"1377705459","filename":"file5"},{"photo_id":"1377705453","filename":"file2"},{"photo_id":"1377705457","filename":"file4"},{"photo_id":"1377705452","filename":"file1"},{"photo_id":"1377705450","filename":"file0"},{"photo_id":"1377705455","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377705453":["hashtag1","hashtag2"]},{"1377705459":["hashtag1","hashtag2"]},{"1377705450":["hashtag1","hashtag2"]},{"1377705452":["hashtag1","hashtag2"]},{"1377705455":["hashtag1","hashtag2"]},{"1377705457":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377705453, 1377705459, 1377705450, 1377705452, 1377705455, 1377705457)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.39849281311035 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:28:02.810077
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/44/image_18082025_10_44_25_10729.jpg', 2), ('/home/nano/Desktop/images/18082025/10/44/image_18082025_10_44_14_9739.jpg', 2), ('/home/nano/Desktop/images/18082025/10/43/image_18082025_10_44_05_9719.jpg', 2), ('/home/nano/Desktop/images/18082025/10/43/image_18082025_10_43_55_10703.jpg', 2), ('/home/nano/Desktop/images/18082025/10/43/image_18082025_10_43_44_9706.jpg', 2), ('/home/nano/Desktop/images/18082025/10/43/image_18082025_10_43_34_9713.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/44/image_18082025_10_44_25_10729.jpg', '/home/nano/Desktop/images/18082025/10/44/image_18082025_10_44_14_9739.jpg', '/home/nano/Desktop/images/18082025/10/43/image_18082025_10_44_05_9719.jpg', '/home/nano/Desktop/images/18082025/10/43/image_18082025_10_43_55_10703.jpg', '/home/nano/Desktop/images/18082025/10/43/image_18082025_10_43_44_9706.jpg', '/home/nano/Desktop/images/18082025/10/43/image_18082025_10_43_34_9713.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/44/image_18082025_10_44_25_10729.jpg
/home/nano/Desktop/images/18082025/10/44/image_18082025_10_44_14_9739.jpg
/home/nano/Desktop/images/18082025/10/43/image_18082025_10_44_05_9719.jpg
/home/nano/Desktop/images/18082025/10/43/image_18082025_10_43_55_10703.jpg
/home/nano/Desktop/images/18082025/10/43/image_18082025_10_43_44_9706.jpg
/home/nano/Desktop/images/18082025/10/43/image_18082025_10_43_34_9713.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377705486","1377705465","1377705474","1377705482","1377705479","1377705470"],"photo_ids_order":["1377705465","1377705470","1377705474","1377705479","1377705482","1377705486"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/21ca43d2610a5ec0becee6d671a559a1.jpg","text":"TemporaryFile(/tmp/multipartBody4012870727272964118asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523744590,"filename":"image_18082025_10_43_34_9713.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d5bd2881928ece6f7dbe9ac182300c86.jpg","text":"TemporaryFile(/tmp/multipartBody152569097680105639asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523744590,"filename":"image_18082025_10_44_25_10729.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c48e304f4ec456402ee545ffe0e8246c.jpg","text":"TemporaryFile(/tmp/multipartBody5531192479904312467asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523744590,"filename":"image_18082025_10_44_05_9719.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/420338292ef1eb249a48ee621491bfbd.jpg","text":"TemporaryFile(/tmp/multipartBody8592791431353472679asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523744590,"filename":"image_18082025_10_43_44_9706.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e51641064033162fab237e2a757f9798.jpg","text":"TemporaryFile(/tmp/multipartBody7982981481756774353asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523744590,"filename":"image_18082025_10_43_55_10703.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3199ffe1bb3f295521b2226b44f20dd9.jpg","text":"TemporaryFile(/tmp/multipartBody5170176983932698053asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523744590,"filename":"image_18082025_10_44_14_9739.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377705474","file1":"1377705470","file0":"1377705465","file4":"1377705482","file5":"1377705486","file3":"1377705479"},"map_files_photo_id_array":[{"photo_id":"1377705486","filename":"file5"},{"photo_id":"1377705474","filename":"file2"},{"photo_id":"1377705482","filename":"file4"},{"photo_id":"1377705470","filename":"file1"},{"photo_id":"1377705465","filename":"file0"},{"photo_id":"1377705479","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377705486":["hashtag1","hashtag2"]},{"1377705465":["hashtag1","hashtag2"]},{"1377705474":["hashtag1","hashtag2"]},{"1377705482":["hashtag1","hashtag2"]},{"1377705479":["hashtag1","hashtag2"]},{"1377705470":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377705486, 1377705465, 1377705474, 1377705482, 1377705479, 1377705470)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.96065402030945 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:28:47.394967
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/28/image_18082025_15_28_45_10615.jpg', 2), ('/home/nano/Desktop/images/18082025/15/28/image_18082025_15_28_34_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/15/28/image_18082025_15_28_24_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/15/28/image_18082025_15_28_15_10643.jpg', 2), ('/home/nano/Desktop/images/18082025/15/27/image_18082025_15_28_04_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/15/27/image_18082025_15_27_55_9607.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/28/image_18082025_15_28_45_10615.jpg', '/home/nano/Desktop/images/18082025/15/28/image_18082025_15_28_34_9606.jpg', '/home/nano/Desktop/images/18082025/15/28/image_18082025_15_28_24_9606.jpg', '/home/nano/Desktop/images/18082025/15/28/image_18082025_15_28_15_10643.jpg', '/home/nano/Desktop/images/18082025/15/27/image_18082025_15_28_04_9616.jpg', '/home/nano/Desktop/images/18082025/15/27/image_18082025_15_27_55_9607.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/28/image_18082025_15_28_45_10615.jpg
/home/nano/Desktop/images/18082025/15/28/image_18082025_15_28_34_9606.jpg
/home/nano/Desktop/images/18082025/15/28/image_18082025_15_28_24_9606.jpg
/home/nano/Desktop/images/18082025/15/28/image_18082025_15_28_15_10643.jpg
/home/nano/Desktop/images/18082025/15/27/image_18082025_15_28_04_9616.jpg
/home/nano/Desktop/images/18082025/15/27/image_18082025_15_27_55_9607.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377705498","1377705502","1377705500","1377705503","1377705506","1377705496"],"photo_ids_order":["1377705496","1377705498","1377705500","1377705502","1377705503","1377705506"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c86fdfae5a4935553bf3691d9c952d4d.jpg","text":"TemporaryFile(/tmp/multipartBody1829118169414754096asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523788803,"filename":"image_18082025_15_28_34_9606.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4e6a75f4d4b7612e4ce04885e188e50b.jpg","text":"TemporaryFile(/tmp/multipartBody8917520535040605903asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523788803,"filename":"image_18082025_15_28_15_10643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e0226a38a784ff6f64b64269b1d500a8.jpg","text":"TemporaryFile(/tmp/multipartBody3820312029052504568asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523788803,"filename":"image_18082025_15_28_24_9606.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b85bfe30b23b9e1fa963fc1dc9b3b418.jpg","text":"TemporaryFile(/tmp/multipartBody1649918550115729920asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523788803,"filename":"image_18082025_15_28_04_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1dc2ed37701c4cd36905dca8b613edfd.jpg","text":"TemporaryFile(/tmp/multipartBody6630523734018303849asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523788803,"filename":"image_18082025_15_27_55_9607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9c1577fb1ada5d00f03bcd3f6b3b0294.jpg","text":"TemporaryFile(/tmp/multipartBody85787890224179098asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523788803,"filename":"image_18082025_15_28_45_10615.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377705500","file1":"1377705498","file0":"1377705496","file4":"1377705503","file5":"1377705506","file3":"1377705502"},"map_files_photo_id_array":[{"photo_id":"1377705506","filename":"file5"},{"photo_id":"1377705500","filename":"file2"},{"photo_id":"1377705503","filename":"file4"},{"photo_id":"1377705498","filename":"file1"},{"photo_id":"1377705496","filename":"file0"},{"photo_id":"1377705502","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377705498":["hashtag1","hashtag2"]},{"1377705502":["hashtag1","hashtag2"]},{"1377705500":["hashtag1","hashtag2"]},{"1377705503":["hashtag1","hashtag2"]},{"1377705506":["hashtag1","hashtag2"]},{"1377705496":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377705498, 1377705502, 1377705500, 1377705503, 1377705506, 1377705496)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.068904638290405 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:29:32.483324
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/29/image_18082025_15_29_45_9671.jpg', 2), ('/home/nano/Desktop/images/18082025/15/29/image_18082025_15_29_35_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/15/29/image_18082025_15_29_24_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/15/29/image_18082025_15_29_15_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/15/28/image_18082025_15_29_05_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/15/28/image_18082025_15_28_54_9608.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/29/image_18082025_15_29_45_9671.jpg', '/home/nano/Desktop/images/18082025/15/29/image_18082025_15_29_35_10663.jpg', '/home/nano/Desktop/images/18082025/15/29/image_18082025_15_29_24_9645.jpg', '/home/nano/Desktop/images/18082025/15/29/image_18082025_15_29_15_9639.jpg', '/home/nano/Desktop/images/18082025/15/28/image_18082025_15_29_05_10637.jpg', '/home/nano/Desktop/images/18082025/15/28/image_18082025_15_28_54_9608.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/29/image_18082025_15_29_45_9671.jpg
/home/nano/Desktop/images/18082025/15/29/image_18082025_15_29_35_10663.jpg
/home/nano/Desktop/images/18082025/15/29/image_18082025_15_29_24_9645.jpg
/home/nano/Desktop/images/18082025/15/29/image_18082025_15_29_15_9639.jpg
/home/nano/Desktop/images/18082025/15/28/image_18082025_15_29_05_10637.jpg
/home/nano/Desktop/images/18082025/15/28/image_18082025_15_28_54_9608.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377705534","1377705528","1377705531","1377705525","1377705533","1377705523"],"photo_ids_order":["1377705523","1377705525","1377705528","1377705531","1377705533","1377705534"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cc77b71f1b4478734ab5a06f6d04dce2.jpg","text":"TemporaryFile(/tmp/multipartBody7688886368420686837asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523834088,"filename":"image_18082025_15_28_54_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4502f5dd51b1b631a748a63d1965d95a.jpg","text":"TemporaryFile(/tmp/multipartBody6636021565199039633asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523834088,"filename":"image_18082025_15_29_24_9645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9c4feb44d7b2d5420cec1e5e61a1cda0.jpg","text":"TemporaryFile(/tmp/multipartBody6536257512632140211asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523834088,"filename":"image_18082025_15_29_15_9639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/65cf57579b3df0ad6acf56a2d147f33b.jpg","text":"TemporaryFile(/tmp/multipartBody5039301873368434141asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523834088,"filename":"image_18082025_15_29_35_10663.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a57fce17997cf15ecb1e211ac8973e24.jpg","text":"TemporaryFile(/tmp/multipartBody5435438144154817128asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523834088,"filename":"image_18082025_15_29_05_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e5b26770ae13749f6c59b3d28d0a4911.jpg","text":"TemporaryFile(/tmp/multipartBody2012502817162455444asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523834088,"filename":"image_18082025_15_29_45_9671.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377705528","file1":"1377705525","file0":"1377705523","file4":"1377705533","file5":"1377705534","file3":"1377705531"},"map_files_photo_id_array":[{"photo_id":"1377705534","filename":"file5"},{"photo_id":"1377705528","filename":"file2"},{"photo_id":"1377705533","filename":"file4"},{"photo_id":"1377705525","filename":"file1"},{"photo_id":"1377705523","filename":"file0"},{"photo_id":"1377705531","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377705534":["hashtag1","hashtag2"]},{"1377705528":["hashtag1","hashtag2"]},{"1377705531":["hashtag1","hashtag2"]},{"1377705525":["hashtag1","hashtag2"]},{"1377705533":["hashtag1","hashtag2"]},{"1377705523":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377705534, 1377705528, 1377705531, 1377705525, 1377705533, 1377705523)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.238740921020508 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:30:17.626679
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/30/image_18082025_15_30_45_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/15/30/image_18082025_15_30_35_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/15/30/image_18082025_15_30_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/15/30/image_18082025_15_30_15_9766.jpg', 2), ('/home/nano/Desktop/images/18082025/15/29/image_18082025_15_30_05_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/15/29/image_18082025_15_29_54_9675.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/30/image_18082025_15_30_45_9619.jpg', '/home/nano/Desktop/images/18082025/15/30/image_18082025_15_30_35_10649.jpg', '/home/nano/Desktop/images/18082025/15/30/image_18082025_15_30_24_9640.jpg', '/home/nano/Desktop/images/18082025/15/30/image_18082025_15_30_15_9766.jpg', '/home/nano/Desktop/images/18082025/15/29/image_18082025_15_30_05_10653.jpg', '/home/nano/Desktop/images/18082025/15/29/image_18082025_15_29_54_9675.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/30/image_18082025_15_30_45_9619.jpg
/home/nano/Desktop/images/18082025/15/30/image_18082025_15_30_35_10649.jpg
/home/nano/Desktop/images/18082025/15/30/image_18082025_15_30_24_9640.jpg
/home/nano/Desktop/images/18082025/15/30/image_18082025_15_30_15_9766.jpg
/home/nano/Desktop/images/18082025/15/29/image_18082025_15_30_05_10653.jpg
/home/nano/Desktop/images/18082025/15/29/image_18082025_15_29_54_9675.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377705553","1377705546","1377705555","1377705549","1377705557","1377705559"],"photo_ids_order":["1377705546","1377705549","1377705553","1377705555","1377705557","1377705559"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8375dd3849de65a002678fc39afd94e7.jpg","text":"TemporaryFile(/tmp/multipartBody8956820407028885244asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523879042,"filename":"image_18082025_15_30_24_9640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/85e8d722f31b802558d49d48f7e3db79.jpg","text":"TemporaryFile(/tmp/multipartBody3003570351441636763asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523879042,"filename":"image_18082025_15_30_45_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/407aadb66ceb767a93d950e2da591529.jpg","text":"TemporaryFile(/tmp/multipartBody7902571862346831455asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523879042,"filename":"image_18082025_15_30_15_9766.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e0b3ee762830aa7d494172a7f42cc18d.jpg","text":"TemporaryFile(/tmp/multipartBody4208854204546353297asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523879042,"filename":"image_18082025_15_30_35_10649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0625ae9381c1ebd1bf1f0e5d1daf27fc.jpg","text":"TemporaryFile(/tmp/multipartBody8162065657321785788asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523879042,"filename":"image_18082025_15_30_05_10653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bf6f55f1e7a23ac6b0b38ba80f8b3207.jpg","text":"TemporaryFile(/tmp/multipartBody8501242475960063738asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523879042,"filename":"image_18082025_15_29_54_9675.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377705553","file1":"1377705549","file0":"1377705546","file4":"1377705557","file5":"1377705559","file3":"1377705555"},"map_files_photo_id_array":[{"photo_id":"1377705559","filename":"file5"},{"photo_id":"1377705553","filename":"file2"},{"photo_id":"1377705557","filename":"file4"},{"photo_id":"1377705549","filename":"file1"},{"photo_id":"1377705546","filename":"file0"},{"photo_id":"1377705555","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377705553":["hashtag1","hashtag2"]},{"1377705546":["hashtag1","hashtag2"]},{"1377705555":["hashtag1","hashtag2"]},{"1377705549":["hashtag1","hashtag2"]},{"1377705557":["hashtag1","hashtag2"]},{"1377705559":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377705553, 1377705546, 1377705555, 1377705549, 1377705557, 1377705559)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.89776921272278 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:31:03.465560
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/43/image_18082025_10_43_25_9686.jpg', 2), ('/home/nano/Desktop/images/18082025/10/43/image_18082025_10_43_15_10743.jpg', 2), ('/home/nano/Desktop/images/18082025/10/42/image_18082025_10_43_04_9708.jpg', 2), ('/home/nano/Desktop/images/18082025/10/42/image_18082025_10_42_55_9812.jpg', 2), ('/home/nano/Desktop/images/18082025/10/42/image_18082025_10_42_45_9693.jpg', 2), ('/home/nano/Desktop/images/18082025/10/42/image_18082025_10_42_35_10719.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/43/image_18082025_10_43_25_9686.jpg', '/home/nano/Desktop/images/18082025/10/43/image_18082025_10_43_15_10743.jpg', '/home/nano/Desktop/images/18082025/10/42/image_18082025_10_43_04_9708.jpg', '/home/nano/Desktop/images/18082025/10/42/image_18082025_10_42_55_9812.jpg', '/home/nano/Desktop/images/18082025/10/42/image_18082025_10_42_45_9693.jpg', '/home/nano/Desktop/images/18082025/10/42/image_18082025_10_42_35_10719.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/43/image_18082025_10_43_25_9686.jpg
/home/nano/Desktop/images/18082025/10/43/image_18082025_10_43_15_10743.jpg
/home/nano/Desktop/images/18082025/10/42/image_18082025_10_43_04_9708.jpg
/home/nano/Desktop/images/18082025/10/42/image_18082025_10_42_55_9812.jpg
/home/nano/Desktop/images/18082025/10/42/image_18082025_10_42_45_9693.jpg
/home/nano/Desktop/images/18082025/10/42/image_18082025_10_42_35_10719.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377705582","1377705585","1377705576","1377705578","1377705580","1377705571"],"photo_ids_order":["1377705571","1377705576","1377705578","1377705580","1377705582","1377705585"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7a04fbacd1f54f72f58bf3237476eec1.jpg","text":"TemporaryFile(/tmp/multipartBody957682214631949586asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523925166,"filename":"image_18082025_10_42_45_9693.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/00804256ab9df45cc4e4a6cafff1423e.jpg","text":"TemporaryFile(/tmp/multipartBody7321164661278349750asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523925166,"filename":"image_18082025_10_42_35_10719.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2adb33dd7952a33c12dd1c6e0bf5f833.jpg","text":"TemporaryFile(/tmp/multipartBody4080124141790439867asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523925166,"filename":"image_18082025_10_43_15_10743.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/32674d5d43203b5527e349a19efe47dc.jpg","text":"TemporaryFile(/tmp/multipartBody7405486918113399079asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523925166,"filename":"image_18082025_10_43_04_9708.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6f5cad34e943fe7a2e233c446663fb93.jpg","text":"TemporaryFile(/tmp/multipartBody2142743600795900817asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523925166,"filename":"image_18082025_10_42_55_9812.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/28ac868c86e6b00cd3e1325619911f73.jpg","text":"TemporaryFile(/tmp/multipartBody7690143140195684286asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523925166,"filename":"image_18082025_10_43_25_9686.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377705578","file1":"1377705576","file0":"1377705571","file4":"1377705582","file5":"1377705585","file3":"1377705580"},"map_files_photo_id_array":[{"photo_id":"1377705585","filename":"file5"},{"photo_id":"1377705578","filename":"file2"},{"photo_id":"1377705582","filename":"file4"},{"photo_id":"1377705576","filename":"file1"},{"photo_id":"1377705571","filename":"file0"},{"photo_id":"1377705580","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377705582":["hashtag1","hashtag2"]},{"1377705585":["hashtag1","hashtag2"]},{"1377705576":["hashtag1","hashtag2"]},{"1377705578":["hashtag1","hashtag2"]},{"1377705580":["hashtag1","hashtag2"]},{"1377705571":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377705582, 1377705585, 1377705576, 1377705578, 1377705580, 1377705571)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.14891242980957 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:31:47.703860
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/31/image_18082025_15_31_44_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/15/31/image_18082025_15_31_35_10622.jpg', 2), ('/home/nano/Desktop/images/18082025/15/31/image_18082025_15_31_24_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/15/31/image_18082025_15_31_15_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/15/30/image_18082025_15_31_05_10702.jpg', 2), ('/home/nano/Desktop/images/18082025/15/30/image_18082025_15_30_54_9624.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/31/image_18082025_15_31_44_9624.jpg', '/home/nano/Desktop/images/18082025/15/31/image_18082025_15_31_35_10622.jpg', '/home/nano/Desktop/images/18082025/15/31/image_18082025_15_31_24_9613.jpg', '/home/nano/Desktop/images/18082025/15/31/image_18082025_15_31_15_9655.jpg', '/home/nano/Desktop/images/18082025/15/30/image_18082025_15_31_05_10702.jpg', '/home/nano/Desktop/images/18082025/15/30/image_18082025_15_30_54_9624.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/31/image_18082025_15_31_44_9624.jpg
/home/nano/Desktop/images/18082025/15/31/image_18082025_15_31_35_10622.jpg
/home/nano/Desktop/images/18082025/15/31/image_18082025_15_31_24_9613.jpg
/home/nano/Desktop/images/18082025/15/31/image_18082025_15_31_15_9655.jpg
/home/nano/Desktop/images/18082025/15/30/image_18082025_15_31_05_10702.jpg
/home/nano/Desktop/images/18082025/15/30/image_18082025_15_30_54_9624.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377705601","1377705600","1377705603","1377705606","1377705596","1377705598"],"photo_ids_order":["1377705596","1377705598","1377705600","1377705601","1377705603","1377705606"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8faa455c91c6f710d2a09b0b3223952a.jpg","text":"TemporaryFile(/tmp/multipartBody8110083743229527891asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523969143,"filename":"image_18082025_15_31_15_9655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f7eeefcf333c9481bea235b02684a4de.jpg","text":"TemporaryFile(/tmp/multipartBody5535984910362429603asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523969143,"filename":"image_18082025_15_31_24_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4722e47cdb239cffa9f10bea81be8665.jpg","text":"TemporaryFile(/tmp/multipartBody1998374229603064486asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523969143,"filename":"image_18082025_15_31_05_10702.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9b341d966556f865bcc10d518b0fa15a.jpg","text":"TemporaryFile(/tmp/multipartBody3559907711377165473asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523969143,"filename":"image_18082025_15_30_54_9624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4ba18ead7526d29df8e2f6cf6bfdf0a4.jpg","text":"TemporaryFile(/tmp/multipartBody7710870939995504154asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523969143,"filename":"image_18082025_15_31_44_9624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/173702198b8815943758b803515ebc95.jpg","text":"TemporaryFile(/tmp/multipartBody103868269565816871asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755523969143,"filename":"image_18082025_15_31_35_10622.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377705600","file1":"1377705598","file0":"1377705596","file4":"1377705603","file5":"1377705606","file3":"1377705601"},"map_files_photo_id_array":[{"photo_id":"1377705606","filename":"file5"},{"photo_id":"1377705600","filename":"file2"},{"photo_id":"1377705603","filename":"file4"},{"photo_id":"1377705598","filename":"file1"},{"photo_id":"1377705596","filename":"file0"},{"photo_id":"1377705601","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377705601":["hashtag1","hashtag2"]},{"1377705600":["hashtag1","hashtag2"]},{"1377705603":["hashtag1","hashtag2"]},{"1377705606":["hashtag1","hashtag2"]},{"1377705596":["hashtag1","hashtag2"]},{"1377705598":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377705601, 1377705600, 1377705603, 1377705606, 1377705596, 1377705598)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.11142635345459 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:32:31.832130
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/32/image_18082025_15_32_44_9675.jpg', 2), ('/home/nano/Desktop/images/18082025/15/32/image_18082025_15_32_35_9600.jpg', 2), ('/home/nano/Desktop/images/18082025/15/32/image_18082025_15_32_25_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/15/32/image_18082025_15_32_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/15/31/image_18082025_15_32_05_9687.jpg', 2), ('/home/nano/Desktop/images/18082025/15/31/image_18082025_15_31_55_10619.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/32/image_18082025_15_32_44_9675.jpg', '/home/nano/Desktop/images/18082025/15/32/image_18082025_15_32_35_9600.jpg', '/home/nano/Desktop/images/18082025/15/32/image_18082025_15_32_25_10625.jpg', '/home/nano/Desktop/images/18082025/15/32/image_18082025_15_32_14_9660.jpg', '/home/nano/Desktop/images/18082025/15/31/image_18082025_15_32_05_9687.jpg', '/home/nano/Desktop/images/18082025/15/31/image_18082025_15_31_55_10619.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/32/image_18082025_15_32_44_9675.jpg
/home/nano/Desktop/images/18082025/15/32/image_18082025_15_32_35_9600.jpg
/home/nano/Desktop/images/18082025/15/32/image_18082025_15_32_25_10625.jpg
/home/nano/Desktop/images/18082025/15/32/image_18082025_15_32_14_9660.jpg
/home/nano/Desktop/images/18082025/15/31/image_18082025_15_32_05_9687.jpg
/home/nano/Desktop/images/18082025/15/31/image_18082025_15_31_55_10619.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377705625","1377705619","1377705627","1377705621","1377705620","1377705623"],"photo_ids_order":["1377705619","1377705620","1377705621","1377705623","1377705625","1377705627"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/364f5aee41a639c78d8060ac601c4701.jpg","text":"TemporaryFile(/tmp/multipartBody3110835639841104286asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524013536,"filename":"image_18082025_15_32_05_9687.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8d2817f808967621b5942dd7defc8976.jpg","text":"TemporaryFile(/tmp/multipartBody7188262082644847493asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524013536,"filename":"image_18082025_15_32_44_9675.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6ec42f9d0428c889940cfcfd00e8c3f2.jpg","text":"TemporaryFile(/tmp/multipartBody4746862548073609426asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524013536,"filename":"image_18082025_15_31_55_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/185036a0502d093f3c9263d71fc7f736.jpg","text":"TemporaryFile(/tmp/multipartBody2031815792449710014asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524013536,"filename":"image_18082025_15_32_25_10625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c7e7a683f0a83f53aa88dc09e1aa6969.jpg","text":"TemporaryFile(/tmp/multipartBody1556582624756639267asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524013536,"filename":"image_18082025_15_32_35_9600.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ded4caaa2ce847bf548d1a9e750e3ce6.jpg","text":"TemporaryFile(/tmp/multipartBody4471050591369896115asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524013536,"filename":"image_18082025_15_32_14_9660.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377705621","file1":"1377705620","file0":"1377705619","file4":"1377705625","file5":"1377705627","file3":"1377705623"},"map_files_photo_id_array":[{"photo_id":"1377705627","filename":"file5"},{"photo_id":"1377705621","filename":"file2"},{"photo_id":"1377705625","filename":"file4"},{"photo_id":"1377705620","filename":"file1"},{"photo_id":"1377705619","filename":"file0"},{"photo_id":"1377705623","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377705625":["hashtag1","hashtag2"]},{"1377705619":["hashtag1","hashtag2"]},{"1377705627":["hashtag1","hashtag2"]},{"1377705621":["hashtag1","hashtag2"]},{"1377705620":["hashtag1","hashtag2"]},{"1377705623":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377705625, 1377705619, 1377705627, 1377705621, 1377705620, 1377705623)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.919870615005493 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:33:16.866299
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/33/image_18082025_15_33_45_9770.jpg', 2), ('/home/nano/Desktop/images/18082025/15/33/image_18082025_15_33_35_10754.jpg', 2), ('/home/nano/Desktop/images/18082025/15/33/image_18082025_15_33_24_9725.jpg', 2), ('/home/nano/Desktop/images/18082025/15/33/image_18082025_15_33_14_9768.jpg', 2), ('/home/nano/Desktop/images/18082025/15/32/image_18082025_15_33_05_9741.jpg', 2), ('/home/nano/Desktop/images/18082025/15/32/image_18082025_15_32_55_10684.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/33/image_18082025_15_33_45_9770.jpg', '/home/nano/Desktop/images/18082025/15/33/image_18082025_15_33_35_10754.jpg', '/home/nano/Desktop/images/18082025/15/33/image_18082025_15_33_24_9725.jpg', '/home/nano/Desktop/images/18082025/15/33/image_18082025_15_33_14_9768.jpg', '/home/nano/Desktop/images/18082025/15/32/image_18082025_15_33_05_9741.jpg', '/home/nano/Desktop/images/18082025/15/32/image_18082025_15_32_55_10684.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/33/image_18082025_15_33_45_9770.jpg
/home/nano/Desktop/images/18082025/15/33/image_18082025_15_33_35_10754.jpg
/home/nano/Desktop/images/18082025/15/33/image_18082025_15_33_24_9725.jpg
/home/nano/Desktop/images/18082025/15/33/image_18082025_15_33_14_9768.jpg
/home/nano/Desktop/images/18082025/15/32/image_18082025_15_33_05_9741.jpg
/home/nano/Desktop/images/18082025/15/32/image_18082025_15_32_55_10684.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377705642","1377705656","1377705659","1377705647","1377705652","1377705661"],"photo_ids_order":["1377705642","1377705647","1377705652","1377705656","1377705659","1377705661"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9e487c4a4ef8e534e393c2d730c91110.jpg","text":"TemporaryFile(/tmp/multipartBody3852026093142043077asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524058785,"filename":"image_18082025_15_33_45_9770.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/efba9fb2e64bd3ca95909eb750bb9682.jpg","text":"TemporaryFile(/tmp/multipartBody1592593042344459850asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524058785,"filename":"image_18082025_15_33_14_9768.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/78d12ca1c6d3443a00083bffe30ebe2a.jpg","text":"TemporaryFile(/tmp/multipartBody1846873477229882752asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524058785,"filename":"image_18082025_15_33_05_9741.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d498e3caea5a369c24b594919fdc148c.jpg","text":"TemporaryFile(/tmp/multipartBody3998849912172695663asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524058785,"filename":"image_18082025_15_33_35_10754.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/46848243ce3bc3f0b3def07954f75dee.jpg","text":"TemporaryFile(/tmp/multipartBody7450697722464436279asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524058785,"filename":"image_18082025_15_33_24_9725.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/80db484a68ef90e1ac0e983629637925.jpg","text":"TemporaryFile(/tmp/multipartBody7407226746947536038asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524058785,"filename":"image_18082025_15_32_55_10684.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377705652","file1":"1377705647","file0":"1377705642","file4":"1377705659","file5":"1377705661","file3":"1377705656"},"map_files_photo_id_array":[{"photo_id":"1377705661","filename":"file5"},{"photo_id":"1377705652","filename":"file2"},{"photo_id":"1377705659","filename":"file4"},{"photo_id":"1377705647","filename":"file1"},{"photo_id":"1377705642","filename":"file0"},{"photo_id":"1377705656","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377705642":["hashtag1","hashtag2"]},{"1377705656":["hashtag1","hashtag2"]},{"1377705659":["hashtag1","hashtag2"]},{"1377705647":["hashtag1","hashtag2"]},{"1377705652":["hashtag1","hashtag2"]},{"1377705661":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377705642, 1377705656, 1377705659, 1377705647, 1377705652, 1377705661)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.539953470230103 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:34:02.727916
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/42/image_18082025_10_42_24_9711.jpg', 2), ('/home/nano/Desktop/images/18082025/10/42/image_18082025_10_42_15_9682.jpg', 2), ('/home/nano/Desktop/images/18082025/10/41/image_18082025_10_42_05_10743.jpg', 2), ('/home/nano/Desktop/images/18082025/10/41/image_18082025_10_41_54_9690.jpg', 2), ('/home/nano/Desktop/images/18082025/10/41/image_18082025_10_41_45_9709.jpg', 2), ('/home/nano/Desktop/images/18082025/10/41/image_18082025_10_41_35_10677.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/42/image_18082025_10_42_24_9711.jpg', '/home/nano/Desktop/images/18082025/10/42/image_18082025_10_42_15_9682.jpg', '/home/nano/Desktop/images/18082025/10/41/image_18082025_10_42_05_10743.jpg', '/home/nano/Desktop/images/18082025/10/41/image_18082025_10_41_54_9690.jpg', '/home/nano/Desktop/images/18082025/10/41/image_18082025_10_41_45_9709.jpg', '/home/nano/Desktop/images/18082025/10/41/image_18082025_10_41_35_10677.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/42/image_18082025_10_42_24_9711.jpg
/home/nano/Desktop/images/18082025/10/42/image_18082025_10_42_15_9682.jpg
/home/nano/Desktop/images/18082025/10/41/image_18082025_10_42_05_10743.jpg
/home/nano/Desktop/images/18082025/10/41/image_18082025_10_41_54_9690.jpg
/home/nano/Desktop/images/18082025/10/41/image_18082025_10_41_45_9709.jpg
/home/nano/Desktop/images/18082025/10/41/image_18082025_10_41_35_10677.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377705666","1377705675","1377705683","1377705671","1377705668","1377705679"],"photo_ids_order":["1377705666","1377705668","1377705671","1377705675","1377705679","1377705683"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e713f52190d3d765f4459995a58487ca.jpg","text":"TemporaryFile(/tmp/multipartBody4412670814635111387asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524104619,"filename":"image_18082025_10_42_24_9711.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/826428209b76dba5e2711d7224a22146.jpg","text":"TemporaryFile(/tmp/multipartBody6813031480781506826asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524104619,"filename":"image_18082025_10_41_54_9690.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f61bea325c92ba2f686b44f20d508662.jpg","text":"TemporaryFile(/tmp/multipartBody7776507577113750998asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524104619,"filename":"image_18082025_10_41_35_10677.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/089900a14007a98b6162911337dbb020.jpg","text":"TemporaryFile(/tmp/multipartBody3603225836369444866asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524104619,"filename":"image_18082025_10_42_05_10743.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c76d4beeadd5e992880629319f961fad.jpg","text":"TemporaryFile(/tmp/multipartBody7153902068552289574asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524104619,"filename":"image_18082025_10_42_15_9682.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/85c48567884db255e15112c4352df468.jpg","text":"TemporaryFile(/tmp/multipartBody7493003013303168939asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524104619,"filename":"image_18082025_10_41_45_9709.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377705671","file1":"1377705668","file0":"1377705666","file4":"1377705679","file5":"1377705683","file3":"1377705675"},"map_files_photo_id_array":[{"photo_id":"1377705683","filename":"file5"},{"photo_id":"1377705671","filename":"file2"},{"photo_id":"1377705679","filename":"file4"},{"photo_id":"1377705668","filename":"file1"},{"photo_id":"1377705666","filename":"file0"},{"photo_id":"1377705675","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377705666":["hashtag1","hashtag2"]},{"1377705675":["hashtag1","hashtag2"]},{"1377705683":["hashtag1","hashtag2"]},{"1377705671":["hashtag1","hashtag2"]},{"1377705668":["hashtag1","hashtag2"]},{"1377705679":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377705666, 1377705675, 1377705683, 1377705671, 1377705668, 1377705679)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.32913565635681 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:34:46.982256
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/34/image_18082025_15_34_45_10722.jpg', 2), ('/home/nano/Desktop/images/18082025/15/34/image_18082025_15_34_34_9718.jpg', 2), ('/home/nano/Desktop/images/18082025/15/34/image_18082025_15_34_25_9724.jpg', 2), ('/home/nano/Desktop/images/18082025/15/34/image_18082025_15_34_15_10751.jpg', 2), ('/home/nano/Desktop/images/18082025/15/33/image_18082025_15_34_04_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/15/33/image_18082025_15_33_54_9730.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/34/image_18082025_15_34_45_10722.jpg', '/home/nano/Desktop/images/18082025/15/34/image_18082025_15_34_34_9718.jpg', '/home/nano/Desktop/images/18082025/15/34/image_18082025_15_34_25_9724.jpg', '/home/nano/Desktop/images/18082025/15/34/image_18082025_15_34_15_10751.jpg', '/home/nano/Desktop/images/18082025/15/33/image_18082025_15_34_04_9637.jpg', '/home/nano/Desktop/images/18082025/15/33/image_18082025_15_33_54_9730.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/34/image_18082025_15_34_45_10722.jpg
/home/nano/Desktop/images/18082025/15/34/image_18082025_15_34_34_9718.jpg
/home/nano/Desktop/images/18082025/15/34/image_18082025_15_34_25_9724.jpg
/home/nano/Desktop/images/18082025/15/34/image_18082025_15_34_15_10751.jpg
/home/nano/Desktop/images/18082025/15/33/image_18082025_15_34_04_9637.jpg
/home/nano/Desktop/images/18082025/15/33/image_18082025_15_33_54_9730.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377705696","1377705700","1377705690","1377705692","1377705698","1377705694"],"photo_ids_order":["1377705690","1377705692","1377705694","1377705696","1377705698","1377705700"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d1eb60287d34f8809372dc9e72adac5d.jpg","text":"TemporaryFile(/tmp/multipartBody7774259087050527840asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524148799,"filename":"image_18082025_15_34_15_10751.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/28fc1041099f507bc06ab92963a4cea3.jpg","text":"TemporaryFile(/tmp/multipartBody4655795184140897943asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524148799,"filename":"image_18082025_15_33_54_9730.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7f82c21a2a9df1c73ad767b44f1f69a3.jpg","text":"TemporaryFile(/tmp/multipartBody7515658134323722112asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524148799,"filename":"image_18082025_15_34_45_10722.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/535e26961f024639c0439e34c07effa3.jpg","text":"TemporaryFile(/tmp/multipartBody2060877270258513311asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524148799,"filename":"image_18082025_15_34_34_9718.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e42afa08d921ee0514811c3ab8251a6a.jpg","text":"TemporaryFile(/tmp/multipartBody1308803808042239096asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524148799,"filename":"image_18082025_15_34_04_9637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ff21e53514e351d9a9c7b042041702c4.jpg","text":"TemporaryFile(/tmp/multipartBody5970096640917862049asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524148799,"filename":"image_18082025_15_34_25_9724.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377705694","file1":"1377705692","file0":"1377705690","file4":"1377705698","file5":"1377705700","file3":"1377705696"},"map_files_photo_id_array":[{"photo_id":"1377705700","filename":"file5"},{"photo_id":"1377705694","filename":"file2"},{"photo_id":"1377705698","filename":"file4"},{"photo_id":"1377705692","filename":"file1"},{"photo_id":"1377705690","filename":"file0"},{"photo_id":"1377705696","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377705696":["hashtag1","hashtag2"]},{"1377705700":["hashtag1","hashtag2"]},{"1377705690":["hashtag1","hashtag2"]},{"1377705692":["hashtag1","hashtag2"]},{"1377705698":["hashtag1","hashtag2"]},{"1377705694":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377705696, 1377705700, 1377705690, 1377705692, 1377705698, 1377705694)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.827110528945923 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:35:32.082040
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/35/image_18082025_15_35_45_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/15/35/image_18082025_15_35_34_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/15/35/image_18082025_15_35_25_9710.jpg', 2), ('/home/nano/Desktop/images/18082025/15/35/image_18082025_15_35_15_10672.jpg', 2), ('/home/nano/Desktop/images/18082025/15/34/image_18082025_15_35_04_9721.jpg', 2), ('/home/nano/Desktop/images/18082025/15/34/image_18082025_15_34_55_9615.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/35/image_18082025_15_35_45_10641.jpg', '/home/nano/Desktop/images/18082025/15/35/image_18082025_15_35_34_9629.jpg', '/home/nano/Desktop/images/18082025/15/35/image_18082025_15_35_25_9710.jpg', '/home/nano/Desktop/images/18082025/15/35/image_18082025_15_35_15_10672.jpg', '/home/nano/Desktop/images/18082025/15/34/image_18082025_15_35_04_9721.jpg', '/home/nano/Desktop/images/18082025/15/34/image_18082025_15_34_55_9615.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/35/image_18082025_15_35_45_10641.jpg
/home/nano/Desktop/images/18082025/15/35/image_18082025_15_35_34_9629.jpg
/home/nano/Desktop/images/18082025/15/35/image_18082025_15_35_25_9710.jpg
/home/nano/Desktop/images/18082025/15/35/image_18082025_15_35_15_10672.jpg
/home/nano/Desktop/images/18082025/15/34/image_18082025_15_35_04_9721.jpg
/home/nano/Desktop/images/18082025/15/34/image_18082025_15_34_55_9615.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377705724","1377705718","1377705720","1377705714","1377705722","1377705716"],"photo_ids_order":["1377705714","1377705716","1377705718","1377705720","1377705722","1377705724"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f653da29b718b9fb5637c6cdf4a102dc.jpg","text":"TemporaryFile(/tmp/multipartBody3873989833041158519asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524193398,"filename":"image_18082025_15_34_55_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6ed05d725459b542337eeca665c4d3e5.jpg","text":"TemporaryFile(/tmp/multipartBody5479894174858730589asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524193398,"filename":"image_18082025_15_35_25_9710.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1aa5f9a218f3f2e005ea4bec5df1e7a4.jpg","text":"TemporaryFile(/tmp/multipartBody1162633071248800992asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524193398,"filename":"image_18082025_15_35_15_10672.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/358e7be6fa595d8a1ee51fc9c1cb2896.jpg","text":"TemporaryFile(/tmp/multipartBody5921623280065292864asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524193398,"filename":"image_18082025_15_35_45_10641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7da9797f8521db53e5d0ee8defa7e73f.jpg","text":"TemporaryFile(/tmp/multipartBody3375209268532854950asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524193398,"filename":"image_18082025_15_35_04_9721.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4092af11b5d3817101a61d74d1e65457.jpg","text":"TemporaryFile(/tmp/multipartBody451886244477602162asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524193398,"filename":"image_18082025_15_35_34_9629.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377705718","file1":"1377705716","file0":"1377705714","file4":"1377705722","file5":"1377705724","file3":"1377705720"},"map_files_photo_id_array":[{"photo_id":"1377705724","filename":"file5"},{"photo_id":"1377705718","filename":"file2"},{"photo_id":"1377705722","filename":"file4"},{"photo_id":"1377705716","filename":"file1"},{"photo_id":"1377705714","filename":"file0"},{"photo_id":"1377705720","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377705724":["hashtag1","hashtag2"]},{"1377705718":["hashtag1","hashtag2"]},{"1377705720":["hashtag1","hashtag2"]},{"1377705714":["hashtag1","hashtag2"]},{"1377705722":["hashtag1","hashtag2"]},{"1377705716":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377705724, 1377705718, 1377705720, 1377705714, 1377705722, 1377705716)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.893129110336304 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:36:17.164940
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/36/image_18082025_15_36_45_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/15/36/image_18082025_15_36_34_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/15/36/image_18082025_15_36_25_9719.jpg', 2), ('/home/nano/Desktop/images/18082025/15/36/image_18082025_15_36_15_10682.jpg', 2), ('/home/nano/Desktop/images/18082025/15/35/image_18082025_15_36_04_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/15/35/image_18082025_15_35_55_9628.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/36/image_18082025_15_36_45_10656.jpg', '/home/nano/Desktop/images/18082025/15/36/image_18082025_15_36_34_9623.jpg', '/home/nano/Desktop/images/18082025/15/36/image_18082025_15_36_25_9719.jpg', '/home/nano/Desktop/images/18082025/15/36/image_18082025_15_36_15_10682.jpg', '/home/nano/Desktop/images/18082025/15/35/image_18082025_15_36_04_9658.jpg', '/home/nano/Desktop/images/18082025/15/35/image_18082025_15_35_55_9628.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/36/image_18082025_15_36_45_10656.jpg
/home/nano/Desktop/images/18082025/15/36/image_18082025_15_36_34_9623.jpg
/home/nano/Desktop/images/18082025/15/36/image_18082025_15_36_25_9719.jpg
/home/nano/Desktop/images/18082025/15/36/image_18082025_15_36_15_10682.jpg
/home/nano/Desktop/images/18082025/15/35/image_18082025_15_36_04_9658.jpg
/home/nano/Desktop/images/18082025/15/35/image_18082025_15_35_55_9628.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377705750","1377705744","1377705741","1377705738","1377705746","1377705748"],"photo_ids_order":["1377705738","1377705741","1377705744","1377705746","1377705748","1377705750"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a9e9764d817ffb04bb9754e06d293118.jpg","text":"TemporaryFile(/tmp/multipartBody472666725157841980asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524238917,"filename":"image_18082025_15_35_55_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b8920a8bffcd13ebf3e8a8c9c25009e2.jpg","text":"TemporaryFile(/tmp/multipartBody5027835072318503632asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524238917,"filename":"image_18082025_15_36_25_9719.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f1bc6a81fbda873e2a684627661e3b2c.jpg","text":"TemporaryFile(/tmp/multipartBody2663492452317480145asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524238917,"filename":"image_18082025_15_36_34_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d8711142d7a15d0f011eecb5dd561e95.jpg","text":"TemporaryFile(/tmp/multipartBody743629523193801448asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524238917,"filename":"image_18082025_15_36_45_10656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7bec59f1008ccff5d2f0dc2b1e72c635.jpg","text":"TemporaryFile(/tmp/multipartBody3836362098043923406asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524238917,"filename":"image_18082025_15_36_15_10682.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ed8e3c975dec9b9d581f52f14dc6f326.jpg","text":"TemporaryFile(/tmp/multipartBody7478894784638455145asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524238917,"filename":"image_18082025_15_36_04_9658.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377705744","file1":"1377705741","file0":"1377705738","file4":"1377705748","file5":"1377705750","file3":"1377705746"},"map_files_photo_id_array":[{"photo_id":"1377705750","filename":"file5"},{"photo_id":"1377705744","filename":"file2"},{"photo_id":"1377705748","filename":"file4"},{"photo_id":"1377705741","filename":"file1"},{"photo_id":"1377705738","filename":"file0"},{"photo_id":"1377705746","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377705750":["hashtag1","hashtag2"]},{"1377705744":["hashtag1","hashtag2"]},{"1377705741":["hashtag1","hashtag2"]},{"1377705738":["hashtag1","hashtag2"]},{"1377705746":["hashtag1","hashtag2"]},{"1377705748":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377705750, 1377705744, 1377705741, 1377705738, 1377705746, 1377705748)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.37264108657837 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:37:02.932709
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/41/image_18082025_10_41_24_9677.jpg', 2), ('/home/nano/Desktop/images/18082025/10/41/image_18082025_10_41_14_9744.jpg', 2), ('/home/nano/Desktop/images/18082025/10/40/image_18082025_10_41_05_9694.jpg', 2), ('/home/nano/Desktop/images/18082025/10/40/image_18082025_10_40_55_10732.jpg', 2), ('/home/nano/Desktop/images/18082025/10/40/image_18082025_10_40_44_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/10/40/image_18082025_10_40_35_9603.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/41/image_18082025_10_41_24_9677.jpg', '/home/nano/Desktop/images/18082025/10/41/image_18082025_10_41_14_9744.jpg', '/home/nano/Desktop/images/18082025/10/40/image_18082025_10_41_05_9694.jpg', '/home/nano/Desktop/images/18082025/10/40/image_18082025_10_40_55_10732.jpg', '/home/nano/Desktop/images/18082025/10/40/image_18082025_10_40_44_9612.jpg', '/home/nano/Desktop/images/18082025/10/40/image_18082025_10_40_35_9603.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/41/image_18082025_10_41_24_9677.jpg
/home/nano/Desktop/images/18082025/10/41/image_18082025_10_41_14_9744.jpg
/home/nano/Desktop/images/18082025/10/40/image_18082025_10_41_05_9694.jpg
/home/nano/Desktop/images/18082025/10/40/image_18082025_10_40_55_10732.jpg
/home/nano/Desktop/images/18082025/10/40/image_18082025_10_40_44_9612.jpg
/home/nano/Desktop/images/18082025/10/40/image_18082025_10_40_35_9603.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377705774","1377705768","1377705770","1377705764","1377705766","1377705760"],"photo_ids_order":["1377705760","1377705764","1377705766","1377705768","1377705770","1377705774"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/96fee8f242ebc7f2c0927940f476171a.jpg","text":"TemporaryFile(/tmp/multipartBody3412364476517266008asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524284338,"filename":"image_18082025_10_40_35_9603.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a1e0d16fd93f41b1fb47a5fbcd9da134.jpg","text":"TemporaryFile(/tmp/multipartBody7393566492670215544asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524284338,"filename":"image_18082025_10_40_55_10732.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b426f7b587cc1f9782ffb3e748eecda1.jpg","text":"TemporaryFile(/tmp/multipartBody4786031307341586159asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524284338,"filename":"image_18082025_10_40_44_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/48b9ca0df85e274ea9532dc1236dfbb8.jpg","text":"TemporaryFile(/tmp/multipartBody2802589539576783663asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524284338,"filename":"image_18082025_10_41_14_9744.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c77b6ab74118bef68dc3e367e37e1585.jpg","text":"TemporaryFile(/tmp/multipartBody5274381442533000003asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524284338,"filename":"image_18082025_10_41_05_9694.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/23cab30efa2f98fbfdb526faafc4c906.jpg","text":"TemporaryFile(/tmp/multipartBody1511691499450489968asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524284338,"filename":"image_18082025_10_41_24_9677.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377705766","file1":"1377705764","file0":"1377705760","file4":"1377705770","file5":"1377705774","file3":"1377705768"},"map_files_photo_id_array":[{"photo_id":"1377705774","filename":"file5"},{"photo_id":"1377705766","filename":"file2"},{"photo_id":"1377705770","filename":"file4"},{"photo_id":"1377705764","filename":"file1"},{"photo_id":"1377705760","filename":"file0"},{"photo_id":"1377705768","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377705774":["hashtag1","hashtag2"]},{"1377705768":["hashtag1","hashtag2"]},{"1377705770":["hashtag1","hashtag2"]},{"1377705764":["hashtag1","hashtag2"]},{"1377705766":["hashtag1","hashtag2"]},{"1377705760":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377705774, 1377705768, 1377705770, 1377705764, 1377705766, 1377705760)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.21648073196411 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:37:47.307686
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/37/image_18082025_15_37_45_10716.jpg', 2), ('/home/nano/Desktop/images/18082025/15/37/image_18082025_15_37_34_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/15/37/image_18082025_15_37_25_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/15/37/image_18082025_15_37_15_10705.jpg', 2), ('/home/nano/Desktop/images/18082025/15/36/image_18082025_15_37_04_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/15/36/image_18082025_15_36_55_9636.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/37/image_18082025_15_37_45_10716.jpg', '/home/nano/Desktop/images/18082025/15/37/image_18082025_15_37_34_9658.jpg', '/home/nano/Desktop/images/18082025/15/37/image_18082025_15_37_25_9625.jpg', '/home/nano/Desktop/images/18082025/15/37/image_18082025_15_37_15_10705.jpg', '/home/nano/Desktop/images/18082025/15/36/image_18082025_15_37_04_9653.jpg', '/home/nano/Desktop/images/18082025/15/36/image_18082025_15_36_55_9636.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/37/image_18082025_15_37_45_10716.jpg
/home/nano/Desktop/images/18082025/15/37/image_18082025_15_37_34_9658.jpg
/home/nano/Desktop/images/18082025/15/37/image_18082025_15_37_25_9625.jpg
/home/nano/Desktop/images/18082025/15/37/image_18082025_15_37_15_10705.jpg
/home/nano/Desktop/images/18082025/15/36/image_18082025_15_37_04_9653.jpg
/home/nano/Desktop/images/18082025/15/36/image_18082025_15_36_55_9636.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377705795","1377705789","1377705792","1377705791","1377705799","1377705790"],"photo_ids_order":["1377705789","1377705790","1377705791","1377705792","1377705795","1377705799"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e65d4adb60dbb35b3731a427abff1de8.jpg","text":"TemporaryFile(/tmp/multipartBody6349522822212615323asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524328942,"filename":"image_18082025_15_37_04_9653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ece154e5b233ca4303d51faa558936c6.jpg","text":"TemporaryFile(/tmp/multipartBody6244143927397858003asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524328942,"filename":"image_18082025_15_37_45_10716.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9a8e9bea0a9e65492727cffaac4413c1.jpg","text":"TemporaryFile(/tmp/multipartBody8461662935338564472asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524328942,"filename":"image_18082025_15_37_15_10705.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1b2009665373bfca2ded6c7bd11220fa.jpg","text":"TemporaryFile(/tmp/multipartBody8389548866780788868asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524328942,"filename":"image_18082025_15_37_25_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a40eac34982c5479188308a6493c0b5a.jpg","text":"TemporaryFile(/tmp/multipartBody7638768681253167188asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524328942,"filename":"image_18082025_15_36_55_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8a39ca23ab3554f0387ffe6220afa147.jpg","text":"TemporaryFile(/tmp/multipartBody2118174147792107794asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524328942,"filename":"image_18082025_15_37_34_9658.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377705791","file1":"1377705790","file0":"1377705789","file4":"1377705795","file5":"1377705799","file3":"1377705792"},"map_files_photo_id_array":[{"photo_id":"1377705799","filename":"file5"},{"photo_id":"1377705791","filename":"file2"},{"photo_id":"1377705795","filename":"file4"},{"photo_id":"1377705790","filename":"file1"},{"photo_id":"1377705789","filename":"file0"},{"photo_id":"1377705792","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377705795":["hashtag1","hashtag2"]},{"1377705789":["hashtag1","hashtag2"]},{"1377705792":["hashtag1","hashtag2"]},{"1377705791":["hashtag1","hashtag2"]},{"1377705799":["hashtag1","hashtag2"]},{"1377705790":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377705795, 1377705789, 1377705792, 1377705791, 1377705799, 1377705790)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.13957190513611 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:38:32.440804
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/38/image_18082025_15_38_45_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/15/38/image_18082025_15_38_34_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/15/38/image_18082025_15_38_25_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/15/38/image_18082025_15_38_15_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/15/37/image_18082025_15_38_04_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/15/37/image_18082025_15_37_55_9620.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/38/image_18082025_15_38_45_10649.jpg', '/home/nano/Desktop/images/18082025/15/38/image_18082025_15_38_34_9632.jpg', '/home/nano/Desktop/images/18082025/15/38/image_18082025_15_38_25_9654.jpg', '/home/nano/Desktop/images/18082025/15/38/image_18082025_15_38_15_10665.jpg', '/home/nano/Desktop/images/18082025/15/37/image_18082025_15_38_04_9654.jpg', '/home/nano/Desktop/images/18082025/15/37/image_18082025_15_37_55_9620.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/38/image_18082025_15_38_45_10649.jpg
/home/nano/Desktop/images/18082025/15/38/image_18082025_15_38_34_9632.jpg
/home/nano/Desktop/images/18082025/15/38/image_18082025_15_38_25_9654.jpg
/home/nano/Desktop/images/18082025/15/38/image_18082025_15_38_15_10665.jpg
/home/nano/Desktop/images/18082025/15/37/image_18082025_15_38_04_9654.jpg
/home/nano/Desktop/images/18082025/15/37/image_18082025_15_37_55_9620.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377705817","1377705822","1377705824","1377705818","1377705815","1377705820"],"photo_ids_order":["1377705815","1377705817","1377705818","1377705820","1377705822","1377705824"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9501097431ab6aa7a8896ddb37024704.jpg","text":"TemporaryFile(/tmp/multipartBody896781932565710395asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524373905,"filename":"image_18082025_15_38_34_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c0e1ab962ddab4c143d6a765111f71e6.jpg","text":"TemporaryFile(/tmp/multipartBody7646026594009452982asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524373905,"filename":"image_18082025_15_38_04_9654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d7b9fcea2432e96f44e84a8b607b09f8.jpg","text":"TemporaryFile(/tmp/multipartBody7771991000059039085asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524373905,"filename":"image_18082025_15_37_55_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bc43a3ff725492ee5164e67f4fe71f29.jpg","text":"TemporaryFile(/tmp/multipartBody4514274937657265132asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524373905,"filename":"image_18082025_15_38_25_9654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/202fc840b47353baaeea040141515e5d.jpg","text":"TemporaryFile(/tmp/multipartBody1503135268944517210asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524373905,"filename":"image_18082025_15_38_45_10649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fb40679e1a9f413cf4579c2c4b3ab57f.jpg","text":"TemporaryFile(/tmp/multipartBody3721248077692313883asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524373905,"filename":"image_18082025_15_38_15_10665.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377705818","file1":"1377705817","file0":"1377705815","file4":"1377705822","file5":"1377705824","file3":"1377705820"},"map_files_photo_id_array":[{"photo_id":"1377705824","filename":"file5"},{"photo_id":"1377705818","filename":"file2"},{"photo_id":"1377705822","filename":"file4"},{"photo_id":"1377705817","filename":"file1"},{"photo_id":"1377705815","filename":"file0"},{"photo_id":"1377705820","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377705817":["hashtag1","hashtag2"]},{"1377705822":["hashtag1","hashtag2"]},{"1377705824":["hashtag1","hashtag2"]},{"1377705818":["hashtag1","hashtag2"]},{"1377705815":["hashtag1","hashtag2"]},{"1377705820":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377705817, 1377705822, 1377705824, 1377705818, 1377705815, 1377705820)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.208739280700684 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:39:17.517358
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/39/image_18082025_15_39_45_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/15/39/image_18082025_15_39_34_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/15/39/image_18082025_15_39_25_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/15/39/image_18082025_15_39_15_10693.jpg', 2), ('/home/nano/Desktop/images/18082025/15/38/image_18082025_15_39_04_9677.jpg', 2), ('/home/nano/Desktop/images/18082025/15/38/image_18082025_15_38_54_9635.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/39/image_18082025_15_39_45_10641.jpg', '/home/nano/Desktop/images/18082025/15/39/image_18082025_15_39_34_9653.jpg', '/home/nano/Desktop/images/18082025/15/39/image_18082025_15_39_25_9639.jpg', '/home/nano/Desktop/images/18082025/15/39/image_18082025_15_39_15_10693.jpg', '/home/nano/Desktop/images/18082025/15/38/image_18082025_15_39_04_9677.jpg', '/home/nano/Desktop/images/18082025/15/38/image_18082025_15_38_54_9635.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/39/image_18082025_15_39_45_10641.jpg
/home/nano/Desktop/images/18082025/15/39/image_18082025_15_39_34_9653.jpg
/home/nano/Desktop/images/18082025/15/39/image_18082025_15_39_25_9639.jpg
/home/nano/Desktop/images/18082025/15/39/image_18082025_15_39_15_10693.jpg
/home/nano/Desktop/images/18082025/15/38/image_18082025_15_39_04_9677.jpg
/home/nano/Desktop/images/18082025/15/38/image_18082025_15_38_54_9635.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377705843","1377705846","1377705849","1377705848","1377705839","1377705847"],"photo_ids_order":["1377705839","1377705843","1377705846","1377705847","1377705848","1377705849"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/900684f39c348a4ac9fdf1de2024e923.jpg","text":"TemporaryFile(/tmp/multipartBody3215783994132151536asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524419268,"filename":"image_18082025_15_39_34_9653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1d782dbe635e81b283d67711c9595583.jpg","text":"TemporaryFile(/tmp/multipartBody847405095872603555asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524419268,"filename":"image_18082025_15_39_25_9639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/06a3f49cba3d4c1ae221320914aa89e5.jpg","text":"TemporaryFile(/tmp/multipartBody1729854765686792165asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524419268,"filename":"image_18082025_15_38_54_9635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6c1f87189398175d3e05c1356a6411ee.jpg","text":"TemporaryFile(/tmp/multipartBody7635678608666111197asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524419268,"filename":"image_18082025_15_39_04_9677.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0207f58f79a4317c7b4a28d2aac0880a.jpg","text":"TemporaryFile(/tmp/multipartBody759633461530492104asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524419268,"filename":"image_18082025_15_39_45_10641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f40866901b2ae8e69b6d0b2270ac5ae1.jpg","text":"TemporaryFile(/tmp/multipartBody5681147419879808266asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524419268,"filename":"image_18082025_15_39_15_10693.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377705846","file1":"1377705843","file0":"1377705839","file4":"1377705848","file5":"1377705849","file3":"1377705847"},"map_files_photo_id_array":[{"photo_id":"1377705849","filename":"file5"},{"photo_id":"1377705846","filename":"file2"},{"photo_id":"1377705848","filename":"file4"},{"photo_id":"1377705843","filename":"file1"},{"photo_id":"1377705839","filename":"file0"},{"photo_id":"1377705847","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377705843":["hashtag1","hashtag2"]},{"1377705846":["hashtag1","hashtag2"]},{"1377705849":["hashtag1","hashtag2"]},{"1377705848":["hashtag1","hashtag2"]},{"1377705839":["hashtag1","hashtag2"]},{"1377705847":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377705843, 1377705846, 1377705849, 1377705848, 1377705839, 1377705847)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.82507920265198 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:40:03.245069
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/40/image_18082025_10_40_25_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/10/40/image_18082025_10_40_14_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/10/39/image_18082025_10_40_05_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/10/39/image_18082025_10_39_54_9596.jpg', 2), ('/home/nano/Desktop/images/18082025/10/39/image_18082025_10_39_45_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/10/39/image_18082025_10_39_35_10611.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/40/image_18082025_10_40_25_10635.jpg', '/home/nano/Desktop/images/18082025/10/40/image_18082025_10_40_14_9627.jpg', '/home/nano/Desktop/images/18082025/10/39/image_18082025_10_40_05_10621.jpg', '/home/nano/Desktop/images/18082025/10/39/image_18082025_10_39_54_9596.jpg', '/home/nano/Desktop/images/18082025/10/39/image_18082025_10_39_45_9634.jpg', '/home/nano/Desktop/images/18082025/10/39/image_18082025_10_39_35_10611.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/40/image_18082025_10_40_25_10635.jpg
/home/nano/Desktop/images/18082025/10/40/image_18082025_10_40_14_9627.jpg
/home/nano/Desktop/images/18082025/10/39/image_18082025_10_40_05_10621.jpg
/home/nano/Desktop/images/18082025/10/39/image_18082025_10_39_54_9596.jpg
/home/nano/Desktop/images/18082025/10/39/image_18082025_10_39_45_9634.jpg
/home/nano/Desktop/images/18082025/10/39/image_18082025_10_39_35_10611.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377705876","1377705871","1377705865","1377705859","1377705874","1377705868"],"photo_ids_order":["1377705859","1377705865","1377705868","1377705871","1377705874","1377705876"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/63238db9f2f414274df0b8c1e4db72a4.jpg","text":"TemporaryFile(/tmp/multipartBody8367663492429921718asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524464409,"filename":"image_18082025_10_39_35_10611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e266d224e52249725b648fcc7d517877.jpg","text":"TemporaryFile(/tmp/multipartBody1248952085345780584asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524464409,"filename":"image_18082025_10_39_54_9596.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4fcc44c70ee4b54262816a113b61cc38.jpg","text":"TemporaryFile(/tmp/multipartBody8603913711621660621asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524464409,"filename":"image_18082025_10_40_14_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8cfc223ca327b0513107b805f7ff52c4.jpg","text":"TemporaryFile(/tmp/multipartBody452518739209944142asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524464409,"filename":"image_18082025_10_40_25_10635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/67e70d7cccf807da7bbe028b392e8944.jpg","text":"TemporaryFile(/tmp/multipartBody324434097746365068asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524464409,"filename":"image_18082025_10_39_45_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9e6e2ca576cf72d94e66a0c8979780c3.jpg","text":"TemporaryFile(/tmp/multipartBody5902887991492943408asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524464409,"filename":"image_18082025_10_40_05_10621.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377705868","file1":"1377705865","file0":"1377705859","file4":"1377705874","file5":"1377705876","file3":"1377705871"},"map_files_photo_id_array":[{"photo_id":"1377705876","filename":"file5"},{"photo_id":"1377705868","filename":"file2"},{"photo_id":"1377705874","filename":"file4"},{"photo_id":"1377705865","filename":"file1"},{"photo_id":"1377705859","filename":"file0"},{"photo_id":"1377705871","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377705876":["hashtag1","hashtag2"]},{"1377705871":["hashtag1","hashtag2"]},{"1377705865":["hashtag1","hashtag2"]},{"1377705859":["hashtag1","hashtag2"]},{"1377705874":["hashtag1","hashtag2"]},{"1377705868":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377705876, 1377705871, 1377705865, 1377705859, 1377705874, 1377705868)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.538031578063965 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:40:47.598778
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/40/image_18082025_15_40_45_10753.jpg', 2), ('/home/nano/Desktop/images/18082025/15/40/image_18082025_15_40_34_9743.jpg', 2), ('/home/nano/Desktop/images/18082025/15/40/image_18082025_15_40_24_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/15/40/image_18082025_15_40_15_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/15/39/image_18082025_15_40_04_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/15/39/image_18082025_15_39_54_9700.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/40/image_18082025_15_40_45_10753.jpg', '/home/nano/Desktop/images/18082025/15/40/image_18082025_15_40_34_9743.jpg', '/home/nano/Desktop/images/18082025/15/40/image_18082025_15_40_24_9643.jpg', '/home/nano/Desktop/images/18082025/15/40/image_18082025_15_40_15_10646.jpg', '/home/nano/Desktop/images/18082025/15/39/image_18082025_15_40_04_9628.jpg', '/home/nano/Desktop/images/18082025/15/39/image_18082025_15_39_54_9700.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/40/image_18082025_15_40_45_10753.jpg
/home/nano/Desktop/images/18082025/15/40/image_18082025_15_40_34_9743.jpg
/home/nano/Desktop/images/18082025/15/40/image_18082025_15_40_24_9643.jpg
/home/nano/Desktop/images/18082025/15/40/image_18082025_15_40_15_10646.jpg
/home/nano/Desktop/images/18082025/15/39/image_18082025_15_40_04_9628.jpg
/home/nano/Desktop/images/18082025/15/39/image_18082025_15_39_54_9700.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377705904","1377705894","1377705909","1377705900","1377705896","1377705898"],"photo_ids_order":["1377705894","1377705896","1377705898","1377705900","1377705904","1377705909"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cb3173f7e52d99670dcd49269612aa07.jpg","text":"TemporaryFile(/tmp/multipartBody4685792001617398174asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524509364,"filename":"image_18082025_15_40_04_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c6110563598a77f08057bb53a0ffd5db.jpg","text":"TemporaryFile(/tmp/multipartBody2624658496480165605asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524509364,"filename":"image_18082025_15_40_45_10753.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9ebb6f4ced17745374fe1f5b8af7bde0.jpg","text":"TemporaryFile(/tmp/multipartBody8810016142099921150asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524509364,"filename":"image_18082025_15_39_54_9700.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/590574e5d0493e093d469a0868958c7e.jpg","text":"TemporaryFile(/tmp/multipartBody6116775521481258580asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524509364,"filename":"image_18082025_15_40_15_10646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cbbb44f007101a8ae439108434c4be51.jpg","text":"TemporaryFile(/tmp/multipartBody3507193586388059817asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524509364,"filename":"image_18082025_15_40_34_9743.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c7412d70a004cdc752d1c0cad8cfd536.jpg","text":"TemporaryFile(/tmp/multipartBody7461467464328212233asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524509364,"filename":"image_18082025_15_40_24_9643.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377705898","file1":"1377705896","file0":"1377705894","file4":"1377705904","file5":"1377705909","file3":"1377705900"},"map_files_photo_id_array":[{"photo_id":"1377705909","filename":"file5"},{"photo_id":"1377705898","filename":"file2"},{"photo_id":"1377705904","filename":"file4"},{"photo_id":"1377705896","filename":"file1"},{"photo_id":"1377705894","filename":"file0"},{"photo_id":"1377705900","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377705904":["hashtag1","hashtag2"]},{"1377705894":["hashtag1","hashtag2"]},{"1377705909":["hashtag1","hashtag2"]},{"1377705900":["hashtag1","hashtag2"]},{"1377705896":["hashtag1","hashtag2"]},{"1377705898":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377705904, 1377705894, 1377705909, 1377705900, 1377705896, 1377705898)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.0380482673645 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:41:32.702941
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/41/image_18082025_15_41_45_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/15/41/image_18082025_15_41_34_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/15/41/image_18082025_15_41_25_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/15/41/image_18082025_15_41_15_10675.jpg', 2), ('/home/nano/Desktop/images/18082025/15/40/image_18082025_15_41_04_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/15/40/image_18082025_15_40_55_9644.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/41/image_18082025_15_41_45_10647.jpg', '/home/nano/Desktop/images/18082025/15/41/image_18082025_15_41_34_9669.jpg', '/home/nano/Desktop/images/18082025/15/41/image_18082025_15_41_25_9641.jpg', '/home/nano/Desktop/images/18082025/15/41/image_18082025_15_41_15_10675.jpg', '/home/nano/Desktop/images/18082025/15/40/image_18082025_15_41_04_9650.jpg', '/home/nano/Desktop/images/18082025/15/40/image_18082025_15_40_55_9644.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/41/image_18082025_15_41_45_10647.jpg
/home/nano/Desktop/images/18082025/15/41/image_18082025_15_41_34_9669.jpg
/home/nano/Desktop/images/18082025/15/41/image_18082025_15_41_25_9641.jpg
/home/nano/Desktop/images/18082025/15/41/image_18082025_15_41_15_10675.jpg
/home/nano/Desktop/images/18082025/15/40/image_18082025_15_41_04_9650.jpg
/home/nano/Desktop/images/18082025/15/40/image_18082025_15_40_55_9644.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377705925","1377705924","1377705927","1377705929","1377705923","1377705931"],"photo_ids_order":["1377705923","1377705924","1377705925","1377705927","1377705929","1377705931"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4d98b23e66a6c7c0fbe27b8ae9454f70.jpg","text":"TemporaryFile(/tmp/multipartBody7137365619535542999asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524554478,"filename":"image_18082025_15_41_25_9641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/72261f2518908a79b238a8214e4692fc.jpg","text":"TemporaryFile(/tmp/multipartBody4074660671623237493asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524554478,"filename":"image_18082025_15_41_34_9669.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/15b40c967b64e9b86609ee05be59b06a.jpg","text":"TemporaryFile(/tmp/multipartBody8708375389788418658asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524554478,"filename":"image_18082025_15_41_15_10675.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/29a649a5bec5b54056347a87a150c88b.jpg","text":"TemporaryFile(/tmp/multipartBody2354301356154592810asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524554478,"filename":"image_18082025_15_41_04_9650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cb66ba09539a720b3389cbe79e6398fc.jpg","text":"TemporaryFile(/tmp/multipartBody6679889623298620191asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524554478,"filename":"image_18082025_15_41_45_10647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cc6290b6db9991467264a6e0fdb2f720.jpg","text":"TemporaryFile(/tmp/multipartBody3957942329831851620asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524554478,"filename":"image_18082025_15_40_55_9644.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377705925","file1":"1377705924","file0":"1377705923","file4":"1377705929","file5":"1377705931","file3":"1377705927"},"map_files_photo_id_array":[{"photo_id":"1377705931","filename":"file5"},{"photo_id":"1377705925","filename":"file2"},{"photo_id":"1377705929","filename":"file4"},{"photo_id":"1377705924","filename":"file1"},{"photo_id":"1377705923","filename":"file0"},{"photo_id":"1377705927","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377705925":["hashtag1","hashtag2"]},{"1377705924":["hashtag1","hashtag2"]},{"1377705927":["hashtag1","hashtag2"]},{"1377705929":["hashtag1","hashtag2"]},{"1377705923":["hashtag1","hashtag2"]},{"1377705931":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377705925, 1377705924, 1377705927, 1377705929, 1377705923, 1377705931)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.79532051086426 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:42:16.816422
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/42/image_18082025_15_42_45_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/15/42/image_18082025_15_42_34_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/15/42/image_18082025_15_42_25_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/15/42/image_18082025_15_42_15_10743.jpg', 2), ('/home/nano/Desktop/images/18082025/15/41/image_18082025_15_42_04_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/15/41/image_18082025_15_41_55_9727.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/42/image_18082025_15_42_45_10647.jpg', '/home/nano/Desktop/images/18082025/15/42/image_18082025_15_42_34_9644.jpg', '/home/nano/Desktop/images/18082025/15/42/image_18082025_15_42_25_9619.jpg', '/home/nano/Desktop/images/18082025/15/42/image_18082025_15_42_15_10743.jpg', '/home/nano/Desktop/images/18082025/15/41/image_18082025_15_42_04_9650.jpg', '/home/nano/Desktop/images/18082025/15/41/image_18082025_15_41_55_9727.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/42/image_18082025_15_42_45_10647.jpg
/home/nano/Desktop/images/18082025/15/42/image_18082025_15_42_34_9644.jpg
/home/nano/Desktop/images/18082025/15/42/image_18082025_15_42_25_9619.jpg
/home/nano/Desktop/images/18082025/15/42/image_18082025_15_42_15_10743.jpg
/home/nano/Desktop/images/18082025/15/41/image_18082025_15_42_04_9650.jpg
/home/nano/Desktop/images/18082025/15/41/image_18082025_15_41_55_9727.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377705943","1377705948","1377705953","1377705959","1377705950","1377705961"],"photo_ids_order":["1377705943","1377705948","1377705950","1377705953","1377705959","1377705961"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a5ca105864ff25803c9fc13d4899f96f.jpg","text":"TemporaryFile(/tmp/multipartBody1939717286775255590asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524598636,"filename":"image_18082025_15_42_45_10647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ab00273c84572cf47b19793a8952e601.jpg","text":"TemporaryFile(/tmp/multipartBody1669148493047364695asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524598636,"filename":"image_18082025_15_42_34_9644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d0fa0c5fb62bae06f1210b830ca89c9c.jpg","text":"TemporaryFile(/tmp/multipartBody1587395455766488628asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524598636,"filename":"image_18082025_15_42_15_10743.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a2ae5948b24ea550a863028a5e167063.jpg","text":"TemporaryFile(/tmp/multipartBody4465998025439740736asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524598636,"filename":"image_18082025_15_42_04_9650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1c8bf85654494b6bf911fd1080d8e1dc.jpg","text":"TemporaryFile(/tmp/multipartBody4941842443126332356asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524598636,"filename":"image_18082025_15_42_25_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c3a814e310cddb2b960f7d67e60776a2.jpg","text":"TemporaryFile(/tmp/multipartBody8144767621340822820asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524598636,"filename":"image_18082025_15_41_55_9727.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377705950","file1":"1377705948","file0":"1377705943","file4":"1377705959","file5":"1377705961","file3":"1377705953"},"map_files_photo_id_array":[{"photo_id":"1377705961","filename":"file5"},{"photo_id":"1377705950","filename":"file2"},{"photo_id":"1377705959","filename":"file4"},{"photo_id":"1377705948","filename":"file1"},{"photo_id":"1377705943","filename":"file0"},{"photo_id":"1377705953","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377705943":["hashtag1","hashtag2"]},{"1377705948":["hashtag1","hashtag2"]},{"1377705953":["hashtag1","hashtag2"]},{"1377705959":["hashtag1","hashtag2"]},{"1377705950":["hashtag1","hashtag2"]},{"1377705961":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377705943, 1377705948, 1377705953, 1377705959, 1377705950, 1377705961)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 38.086583852767944 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:43:02.412663
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/39/image_18082025_10_39_24_9603.jpg', 2), ('/home/nano/Desktop/images/18082025/10/39/image_18082025_10_39_15_9681.jpg', 2), ('/home/nano/Desktop/images/18082025/10/38/image_18082025_10_39_05_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/10/38/image_18082025_10_38_54_9602.jpg', 2), ('/home/nano/Desktop/images/18082025/10/38/image_18082025_10_38_45_10616.jpg', 2), ('/home/nano/Desktop/images/18082025/10/38/image_18082025_10_38_34_9606.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/39/image_18082025_10_39_24_9603.jpg', '/home/nano/Desktop/images/18082025/10/39/image_18082025_10_39_15_9681.jpg', '/home/nano/Desktop/images/18082025/10/38/image_18082025_10_39_05_10618.jpg', '/home/nano/Desktop/images/18082025/10/38/image_18082025_10_38_54_9602.jpg', '/home/nano/Desktop/images/18082025/10/38/image_18082025_10_38_45_10616.jpg', '/home/nano/Desktop/images/18082025/10/38/image_18082025_10_38_34_9606.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/39/image_18082025_10_39_24_9603.jpg
/home/nano/Desktop/images/18082025/10/39/image_18082025_10_39_15_9681.jpg
/home/nano/Desktop/images/18082025/10/38/image_18082025_10_39_05_10618.jpg
/home/nano/Desktop/images/18082025/10/38/image_18082025_10_38_54_9602.jpg
/home/nano/Desktop/images/18082025/10/38/image_18082025_10_38_45_10616.jpg
/home/nano/Desktop/images/18082025/10/38/image_18082025_10_38_34_9606.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377705990","1377705975","1377705971","1377705980","1377705985","1377705967"],"photo_ids_order":["1377705967","1377705971","1377705975","1377705980","1377705985","1377705990"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a8e93dd90bef4d2338e5ace4f89a8925.jpg","text":"TemporaryFile(/tmp/multipartBody3670166330020601308asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524643707,"filename":"image_18082025_10_38_34_9606.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8259099a74a778574b2e7643d3416100.jpg","text":"TemporaryFile(/tmp/multipartBody7418259159303392519asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524643707,"filename":"image_18082025_10_39_05_10618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6020f87a4295bcc6da9d025c76c2d3db.jpg","text":"TemporaryFile(/tmp/multipartBody8818355901891145225asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524643707,"filename":"image_18082025_10_39_15_9681.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5b4278b68825c40309d5fc774d6ec50b.jpg","text":"TemporaryFile(/tmp/multipartBody8582368428884394254asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524643707,"filename":"image_18082025_10_38_54_9602.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/424010f3fe8e44737b37c0174b80317e.jpg","text":"TemporaryFile(/tmp/multipartBody3102904725512219624asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524643707,"filename":"image_18082025_10_38_45_10616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ce42f8327fa764595c93b27193b0d07d.jpg","text":"TemporaryFile(/tmp/multipartBody343998871125818144asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524643707,"filename":"image_18082025_10_39_24_9603.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377705975","file1":"1377705971","file0":"1377705967","file4":"1377705985","file5":"1377705990","file3":"1377705980"},"map_files_photo_id_array":[{"photo_id":"1377705990","filename":"file5"},{"photo_id":"1377705975","filename":"file2"},{"photo_id":"1377705985","filename":"file4"},{"photo_id":"1377705971","filename":"file1"},{"photo_id":"1377705967","filename":"file0"},{"photo_id":"1377705980","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377705990":["hashtag1","hashtag2"]},{"1377705975":["hashtag1","hashtag2"]},{"1377705971":["hashtag1","hashtag2"]},{"1377705980":["hashtag1","hashtag2"]},{"1377705985":["hashtag1","hashtag2"]},{"1377705967":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377705990, 1377705975, 1377705971, 1377705980, 1377705985, 1377705967)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.146105766296387 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:43:46.934511
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/43/image_18082025_15_43_45_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/15/43/image_18082025_15_43_34_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/15/43/image_18082025_15_43_25_9671.jpg', 2), ('/home/nano/Desktop/images/18082025/15/43/image_18082025_15_43_15_10683.jpg', 2), ('/home/nano/Desktop/images/18082025/15/42/image_18082025_15_43_04_9751.jpg', 2), ('/home/nano/Desktop/images/18082025/15/42/image_18082025_15_42_55_9736.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/43/image_18082025_15_43_45_10654.jpg', '/home/nano/Desktop/images/18082025/15/43/image_18082025_15_43_34_9636.jpg', '/home/nano/Desktop/images/18082025/15/43/image_18082025_15_43_25_9671.jpg', '/home/nano/Desktop/images/18082025/15/43/image_18082025_15_43_15_10683.jpg', '/home/nano/Desktop/images/18082025/15/42/image_18082025_15_43_04_9751.jpg', '/home/nano/Desktop/images/18082025/15/42/image_18082025_15_42_55_9736.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/43/image_18082025_15_43_45_10654.jpg
/home/nano/Desktop/images/18082025/15/43/image_18082025_15_43_34_9636.jpg
/home/nano/Desktop/images/18082025/15/43/image_18082025_15_43_25_9671.jpg
/home/nano/Desktop/images/18082025/15/43/image_18082025_15_43_15_10683.jpg
/home/nano/Desktop/images/18082025/15/42/image_18082025_15_43_04_9751.jpg
/home/nano/Desktop/images/18082025/15/42/image_18082025_15_42_55_9736.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377706005","1377706002","1377705998","1377705997","1377706009","1377706000"],"photo_ids_order":["1377705997","1377705998","1377706000","1377706002","1377706005","1377706009"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e2de38cf11acfcfa23f07aa9ca74598d.jpg","text":"TemporaryFile(/tmp/multipartBody4942927236748566741asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524688645,"filename":"image_18082025_15_43_04_9751.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b174aa74c4ea531e2abb5971050077bd.jpg","text":"TemporaryFile(/tmp/multipartBody4057787928562678318asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524688645,"filename":"image_18082025_15_43_15_10683.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/744a7be9e7b29c2c7c782e9ebbdf4985.jpg","text":"TemporaryFile(/tmp/multipartBody7211724353535713397asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524688645,"filename":"image_18082025_15_43_34_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/934ba2909b9d16c9dc8a9f2d9a385a97.jpg","text":"TemporaryFile(/tmp/multipartBody6917513306077243449asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524688645,"filename":"image_18082025_15_43_45_10654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/50860f2c8825270f26caa684432ceb37.jpg","text":"TemporaryFile(/tmp/multipartBody3790031750192732940asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524688645,"filename":"image_18082025_15_42_55_9736.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8dcbee612794a9f1c063a2bb195c60f4.jpg","text":"TemporaryFile(/tmp/multipartBody6608008183643851029asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524688645,"filename":"image_18082025_15_43_25_9671.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377706000","file1":"1377705998","file0":"1377705997","file4":"1377706005","file5":"1377706009","file3":"1377706002"},"map_files_photo_id_array":[{"photo_id":"1377706009","filename":"file5"},{"photo_id":"1377706000","filename":"file2"},{"photo_id":"1377706005","filename":"file4"},{"photo_id":"1377705998","filename":"file1"},{"photo_id":"1377705997","filename":"file0"},{"photo_id":"1377706002","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377706005":["hashtag1","hashtag2"]},{"1377706002":["hashtag1","hashtag2"]},{"1377705998":["hashtag1","hashtag2"]},{"1377705997":["hashtag1","hashtag2"]},{"1377706009":["hashtag1","hashtag2"]},{"1377706000":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377706005, 1377706002, 1377705998, 1377705997, 1377706009, 1377706000)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.21381688117981 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:44:32.033452
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/44/image_18082025_15_44_45_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/15/44/image_18082025_15_44_34_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/15/44/image_18082025_15_44_25_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/15/44/image_18082025_15_44_15_10676.jpg', 2), ('/home/nano/Desktop/images/18082025/15/43/image_18082025_15_44_04_9671.jpg', 2), ('/home/nano/Desktop/images/18082025/15/43/image_18082025_15_43_55_9649.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/44/image_18082025_15_44_45_10638.jpg', '/home/nano/Desktop/images/18082025/15/44/image_18082025_15_44_34_9647.jpg', '/home/nano/Desktop/images/18082025/15/44/image_18082025_15_44_25_9624.jpg', '/home/nano/Desktop/images/18082025/15/44/image_18082025_15_44_15_10676.jpg', '/home/nano/Desktop/images/18082025/15/43/image_18082025_15_44_04_9671.jpg', '/home/nano/Desktop/images/18082025/15/43/image_18082025_15_43_55_9649.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/44/image_18082025_15_44_45_10638.jpg
/home/nano/Desktop/images/18082025/15/44/image_18082025_15_44_34_9647.jpg
/home/nano/Desktop/images/18082025/15/44/image_18082025_15_44_25_9624.jpg
/home/nano/Desktop/images/18082025/15/44/image_18082025_15_44_15_10676.jpg
/home/nano/Desktop/images/18082025/15/43/image_18082025_15_44_04_9671.jpg
/home/nano/Desktop/images/18082025/15/43/image_18082025_15_43_55_9649.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377706026","1377706035","1377706029","1377706028","1377706031","1377706033"],"photo_ids_order":["1377706026","1377706028","1377706029","1377706031","1377706033","1377706035"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0918a3400bd0fbc8f41241e552489aac.jpg","text":"TemporaryFile(/tmp/multipartBody6589376088228119670asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524733291,"filename":"image_18082025_15_44_45_10638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/47ebb998c403af785120a5fd65785138.jpg","text":"TemporaryFile(/tmp/multipartBody2717341623313583350asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524733291,"filename":"image_18082025_15_43_55_9649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/15df9f7a1336a22101e6a64951e65d7d.jpg","text":"TemporaryFile(/tmp/multipartBody7232563127041325602asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524733291,"filename":"image_18082025_15_44_25_9624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8a75fbde9c24d61cb6c0866237bbb0c5.jpg","text":"TemporaryFile(/tmp/multipartBody4956085079645758296asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524733291,"filename":"image_18082025_15_44_34_9647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/52f73b037be81a9afae6444800d8687e.jpg","text":"TemporaryFile(/tmp/multipartBody5272697708317394410asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524733291,"filename":"image_18082025_15_44_15_10676.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3bbe401bcada4b9e8ed6fdfa244b6bb3.jpg","text":"TemporaryFile(/tmp/multipartBody751072862342817255asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524733291,"filename":"image_18082025_15_44_04_9671.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377706029","file1":"1377706028","file0":"1377706026","file4":"1377706033","file5":"1377706035","file3":"1377706031"},"map_files_photo_id_array":[{"photo_id":"1377706035","filename":"file5"},{"photo_id":"1377706029","filename":"file2"},{"photo_id":"1377706033","filename":"file4"},{"photo_id":"1377706028","filename":"file1"},{"photo_id":"1377706026","filename":"file0"},{"photo_id":"1377706031","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377706026":["hashtag1","hashtag2"]},{"1377706035":["hashtag1","hashtag2"]},{"1377706029":["hashtag1","hashtag2"]},{"1377706028":["hashtag1","hashtag2"]},{"1377706031":["hashtag1","hashtag2"]},{"1377706033":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377706026, 1377706035, 1377706029, 1377706028, 1377706031, 1377706033)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.949314832687378 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:45:17.152136
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/45/image_18082025_15_45_45_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/15/45/image_18082025_15_45_34_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/15/45/image_18082025_15_45_25_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/15/45/image_18082025_15_45_15_10643.jpg', 2), ('/home/nano/Desktop/images/18082025/15/44/image_18082025_15_45_04_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/15/44/image_18082025_15_44_55_9644.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/45/image_18082025_15_45_45_10642.jpg', '/home/nano/Desktop/images/18082025/15/45/image_18082025_15_45_34_9623.jpg', '/home/nano/Desktop/images/18082025/15/45/image_18082025_15_45_25_9645.jpg', '/home/nano/Desktop/images/18082025/15/45/image_18082025_15_45_15_10643.jpg', '/home/nano/Desktop/images/18082025/15/44/image_18082025_15_45_04_9656.jpg', '/home/nano/Desktop/images/18082025/15/44/image_18082025_15_44_55_9644.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/45/image_18082025_15_45_45_10642.jpg
/home/nano/Desktop/images/18082025/15/45/image_18082025_15_45_34_9623.jpg
/home/nano/Desktop/images/18082025/15/45/image_18082025_15_45_25_9645.jpg
/home/nano/Desktop/images/18082025/15/45/image_18082025_15_45_15_10643.jpg
/home/nano/Desktop/images/18082025/15/44/image_18082025_15_45_04_9656.jpg
/home/nano/Desktop/images/18082025/15/44/image_18082025_15_44_55_9644.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377706062","1377706055","1377706058","1377706063","1377706051","1377706060"],"photo_ids_order":["1377706051","1377706055","1377706058","1377706060","1377706062","1377706063"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9429ce46f8c9665caa0303981d01522f.jpg","text":"TemporaryFile(/tmp/multipartBody2526450025369272778asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524778377,"filename":"image_18082025_15_45_04_9656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/42a3d23e40308b9715ed8fe5c76eaab5.jpg","text":"TemporaryFile(/tmp/multipartBody8928064437080349356asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524778377,"filename":"image_18082025_15_45_34_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bb879546dc5e52b98be56727645db434.jpg","text":"TemporaryFile(/tmp/multipartBody215795131222718139asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524778377,"filename":"image_18082025_15_45_25_9645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/874755ff0fe20060d80f7c7ffdb9a829.jpg","text":"TemporaryFile(/tmp/multipartBody5130468891619812530asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524778377,"filename":"image_18082025_15_44_55_9644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c26ab0506a2cb108c6c0edb06bdb8686.jpg","text":"TemporaryFile(/tmp/multipartBody4168023317142620970asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524778377,"filename":"image_18082025_15_45_45_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/231fc759c639e50162719f6ad185c422.jpg","text":"TemporaryFile(/tmp/multipartBody1908016141689333270asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524778377,"filename":"image_18082025_15_45_15_10643.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377706058","file1":"1377706055","file0":"1377706051","file4":"1377706062","file5":"1377706063","file3":"1377706060"},"map_files_photo_id_array":[{"photo_id":"1377706063","filename":"file5"},{"photo_id":"1377706058","filename":"file2"},{"photo_id":"1377706062","filename":"file4"},{"photo_id":"1377706055","filename":"file1"},{"photo_id":"1377706051","filename":"file0"},{"photo_id":"1377706060","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377706062":["hashtag1","hashtag2"]},{"1377706055":["hashtag1","hashtag2"]},{"1377706058":["hashtag1","hashtag2"]},{"1377706063":["hashtag1","hashtag2"]},{"1377706051":["hashtag1","hashtag2"]},{"1377706060":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377706062, 1377706055, 1377706058, 1377706063, 1377706051, 1377706060)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.91613459587097 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:46:02.750860
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/38/image_18082025_10_38_25_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/10/38/image_18082025_10_38_15_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/10/37/image_18082025_10_38_04_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/10/37/image_18082025_10_37_55_10620.jpg', 2), ('/home/nano/Desktop/images/18082025/10/37/image_18082025_10_37_44_9604.jpg', 2), ('/home/nano/Desktop/images/18082025/10/37/image_18082025_10_37_35_9602.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/38/image_18082025_10_38_25_9610.jpg', '/home/nano/Desktop/images/18082025/10/38/image_18082025_10_38_15_10628.jpg', '/home/nano/Desktop/images/18082025/10/37/image_18082025_10_38_04_9618.jpg', '/home/nano/Desktop/images/18082025/10/37/image_18082025_10_37_55_10620.jpg', '/home/nano/Desktop/images/18082025/10/37/image_18082025_10_37_44_9604.jpg', '/home/nano/Desktop/images/18082025/10/37/image_18082025_10_37_35_9602.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/38/image_18082025_10_38_25_9610.jpg
/home/nano/Desktop/images/18082025/10/38/image_18082025_10_38_15_10628.jpg
/home/nano/Desktop/images/18082025/10/37/image_18082025_10_38_04_9618.jpg
/home/nano/Desktop/images/18082025/10/37/image_18082025_10_37_55_10620.jpg
/home/nano/Desktop/images/18082025/10/37/image_18082025_10_37_44_9604.jpg
/home/nano/Desktop/images/18082025/10/37/image_18082025_10_37_35_9602.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377706080","1377706083","1377706073","1377706076","1377706078","1377706087"],"photo_ids_order":["1377706073","1377706076","1377706078","1377706080","1377706083","1377706087"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4c8ed487591ae633392dacc2ed6f5de6.jpg","text":"TemporaryFile(/tmp/multipartBody6197682329805228646asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524823884,"filename":"image_18082025_10_37_55_10620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9ad4cb6f714d0d1a4bf4d53a3f09126b.jpg","text":"TemporaryFile(/tmp/multipartBody4227478524752527790asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524823884,"filename":"image_18082025_10_37_44_9604.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fdb4e4cadd281071ee4911a0ba8cf2da.jpg","text":"TemporaryFile(/tmp/multipartBody6649464240704699911asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524823884,"filename":"image_18082025_10_38_25_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ad662778121d1b55190bf9ab1d32d032.jpg","text":"TemporaryFile(/tmp/multipartBody7725126827294725213asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524823884,"filename":"image_18082025_10_38_15_10628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/acf589694bcc05b1f175fcb62fd9b021.jpg","text":"TemporaryFile(/tmp/multipartBody2892999990352129037asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524823884,"filename":"image_18082025_10_38_04_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/932e09f828d95993a059b8d39e73fd52.jpg","text":"TemporaryFile(/tmp/multipartBody2901836294076376546asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524823884,"filename":"image_18082025_10_37_35_9602.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377706078","file1":"1377706076","file0":"1377706073","file4":"1377706083","file5":"1377706087","file3":"1377706080"},"map_files_photo_id_array":[{"photo_id":"1377706087","filename":"file5"},{"photo_id":"1377706078","filename":"file2"},{"photo_id":"1377706083","filename":"file4"},{"photo_id":"1377706076","filename":"file1"},{"photo_id":"1377706073","filename":"file0"},{"photo_id":"1377706080","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377706080":["hashtag1","hashtag2"]},{"1377706083":["hashtag1","hashtag2"]},{"1377706073":["hashtag1","hashtag2"]},{"1377706076":["hashtag1","hashtag2"]},{"1377706078":["hashtag1","hashtag2"]},{"1377706087":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377706080, 1377706083, 1377706073, 1377706076, 1377706078, 1377706087)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.07642984390259 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:46:47.224237
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/46/image_18082025_15_46_45_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/15/46/image_18082025_15_46_35_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/15/46/image_18082025_15_46_24_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/15/46/image_18082025_15_46_15_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/15/45/image_18082025_15_46_04_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/15/45/image_18082025_15_45_54_9614.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/46/image_18082025_15_46_45_9651.jpg', '/home/nano/Desktop/images/18082025/15/46/image_18082025_15_46_35_10644.jpg', '/home/nano/Desktop/images/18082025/15/46/image_18082025_15_46_24_9632.jpg', '/home/nano/Desktop/images/18082025/15/46/image_18082025_15_46_15_10658.jpg', '/home/nano/Desktop/images/18082025/15/45/image_18082025_15_46_04_9664.jpg', '/home/nano/Desktop/images/18082025/15/45/image_18082025_15_45_54_9614.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/46/image_18082025_15_46_45_9651.jpg
/home/nano/Desktop/images/18082025/15/46/image_18082025_15_46_35_10644.jpg
/home/nano/Desktop/images/18082025/15/46/image_18082025_15_46_24_9632.jpg
/home/nano/Desktop/images/18082025/15/46/image_18082025_15_46_15_10658.jpg
/home/nano/Desktop/images/18082025/15/45/image_18082025_15_46_04_9664.jpg
/home/nano/Desktop/images/18082025/15/45/image_18082025_15_45_54_9614.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377706105","1377706110","1377706104","1377706107","1377706101","1377706103"],"photo_ids_order":["1377706101","1377706103","1377706104","1377706105","1377706107","1377706110"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cbc4280c3f42a9fefce1d67c00707b14.jpg","text":"TemporaryFile(/tmp/multipartBody2072508635425926974asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524868534,"filename":"image_18082025_15_46_15_10658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/562c27dac9765525157c37bd7a568270.jpg","text":"TemporaryFile(/tmp/multipartBody1745668183027396328asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524868534,"filename":"image_18082025_15_45_54_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/016318d2c2f8d1d065df7bfebcf2b805.jpg","text":"TemporaryFile(/tmp/multipartBody8992319534306440889asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524868534,"filename":"image_18082025_15_46_24_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6b503e6274f850933a8ae2d060cdea3c.jpg","text":"TemporaryFile(/tmp/multipartBody7743121830509467374asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524868534,"filename":"image_18082025_15_46_04_9664.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f89c43fb4da069cca308d7ba440e0662.jpg","text":"TemporaryFile(/tmp/multipartBody596661518714489156asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524868534,"filename":"image_18082025_15_46_45_9651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9f8be6a77a8275fec5c5e8f1d6f8a3fd.jpg","text":"TemporaryFile(/tmp/multipartBody6854082830052735184asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524868534,"filename":"image_18082025_15_46_35_10644.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377706104","file1":"1377706103","file0":"1377706101","file4":"1377706107","file5":"1377706110","file3":"1377706105"},"map_files_photo_id_array":[{"photo_id":"1377706110","filename":"file5"},{"photo_id":"1377706104","filename":"file2"},{"photo_id":"1377706107","filename":"file4"},{"photo_id":"1377706103","filename":"file1"},{"photo_id":"1377706101","filename":"file0"},{"photo_id":"1377706105","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377706105":["hashtag1","hashtag2"]},{"1377706110":["hashtag1","hashtag2"]},{"1377706104":["hashtag1","hashtag2"]},{"1377706107":["hashtag1","hashtag2"]},{"1377706101":["hashtag1","hashtag2"]},{"1377706103":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377706105, 1377706110, 1377706104, 1377706107, 1377706101, 1377706103)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.18255686759949 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:47:32.355311
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/47/image_18082025_15_47_45_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/15/47/image_18082025_15_47_35_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/15/47/image_18082025_15_47_24_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/15/47/image_18082025_15_47_15_9683.jpg', 2), ('/home/nano/Desktop/images/18082025/15/46/image_18082025_15_47_05_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/15/46/image_18082025_15_46_54_9622.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/47/image_18082025_15_47_45_9649.jpg', '/home/nano/Desktop/images/18082025/15/47/image_18082025_15_47_35_10639.jpg', '/home/nano/Desktop/images/18082025/15/47/image_18082025_15_47_24_9635.jpg', '/home/nano/Desktop/images/18082025/15/47/image_18082025_15_47_15_9683.jpg', '/home/nano/Desktop/images/18082025/15/46/image_18082025_15_47_05_10648.jpg', '/home/nano/Desktop/images/18082025/15/46/image_18082025_15_46_54_9622.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/47/image_18082025_15_47_45_9649.jpg
/home/nano/Desktop/images/18082025/15/47/image_18082025_15_47_35_10639.jpg
/home/nano/Desktop/images/18082025/15/47/image_18082025_15_47_24_9635.jpg
/home/nano/Desktop/images/18082025/15/47/image_18082025_15_47_15_9683.jpg
/home/nano/Desktop/images/18082025/15/46/image_18082025_15_47_05_10648.jpg
/home/nano/Desktop/images/18082025/15/46/image_18082025_15_46_54_9622.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377706134","1377706128","1377706136","1377706130","1377706132","1377706129"],"photo_ids_order":["1377706128","1377706129","1377706130","1377706132","1377706134","1377706136"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/49cd69f84a46106bde050ffaf7f90b21.jpg","text":"TemporaryFile(/tmp/multipartBody7963809271333907204asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524913900,"filename":"image_18082025_15_47_05_10648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6edf3edd29b03c89d543ebbf403ab0fc.jpg","text":"TemporaryFile(/tmp/multipartBody5045220404973372013asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524913900,"filename":"image_18082025_15_47_45_9649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/971209bbd22b8da4cfaa706c548863cf.jpg","text":"TemporaryFile(/tmp/multipartBody3945528619435601350asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524913900,"filename":"image_18082025_15_46_54_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a8e2b9c4fd46cc8bbcdbcf83256b8c1c.jpg","text":"TemporaryFile(/tmp/multipartBody7627558919091866661asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524913900,"filename":"image_18082025_15_47_24_9635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/00edfaf9fb82185218887ae433614793.jpg","text":"TemporaryFile(/tmp/multipartBody660350407782773111asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524913900,"filename":"image_18082025_15_47_15_9683.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9ff54bc39e73d0ffd71a177acf0bc1cf.jpg","text":"TemporaryFile(/tmp/multipartBody5241815445986780324asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524913900,"filename":"image_18082025_15_47_35_10639.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377706130","file1":"1377706129","file0":"1377706128","file4":"1377706134","file5":"1377706136","file3":"1377706132"},"map_files_photo_id_array":[{"photo_id":"1377706136","filename":"file5"},{"photo_id":"1377706130","filename":"file2"},{"photo_id":"1377706134","filename":"file4"},{"photo_id":"1377706129","filename":"file1"},{"photo_id":"1377706128","filename":"file0"},{"photo_id":"1377706132","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377706134":["hashtag1","hashtag2"]},{"1377706128":["hashtag1","hashtag2"]},{"1377706136":["hashtag1","hashtag2"]},{"1377706130":["hashtag1","hashtag2"]},{"1377706132":["hashtag1","hashtag2"]},{"1377706129":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377706134, 1377706128, 1377706136, 1377706130, 1377706132, 1377706129)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.96522545814514 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:48:17.449520
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/48/image_18082025_15_48_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/15/48/image_18082025_15_48_35_10662.jpg', 2), ('/home/nano/Desktop/images/18082025/15/48/image_18082025_15_48_24_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/15/48/image_18082025_15_48_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/15/47/image_18082025_15_48_05_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/15/47/image_18082025_15_47_54_9620.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/48/image_18082025_15_48_44_9641.jpg', '/home/nano/Desktop/images/18082025/15/48/image_18082025_15_48_35_10662.jpg', '/home/nano/Desktop/images/18082025/15/48/image_18082025_15_48_24_9628.jpg', '/home/nano/Desktop/images/18082025/15/48/image_18082025_15_48_14_9663.jpg', '/home/nano/Desktop/images/18082025/15/47/image_18082025_15_48_05_10627.jpg', '/home/nano/Desktop/images/18082025/15/47/image_18082025_15_47_54_9620.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/48/image_18082025_15_48_44_9641.jpg
/home/nano/Desktop/images/18082025/15/48/image_18082025_15_48_35_10662.jpg
/home/nano/Desktop/images/18082025/15/48/image_18082025_15_48_24_9628.jpg
/home/nano/Desktop/images/18082025/15/48/image_18082025_15_48_14_9663.jpg
/home/nano/Desktop/images/18082025/15/47/image_18082025_15_48_05_10627.jpg
/home/nano/Desktop/images/18082025/15/47/image_18082025_15_47_54_9620.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377706149","1377706151","1377706145","1377706144","1377706153","1377706147"],"photo_ids_order":["1377706144","1377706145","1377706147","1377706149","1377706151","1377706153"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8f48c6b0efdb2ad047881651bcbe5335.jpg","text":"TemporaryFile(/tmp/multipartBody5263352029102697304asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524958809,"filename":"image_18082025_15_48_14_9663.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9ec97e8744c071ab420400c91e3d3885.jpg","text":"TemporaryFile(/tmp/multipartBody7185578847052127946asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524958809,"filename":"image_18082025_15_48_05_10627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/38903e014d76f843be3134238f5310e9.jpg","text":"TemporaryFile(/tmp/multipartBody2506549559164327618asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524958809,"filename":"image_18082025_15_48_35_10662.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8864628eb80bacb453a5fa74d95827f9.jpg","text":"TemporaryFile(/tmp/multipartBody8834309813545599692asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524958809,"filename":"image_18082025_15_48_44_9641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7199b5affc490cfcab608c7e82d9310a.jpg","text":"TemporaryFile(/tmp/multipartBody4298873428016346035asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524958809,"filename":"image_18082025_15_47_54_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d015bd76f601596f22e6bcd1a18b61ea.jpg","text":"TemporaryFile(/tmp/multipartBody8997750220776550837asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755524958809,"filename":"image_18082025_15_48_24_9628.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377706147","file1":"1377706145","file0":"1377706144","file4":"1377706151","file5":"1377706153","file3":"1377706149"},"map_files_photo_id_array":[{"photo_id":"1377706153","filename":"file5"},{"photo_id":"1377706147","filename":"file2"},{"photo_id":"1377706151","filename":"file4"},{"photo_id":"1377706145","filename":"file1"},{"photo_id":"1377706144","filename":"file0"},{"photo_id":"1377706149","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377706149":["hashtag1","hashtag2"]},{"1377706151":["hashtag1","hashtag2"]},{"1377706145":["hashtag1","hashtag2"]},{"1377706144":["hashtag1","hashtag2"]},{"1377706153":["hashtag1","hashtag2"]},{"1377706147":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377706149, 1377706151, 1377706145, 1377706144, 1377706153, 1377706147)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.47182822227478 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:49:03.323275
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/37/image_18082025_10_37_25_10617.jpg', 2), ('/home/nano/Desktop/images/18082025/10/37/image_18082025_10_37_14_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/10/36/image_18082025_10_37_05_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/10/36/image_18082025_10_36_55_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/10/36/image_18082025_10_36_44_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/10/36/image_18082025_10_36_35_10610.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/37/image_18082025_10_37_25_10617.jpg', '/home/nano/Desktop/images/18082025/10/37/image_18082025_10_37_14_9624.jpg', '/home/nano/Desktop/images/18082025/10/36/image_18082025_10_37_05_9624.jpg', '/home/nano/Desktop/images/18082025/10/36/image_18082025_10_36_55_10618.jpg', '/home/nano/Desktop/images/18082025/10/36/image_18082025_10_36_44_9622.jpg', '/home/nano/Desktop/images/18082025/10/36/image_18082025_10_36_35_10610.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/37/image_18082025_10_37_25_10617.jpg
/home/nano/Desktop/images/18082025/10/37/image_18082025_10_37_14_9624.jpg
/home/nano/Desktop/images/18082025/10/36/image_18082025_10_37_05_9624.jpg
/home/nano/Desktop/images/18082025/10/36/image_18082025_10_36_55_10618.jpg
/home/nano/Desktop/images/18082025/10/36/image_18082025_10_36_44_9622.jpg
/home/nano/Desktop/images/18082025/10/36/image_18082025_10_36_35_10610.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377706161","1377706164","1377706158","1377706166","1377706168","1377706170"],"photo_ids_order":["1377706158","1377706161","1377706164","1377706166","1377706168","1377706170"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/91214469f80b9d7a135a258c7fd44ae3.jpg","text":"TemporaryFile(/tmp/multipartBody1924932951937421259asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525004661,"filename":"image_18082025_10_37_14_9624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fc40ea3121117cb07614cc049723aead.jpg","text":"TemporaryFile(/tmp/multipartBody8059405060152565662asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525004661,"filename":"image_18082025_10_37_05_9624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fc91a4b493294b530ea1dd2632efd20c.jpg","text":"TemporaryFile(/tmp/multipartBody7685146605295482216asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525004661,"filename":"image_18082025_10_37_25_10617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/af3d8fd8b69e10a483c311ad16a19075.jpg","text":"TemporaryFile(/tmp/multipartBody2102616829606715892asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525004661,"filename":"image_18082025_10_36_55_10618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3049a125cdb6a699c4ba68eb1619c6f5.jpg","text":"TemporaryFile(/tmp/multipartBody4472951978285581381asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525004661,"filename":"image_18082025_10_36_44_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c2abee3412bd8d9f17cc9a82a7275877.jpg","text":"TemporaryFile(/tmp/multipartBody5598564867454389835asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525004661,"filename":"image_18082025_10_36_35_10610.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377706164","file1":"1377706161","file0":"1377706158","file4":"1377706168","file5":"1377706170","file3":"1377706166"},"map_files_photo_id_array":[{"photo_id":"1377706170","filename":"file5"},{"photo_id":"1377706164","filename":"file2"},{"photo_id":"1377706168","filename":"file4"},{"photo_id":"1377706161","filename":"file1"},{"photo_id":"1377706158","filename":"file0"},{"photo_id":"1377706166","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377706161":["hashtag1","hashtag2"]},{"1377706164":["hashtag1","hashtag2"]},{"1377706158":["hashtag1","hashtag2"]},{"1377706166":["hashtag1","hashtag2"]},{"1377706168":["hashtag1","hashtag2"]},{"1377706170":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377706161, 1377706164, 1377706158, 1377706166, 1377706168, 1377706170)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.338736295700073 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:49:47.541789
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/49/image_18082025_15_49_44_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/15/49/image_18082025_15_49_35_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/15/49/image_18082025_15_49_25_10614.jpg', 2), ('/home/nano/Desktop/images/18082025/15/49/image_18082025_15_49_14_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/15/48/image_18082025_15_49_05_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/15/48/image_18082025_15_48_55_10635.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/49/image_18082025_15_49_44_9611.jpg', '/home/nano/Desktop/images/18082025/15/49/image_18082025_15_49_35_9606.jpg', '/home/nano/Desktop/images/18082025/15/49/image_18082025_15_49_25_10614.jpg', '/home/nano/Desktop/images/18082025/15/49/image_18082025_15_49_14_9651.jpg', '/home/nano/Desktop/images/18082025/15/48/image_18082025_15_49_05_9649.jpg', '/home/nano/Desktop/images/18082025/15/48/image_18082025_15_48_55_10635.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/49/image_18082025_15_49_44_9611.jpg
/home/nano/Desktop/images/18082025/15/49/image_18082025_15_49_35_9606.jpg
/home/nano/Desktop/images/18082025/15/49/image_18082025_15_49_25_10614.jpg
/home/nano/Desktop/images/18082025/15/49/image_18082025_15_49_14_9651.jpg
/home/nano/Desktop/images/18082025/15/48/image_18082025_15_49_05_9649.jpg
/home/nano/Desktop/images/18082025/15/48/image_18082025_15_48_55_10635.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377706184","1377706186","1377706195","1377706189","1377706198","1377706191"],"photo_ids_order":["1377706184","1377706186","1377706189","1377706191","1377706195","1377706198"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f92e94f407d97403e5e3084f1585a6f7.jpg","text":"TemporaryFile(/tmp/multipartBody3426201631785801900asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525049292,"filename":"image_18082025_15_49_44_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/af443631b8689a550fbc3648e6597834.jpg","text":"TemporaryFile(/tmp/multipartBody5569321413227549984asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525049292,"filename":"image_18082025_15_49_35_9606.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/58d663fd22eb065cfbf1926204646f26.jpg","text":"TemporaryFile(/tmp/multipartBody8604002900678732989asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525049292,"filename":"image_18082025_15_49_05_9649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ed668ffe5acd391f05001592236319e3.jpg","text":"TemporaryFile(/tmp/multipartBody2344240902137300442asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525049292,"filename":"image_18082025_15_49_25_10614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7fe24ce65517fd100bc151df5129adea.jpg","text":"TemporaryFile(/tmp/multipartBody3634843975834007491asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525049292,"filename":"image_18082025_15_48_55_10635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/717f75aeabf4a9d0702357c20a1cab7b.jpg","text":"TemporaryFile(/tmp/multipartBody6193665970085947379asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525049292,"filename":"image_18082025_15_49_14_9651.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377706189","file1":"1377706186","file0":"1377706184","file4":"1377706195","file5":"1377706198","file3":"1377706191"},"map_files_photo_id_array":[{"photo_id":"1377706198","filename":"file5"},{"photo_id":"1377706189","filename":"file2"},{"photo_id":"1377706195","filename":"file4"},{"photo_id":"1377706186","filename":"file1"},{"photo_id":"1377706184","filename":"file0"},{"photo_id":"1377706191","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377706184":["hashtag1","hashtag2"]},{"1377706186":["hashtag1","hashtag2"]},{"1377706195":["hashtag1","hashtag2"]},{"1377706189":["hashtag1","hashtag2"]},{"1377706198":["hashtag1","hashtag2"]},{"1377706191":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377706184, 1377706186, 1377706195, 1377706189, 1377706198, 1377706191)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.52481007575989 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:50:32.674543
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/50/image_18082025_15_50_45_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/15/50/image_18082025_15_50_34_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/15/50/image_18082025_15_50_25_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/15/50/image_18082025_15_50_15_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/15/49/image_18082025_15_50_04_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/15/49/image_18082025_15_49_55_10610.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/50/image_18082025_15_50_45_10638.jpg', '/home/nano/Desktop/images/18082025/15/50/image_18082025_15_50_34_9635.jpg', '/home/nano/Desktop/images/18082025/15/50/image_18082025_15_50_25_9609.jpg', '/home/nano/Desktop/images/18082025/15/50/image_18082025_15_50_15_10661.jpg', '/home/nano/Desktop/images/18082025/15/49/image_18082025_15_50_04_9627.jpg', '/home/nano/Desktop/images/18082025/15/49/image_18082025_15_49_55_10610.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/50/image_18082025_15_50_45_10638.jpg
/home/nano/Desktop/images/18082025/15/50/image_18082025_15_50_34_9635.jpg
/home/nano/Desktop/images/18082025/15/50/image_18082025_15_50_25_9609.jpg
/home/nano/Desktop/images/18082025/15/50/image_18082025_15_50_15_10661.jpg
/home/nano/Desktop/images/18082025/15/49/image_18082025_15_50_04_9627.jpg
/home/nano/Desktop/images/18082025/15/49/image_18082025_15_49_55_10610.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.0696687698364258 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:50:47.613049
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/50/image_18082025_15_50_45_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/15/50/image_18082025_15_50_34_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/15/50/image_18082025_15_50_25_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/15/50/image_18082025_15_50_15_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/15/49/image_18082025_15_50_04_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/15/49/image_18082025_15_49_55_10610.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/50/image_18082025_15_50_45_10638.jpg', '/home/nano/Desktop/images/18082025/15/50/image_18082025_15_50_34_9635.jpg', '/home/nano/Desktop/images/18082025/15/50/image_18082025_15_50_25_9609.jpg', '/home/nano/Desktop/images/18082025/15/50/image_18082025_15_50_15_10661.jpg', '/home/nano/Desktop/images/18082025/15/49/image_18082025_15_50_04_9627.jpg', '/home/nano/Desktop/images/18082025/15/49/image_18082025_15_49_55_10610.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/50/image_18082025_15_50_45_10638.jpg
/home/nano/Desktop/images/18082025/15/50/image_18082025_15_50_34_9635.jpg
/home/nano/Desktop/images/18082025/15/50/image_18082025_15_50_25_9609.jpg
/home/nano/Desktop/images/18082025/15/50/image_18082025_15_50_15_10661.jpg
/home/nano/Desktop/images/18082025/15/49/image_18082025_15_50_04_9627.jpg
/home/nano/Desktop/images/18082025/15/49/image_18082025_15_49_55_10610.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377706221","1377706217","1377706225","1377706219","1377706213","1377706216"],"photo_ids_order":["1377706213","1377706216","1377706217","1377706219","1377706221","1377706225"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bf9d743a3553675f0b9f66a422af62dd.jpg","text":"TemporaryFile(/tmp/multipartBody8036080437773506846asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525108836,"filename":"image_18082025_15_50_04_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/07a5ef83f35ffbc4c6ae20f7cd597d88.jpg","text":"TemporaryFile(/tmp/multipartBody7814802115807662892asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525108836,"filename":"image_18082025_15_50_25_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a3059d2f7be9506fd63edeaeff4e5d91.jpg","text":"TemporaryFile(/tmp/multipartBody4551875356645565487asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525108836,"filename":"image_18082025_15_49_55_10610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e0de07af2ea676c52e69680d93df7d0e.jpg","text":"TemporaryFile(/tmp/multipartBody8869030049644278010asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525108836,"filename":"image_18082025_15_50_15_10661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/430c62d7165f3c713818b36d7ff3a266.jpg","text":"TemporaryFile(/tmp/multipartBody6473413321844517920asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525108836,"filename":"image_18082025_15_50_45_10638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d3b76a60a8eb9d93c617c53cc7e95f9d.jpg","text":"TemporaryFile(/tmp/multipartBody7030495017772763210asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525108836,"filename":"image_18082025_15_50_34_9635.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377706217","file1":"1377706216","file0":"1377706213","file4":"1377706221","file5":"1377706225","file3":"1377706219"},"map_files_photo_id_array":[{"photo_id":"1377706225","filename":"file5"},{"photo_id":"1377706217","filename":"file2"},{"photo_id":"1377706221","filename":"file4"},{"photo_id":"1377706216","filename":"file1"},{"photo_id":"1377706213","filename":"file0"},{"photo_id":"1377706219","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377706221":["hashtag1","hashtag2"]},{"1377706217":["hashtag1","hashtag2"]},{"1377706225":["hashtag1","hashtag2"]},{"1377706219":["hashtag1","hashtag2"]},{"1377706213":["hashtag1","hashtag2"]},{"1377706216":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377706221, 1377706217, 1377706225, 1377706219, 1377706213, 1377706216)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.22276473045349 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:51:32.745142
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/51/image_18082025_15_51_45_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/15/51/image_18082025_15_51_34_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/15/51/image_18082025_15_51_24_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/15/51/image_18082025_15_51_15_10634.jpg', 2), ('/home/nano/Desktop/images/18082025/15/50/image_18082025_15_51_04_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/15/50/image_18082025_15_50_55_9633.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/51/image_18082025_15_51_45_10632.jpg', '/home/nano/Desktop/images/18082025/15/51/image_18082025_15_51_34_9625.jpg', '/home/nano/Desktop/images/18082025/15/51/image_18082025_15_51_24_9623.jpg', '/home/nano/Desktop/images/18082025/15/51/image_18082025_15_51_15_10634.jpg', '/home/nano/Desktop/images/18082025/15/50/image_18082025_15_51_04_9621.jpg', '/home/nano/Desktop/images/18082025/15/50/image_18082025_15_50_55_9633.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/51/image_18082025_15_51_45_10632.jpg
/home/nano/Desktop/images/18082025/15/51/image_18082025_15_51_34_9625.jpg
/home/nano/Desktop/images/18082025/15/51/image_18082025_15_51_24_9623.jpg
/home/nano/Desktop/images/18082025/15/51/image_18082025_15_51_15_10634.jpg
/home/nano/Desktop/images/18082025/15/50/image_18082025_15_51_04_9621.jpg
/home/nano/Desktop/images/18082025/15/50/image_18082025_15_50_55_9633.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377706242","1377706239","1377706244","1377706238","1377706237","1377706240"],"photo_ids_order":["1377706237","1377706238","1377706239","1377706240","1377706242","1377706244"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/20a3b0c8ba8b8e2d018b4739918f3491.jpg","text":"TemporaryFile(/tmp/multipartBody5170794829153870796asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525153873,"filename":"image_18082025_15_51_04_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/17aa14a6abfcb3a3dd71569c70369333.jpg","text":"TemporaryFile(/tmp/multipartBody530727196502968039asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525153873,"filename":"image_18082025_15_51_24_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1c6aadb0ce87977222405a5568ec1544.jpg","text":"TemporaryFile(/tmp/multipartBody1425495950011941416asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525153873,"filename":"image_18082025_15_50_55_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7f6e63d42860b677264b4b838c7d96b2.jpg","text":"TemporaryFile(/tmp/multipartBody2623147009353655294asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525153873,"filename":"image_18082025_15_51_34_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1210c16a9dd3c29f74963699c781f80e.jpg","text":"TemporaryFile(/tmp/multipartBody3198620794128389169asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525153873,"filename":"image_18082025_15_51_45_10632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ad99d5faed0280049e46993a8541e453.jpg","text":"TemporaryFile(/tmp/multipartBody1729504616383404370asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525153873,"filename":"image_18082025_15_51_15_10634.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377706239","file1":"1377706238","file0":"1377706237","file4":"1377706242","file5":"1377706244","file3":"1377706240"},"map_files_photo_id_array":[{"photo_id":"1377706244","filename":"file5"},{"photo_id":"1377706239","filename":"file2"},{"photo_id":"1377706242","filename":"file4"},{"photo_id":"1377706238","filename":"file1"},{"photo_id":"1377706237","filename":"file0"},{"photo_id":"1377706240","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377706242":["hashtag1","hashtag2"]},{"1377706239":["hashtag1","hashtag2"]},{"1377706244":["hashtag1","hashtag2"]},{"1377706238":["hashtag1","hashtag2"]},{"1377706237":["hashtag1","hashtag2"]},{"1377706240":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377706242, 1377706239, 1377706244, 1377706238, 1377706237, 1377706240)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.66361713409424 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:52:16.845092
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/52/image_18082025_15_52_44_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/15/52/image_18082025_15_52_35_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/15/52/image_18082025_15_52_24_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/15/52/image_18082025_15_52_15_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/15/51/image_18082025_15_52_05_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/15/51/image_18082025_15_51_54_9626.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/52/image_18082025_15_52_44_9618.jpg', '/home/nano/Desktop/images/18082025/15/52/image_18082025_15_52_35_10621.jpg', '/home/nano/Desktop/images/18082025/15/52/image_18082025_15_52_24_9647.jpg', '/home/nano/Desktop/images/18082025/15/52/image_18082025_15_52_15_9651.jpg', '/home/nano/Desktop/images/18082025/15/51/image_18082025_15_52_05_10637.jpg', '/home/nano/Desktop/images/18082025/15/51/image_18082025_15_51_54_9626.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/52/image_18082025_15_52_44_9618.jpg
/home/nano/Desktop/images/18082025/15/52/image_18082025_15_52_35_10621.jpg
/home/nano/Desktop/images/18082025/15/52/image_18082025_15_52_24_9647.jpg
/home/nano/Desktop/images/18082025/15/52/image_18082025_15_52_15_9651.jpg
/home/nano/Desktop/images/18082025/15/51/image_18082025_15_52_05_10637.jpg
/home/nano/Desktop/images/18082025/15/51/image_18082025_15_51_54_9626.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377706260","1377706254","1377706259","1377706253","1377706256","1377706258"],"photo_ids_order":["1377706253","1377706254","1377706256","1377706258","1377706259","1377706260"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fbfb51ad09413a809be5e0dafd913bea.jpg","text":"TemporaryFile(/tmp/multipartBody5524933211546895660asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525198255,"filename":"image_18082025_15_51_54_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/69c74a25484befc5425e199747f98def.jpg","text":"TemporaryFile(/tmp/multipartBody8259486257116864327asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525198255,"filename":"image_18082025_15_52_35_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4bb0e6dfd86a1f97eb90aef1f53a9f63.jpg","text":"TemporaryFile(/tmp/multipartBody7800811433016892973asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525198255,"filename":"image_18082025_15_52_05_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a10be4c9e9071a05e7b9496c6578991e.jpg","text":"TemporaryFile(/tmp/multipartBody4406591163084408984asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525198255,"filename":"image_18082025_15_52_44_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f90c8ae65fec1e6bfed13d13ac7095ee.jpg","text":"TemporaryFile(/tmp/multipartBody5956336320981587593asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525198255,"filename":"image_18082025_15_52_24_9647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/206988e3ff6c29b259258ff43d3ca08e.jpg","text":"TemporaryFile(/tmp/multipartBody3239662280902828529asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525198255,"filename":"image_18082025_15_52_15_9651.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377706256","file1":"1377706254","file0":"1377706253","file4":"1377706259","file5":"1377706260","file3":"1377706258"},"map_files_photo_id_array":[{"photo_id":"1377706260","filename":"file5"},{"photo_id":"1377706256","filename":"file2"},{"photo_id":"1377706259","filename":"file4"},{"photo_id":"1377706254","filename":"file1"},{"photo_id":"1377706253","filename":"file0"},{"photo_id":"1377706258","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377706260":["hashtag1","hashtag2"]},{"1377706254":["hashtag1","hashtag2"]},{"1377706259":["hashtag1","hashtag2"]},{"1377706253":["hashtag1","hashtag2"]},{"1377706256":["hashtag1","hashtag2"]},{"1377706258":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377706260, 1377706254, 1377706259, 1377706253, 1377706256, 1377706258)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.71561336517334 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:53:02.598533
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/36/image_18082025_10_36_24_9604.jpg', 2), ('/home/nano/Desktop/images/18082025/10/36/image_18082025_10_36_15_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/10/35/image_18082025_10_36_05_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/10/35/image_18082025_10_35_54_9604.jpg', 2), ('/home/nano/Desktop/images/18082025/10/35/image_18082025_10_35_45_10617.jpg', 2), ('/home/nano/Desktop/images/18082025/10/35/image_18082025_10_35_34_9627.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/36/image_18082025_10_36_24_9604.jpg', '/home/nano/Desktop/images/18082025/10/36/image_18082025_10_36_15_9654.jpg', '/home/nano/Desktop/images/18082025/10/35/image_18082025_10_36_05_10642.jpg', '/home/nano/Desktop/images/18082025/10/35/image_18082025_10_35_54_9604.jpg', '/home/nano/Desktop/images/18082025/10/35/image_18082025_10_35_45_10617.jpg', '/home/nano/Desktop/images/18082025/10/35/image_18082025_10_35_34_9627.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/36/image_18082025_10_36_24_9604.jpg
/home/nano/Desktop/images/18082025/10/36/image_18082025_10_36_15_9654.jpg
/home/nano/Desktop/images/18082025/10/35/image_18082025_10_36_05_10642.jpg
/home/nano/Desktop/images/18082025/10/35/image_18082025_10_35_54_9604.jpg
/home/nano/Desktop/images/18082025/10/35/image_18082025_10_35_45_10617.jpg
/home/nano/Desktop/images/18082025/10/35/image_18082025_10_35_34_9627.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377706272","1377706266","1377706275","1377706280","1377706270","1377706278"],"photo_ids_order":["1377706266","1377706270","1377706272","1377706275","1377706278","1377706280"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/da66ef8c164f646057bdfbea7a49d1f8.jpg","text":"TemporaryFile(/tmp/multipartBody7030042039850149386asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525244081,"filename":"image_18082025_10_36_05_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2e7c82d65586f91b795a82a9ef11c949.jpg","text":"TemporaryFile(/tmp/multipartBody6230320176414483544asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525244081,"filename":"image_18082025_10_36_24_9604.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8a3a0bf31f039728d1c9a422e8d7f53c.jpg","text":"TemporaryFile(/tmp/multipartBody2832116413690337288asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525244081,"filename":"image_18082025_10_35_54_9604.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a614da7dbb665bb5bb488dcbaef4b7ee.jpg","text":"TemporaryFile(/tmp/multipartBody3215017530077595736asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525244081,"filename":"image_18082025_10_35_34_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b6791b6be732fefbbc37a8f970d96873.jpg","text":"TemporaryFile(/tmp/multipartBody6217800663403850486asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525244081,"filename":"image_18082025_10_36_15_9654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/39dd1b24adfc69c3b34dfa48745bc3e6.jpg","text":"TemporaryFile(/tmp/multipartBody6825124941030976500asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525244081,"filename":"image_18082025_10_35_45_10617.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377706272","file1":"1377706270","file0":"1377706266","file4":"1377706278","file5":"1377706280","file3":"1377706275"},"map_files_photo_id_array":[{"photo_id":"1377706280","filename":"file5"},{"photo_id":"1377706272","filename":"file2"},{"photo_id":"1377706278","filename":"file4"},{"photo_id":"1377706270","filename":"file1"},{"photo_id":"1377706266","filename":"file0"},{"photo_id":"1377706275","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377706272":["hashtag1","hashtag2"]},{"1377706266":["hashtag1","hashtag2"]},{"1377706275":["hashtag1","hashtag2"]},{"1377706280":["hashtag1","hashtag2"]},{"1377706270":["hashtag1","hashtag2"]},{"1377706278":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377706272, 1377706266, 1377706275, 1377706280, 1377706270, 1377706278)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.788554906845093 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:53:46.965109
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/53/image_18082025_15_53_44_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/15/53/image_18082025_15_53_35_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/15/53/image_18082025_15_53_25_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/15/53/image_18082025_15_53_14_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/15/52/image_18082025_15_53_05_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/15/52/image_18082025_15_52_54_9609.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/53/image_18082025_15_53_44_9628.jpg', '/home/nano/Desktop/images/18082025/15/53/image_18082025_15_53_35_9625.jpg', '/home/nano/Desktop/images/18082025/15/53/image_18082025_15_53_25_10646.jpg', '/home/nano/Desktop/images/18082025/15/53/image_18082025_15_53_14_9634.jpg', '/home/nano/Desktop/images/18082025/15/52/image_18082025_15_53_05_10630.jpg', '/home/nano/Desktop/images/18082025/15/52/image_18082025_15_52_54_9609.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/53/image_18082025_15_53_44_9628.jpg
/home/nano/Desktop/images/18082025/15/53/image_18082025_15_53_35_9625.jpg
/home/nano/Desktop/images/18082025/15/53/image_18082025_15_53_25_10646.jpg
/home/nano/Desktop/images/18082025/15/53/image_18082025_15_53_14_9634.jpg
/home/nano/Desktop/images/18082025/15/52/image_18082025_15_53_05_10630.jpg
/home/nano/Desktop/images/18082025/15/52/image_18082025_15_52_54_9609.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377706303","1377706302","1377706298","1377706307","1377706296","1377706300"],"photo_ids_order":["1377706296","1377706298","1377706300","1377706302","1377706303","1377706307"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7e4180636e8dd95e88e8887bdb7a8e39.jpg","text":"TemporaryFile(/tmp/multipartBody7895191950597128275asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525288403,"filename":"image_18082025_15_53_05_10630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/14f58c00e3c3612c26e863befe6e8685.jpg","text":"TemporaryFile(/tmp/multipartBody820161431359328344asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525288403,"filename":"image_18082025_15_53_14_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/917f2e3b253f9be190477e8ccd8c5786.jpg","text":"TemporaryFile(/tmp/multipartBody3876119325105903219asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525288403,"filename":"image_18082025_15_53_35_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/19e26bb3bb8d0691692adcec86b0824a.jpg","text":"TemporaryFile(/tmp/multipartBody7443324312150966892asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525288403,"filename":"image_18082025_15_52_54_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9444ffd3ec53ca8c31f646a3c03915ad.jpg","text":"TemporaryFile(/tmp/multipartBody6472158043929806763asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525288403,"filename":"image_18082025_15_53_44_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4a89182b99f8850aa6c49b9ed8a2e6ed.jpg","text":"TemporaryFile(/tmp/multipartBody6328305905491893309asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525288403,"filename":"image_18082025_15_53_25_10646.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377706300","file1":"1377706298","file0":"1377706296","file4":"1377706303","file5":"1377706307","file3":"1377706302"},"map_files_photo_id_array":[{"photo_id":"1377706307","filename":"file5"},{"photo_id":"1377706300","filename":"file2"},{"photo_id":"1377706303","filename":"file4"},{"photo_id":"1377706298","filename":"file1"},{"photo_id":"1377706296","filename":"file0"},{"photo_id":"1377706302","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377706303":["hashtag1","hashtag2"]},{"1377706302":["hashtag1","hashtag2"]},{"1377706298":["hashtag1","hashtag2"]},{"1377706307":["hashtag1","hashtag2"]},{"1377706296":["hashtag1","hashtag2"]},{"1377706300":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377706303, 1377706302, 1377706298, 1377706307, 1377706296, 1377706300)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.50174880027771 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:54:32.085399
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/54/image_18082025_15_54_45_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/15/54/image_18082025_15_54_34_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/15/54/image_18082025_15_54_25_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/15/54/image_18082025_15_54_14_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/15/53/image_18082025_15_54_05_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/15/53/image_18082025_15_53_55_10642.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/54/image_18082025_15_54_45_10628.jpg', '/home/nano/Desktop/images/18082025/15/54/image_18082025_15_54_34_9622.jpg', '/home/nano/Desktop/images/18082025/15/54/image_18082025_15_54_25_10627.jpg', '/home/nano/Desktop/images/18082025/15/54/image_18082025_15_54_14_9643.jpg', '/home/nano/Desktop/images/18082025/15/53/image_18082025_15_54_05_9619.jpg', '/home/nano/Desktop/images/18082025/15/53/image_18082025_15_53_55_10642.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/54/image_18082025_15_54_45_10628.jpg
/home/nano/Desktop/images/18082025/15/54/image_18082025_15_54_34_9622.jpg
/home/nano/Desktop/images/18082025/15/54/image_18082025_15_54_25_10627.jpg
/home/nano/Desktop/images/18082025/15/54/image_18082025_15_54_14_9643.jpg
/home/nano/Desktop/images/18082025/15/53/image_18082025_15_54_05_9619.jpg
/home/nano/Desktop/images/18082025/15/53/image_18082025_15_53_55_10642.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377706320","1377706326","1377706328","1377706322","1377706324","1377706321"],"photo_ids_order":["1377706320","1377706321","1377706322","1377706324","1377706326","1377706328"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e3e8e027f1bb6451ab3dddff5c50ee09.jpg","text":"TemporaryFile(/tmp/multipartBody3513431828409775174asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525333584,"filename":"image_18082025_15_54_45_10628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fc8eb57c8bc23a9309ab131823398c12.jpg","text":"TemporaryFile(/tmp/multipartBody4058837256118110245asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525333584,"filename":"image_18082025_15_54_05_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/45f153f581d91ba1049a190135ca2b21.jpg","text":"TemporaryFile(/tmp/multipartBody393027572468039226asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525333584,"filename":"image_18082025_15_53_55_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d3835256770d6c8da9a2980251831039.jpg","text":"TemporaryFile(/tmp/multipartBody5897756279212679828asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525333584,"filename":"image_18082025_15_54_25_10627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b2a27b6700f379bede430972dd3aff35.jpg","text":"TemporaryFile(/tmp/multipartBody1138557244796875624asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525333584,"filename":"image_18082025_15_54_14_9643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/538b8184ff1551ffcae48169ddb39303.jpg","text":"TemporaryFile(/tmp/multipartBody2004876498431157941asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525333584,"filename":"image_18082025_15_54_34_9622.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377706322","file1":"1377706321","file0":"1377706320","file4":"1377706326","file5":"1377706328","file3":"1377706324"},"map_files_photo_id_array":[{"photo_id":"1377706328","filename":"file5"},{"photo_id":"1377706322","filename":"file2"},{"photo_id":"1377706326","filename":"file4"},{"photo_id":"1377706321","filename":"file1"},{"photo_id":"1377706320","filename":"file0"},{"photo_id":"1377706324","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377706320":["hashtag1","hashtag2"]},{"1377706326":["hashtag1","hashtag2"]},{"1377706328":["hashtag1","hashtag2"]},{"1377706322":["hashtag1","hashtag2"]},{"1377706324":["hashtag1","hashtag2"]},{"1377706321":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377706320, 1377706326, 1377706328, 1377706322, 1377706324, 1377706321)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.56776237487793 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:55:17.153224
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/55/image_18082025_15_55_45_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/15/55/image_18082025_15_55_34_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/15/55/image_18082025_15_55_25_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/15/55/image_18082025_15_55_15_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/15/54/image_18082025_15_55_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/15/54/image_18082025_15_54_55_9629.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/55/image_18082025_15_55_45_10618.jpg', '/home/nano/Desktop/images/18082025/15/55/image_18082025_15_55_34_9635.jpg', '/home/nano/Desktop/images/18082025/15/55/image_18082025_15_55_25_9641.jpg', '/home/nano/Desktop/images/18082025/15/55/image_18082025_15_55_15_10652.jpg', '/home/nano/Desktop/images/18082025/15/54/image_18082025_15_55_04_9639.jpg', '/home/nano/Desktop/images/18082025/15/54/image_18082025_15_54_55_9629.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/55/image_18082025_15_55_45_10618.jpg
/home/nano/Desktop/images/18082025/15/55/image_18082025_15_55_34_9635.jpg
/home/nano/Desktop/images/18082025/15/55/image_18082025_15_55_25_9641.jpg
/home/nano/Desktop/images/18082025/15/55/image_18082025_15_55_15_10652.jpg
/home/nano/Desktop/images/18082025/15/54/image_18082025_15_55_04_9639.jpg
/home/nano/Desktop/images/18082025/15/54/image_18082025_15_54_55_9629.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377706341","1377706335","1377706343","1377706334","1377706337","1377706339"],"photo_ids_order":["1377706334","1377706335","1377706337","1377706339","1377706341","1377706343"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b30568a79071a5dad35ef87407978775.jpg","text":"TemporaryFile(/tmp/multipartBody134983582144460358asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525378422,"filename":"image_18082025_15_55_04_9639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/66f54eca627d616f27bcbc829ff59573.jpg","text":"TemporaryFile(/tmp/multipartBody8291507832398733576asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525378422,"filename":"image_18082025_15_55_34_9635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/834bff08c4f4b4c06b49bc1d993c1fdd.jpg","text":"TemporaryFile(/tmp/multipartBody6117542178316589295asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525378422,"filename":"image_18082025_15_54_55_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c1e09d7ce3263d3ee62152ee9a341e4b.jpg","text":"TemporaryFile(/tmp/multipartBody9170074212210208261asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525378422,"filename":"image_18082025_15_55_45_10618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dc0eace2aabc1e64d596229d0c539e39.jpg","text":"TemporaryFile(/tmp/multipartBody4910623081101451516asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525378422,"filename":"image_18082025_15_55_25_9641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1124a1b319c6483c951656a2aec5b7bd.jpg","text":"TemporaryFile(/tmp/multipartBody1226556034531654296asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525378422,"filename":"image_18082025_15_55_15_10652.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377706337","file1":"1377706335","file0":"1377706334","file4":"1377706341","file5":"1377706343","file3":"1377706339"},"map_files_photo_id_array":[{"photo_id":"1377706343","filename":"file5"},{"photo_id":"1377706337","filename":"file2"},{"photo_id":"1377706341","filename":"file4"},{"photo_id":"1377706335","filename":"file1"},{"photo_id":"1377706334","filename":"file0"},{"photo_id":"1377706339","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377706341":["hashtag1","hashtag2"]},{"1377706335":["hashtag1","hashtag2"]},{"1377706343":["hashtag1","hashtag2"]},{"1377706334":["hashtag1","hashtag2"]},{"1377706337":["hashtag1","hashtag2"]},{"1377706339":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377706341, 1377706335, 1377706343, 1377706334, 1377706337, 1377706339)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.269630432128906 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:56:02.798270
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/35/image_18082025_10_35_24_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/10/35/image_18082025_10_35_15_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/10/34/image_18082025_10_35_04_9598.jpg', 2), ('/home/nano/Desktop/images/18082025/10/34/image_18082025_10_34_55_9599.jpg', 2), ('/home/nano/Desktop/images/18082025/10/34/image_18082025_10_34_45_10603.jpg', 2), ('/home/nano/Desktop/images/18082025/10/34/image_18082025_10_34_34_9600.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/35/image_18082025_10_35_24_9625.jpg', '/home/nano/Desktop/images/18082025/10/35/image_18082025_10_35_15_10631.jpg', '/home/nano/Desktop/images/18082025/10/34/image_18082025_10_35_04_9598.jpg', '/home/nano/Desktop/images/18082025/10/34/image_18082025_10_34_55_9599.jpg', '/home/nano/Desktop/images/18082025/10/34/image_18082025_10_34_45_10603.jpg', '/home/nano/Desktop/images/18082025/10/34/image_18082025_10_34_34_9600.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/35/image_18082025_10_35_24_9625.jpg
/home/nano/Desktop/images/18082025/10/35/image_18082025_10_35_15_10631.jpg
/home/nano/Desktop/images/18082025/10/34/image_18082025_10_35_04_9598.jpg
/home/nano/Desktop/images/18082025/10/34/image_18082025_10_34_55_9599.jpg
/home/nano/Desktop/images/18082025/10/34/image_18082025_10_34_45_10603.jpg
/home/nano/Desktop/images/18082025/10/34/image_18082025_10_34_34_9600.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377706350","1377706347","1377706352","1377706349","1377706354","1377706357"],"photo_ids_order":["1377706347","1377706349","1377706350","1377706352","1377706354","1377706357"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/feced21ed3c829ef0d986672cfb001d4.jpg","text":"TemporaryFile(/tmp/multipartBody8691325064755238669asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525423931,"filename":"image_18082025_10_35_04_9598.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/aa0ed385ad332fa87bc66a484f631baf.jpg","text":"TemporaryFile(/tmp/multipartBody7397849041772218595asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525423931,"filename":"image_18082025_10_35_24_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/194169d3581258fb2cf8ba0ee4d40e9b.jpg","text":"TemporaryFile(/tmp/multipartBody3062001622242326639asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525423931,"filename":"image_18082025_10_34_55_9599.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a53775dbad1a6aefc7bba8f83504100a.jpg","text":"TemporaryFile(/tmp/multipartBody6265309487269928778asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525423931,"filename":"image_18082025_10_35_15_10631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4591fe5315030bd68b2e99798d611885.jpg","text":"TemporaryFile(/tmp/multipartBody2595787581434743677asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525423931,"filename":"image_18082025_10_34_45_10603.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4cf184e3ed2c8070e2904cba7ae09372.jpg","text":"TemporaryFile(/tmp/multipartBody1931894088527236442asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525423931,"filename":"image_18082025_10_34_34_9600.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377706350","file1":"1377706349","file0":"1377706347","file4":"1377706354","file5":"1377706357","file3":"1377706352"},"map_files_photo_id_array":[{"photo_id":"1377706357","filename":"file5"},{"photo_id":"1377706350","filename":"file2"},{"photo_id":"1377706354","filename":"file4"},{"photo_id":"1377706349","filename":"file1"},{"photo_id":"1377706347","filename":"file0"},{"photo_id":"1377706352","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377706350":["hashtag1","hashtag2"]},{"1377706347":["hashtag1","hashtag2"]},{"1377706352":["hashtag1","hashtag2"]},{"1377706349":["hashtag1","hashtag2"]},{"1377706354":["hashtag1","hashtag2"]},{"1377706357":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377706350, 1377706347, 1377706352, 1377706349, 1377706354, 1377706357)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.75833749771118 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:56:47.234070
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/56/image_18082025_15_56_45_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/15/56/image_18082025_15_56_35_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/15/56/image_18082025_15_56_24_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/15/56/image_18082025_15_56_15_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/15/55/image_18082025_15_56_04_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/15/55/image_18082025_15_55_54_9608.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/56/image_18082025_15_56_45_9610.jpg', '/home/nano/Desktop/images/18082025/15/56/image_18082025_15_56_35_10626.jpg', '/home/nano/Desktop/images/18082025/15/56/image_18082025_15_56_24_9630.jpg', '/home/nano/Desktop/images/18082025/15/56/image_18082025_15_56_15_10646.jpg', '/home/nano/Desktop/images/18082025/15/55/image_18082025_15_56_04_9628.jpg', '/home/nano/Desktop/images/18082025/15/55/image_18082025_15_55_54_9608.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/56/image_18082025_15_56_45_9610.jpg
/home/nano/Desktop/images/18082025/15/56/image_18082025_15_56_35_10626.jpg
/home/nano/Desktop/images/18082025/15/56/image_18082025_15_56_24_9630.jpg
/home/nano/Desktop/images/18082025/15/56/image_18082025_15_56_15_10646.jpg
/home/nano/Desktop/images/18082025/15/55/image_18082025_15_56_04_9628.jpg
/home/nano/Desktop/images/18082025/15/55/image_18082025_15_55_54_9608.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377706371","1377706370","1377706373","1377706372","1377706375","1377706377"],"photo_ids_order":["1377706370","1377706371","1377706372","1377706373","1377706375","1377706377"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/06cd1e7cf608fcabba972dd407e37b3b.jpg","text":"TemporaryFile(/tmp/multipartBody8205077945029353408asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525468601,"filename":"image_18082025_15_56_35_10626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ecf724c57f67bb965eabcb3b1a96269d.jpg","text":"TemporaryFile(/tmp/multipartBody6716443870047877251asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525468601,"filename":"image_18082025_15_56_45_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/785afc15adc311d7a84226dbbb525d9e.jpg","text":"TemporaryFile(/tmp/multipartBody3859397426930586534asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525468601,"filename":"image_18082025_15_56_15_10646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9edd515ca3917c61d995dd3167e22672.jpg","text":"TemporaryFile(/tmp/multipartBody4850073792349293279asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525468601,"filename":"image_18082025_15_56_24_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9535e45a25ec975eb2a44e34d87c7aff.jpg","text":"TemporaryFile(/tmp/multipartBody4052884100169783359asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525468601,"filename":"image_18082025_15_56_04_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f426654b90610fe4fa9ee2b4942bbd86.jpg","text":"TemporaryFile(/tmp/multipartBody2783144634906628351asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525468601,"filename":"image_18082025_15_55_54_9608.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377706372","file1":"1377706371","file0":"1377706370","file4":"1377706375","file5":"1377706377","file3":"1377706373"},"map_files_photo_id_array":[{"photo_id":"1377706377","filename":"file5"},{"photo_id":"1377706372","filename":"file2"},{"photo_id":"1377706375","filename":"file4"},{"photo_id":"1377706371","filename":"file1"},{"photo_id":"1377706370","filename":"file0"},{"photo_id":"1377706373","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377706371":["hashtag1","hashtag2"]},{"1377706370":["hashtag1","hashtag2"]},{"1377706373":["hashtag1","hashtag2"]},{"1377706372":["hashtag1","hashtag2"]},{"1377706375":["hashtag1","hashtag2"]},{"1377706377":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377706371, 1377706370, 1377706373, 1377706372, 1377706375, 1377706377)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.708236932754517 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:57:32.345098
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/57/image_18082025_15_57_44_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/15/57/image_18082025_15_57_35_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/15/57/image_18082025_15_57_24_9600.jpg', 2), ('/home/nano/Desktop/images/18082025/15/57/image_18082025_15_57_15_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/15/56/image_18082025_15_57_05_10633.jpg', 2), ('/home/nano/Desktop/images/18082025/15/56/image_18082025_15_56_54_9610.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/57/image_18082025_15_57_44_9634.jpg', '/home/nano/Desktop/images/18082025/15/57/image_18082025_15_57_35_10618.jpg', '/home/nano/Desktop/images/18082025/15/57/image_18082025_15_57_24_9600.jpg', '/home/nano/Desktop/images/18082025/15/57/image_18082025_15_57_15_9657.jpg', '/home/nano/Desktop/images/18082025/15/56/image_18082025_15_57_05_10633.jpg', '/home/nano/Desktop/images/18082025/15/56/image_18082025_15_56_54_9610.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/57/image_18082025_15_57_44_9634.jpg
/home/nano/Desktop/images/18082025/15/57/image_18082025_15_57_35_10618.jpg
/home/nano/Desktop/images/18082025/15/57/image_18082025_15_57_24_9600.jpg
/home/nano/Desktop/images/18082025/15/57/image_18082025_15_57_15_9657.jpg
/home/nano/Desktop/images/18082025/15/56/image_18082025_15_57_05_10633.jpg
/home/nano/Desktop/images/18082025/15/56/image_18082025_15_56_54_9610.jpg
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:58:02.794878
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/57/image_18082025_15_57_44_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/15/57/image_18082025_15_57_35_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/15/57/image_18082025_15_57_24_9600.jpg', 2), ('/home/nano/Desktop/images/18082025/15/57/image_18082025_15_57_15_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/15/56/image_18082025_15_57_05_10633.jpg', 2), ('/home/nano/Desktop/images/18082025/15/56/image_18082025_15_56_54_9610.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/57/image_18082025_15_57_44_9634.jpg', '/home/nano/Desktop/images/18082025/15/57/image_18082025_15_57_35_10618.jpg', '/home/nano/Desktop/images/18082025/15/57/image_18082025_15_57_24_9600.jpg', '/home/nano/Desktop/images/18082025/15/57/image_18082025_15_57_15_9657.jpg', '/home/nano/Desktop/images/18082025/15/56/image_18082025_15_57_05_10633.jpg', '/home/nano/Desktop/images/18082025/15/56/image_18082025_15_56_54_9610.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/57/image_18082025_15_57_44_9634.jpg
/home/nano/Desktop/images/18082025/15/57/image_18082025_15_57_35_10618.jpg
/home/nano/Desktop/images/18082025/15/57/image_18082025_15_57_24_9600.jpg
/home/nano/Desktop/images/18082025/15/57/image_18082025_15_57_15_9657.jpg
/home/nano/Desktop/images/18082025/15/56/image_18082025_15_57_05_10633.jpg
/home/nano/Desktop/images/18082025/15/56/image_18082025_15_56_54_9610.jpg
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377706407","1377706399","1377706403","1377706402","1377706405","1377706408"],"photo_ids_order":["1377706399","1377706402","1377706403","1377706405","1377706407","1377706408"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b273931dfaf26b3eaed9560635877950.jpg","text":"TemporaryFile(/tmp/multipartBody1312037274673076466asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525544057,"filename":"image_18082025_15_57_05_10633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/072df28de572e6b552a7eb809e3b9719.jpg","text":"TemporaryFile(/tmp/multipartBody4261299142058933973asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525544057,"filename":"image_18082025_15_57_44_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/68f5995633da892bd5b293dc90ee1efd.jpg","text":"TemporaryFile(/tmp/multipartBody8169194730930891497asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525544057,"filename":"image_18082025_15_57_24_9600.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4104f77262a205c65426eb209008a415.jpg","text":"TemporaryFile(/tmp/multipartBody3927277683393141483asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525544057,"filename":"image_18082025_15_57_35_10618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8ced7b2de1d84f5d35988ff0adee86e0.jpg","text":"TemporaryFile(/tmp/multipartBody3221974760746429267asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525544057,"filename":"image_18082025_15_57_15_9657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7a09100495774c2ab21cd2e0c331fa8f.jpg","text":"TemporaryFile(/tmp/multipartBody7011646367685638167asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525544057,"filename":"image_18082025_15_56_54_9610.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377706403","file1":"1377706402","file0":"1377706399","file4":"1377706407","file5":"1377706408","file3":"1377706405"},"map_files_photo_id_array":[{"photo_id":"1377706408","filename":"file5"},{"photo_id":"1377706403","filename":"file2"},{"photo_id":"1377706407","filename":"file4"},{"photo_id":"1377706402","filename":"file1"},{"photo_id":"1377706399","filename":"file0"},{"photo_id":"1377706405","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377706407":["hashtag1","hashtag2"]},{"1377706399":["hashtag1","hashtag2"]},{"1377706403":["hashtag1","hashtag2"]},{"1377706402":["hashtag1","hashtag2"]},{"1377706405":["hashtag1","hashtag2"]},{"1377706408":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377706407, 1377706399, 1377706403, 1377706402, 1377706405, 1377706408)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.771188259124756 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:59:03.724467
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/34/image_18082025_10_34_25_10608.jpg', 2), ('/home/nano/Desktop/images/18082025/10/34/image_18082025_10_34_14_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/10/33/image_18082025_10_34_05_9597.jpg', 2), ('/home/nano/Desktop/images/18082025/10/33/image_18082025_10_33_55_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/10/33/image_18082025_10_33_44_9600.jpg', 2), ('/home/nano/Desktop/images/18082025/10/33/image_18082025_10_33_35_10607.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/34/image_18082025_10_34_25_10608.jpg', '/home/nano/Desktop/images/18082025/10/34/image_18082025_10_34_14_9627.jpg', '/home/nano/Desktop/images/18082025/10/33/image_18082025_10_34_05_9597.jpg', '/home/nano/Desktop/images/18082025/10/33/image_18082025_10_33_55_10626.jpg', '/home/nano/Desktop/images/18082025/10/33/image_18082025_10_33_44_9600.jpg', '/home/nano/Desktop/images/18082025/10/33/image_18082025_10_33_35_10607.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/34/image_18082025_10_34_25_10608.jpg
/home/nano/Desktop/images/18082025/10/34/image_18082025_10_34_14_9627.jpg
/home/nano/Desktop/images/18082025/10/33/image_18082025_10_34_05_9597.jpg
/home/nano/Desktop/images/18082025/10/33/image_18082025_10_33_55_10626.jpg
/home/nano/Desktop/images/18082025/10/33/image_18082025_10_33_44_9600.jpg
/home/nano/Desktop/images/18082025/10/33/image_18082025_10_33_35_10607.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377706413","1377706418","1377706421","1377706415","1377706423","1377706411"],"photo_ids_order":["1377706411","1377706413","1377706415","1377706418","1377706421","1377706423"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/656bc62ef17b6fdf1db485b630efa04b.jpg","text":"TemporaryFile(/tmp/multipartBody8951611502486820439asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525604824,"filename":"image_18082025_10_34_14_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cd6fa53d543f83eb5bfe25850962633d.jpg","text":"TemporaryFile(/tmp/multipartBody5566368261324199697asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525604824,"filename":"image_18082025_10_33_55_10626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fe1ec11bdf5c25906ed68296c7cb8b4e.jpg","text":"TemporaryFile(/tmp/multipartBody9193942994160975785asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525604824,"filename":"image_18082025_10_33_44_9600.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3195504cc3b68f9d1a40f9b7b9839255.jpg","text":"TemporaryFile(/tmp/multipartBody4037859365676311067asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525604824,"filename":"image_18082025_10_34_05_9597.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ca959516553770563b18fe7f69465adb.jpg","text":"TemporaryFile(/tmp/multipartBody1642058916634453459asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525604824,"filename":"image_18082025_10_33_35_10607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c13a10f1570860be8f7005486e5bed38.jpg","text":"TemporaryFile(/tmp/multipartBody7718661842626050611asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525604824,"filename":"image_18082025_10_34_25_10608.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377706415","file1":"1377706413","file0":"1377706411","file4":"1377706421","file5":"1377706423","file3":"1377706418"},"map_files_photo_id_array":[{"photo_id":"1377706423","filename":"file5"},{"photo_id":"1377706415","filename":"file2"},{"photo_id":"1377706421","filename":"file4"},{"photo_id":"1377706413","filename":"file1"},{"photo_id":"1377706411","filename":"file0"},{"photo_id":"1377706418","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377706413":["hashtag1","hashtag2"]},{"1377706418":["hashtag1","hashtag2"]},{"1377706421":["hashtag1","hashtag2"]},{"1377706415":["hashtag1","hashtag2"]},{"1377706423":["hashtag1","hashtag2"]},{"1377706411":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377706413, 1377706418, 1377706421, 1377706415, 1377706423, 1377706411)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.652313470840454 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 15:59:47.689368
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/15/59/image_18082025_15_59_45_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/15/59/image_18082025_15_59_34_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/15/59/image_18082025_15_59_25_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/15/59/image_18082025_15_59_14_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/15/58/image_18082025_15_59_04_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/15/58/image_18082025_15_58_55_10619.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/15/59/image_18082025_15_59_45_10655.jpg', '/home/nano/Desktop/images/18082025/15/59/image_18082025_15_59_34_9608.jpg', '/home/nano/Desktop/images/18082025/15/59/image_18082025_15_59_25_10640.jpg', '/home/nano/Desktop/images/18082025/15/59/image_18082025_15_59_14_9644.jpg', '/home/nano/Desktop/images/18082025/15/58/image_18082025_15_59_04_9621.jpg', '/home/nano/Desktop/images/18082025/15/58/image_18082025_15_58_55_10619.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/15/59/image_18082025_15_59_45_10655.jpg
/home/nano/Desktop/images/18082025/15/59/image_18082025_15_59_34_9608.jpg
/home/nano/Desktop/images/18082025/15/59/image_18082025_15_59_25_10640.jpg
/home/nano/Desktop/images/18082025/15/59/image_18082025_15_59_14_9644.jpg
/home/nano/Desktop/images/18082025/15/58/image_18082025_15_59_04_9621.jpg
/home/nano/Desktop/images/18082025/15/58/image_18082025_15_58_55_10619.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377706437","1377706451","1377706439","1377706448","1377706441","1377706444"],"photo_ids_order":["1377706437","1377706439","1377706441","1377706444","1377706448","1377706451"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/74d43289cf8988b676868b48e15c5d21.jpg","text":"TemporaryFile(/tmp/multipartBody3869030300699703637asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525649059,"filename":"image_18082025_15_59_45_10655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c9fb3c732136c8124213c5b853510839.jpg","text":"TemporaryFile(/tmp/multipartBody9121889567190842859asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525649059,"filename":"image_18082025_15_58_55_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/73fa33bb05fcf3171bcadcafeeca2084.jpg","text":"TemporaryFile(/tmp/multipartBody5905161429556834536asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525649059,"filename":"image_18082025_15_59_34_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/65a43ac8f490d79d55594ae6ab81638a.jpg","text":"TemporaryFile(/tmp/multipartBody4550985719858332152asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525649059,"filename":"image_18082025_15_59_04_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/376b15e228a4de87b30eb2f6fb56167e.jpg","text":"TemporaryFile(/tmp/multipartBody5705993996797400045asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525649059,"filename":"image_18082025_15_59_25_10640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/67f91540eaa1afee78a2149338dec13b.jpg","text":"TemporaryFile(/tmp/multipartBody2651633948106633545asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525649059,"filename":"image_18082025_15_59_14_9644.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377706441","file1":"1377706439","file0":"1377706437","file4":"1377706448","file5":"1377706451","file3":"1377706444"},"map_files_photo_id_array":[{"photo_id":"1377706451","filename":"file5"},{"photo_id":"1377706441","filename":"file2"},{"photo_id":"1377706448","filename":"file4"},{"photo_id":"1377706439","filename":"file1"},{"photo_id":"1377706437","filename":"file0"},{"photo_id":"1377706444","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377706437":["hashtag1","hashtag2"]},{"1377706451":["hashtag1","hashtag2"]},{"1377706439":["hashtag1","hashtag2"]},{"1377706448":["hashtag1","hashtag2"]},{"1377706441":["hashtag1","hashtag2"]},{"1377706444":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377706437, 1377706451, 1377706439, 1377706448, 1377706441, 1377706444)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.8088595867157 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:00:31.810905
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/00/image_18082025_16_00_45_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/16/00/image_18082025_16_00_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/16/00/image_18082025_16_00_25_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/16/00/image_18082025_16_00_15_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/15/59/image_18082025_16_00_04_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/15/59/image_18082025_15_59_55_9643.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/00/image_18082025_16_00_45_10623.jpg', '/home/nano/Desktop/images/18082025/16/00/image_18082025_16_00_34_9642.jpg', '/home/nano/Desktop/images/18082025/16/00/image_18082025_16_00_25_9620.jpg', '/home/nano/Desktop/images/18082025/16/00/image_18082025_16_00_15_10654.jpg', '/home/nano/Desktop/images/18082025/15/59/image_18082025_16_00_04_9613.jpg', '/home/nano/Desktop/images/18082025/15/59/image_18082025_15_59_55_9643.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/00/image_18082025_16_00_45_10623.jpg
/home/nano/Desktop/images/18082025/16/00/image_18082025_16_00_34_9642.jpg
/home/nano/Desktop/images/18082025/16/00/image_18082025_16_00_25_9620.jpg
/home/nano/Desktop/images/18082025/16/00/image_18082025_16_00_15_10654.jpg
/home/nano/Desktop/images/18082025/15/59/image_18082025_16_00_04_9613.jpg
/home/nano/Desktop/images/18082025/15/59/image_18082025_15_59_55_9643.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377706470","1377706463","1377706466","1377706471","1377706465","1377706468"],"photo_ids_order":["1377706463","1377706465","1377706466","1377706468","1377706470","1377706471"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4688c4f0802432d32a5fe92c39b20cf6.jpg","text":"TemporaryFile(/tmp/multipartBody912608496132228284asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525693235,"filename":"image_18082025_16_00_04_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/405c1176b148741aa1f0ee843c29c948.jpg","text":"TemporaryFile(/tmp/multipartBody8720497261781521053asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525693235,"filename":"image_18082025_16_00_45_10623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c70e34fc048e249de43219825fef1107.jpg","text":"TemporaryFile(/tmp/multipartBody3723171697952652668asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525693235,"filename":"image_18082025_16_00_25_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4926bef97ba14cae1581c7ef2c83ae9b.jpg","text":"TemporaryFile(/tmp/multipartBody4796508097110554220asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525693235,"filename":"image_18082025_15_59_55_9643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b91a80557ac3daeef2530b47c4785e83.jpg","text":"TemporaryFile(/tmp/multipartBody7436828031857515582asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525693235,"filename":"image_18082025_16_00_34_9642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/08399c1bc55fc6b12431da52087e891b.jpg","text":"TemporaryFile(/tmp/multipartBody7684950443856868498asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525693235,"filename":"image_18082025_16_00_15_10654.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377706466","file1":"1377706465","file0":"1377706463","file4":"1377706470","file5":"1377706471","file3":"1377706468"},"map_files_photo_id_array":[{"photo_id":"1377706471","filename":"file5"},{"photo_id":"1377706466","filename":"file2"},{"photo_id":"1377706470","filename":"file4"},{"photo_id":"1377706465","filename":"file1"},{"photo_id":"1377706463","filename":"file0"},{"photo_id":"1377706468","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377706470":["hashtag1","hashtag2"]},{"1377706463":["hashtag1","hashtag2"]},{"1377706466":["hashtag1","hashtag2"]},{"1377706471":["hashtag1","hashtag2"]},{"1377706465":["hashtag1","hashtag2"]},{"1377706468":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377706470, 1377706463, 1377706466, 1377706471, 1377706465, 1377706468)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.844954252243042 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:01:16.943971
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/01/image_18082025_16_01_45_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/16/01/image_18082025_16_01_35_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/16/01/image_18082025_16_01_24_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/16/01/image_18082025_16_01_15_10687.jpg', 2), ('/home/nano/Desktop/images/18082025/16/00/image_18082025_16_01_04_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/16/00/image_18082025_16_00_54_9612.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/01/image_18082025_16_01_45_9615.jpg', '/home/nano/Desktop/images/18082025/16/01/image_18082025_16_01_35_10663.jpg', '/home/nano/Desktop/images/18082025/16/01/image_18082025_16_01_24_9624.jpg', '/home/nano/Desktop/images/18082025/16/01/image_18082025_16_01_15_10687.jpg', '/home/nano/Desktop/images/18082025/16/00/image_18082025_16_01_04_9648.jpg', '/home/nano/Desktop/images/18082025/16/00/image_18082025_16_00_54_9612.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/01/image_18082025_16_01_45_9615.jpg
/home/nano/Desktop/images/18082025/16/01/image_18082025_16_01_35_10663.jpg
/home/nano/Desktop/images/18082025/16/01/image_18082025_16_01_24_9624.jpg
/home/nano/Desktop/images/18082025/16/01/image_18082025_16_01_15_10687.jpg
/home/nano/Desktop/images/18082025/16/00/image_18082025_16_01_04_9648.jpg
/home/nano/Desktop/images/18082025/16/00/image_18082025_16_00_54_9612.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377706488","1377706490","1377706483","1377706492","1377706486","1377706480"],"photo_ids_order":["1377706480","1377706483","1377706486","1377706488","1377706490","1377706492"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/46a030a888c0f3e9a03c09ad276be7ff.jpg","text":"TemporaryFile(/tmp/multipartBody8895602817594798121asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525738241,"filename":"image_18082025_16_01_15_10687.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1edf77b42e9fc0cb58acfc41b6a8de89.jpg","text":"TemporaryFile(/tmp/multipartBody6730649030178419955asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525738241,"filename":"image_18082025_16_01_04_9648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/96d047bdd784a19ea55a20c94fdc9e3b.jpg","text":"TemporaryFile(/tmp/multipartBody849726313648048218asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525738241,"filename":"image_18082025_16_01_35_10663.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/85f08f35761a9287c81e895f96d7c7c3.jpg","text":"TemporaryFile(/tmp/multipartBody9140027431008197440asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525738241,"filename":"image_18082025_16_00_54_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a03be4c6db5854275d4d2c1447fdf859.jpg","text":"TemporaryFile(/tmp/multipartBody4736842802742028933asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525738241,"filename":"image_18082025_16_01_24_9624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/09c784890f433e3a681ebeacd373bf1a.jpg","text":"TemporaryFile(/tmp/multipartBody9050046178106172986asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525738241,"filename":"image_18082025_16_01_45_9615.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377706486","file1":"1377706483","file0":"1377706480","file4":"1377706490","file5":"1377706492","file3":"1377706488"},"map_files_photo_id_array":[{"photo_id":"1377706492","filename":"file5"},{"photo_id":"1377706486","filename":"file2"},{"photo_id":"1377706490","filename":"file4"},{"photo_id":"1377706483","filename":"file1"},{"photo_id":"1377706480","filename":"file0"},{"photo_id":"1377706488","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377706488":["hashtag1","hashtag2"]},{"1377706490":["hashtag1","hashtag2"]},{"1377706483":["hashtag1","hashtag2"]},{"1377706492":["hashtag1","hashtag2"]},{"1377706486":["hashtag1","hashtag2"]},{"1377706480":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377706488, 1377706490, 1377706483, 1377706492, 1377706486, 1377706480)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.96542501449585 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:02:02.538355
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/02/image_18082025_16_02_35_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/15/58/image_18082025_15_58_44_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/15/58/image_18082025_15_58_35_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/15/58/image_18082025_15_58_25_10643.jpg', 2), ('/home/nano/Desktop/images/18082025/15/58/image_18082025_15_58_14_9676.jpg', 2), ('/home/nano/Desktop/images/18082025/15/57/image_18082025_15_58_05_9624.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/02/image_18082025_16_02_35_10623.jpg', '/home/nano/Desktop/images/18082025/15/58/image_18082025_15_58_44_9633.jpg', '/home/nano/Desktop/images/18082025/15/58/image_18082025_15_58_35_9633.jpg', '/home/nano/Desktop/images/18082025/15/58/image_18082025_15_58_25_10643.jpg', '/home/nano/Desktop/images/18082025/15/58/image_18082025_15_58_14_9676.jpg', '/home/nano/Desktop/images/18082025/15/57/image_18082025_15_58_05_9624.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/02/image_18082025_16_02_35_10623.jpg
/home/nano/Desktop/images/18082025/15/58/image_18082025_15_58_44_9633.jpg
/home/nano/Desktop/images/18082025/15/58/image_18082025_15_58_35_9633.jpg
/home/nano/Desktop/images/18082025/15/58/image_18082025_15_58_25_10643.jpg
/home/nano/Desktop/images/18082025/15/58/image_18082025_15_58_14_9676.jpg
/home/nano/Desktop/images/18082025/15/57/image_18082025_15_58_05_9624.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377706512","1377706501","1377706510","1377706504","1377706513","1377706507"],"photo_ids_order":["1377706501","1377706504","1377706507","1377706510","1377706512","1377706513"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2c9431d1d113eb7a4c9d580bbc4224d9.jpg","text":"TemporaryFile(/tmp/multipartBody7083110947236095583asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525783684,"filename":"image_18082025_15_58_14_9676.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/54f3f90cd69fae319dd1806258fda75d.jpg","text":"TemporaryFile(/tmp/multipartBody5499555303159173780asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525783684,"filename":"image_18082025_16_02_35_10623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cd6f2d82e420f12e0e8245cfb3429589.jpg","text":"TemporaryFile(/tmp/multipartBody5065729871587549106asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525783684,"filename":"image_18082025_15_58_25_10643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d17f9c7f76e1fd319a686b61621e1796.jpg","text":"TemporaryFile(/tmp/multipartBody5054729679298903664asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525783684,"filename":"image_18082025_15_58_44_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9b783cb3733e2af144bb9c5b78887cd7.jpg","text":"TemporaryFile(/tmp/multipartBody8499511570075657029asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525783684,"filename":"image_18082025_15_58_05_9624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/153e51b8342fec02bd796d37515501d0.jpg","text":"TemporaryFile(/tmp/multipartBody5101064214448674814asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525783684,"filename":"image_18082025_15_58_35_9633.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377706507","file1":"1377706504","file0":"1377706501","file4":"1377706512","file5":"1377706513","file3":"1377706510"},"map_files_photo_id_array":[{"photo_id":"1377706513","filename":"file5"},{"photo_id":"1377706507","filename":"file2"},{"photo_id":"1377706512","filename":"file4"},{"photo_id":"1377706504","filename":"file1"},{"photo_id":"1377706501","filename":"file0"},{"photo_id":"1377706510","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377706512":["hashtag1","hashtag2"]},{"1377706501":["hashtag1","hashtag2"]},{"1377706510":["hashtag1","hashtag2"]},{"1377706504":["hashtag1","hashtag2"]},{"1377706513":["hashtag1","hashtag2"]},{"1377706507":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377706512, 1377706501, 1377706510, 1377706504, 1377706513, 1377706507)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.6876380443573 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:02:46.964770
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/02/image_18082025_16_02_44_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/16/02/image_18082025_16_02_24_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/16/02/image_18082025_16_02_15_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/16/01/image_18082025_16_02_05_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/16/01/image_18082025_16_01_54_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/15/57/image_18082025_15_57_55_10636.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/02/image_18082025_16_02_44_9664.jpg', '/home/nano/Desktop/images/18082025/16/02/image_18082025_16_02_24_9607.jpg', '/home/nano/Desktop/images/18082025/16/02/image_18082025_16_02_15_9654.jpg', '/home/nano/Desktop/images/18082025/16/01/image_18082025_16_02_05_10638.jpg', '/home/nano/Desktop/images/18082025/16/01/image_18082025_16_01_54_9645.jpg', '/home/nano/Desktop/images/18082025/15/57/image_18082025_15_57_55_10636.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/02/image_18082025_16_02_44_9664.jpg
/home/nano/Desktop/images/18082025/16/02/image_18082025_16_02_24_9607.jpg
/home/nano/Desktop/images/18082025/16/02/image_18082025_16_02_15_9654.jpg
/home/nano/Desktop/images/18082025/16/01/image_18082025_16_02_05_10638.jpg
/home/nano/Desktop/images/18082025/16/01/image_18082025_16_01_54_9645.jpg
/home/nano/Desktop/images/18082025/15/57/image_18082025_15_57_55_10636.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377706527","1377706524","1377706535","1377706526","1377706529","1377706531"],"photo_ids_order":["1377706524","1377706526","1377706527","1377706529","1377706531","1377706535"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/53af07aa9519aa339a104aae98f0d148.jpg","text":"TemporaryFile(/tmp/multipartBody2539701723385142696asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525828340,"filename":"image_18082025_16_02_15_9654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/23592fa97a41e51266136253f036a351.jpg","text":"TemporaryFile(/tmp/multipartBody3361674678438026675asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525828340,"filename":"image_18082025_16_02_44_9664.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1ecceff7d995453f2382f626bce3821a.jpg","text":"TemporaryFile(/tmp/multipartBody4734899533303804986asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525828340,"filename":"image_18082025_15_57_55_10636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a96d7f12b267ded7b6880c037f71ea8e.jpg","text":"TemporaryFile(/tmp/multipartBody7847766643281691467asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525828340,"filename":"image_18082025_16_02_24_9607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/931e13dcddbcdbd560af723f2b1bb16b.jpg","text":"TemporaryFile(/tmp/multipartBody4773832073925713321asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525828340,"filename":"image_18082025_16_02_05_10638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e55ce049bf602ac21cacfbcee614dd2c.jpg","text":"TemporaryFile(/tmp/multipartBody4421618184570430116asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525828340,"filename":"image_18082025_16_01_54_9645.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377706527","file1":"1377706526","file0":"1377706524","file4":"1377706531","file5":"1377706535","file3":"1377706529"},"map_files_photo_id_array":[{"photo_id":"1377706535","filename":"file5"},{"photo_id":"1377706527","filename":"file2"},{"photo_id":"1377706531","filename":"file4"},{"photo_id":"1377706526","filename":"file1"},{"photo_id":"1377706524","filename":"file0"},{"photo_id":"1377706529","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377706527":["hashtag1","hashtag2"]},{"1377706524":["hashtag1","hashtag2"]},{"1377706535":["hashtag1","hashtag2"]},{"1377706526":["hashtag1","hashtag2"]},{"1377706529":["hashtag1","hashtag2"]},{"1377706531":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377706527, 1377706524, 1377706535, 1377706526, 1377706529, 1377706531)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.590470552444458 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:03:32.065966
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/03/image_18082025_16_03_44_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/16/03/image_18082025_16_03_35_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/16/03/image_18082025_16_03_25_10610.jpg', 2), ('/home/nano/Desktop/images/18082025/16/03/image_18082025_16_03_14_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/16/02/image_18082025_16_03_05_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/16/02/image_18082025_16_02_54_9637.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/03/image_18082025_16_03_44_9615.jpg', '/home/nano/Desktop/images/18082025/16/03/image_18082025_16_03_35_9624.jpg', '/home/nano/Desktop/images/18082025/16/03/image_18082025_16_03_25_10610.jpg', '/home/nano/Desktop/images/18082025/16/03/image_18082025_16_03_14_9649.jpg', '/home/nano/Desktop/images/18082025/16/02/image_18082025_16_03_05_10645.jpg', '/home/nano/Desktop/images/18082025/16/02/image_18082025_16_02_54_9637.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/03/image_18082025_16_03_44_9615.jpg
/home/nano/Desktop/images/18082025/16/03/image_18082025_16_03_35_9624.jpg
/home/nano/Desktop/images/18082025/16/03/image_18082025_16_03_25_10610.jpg
/home/nano/Desktop/images/18082025/16/03/image_18082025_16_03_14_9649.jpg
/home/nano/Desktop/images/18082025/16/02/image_18082025_16_03_05_10645.jpg
/home/nano/Desktop/images/18082025/16/02/image_18082025_16_02_54_9637.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377706551","1377706545","1377706554","1377706553","1377706550","1377706547"],"photo_ids_order":["1377706545","1377706547","1377706550","1377706551","1377706553","1377706554"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/18db0fd16a5ef836618b9513573d5a1a.jpg","text":"TemporaryFile(/tmp/multipartBody2652084062049884867asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525873351,"filename":"image_18082025_16_03_14_9649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0f62f5881ce55ab0b4c48cbcf5d1fe16.jpg","text":"TemporaryFile(/tmp/multipartBody8592318278486642195asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525873351,"filename":"image_18082025_16_03_44_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/68a59296342fc04ca5e2f218a19d0510.jpg","text":"TemporaryFile(/tmp/multipartBody5086984141093675815asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525873351,"filename":"image_18082025_16_02_54_9637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a8ac1a76875a1e288daa8eb1f42d76f9.jpg","text":"TemporaryFile(/tmp/multipartBody1455362945042430050asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525873351,"filename":"image_18082025_16_03_05_10645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e4f8bef362e7195ab775915058f7cf7a.jpg","text":"TemporaryFile(/tmp/multipartBody1437118353717113137asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525873351,"filename":"image_18082025_16_03_25_10610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9e47925912d3940603b2e510d988e745.jpg","text":"TemporaryFile(/tmp/multipartBody5536486368647430691asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525873351,"filename":"image_18082025_16_03_35_9624.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377706550","file1":"1377706547","file0":"1377706545","file4":"1377706553","file5":"1377706554","file3":"1377706551"},"map_files_photo_id_array":[{"photo_id":"1377706554","filename":"file5"},{"photo_id":"1377706550","filename":"file2"},{"photo_id":"1377706553","filename":"file4"},{"photo_id":"1377706547","filename":"file1"},{"photo_id":"1377706545","filename":"file0"},{"photo_id":"1377706551","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377706551":["hashtag1","hashtag2"]},{"1377706545":["hashtag1","hashtag2"]},{"1377706554":["hashtag1","hashtag2"]},{"1377706553":["hashtag1","hashtag2"]},{"1377706550":["hashtag1","hashtag2"]},{"1377706547":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377706551, 1377706545, 1377706554, 1377706553, 1377706550, 1377706547)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.81832003593445 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:04:17.162074
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/04/image_18082025_16_04_44_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/16/04/image_18082025_16_04_34_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/16/04/image_18082025_16_04_25_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/16/04/image_18082025_16_04_14_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/16/03/image_18082025_16_04_05_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/16/03/image_18082025_16_03_55_10626.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/04/image_18082025_16_04_44_9618.jpg', '/home/nano/Desktop/images/18082025/16/04/image_18082025_16_04_34_9629.jpg', '/home/nano/Desktop/images/18082025/16/04/image_18082025_16_04_25_10632.jpg', '/home/nano/Desktop/images/18082025/16/04/image_18082025_16_04_14_9655.jpg', '/home/nano/Desktop/images/18082025/16/03/image_18082025_16_04_05_9640.jpg', '/home/nano/Desktop/images/18082025/16/03/image_18082025_16_03_55_10626.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/04/image_18082025_16_04_44_9618.jpg
/home/nano/Desktop/images/18082025/16/04/image_18082025_16_04_34_9629.jpg
/home/nano/Desktop/images/18082025/16/04/image_18082025_16_04_25_10632.jpg
/home/nano/Desktop/images/18082025/16/04/image_18082025_16_04_14_9655.jpg
/home/nano/Desktop/images/18082025/16/03/image_18082025_16_04_05_9640.jpg
/home/nano/Desktop/images/18082025/16/03/image_18082025_16_03_55_10626.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377706572","1377706566","1377706571","1377706568","1377706570","1377706573"],"photo_ids_order":["1377706566","1377706568","1377706570","1377706571","1377706572","1377706573"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/77462f7d4e564d6842b7e599bb660507.jpg","text":"TemporaryFile(/tmp/multipartBody5723071397791175498asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525918557,"filename":"image_18082025_16_04_05_9640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/eb013b5c6093ddefdd8f392da33a6dee.jpg","text":"TemporaryFile(/tmp/multipartBody1596070188509251017asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525918557,"filename":"image_18082025_16_04_44_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/28d58e75bd5466bc58ba94f3856cab4c.jpg","text":"TemporaryFile(/tmp/multipartBody8749419253834347359asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525918557,"filename":"image_18082025_16_04_14_9655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/87585dd98b9c7fd603e78cab1d253809.jpg","text":"TemporaryFile(/tmp/multipartBody2614183916479493041asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525918557,"filename":"image_18082025_16_04_34_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c72bfeff6e0372014abc96a44fe43d2f.jpg","text":"TemporaryFile(/tmp/multipartBody7727417139579963744asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525918557,"filename":"image_18082025_16_04_25_10632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bc67a10b69e765426b1fec9f268dbac8.jpg","text":"TemporaryFile(/tmp/multipartBody1944357268358656016asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525918557,"filename":"image_18082025_16_03_55_10626.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377706570","file1":"1377706568","file0":"1377706566","file4":"1377706572","file5":"1377706573","file3":"1377706571"},"map_files_photo_id_array":[{"photo_id":"1377706573","filename":"file5"},{"photo_id":"1377706570","filename":"file2"},{"photo_id":"1377706572","filename":"file4"},{"photo_id":"1377706568","filename":"file1"},{"photo_id":"1377706566","filename":"file0"},{"photo_id":"1377706571","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377706572":["hashtag1","hashtag2"]},{"1377706566":["hashtag1","hashtag2"]},{"1377706571":["hashtag1","hashtag2"]},{"1377706568":["hashtag1","hashtag2"]},{"1377706570":["hashtag1","hashtag2"]},{"1377706573":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377706572, 1377706566, 1377706571, 1377706568, 1377706570, 1377706573)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.708492040634155 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:05:03.093463
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/33/image_18082025_10_33_24_9597.jpg', 2), ('/home/nano/Desktop/images/18082025/10/33/image_18082025_10_33_15_9595.jpg', 2), ('/home/nano/Desktop/images/18082025/10/32/image_18082025_10_33_05_10796.jpg', 2), ('/home/nano/Desktop/images/18082025/10/32/image_18082025_10_32_54_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/10/32/image_18082025_10_32_44_9792.jpg', 2), ('/home/nano/Desktop/images/18082025/10/32/image_18082025_10_32_35_9785.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/33/image_18082025_10_33_24_9597.jpg', '/home/nano/Desktop/images/18082025/10/33/image_18082025_10_33_15_9595.jpg', '/home/nano/Desktop/images/18082025/10/32/image_18082025_10_33_05_10796.jpg', '/home/nano/Desktop/images/18082025/10/32/image_18082025_10_32_54_9656.jpg', '/home/nano/Desktop/images/18082025/10/32/image_18082025_10_32_44_9792.jpg', '/home/nano/Desktop/images/18082025/10/32/image_18082025_10_32_35_9785.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/33/image_18082025_10_33_24_9597.jpg
/home/nano/Desktop/images/18082025/10/33/image_18082025_10_33_15_9595.jpg
/home/nano/Desktop/images/18082025/10/32/image_18082025_10_33_05_10796.jpg
/home/nano/Desktop/images/18082025/10/32/image_18082025_10_32_54_9656.jpg
/home/nano/Desktop/images/18082025/10/32/image_18082025_10_32_44_9792.jpg
/home/nano/Desktop/images/18082025/10/32/image_18082025_10_32_35_9785.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377706590","1377706584","1377706580","1377706582","1377706593","1377706587"],"photo_ids_order":["1377706580","1377706582","1377706584","1377706587","1377706590","1377706593"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/79f37e8cbc3892547f42dc3431cb58be.jpg","text":"TemporaryFile(/tmp/multipartBody3592242145298549039asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525964514,"filename":"image_18082025_10_32_44_9792.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b5063db716299f16a835caad4743fce2.jpg","text":"TemporaryFile(/tmp/multipartBody1396799963357270635asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525964514,"filename":"image_18082025_10_33_05_10796.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2ad1add83225407bdd32e0388bed1011.jpg","text":"TemporaryFile(/tmp/multipartBody4416852020405801302asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525964514,"filename":"image_18082025_10_33_24_9597.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5202980847c30e4e86ceac0b589d7b26.jpg","text":"TemporaryFile(/tmp/multipartBody5448811205806492818asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525964514,"filename":"image_18082025_10_33_15_9595.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a70fb56e86249f52c65a4689455f9e9a.jpg","text":"TemporaryFile(/tmp/multipartBody4052819414104218176asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525964514,"filename":"image_18082025_10_32_35_9785.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0f1470f4f238a71d4abbabf885e9ee93.jpg","text":"TemporaryFile(/tmp/multipartBody356838290303332623asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755525964514,"filename":"image_18082025_10_32_54_9656.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377706584","file1":"1377706582","file0":"1377706580","file4":"1377706590","file5":"1377706593","file3":"1377706587"},"map_files_photo_id_array":[{"photo_id":"1377706593","filename":"file5"},{"photo_id":"1377706584","filename":"file2"},{"photo_id":"1377706590","filename":"file4"},{"photo_id":"1377706582","filename":"file1"},{"photo_id":"1377706580","filename":"file0"},{"photo_id":"1377706587","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377706590":["hashtag1","hashtag2"]},{"1377706584":["hashtag1","hashtag2"]},{"1377706580":["hashtag1","hashtag2"]},{"1377706582":["hashtag1","hashtag2"]},{"1377706593":["hashtag1","hashtag2"]},{"1377706587":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377706590, 1377706584, 1377706580, 1377706582, 1377706593, 1377706587)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.66752552986145 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:05:47.288483
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/05/image_18082025_16_05_45_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/16/05/image_18082025_16_05_34_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/16/05/image_18082025_16_05_25_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/16/05/image_18082025_16_05_15_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/16/04/image_18082025_16_05_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/16/04/image_18082025_16_04_55_10626.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/05/image_18082025_16_05_45_10628.jpg', '/home/nano/Desktop/images/18082025/16/05/image_18082025_16_05_34_9623.jpg', '/home/nano/Desktop/images/18082025/16/05/image_18082025_16_05_25_9630.jpg', '/home/nano/Desktop/images/18082025/16/05/image_18082025_16_05_15_10650.jpg', '/home/nano/Desktop/images/18082025/16/04/image_18082025_16_05_04_9639.jpg', '/home/nano/Desktop/images/18082025/16/04/image_18082025_16_04_55_10626.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/05/image_18082025_16_05_45_10628.jpg
/home/nano/Desktop/images/18082025/16/05/image_18082025_16_05_34_9623.jpg
/home/nano/Desktop/images/18082025/16/05/image_18082025_16_05_25_9630.jpg
/home/nano/Desktop/images/18082025/16/05/image_18082025_16_05_15_10650.jpg
/home/nano/Desktop/images/18082025/16/04/image_18082025_16_05_04_9639.jpg
/home/nano/Desktop/images/18082025/16/04/image_18082025_16_04_55_10626.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.3054404258728027 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:06:02.946268
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/05/image_18082025_16_05_45_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/16/05/image_18082025_16_05_34_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/16/05/image_18082025_16_05_25_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/16/05/image_18082025_16_05_15_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/16/04/image_18082025_16_05_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/16/04/image_18082025_16_04_55_10626.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/05/image_18082025_16_05_45_10628.jpg', '/home/nano/Desktop/images/18082025/16/05/image_18082025_16_05_34_9623.jpg', '/home/nano/Desktop/images/18082025/16/05/image_18082025_16_05_25_9630.jpg', '/home/nano/Desktop/images/18082025/16/05/image_18082025_16_05_15_10650.jpg', '/home/nano/Desktop/images/18082025/16/04/image_18082025_16_05_04_9639.jpg', '/home/nano/Desktop/images/18082025/16/04/image_18082025_16_04_55_10626.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/05/image_18082025_16_05_45_10628.jpg
/home/nano/Desktop/images/18082025/16/05/image_18082025_16_05_34_9623.jpg
/home/nano/Desktop/images/18082025/16/05/image_18082025_16_05_25_9630.jpg
/home/nano/Desktop/images/18082025/16/05/image_18082025_16_05_15_10650.jpg
/home/nano/Desktop/images/18082025/16/04/image_18082025_16_05_04_9639.jpg
/home/nano/Desktop/images/18082025/16/04/image_18082025_16_04_55_10626.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377706625","1377706621","1377706615","1377706609","1377706618","1377706612"],"photo_ids_order":["1377706609","1377706612","1377706615","1377706618","1377706621","1377706625"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f37a47d204238ea8f48be3bbed3b6f73.jpg","text":"TemporaryFile(/tmp/multipartBody9084024456074603208asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526024546,"filename":"image_18082025_16_04_55_10626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/944b0fe80a4ece36ac4f20119a3440d0.jpg","text":"TemporaryFile(/tmp/multipartBody4694937949368580483asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526024546,"filename":"image_18082025_16_05_04_9639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d272f9db80510496cdb791c15a942224.jpg","text":"TemporaryFile(/tmp/multipartBody4103034024165859621asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526024546,"filename":"image_18082025_16_05_25_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e227eab8e7f36da2814aee7b68c4c8e5.jpg","text":"TemporaryFile(/tmp/multipartBody8679586058548842513asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526024546,"filename":"image_18082025_16_05_45_10628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e47bd234bd1ecdf883544bed46b43c34.jpg","text":"TemporaryFile(/tmp/multipartBody8289794240063181562asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526024546,"filename":"image_18082025_16_05_15_10650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fe4262abf0f18ebd5e30f8d08c7f8472.jpg","text":"TemporaryFile(/tmp/multipartBody6758390077305247315asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526024546,"filename":"image_18082025_16_05_34_9623.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377706615","file1":"1377706612","file0":"1377706609","file4":"1377706621","file5":"1377706625","file3":"1377706618"},"map_files_photo_id_array":[{"photo_id":"1377706625","filename":"file5"},{"photo_id":"1377706615","filename":"file2"},{"photo_id":"1377706621","filename":"file4"},{"photo_id":"1377706612","filename":"file1"},{"photo_id":"1377706609","filename":"file0"},{"photo_id":"1377706618","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377706625":["hashtag1","hashtag2"]},{"1377706621":["hashtag1","hashtag2"]},{"1377706615":["hashtag1","hashtag2"]},{"1377706609":["hashtag1","hashtag2"]},{"1377706618":["hashtag1","hashtag2"]},{"1377706612":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377706625, 1377706621, 1377706615, 1377706609, 1377706618, 1377706612)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.237369775772095 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:06:47.401259
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/06/image_18082025_16_06_45_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/16/06/image_18082025_16_06_35_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/16/06/image_18082025_16_06_24_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/16/06/image_18082025_16_06_15_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/16/05/image_18082025_16_06_04_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/16/05/image_18082025_16_05_55_9627.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/06/image_18082025_16_06_45_9614.jpg', '/home/nano/Desktop/images/18082025/16/06/image_18082025_16_06_35_10631.jpg', '/home/nano/Desktop/images/18082025/16/06/image_18082025_16_06_24_9629.jpg', '/home/nano/Desktop/images/18082025/16/06/image_18082025_16_06_15_10647.jpg', '/home/nano/Desktop/images/18082025/16/05/image_18082025_16_06_04_9636.jpg', '/home/nano/Desktop/images/18082025/16/05/image_18082025_16_05_55_9627.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/06/image_18082025_16_06_45_9614.jpg
/home/nano/Desktop/images/18082025/16/06/image_18082025_16_06_35_10631.jpg
/home/nano/Desktop/images/18082025/16/06/image_18082025_16_06_24_9629.jpg
/home/nano/Desktop/images/18082025/16/06/image_18082025_16_06_15_10647.jpg
/home/nano/Desktop/images/18082025/16/05/image_18082025_16_06_04_9636.jpg
/home/nano/Desktop/images/18082025/16/05/image_18082025_16_05_55_9627.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377706647","1377706641","1377706640","1377706643","1377706651","1377706645"],"photo_ids_order":["1377706640","1377706641","1377706643","1377706645","1377706647","1377706651"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d9854135c1f88394c343b757e7975d26.jpg","text":"TemporaryFile(/tmp/multipartBody4814766156576092273asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526068773,"filename":"image_18082025_16_06_04_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/eb904053949c49cedfff5d7c60b39ef8.jpg","text":"TemporaryFile(/tmp/multipartBody5400214973951914564asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526068773,"filename":"image_18082025_16_06_35_10631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/30932b02375e3132c0cc2e5626a9a9c1.jpg","text":"TemporaryFile(/tmp/multipartBody3592081991232324144asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526068773,"filename":"image_18082025_16_06_45_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c202177aa3d7b9d161d55128cd595c48.jpg","text":"TemporaryFile(/tmp/multipartBody8902493114193844322asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526068773,"filename":"image_18082025_16_06_24_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/645999c9566e907b10c49d92fd58d619.jpg","text":"TemporaryFile(/tmp/multipartBody5013533863437713445asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526068773,"filename":"image_18082025_16_05_55_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cdd089a94dfdffc52ecf3d456c1d290e.jpg","text":"TemporaryFile(/tmp/multipartBody1483364466624739390asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526068773,"filename":"image_18082025_16_06_15_10647.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377706643","file1":"1377706641","file0":"1377706640","file4":"1377706647","file5":"1377706651","file3":"1377706645"},"map_files_photo_id_array":[{"photo_id":"1377706651","filename":"file5"},{"photo_id":"1377706643","filename":"file2"},{"photo_id":"1377706647","filename":"file4"},{"photo_id":"1377706641","filename":"file1"},{"photo_id":"1377706640","filename":"file0"},{"photo_id":"1377706645","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377706647":["hashtag1","hashtag2"]},{"1377706641":["hashtag1","hashtag2"]},{"1377706640":["hashtag1","hashtag2"]},{"1377706643":["hashtag1","hashtag2"]},{"1377706651":["hashtag1","hashtag2"]},{"1377706645":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377706647, 1377706641, 1377706640, 1377706643, 1377706651, 1377706645)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.656081199645996 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:07:32.513859
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/07/image_18082025_16_07_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/16/07/image_18082025_16_07_35_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/16/07/image_18082025_16_07_24_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/16/07/image_18082025_16_07_15_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/16/06/image_18082025_16_07_05_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/16/06/image_18082025_16_06_54_9615.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/07/image_18082025_16_07_44_9642.jpg', '/home/nano/Desktop/images/18082025/16/07/image_18082025_16_07_35_10640.jpg', '/home/nano/Desktop/images/18082025/16/07/image_18082025_16_07_24_9624.jpg', '/home/nano/Desktop/images/18082025/16/07/image_18082025_16_07_15_9651.jpg', '/home/nano/Desktop/images/18082025/16/06/image_18082025_16_07_05_10639.jpg', '/home/nano/Desktop/images/18082025/16/06/image_18082025_16_06_54_9615.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/07/image_18082025_16_07_44_9642.jpg
/home/nano/Desktop/images/18082025/16/07/image_18082025_16_07_35_10640.jpg
/home/nano/Desktop/images/18082025/16/07/image_18082025_16_07_24_9624.jpg
/home/nano/Desktop/images/18082025/16/07/image_18082025_16_07_15_9651.jpg
/home/nano/Desktop/images/18082025/16/06/image_18082025_16_07_05_10639.jpg
/home/nano/Desktop/images/18082025/16/06/image_18082025_16_06_54_9615.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377706670","1377706667","1377706672","1377706666","1377706674","1377706668"],"photo_ids_order":["1377706666","1377706667","1377706668","1377706670","1377706672","1377706674"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fe6504501820332a225976e785814cdd.jpg","text":"TemporaryFile(/tmp/multipartBody4409328415449832059asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526113878,"filename":"image_18082025_16_07_15_9651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/df17a167d7a1cfa1c9a5a5b189e8b2c9.jpg","text":"TemporaryFile(/tmp/multipartBody2643781593739454525asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526113878,"filename":"image_18082025_16_07_35_10640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e1d1a2189ebb5102c73819ca39a14a1c.jpg","text":"TemporaryFile(/tmp/multipartBody154166933951442807asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526113878,"filename":"image_18082025_16_07_05_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/76ed0872ec44b18f16761a5b0ae87197.jpg","text":"TemporaryFile(/tmp/multipartBody4326256459622643753asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526113878,"filename":"image_18082025_16_07_44_9642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5fdd5f421fbfdadb9c2135b84d877277.jpg","text":"TemporaryFile(/tmp/multipartBody884136621249482564asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526113878,"filename":"image_18082025_16_06_54_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/988a2c1b227a347a933f0abdf551b3a3.jpg","text":"TemporaryFile(/tmp/multipartBody375704049648974100asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526113878,"filename":"image_18082025_16_07_24_9624.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377706668","file1":"1377706667","file0":"1377706666","file4":"1377706672","file5":"1377706674","file3":"1377706670"},"map_files_photo_id_array":[{"photo_id":"1377706674","filename":"file5"},{"photo_id":"1377706668","filename":"file2"},{"photo_id":"1377706672","filename":"file4"},{"photo_id":"1377706667","filename":"file1"},{"photo_id":"1377706666","filename":"file0"},{"photo_id":"1377706670","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377706670":["hashtag1","hashtag2"]},{"1377706667":["hashtag1","hashtag2"]},{"1377706672":["hashtag1","hashtag2"]},{"1377706666":["hashtag1","hashtag2"]},{"1377706674":["hashtag1","hashtag2"]},{"1377706668":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377706670, 1377706667, 1377706672, 1377706666, 1377706674, 1377706668)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.839763879776 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:08:17.642991
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/08/image_18082025_16_08_44_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/16/08/image_18082025_16_08_35_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/16/08/image_18082025_16_08_25_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/16/08/image_18082025_16_08_14_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/16/07/image_18082025_16_08_05_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/16/07/image_18082025_16_07_54_9606.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/08/image_18082025_16_08_44_9629.jpg', '/home/nano/Desktop/images/18082025/16/08/image_18082025_16_08_35_9630.jpg', '/home/nano/Desktop/images/18082025/16/08/image_18082025_16_08_25_10653.jpg', '/home/nano/Desktop/images/18082025/16/08/image_18082025_16_08_14_9648.jpg', '/home/nano/Desktop/images/18082025/16/07/image_18082025_16_08_05_10647.jpg', '/home/nano/Desktop/images/18082025/16/07/image_18082025_16_07_54_9606.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/08/image_18082025_16_08_44_9629.jpg
/home/nano/Desktop/images/18082025/16/08/image_18082025_16_08_35_9630.jpg
/home/nano/Desktop/images/18082025/16/08/image_18082025_16_08_25_10653.jpg
/home/nano/Desktop/images/18082025/16/08/image_18082025_16_08_14_9648.jpg
/home/nano/Desktop/images/18082025/16/07/image_18082025_16_08_05_10647.jpg
/home/nano/Desktop/images/18082025/16/07/image_18082025_16_07_54_9606.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377706698","1377706683","1377706701","1377706691","1377706694","1377706688"],"photo_ids_order":["1377706683","1377706688","1377706691","1377706694","1377706698","1377706701"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a65e2075cf7936c3d5837c2517b07783.jpg","text":"TemporaryFile(/tmp/multipartBody6127393543356981695asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526159265,"filename":"image_18082025_16_08_05_10647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9580b92b716a226abb83791321a2e48f.jpg","text":"TemporaryFile(/tmp/multipartBody6216262233052563322asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526159265,"filename":"image_18082025_16_08_44_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3729dc33162c57c68ff5b7eb3d9c33dc.jpg","text":"TemporaryFile(/tmp/multipartBody1579589988927957419asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526159265,"filename":"image_18082025_16_07_54_9606.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f40bb22bc7c0eb305852e04fce0c6c64.jpg","text":"TemporaryFile(/tmp/multipartBody4139397247104237700asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526159265,"filename":"image_18082025_16_08_25_10653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e5ff1d3a2bcef8f06a7f36bcd0f294c5.jpg","text":"TemporaryFile(/tmp/multipartBody2129678494587501585asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526159265,"filename":"image_18082025_16_08_14_9648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9c2086e63e3cc051d83eaea25c477618.jpg","text":"TemporaryFile(/tmp/multipartBody4941612978654806611asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526159265,"filename":"image_18082025_16_08_35_9630.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377706691","file1":"1377706688","file0":"1377706683","file4":"1377706698","file5":"1377706701","file3":"1377706694"},"map_files_photo_id_array":[{"photo_id":"1377706701","filename":"file5"},{"photo_id":"1377706691","filename":"file2"},{"photo_id":"1377706698","filename":"file4"},{"photo_id":"1377706688","filename":"file1"},{"photo_id":"1377706683","filename":"file0"},{"photo_id":"1377706694","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377706698":["hashtag1","hashtag2"]},{"1377706683":["hashtag1","hashtag2"]},{"1377706701":["hashtag1","hashtag2"]},{"1377706691":["hashtag1","hashtag2"]},{"1377706694":["hashtag1","hashtag2"]},{"1377706688":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377706698, 1377706683, 1377706701, 1377706691, 1377706694, 1377706688)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.99739217758179 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:09:03.814660
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/32/image_18082025_10_32_25_10694.jpg', 2), ('/home/nano/Desktop/images/18082025/10/32/image_18082025_10_32_14_9733.jpg', 2), ('/home/nano/Desktop/images/18082025/10/31/image_18082025_10_32_04_9685.jpg', 2), ('/home/nano/Desktop/images/18082025/10/31/image_18082025_10_31_55_10692.jpg', 2), ('/home/nano/Desktop/images/18082025/10/31/image_18082025_10_31_44_9689.jpg', 2), ('/home/nano/Desktop/images/18082025/10/31/image_18082025_10_31_34_9728.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/32/image_18082025_10_32_25_10694.jpg', '/home/nano/Desktop/images/18082025/10/32/image_18082025_10_32_14_9733.jpg', '/home/nano/Desktop/images/18082025/10/31/image_18082025_10_32_04_9685.jpg', '/home/nano/Desktop/images/18082025/10/31/image_18082025_10_31_55_10692.jpg', '/home/nano/Desktop/images/18082025/10/31/image_18082025_10_31_44_9689.jpg', '/home/nano/Desktop/images/18082025/10/31/image_18082025_10_31_34_9728.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/32/image_18082025_10_32_25_10694.jpg
/home/nano/Desktop/images/18082025/10/32/image_18082025_10_32_14_9733.jpg
/home/nano/Desktop/images/18082025/10/31/image_18082025_10_32_04_9685.jpg
/home/nano/Desktop/images/18082025/10/31/image_18082025_10_31_55_10692.jpg
/home/nano/Desktop/images/18082025/10/31/image_18082025_10_31_44_9689.jpg
/home/nano/Desktop/images/18082025/10/31/image_18082025_10_31_34_9728.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377706713","1377706724","1377706727","1377706709","1377706720","1377706717"],"photo_ids_order":["1377706709","1377706713","1377706717","1377706720","1377706724","1377706727"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/98ad1426348f516c47ccf624692f1bba.jpg","text":"TemporaryFile(/tmp/multipartBody2489512611783615671asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526205431,"filename":"image_18082025_10_32_14_9733.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d7a8be6b1ca799c82263e16250f435b7.jpg","text":"TemporaryFile(/tmp/multipartBody2283357180570151056asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526205431,"filename":"image_18082025_10_31_44_9689.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4e4a81580bcc42730c6a066a9343e541.jpg","text":"TemporaryFile(/tmp/multipartBody4074900158196720745asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526205431,"filename":"image_18082025_10_31_34_9728.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2853204d767392e316e993388a59ffb8.jpg","text":"TemporaryFile(/tmp/multipartBody7497477666572257051asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526205431,"filename":"image_18082025_10_32_25_10694.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3d263b0fb5dda9281a580d16e1f56690.jpg","text":"TemporaryFile(/tmp/multipartBody6661643634441522391asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526205431,"filename":"image_18082025_10_31_55_10692.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/14e974932f9dabd5ae9121b86a298459.jpg","text":"TemporaryFile(/tmp/multipartBody1064874886527612218asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526205431,"filename":"image_18082025_10_32_04_9685.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377706717","file1":"1377706713","file0":"1377706709","file4":"1377706724","file5":"1377706727","file3":"1377706720"},"map_files_photo_id_array":[{"photo_id":"1377706727","filename":"file5"},{"photo_id":"1377706717","filename":"file2"},{"photo_id":"1377706724","filename":"file4"},{"photo_id":"1377706713","filename":"file1"},{"photo_id":"1377706709","filename":"file0"},{"photo_id":"1377706720","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377706713":["hashtag1","hashtag2"]},{"1377706724":["hashtag1","hashtag2"]},{"1377706727":["hashtag1","hashtag2"]},{"1377706709":["hashtag1","hashtag2"]},{"1377706720":["hashtag1","hashtag2"]},{"1377706717":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377706713, 1377706724, 1377706727, 1377706709, 1377706720, 1377706717)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.53182649612427 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:09:47.680352
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/09/image_18082025_16_09_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/16/09/image_18082025_16_09_34_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/16/09/image_18082025_16_09_25_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/16/09/image_18082025_16_09_14_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/16/08/image_18082025_16_09_05_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/16/08/image_18082025_16_08_55_10619.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/09/image_18082025_16_09_44_9638.jpg', '/home/nano/Desktop/images/18082025/16/09/image_18082025_16_09_34_9637.jpg', '/home/nano/Desktop/images/18082025/16/09/image_18082025_16_09_25_10639.jpg', '/home/nano/Desktop/images/18082025/16/09/image_18082025_16_09_14_9659.jpg', '/home/nano/Desktop/images/18082025/16/08/image_18082025_16_09_05_9616.jpg', '/home/nano/Desktop/images/18082025/16/08/image_18082025_16_08_55_10619.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/09/image_18082025_16_09_44_9638.jpg
/home/nano/Desktop/images/18082025/16/09/image_18082025_16_09_34_9637.jpg
/home/nano/Desktop/images/18082025/16/09/image_18082025_16_09_25_10639.jpg
/home/nano/Desktop/images/18082025/16/09/image_18082025_16_09_14_9659.jpg
/home/nano/Desktop/images/18082025/16/08/image_18082025_16_09_05_9616.jpg
/home/nano/Desktop/images/18082025/16/08/image_18082025_16_08_55_10619.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377706749","1377706752","1377706746","1377706744","1377706747","1377706756"],"photo_ids_order":["1377706744","1377706746","1377706747","1377706749","1377706752","1377706756"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/17659a35edbbbfc9010db4a2c07e54f4.jpg","text":"TemporaryFile(/tmp/multipartBody7150643742043108068asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526249110,"filename":"image_18082025_16_09_14_9659.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3b39364ade26b9d0a505d8e7de4d3872.jpg","text":"TemporaryFile(/tmp/multipartBody2576211675879372213asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526249110,"filename":"image_18082025_16_09_05_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b8ffb44534ae3f29eeb4d1f2997ae267.jpg","text":"TemporaryFile(/tmp/multipartBody1856392629974505949asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526249110,"filename":"image_18082025_16_09_34_9637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/533f1927bb5e5f5b9739a8205f982bd6.jpg","text":"TemporaryFile(/tmp/multipartBody9132113727703926664asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526249110,"filename":"image_18082025_16_09_44_9638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/03561e2152f03a5986e800b11b76c8bc.jpg","text":"TemporaryFile(/tmp/multipartBody8488476782796166441asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526249110,"filename":"image_18082025_16_09_25_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1a5907ba8f3c4732123b96c5fe807cba.jpg","text":"TemporaryFile(/tmp/multipartBody8477849029997027359asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526249110,"filename":"image_18082025_16_08_55_10619.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377706747","file1":"1377706746","file0":"1377706744","file4":"1377706752","file5":"1377706756","file3":"1377706749"},"map_files_photo_id_array":[{"photo_id":"1377706756","filename":"file5"},{"photo_id":"1377706747","filename":"file2"},{"photo_id":"1377706752","filename":"file4"},{"photo_id":"1377706746","filename":"file1"},{"photo_id":"1377706744","filename":"file0"},{"photo_id":"1377706749","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377706749":["hashtag1","hashtag2"]},{"1377706752":["hashtag1","hashtag2"]},{"1377706746":["hashtag1","hashtag2"]},{"1377706744":["hashtag1","hashtag2"]},{"1377706747":["hashtag1","hashtag2"]},{"1377706756":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377706749, 1377706752, 1377706746, 1377706744, 1377706747, 1377706756)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.08872389793396 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:10:31.804800
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/10/image_18082025_16_10_45_10619.jpg', 2), ('/home/nano/Desktop/images/18082025/16/10/image_18082025_16_10_34_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/16/10/image_18082025_16_10_25_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/16/10/image_18082025_16_10_15_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/16/09/image_18082025_16_10_04_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/16/09/image_18082025_16_09_55_10636.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/10/image_18082025_16_10_45_10619.jpg', '/home/nano/Desktop/images/18082025/16/10/image_18082025_16_10_34_9643.jpg', '/home/nano/Desktop/images/18082025/16/10/image_18082025_16_10_25_9641.jpg', '/home/nano/Desktop/images/18082025/16/10/image_18082025_16_10_15_10647.jpg', '/home/nano/Desktop/images/18082025/16/09/image_18082025_16_10_04_9613.jpg', '/home/nano/Desktop/images/18082025/16/09/image_18082025_16_09_55_10636.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/10/image_18082025_16_10_45_10619.jpg
/home/nano/Desktop/images/18082025/16/10/image_18082025_16_10_34_9643.jpg
/home/nano/Desktop/images/18082025/16/10/image_18082025_16_10_25_9641.jpg
/home/nano/Desktop/images/18082025/16/10/image_18082025_16_10_15_10647.jpg
/home/nano/Desktop/images/18082025/16/09/image_18082025_16_10_04_9613.jpg
/home/nano/Desktop/images/18082025/16/09/image_18082025_16_09_55_10636.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377706779","1377706781","1377706769","1377706777","1377706765","1377706773"],"photo_ids_order":["1377706765","1377706769","1377706773","1377706777","1377706779","1377706781"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ebb8c35c9ee8dcfc664983d3c16e3759.jpg","text":"TemporaryFile(/tmp/multipartBody3284994811192072151asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526293311,"filename":"image_18082025_16_10_04_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/73a87987c841d1f3842a5ff9dbf2a4fb.jpg","text":"TemporaryFile(/tmp/multipartBody6272606374074068723asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526293311,"filename":"image_18082025_16_09_55_10636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/11f66927c3468d3201f5412cbd550ed3.jpg","text":"TemporaryFile(/tmp/multipartBody5928204254891100816asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526293311,"filename":"image_18082025_16_10_34_9643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c28aafc713bcfc4fc1675a7a0e203f2e.jpg","text":"TemporaryFile(/tmp/multipartBody4279985529086451168asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526293311,"filename":"image_18082025_16_10_15_10647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2882eab5efed35e3febdd4414479eb27.jpg","text":"TemporaryFile(/tmp/multipartBody581530574023616489asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526293311,"filename":"image_18082025_16_10_45_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/75e5f025f4d63c88781f984f7571a2c0.jpg","text":"TemporaryFile(/tmp/multipartBody9001802884875973182asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526293311,"filename":"image_18082025_16_10_25_9641.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377706773","file1":"1377706769","file0":"1377706765","file4":"1377706779","file5":"1377706781","file3":"1377706777"},"map_files_photo_id_array":[{"photo_id":"1377706781","filename":"file5"},{"photo_id":"1377706773","filename":"file2"},{"photo_id":"1377706779","filename":"file4"},{"photo_id":"1377706769","filename":"file1"},{"photo_id":"1377706765","filename":"file0"},{"photo_id":"1377706777","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377706779":["hashtag1","hashtag2"]},{"1377706781":["hashtag1","hashtag2"]},{"1377706769":["hashtag1","hashtag2"]},{"1377706777":["hashtag1","hashtag2"]},{"1377706765":["hashtag1","hashtag2"]},{"1377706773":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377706779, 1377706781, 1377706769, 1377706777, 1377706765, 1377706773)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.14371728897095 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:11:16.931623
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/11/image_18082025_16_11_45_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/16/11/image_18082025_16_11_34_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/16/11/image_18082025_16_11_24_9603.jpg', 2), ('/home/nano/Desktop/images/18082025/16/11/image_18082025_16_11_15_10674.jpg', 2), ('/home/nano/Desktop/images/18082025/16/10/image_18082025_16_11_04_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/16/10/image_18082025_16_10_55_9629.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/11/image_18082025_16_11_45_10626.jpg', '/home/nano/Desktop/images/18082025/16/11/image_18082025_16_11_34_9610.jpg', '/home/nano/Desktop/images/18082025/16/11/image_18082025_16_11_24_9603.jpg', '/home/nano/Desktop/images/18082025/16/11/image_18082025_16_11_15_10674.jpg', '/home/nano/Desktop/images/18082025/16/10/image_18082025_16_11_04_9664.jpg', '/home/nano/Desktop/images/18082025/16/10/image_18082025_16_10_55_9629.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/11/image_18082025_16_11_45_10626.jpg
/home/nano/Desktop/images/18082025/16/11/image_18082025_16_11_34_9610.jpg
/home/nano/Desktop/images/18082025/16/11/image_18082025_16_11_24_9603.jpg
/home/nano/Desktop/images/18082025/16/11/image_18082025_16_11_15_10674.jpg
/home/nano/Desktop/images/18082025/16/10/image_18082025_16_11_04_9664.jpg
/home/nano/Desktop/images/18082025/16/10/image_18082025_16_10_55_9629.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377706809","1377706799","1377706823","1377706795","1377706792","1377706816"],"photo_ids_order":["1377706792","1377706795","1377706799","1377706809","1377706816","1377706823"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c63a913469b3e606ccd996ed43ce5269.jpg","text":"TemporaryFile(/tmp/multipartBody2769996255069466929asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526338550,"filename":"image_18082025_16_11_15_10674.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c91d19bc7047a0ccbf79efd2c5fae327.jpg","text":"TemporaryFile(/tmp/multipartBody2285858382209597737asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526338550,"filename":"image_18082025_16_11_24_9603.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e010b4e7019405591195b24e40ba5001.jpg","text":"TemporaryFile(/tmp/multipartBody1305001122995584105asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526338550,"filename":"image_18082025_16_10_55_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/561ebb6df3b29181da81f7d5155e8751.jpg","text":"TemporaryFile(/tmp/multipartBody8524669650005566805asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526338550,"filename":"image_18082025_16_11_34_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9af8b6b62898e6891d12db43a0eb14a8.jpg","text":"TemporaryFile(/tmp/multipartBody609043925964955243asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526338550,"filename":"image_18082025_16_11_45_10626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d67a1f1b6e4f9779a476e2ad3619b768.jpg","text":"TemporaryFile(/tmp/multipartBody935596057715817721asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526338550,"filename":"image_18082025_16_11_04_9664.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377706799","file1":"1377706795","file0":"1377706792","file4":"1377706816","file5":"1377706823","file3":"1377706809"},"map_files_photo_id_array":[{"photo_id":"1377706823","filename":"file5"},{"photo_id":"1377706799","filename":"file2"},{"photo_id":"1377706816","filename":"file4"},{"photo_id":"1377706795","filename":"file1"},{"photo_id":"1377706792","filename":"file0"},{"photo_id":"1377706809","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377706809":["hashtag1","hashtag2"]},{"1377706799":["hashtag1","hashtag2"]},{"1377706823":["hashtag1","hashtag2"]},{"1377706795":["hashtag1","hashtag2"]},{"1377706792":["hashtag1","hashtag2"]},{"1377706816":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377706809, 1377706799, 1377706823, 1377706795, 1377706792, 1377706816)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.806416988372803 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:12:02.436502
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/31/image_18082025_10_31_25_9683.jpg', 2), ('/home/nano/Desktop/images/18082025/10/31/image_18082025_10_31_15_10759.jpg', 2), ('/home/nano/Desktop/images/18082025/10/30/image_18082025_10_31_04_9719.jpg', 2), ('/home/nano/Desktop/images/18082025/10/30/image_18082025_10_30_55_9775.jpg', 2), ('/home/nano/Desktop/images/18082025/10/30/image_18082025_10_30_45_9707.jpg', 2), ('/home/nano/Desktop/images/18082025/10/30/image_18082025_10_30_35_10673.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/31/image_18082025_10_31_25_9683.jpg', '/home/nano/Desktop/images/18082025/10/31/image_18082025_10_31_15_10759.jpg', '/home/nano/Desktop/images/18082025/10/30/image_18082025_10_31_04_9719.jpg', '/home/nano/Desktop/images/18082025/10/30/image_18082025_10_30_55_9775.jpg', '/home/nano/Desktop/images/18082025/10/30/image_18082025_10_30_45_9707.jpg', '/home/nano/Desktop/images/18082025/10/30/image_18082025_10_30_35_10673.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/31/image_18082025_10_31_25_9683.jpg
/home/nano/Desktop/images/18082025/10/31/image_18082025_10_31_15_10759.jpg
/home/nano/Desktop/images/18082025/10/30/image_18082025_10_31_04_9719.jpg
/home/nano/Desktop/images/18082025/10/30/image_18082025_10_30_55_9775.jpg
/home/nano/Desktop/images/18082025/10/30/image_18082025_10_30_45_9707.jpg
/home/nano/Desktop/images/18082025/10/30/image_18082025_10_30_35_10673.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377706863","1377706871","1377706865","1377706861","1377706858","1377706867"],"photo_ids_order":["1377706858","1377706861","1377706863","1377706865","1377706867","1377706871"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c224556e2ffa88708cf41dd1173d5bbf.jpg","text":"TemporaryFile(/tmp/multipartBody4721776014609052445asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526384091,"filename":"image_18082025_10_31_04_9719.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3ed3f90421c7c369a2c645f76752c713.jpg","text":"TemporaryFile(/tmp/multipartBody6938816443068349464asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526384091,"filename":"image_18082025_10_30_35_10673.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/63a2e81e91d70850c1c798ab06cde4d7.jpg","text":"TemporaryFile(/tmp/multipartBody8830233259664741078asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526384091,"filename":"image_18082025_10_30_55_9775.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3cd31fc1037e9eddd40eaba3df5f06b5.jpg","text":"TemporaryFile(/tmp/multipartBody5677872366396501907asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526384091,"filename":"image_18082025_10_31_15_10759.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1035af05aa6d175fb969882f3c0e5391.jpg","text":"TemporaryFile(/tmp/multipartBody4907819333677270030asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526384091,"filename":"image_18082025_10_31_25_9683.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6d8383ea34f1f144889af8058aad63cc.jpg","text":"TemporaryFile(/tmp/multipartBody1176356603509745907asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526384091,"filename":"image_18082025_10_30_45_9707.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377706863","file1":"1377706861","file0":"1377706858","file4":"1377706867","file5":"1377706871","file3":"1377706865"},"map_files_photo_id_array":[{"photo_id":"1377706871","filename":"file5"},{"photo_id":"1377706863","filename":"file2"},{"photo_id":"1377706867","filename":"file4"},{"photo_id":"1377706861","filename":"file1"},{"photo_id":"1377706858","filename":"file0"},{"photo_id":"1377706865","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377706863":["hashtag1","hashtag2"]},{"1377706871":["hashtag1","hashtag2"]},{"1377706865":["hashtag1","hashtag2"]},{"1377706861":["hashtag1","hashtag2"]},{"1377706858":["hashtag1","hashtag2"]},{"1377706867":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377706863, 1377706871, 1377706865, 1377706861, 1377706858, 1377706867)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.744860410690308 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:12:46.985968
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/12/image_18082025_16_12_44_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/16/12/image_18082025_16_12_35_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/16/12/image_18082025_16_12_24_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/16/12/image_18082025_16_12_15_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/16/11/image_18082025_16_12_05_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/16/11/image_18082025_16_11_54_9610.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/12/image_18082025_16_12_44_9627.jpg', '/home/nano/Desktop/images/18082025/16/12/image_18082025_16_12_35_10627.jpg', '/home/nano/Desktop/images/18082025/16/12/image_18082025_16_12_24_9616.jpg', '/home/nano/Desktop/images/18082025/16/12/image_18082025_16_12_15_9647.jpg', '/home/nano/Desktop/images/18082025/16/11/image_18082025_16_12_05_10653.jpg', '/home/nano/Desktop/images/18082025/16/11/image_18082025_16_11_54_9610.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/12/image_18082025_16_12_44_9627.jpg
/home/nano/Desktop/images/18082025/16/12/image_18082025_16_12_35_10627.jpg
/home/nano/Desktop/images/18082025/16/12/image_18082025_16_12_24_9616.jpg
/home/nano/Desktop/images/18082025/16/12/image_18082025_16_12_15_9647.jpg
/home/nano/Desktop/images/18082025/16/11/image_18082025_16_12_05_10653.jpg
/home/nano/Desktop/images/18082025/16/11/image_18082025_16_11_54_9610.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377706895","1377706889","1377706892","1377706891","1377706885","1377706887"],"photo_ids_order":["1377706885","1377706887","1377706889","1377706891","1377706892","1377706895"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bd789673a7f1c3f057d0874dde0f1ea3.jpg","text":"TemporaryFile(/tmp/multipartBody5132686479703565520asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526428340,"filename":"image_18082025_16_11_54_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/530c04c3af09dc0c1bc7602b40f73446.jpg","text":"TemporaryFile(/tmp/multipartBody7586582600719068313asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526428340,"filename":"image_18082025_16_12_24_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/21e3320319861b6774057f7abe79b29c.jpg","text":"TemporaryFile(/tmp/multipartBody2919038040761666918asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526428340,"filename":"image_18082025_16_12_05_10653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9a91463a3d0294487c1ecfa1579ee945.jpg","text":"TemporaryFile(/tmp/multipartBody6326964267399020900asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526428340,"filename":"image_18082025_16_12_15_9647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b1f7d414ebc758c5f79f65cf6e5d2206.jpg","text":"TemporaryFile(/tmp/multipartBody7844333796792787935asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526428340,"filename":"image_18082025_16_12_44_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/740f64589753660b6a96a44e67c47263.jpg","text":"TemporaryFile(/tmp/multipartBody8988059062862055290asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526428340,"filename":"image_18082025_16_12_35_10627.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377706889","file1":"1377706887","file0":"1377706885","file4":"1377706892","file5":"1377706895","file3":"1377706891"},"map_files_photo_id_array":[{"photo_id":"1377706895","filename":"file5"},{"photo_id":"1377706889","filename":"file2"},{"photo_id":"1377706892","filename":"file4"},{"photo_id":"1377706887","filename":"file1"},{"photo_id":"1377706885","filename":"file0"},{"photo_id":"1377706891","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377706895":["hashtag1","hashtag2"]},{"1377706889":["hashtag1","hashtag2"]},{"1377706892":["hashtag1","hashtag2"]},{"1377706891":["hashtag1","hashtag2"]},{"1377706885":["hashtag1","hashtag2"]},{"1377706887":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377706895, 1377706889, 1377706892, 1377706891, 1377706885, 1377706887)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.37746810913086 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:13:32.086573
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/13/image_18082025_16_13_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/16/13/image_18082025_16_13_35_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/16/13/image_18082025_16_13_25_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/16/13/image_18082025_16_13_14_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/16/12/image_18082025_16_13_05_10616.jpg', 2), ('/home/nano/Desktop/images/18082025/16/12/image_18082025_16_12_54_9623.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/13/image_18082025_16_13_44_9641.jpg', '/home/nano/Desktop/images/18082025/16/13/image_18082025_16_13_35_9637.jpg', '/home/nano/Desktop/images/18082025/16/13/image_18082025_16_13_25_10627.jpg', '/home/nano/Desktop/images/18082025/16/13/image_18082025_16_13_14_9622.jpg', '/home/nano/Desktop/images/18082025/16/12/image_18082025_16_13_05_10616.jpg', '/home/nano/Desktop/images/18082025/16/12/image_18082025_16_12_54_9623.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/13/image_18082025_16_13_44_9641.jpg
/home/nano/Desktop/images/18082025/16/13/image_18082025_16_13_35_9637.jpg
/home/nano/Desktop/images/18082025/16/13/image_18082025_16_13_25_10627.jpg
/home/nano/Desktop/images/18082025/16/13/image_18082025_16_13_14_9622.jpg
/home/nano/Desktop/images/18082025/16/12/image_18082025_16_13_05_10616.jpg
/home/nano/Desktop/images/18082025/16/12/image_18082025_16_12_54_9623.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377706950","1377706905","1377706931","1377706919","1377706942","1377706906"],"photo_ids_order":["1377706905","1377706906","1377706919","1377706931","1377706942","1377706950"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9d75bfbf4ca3f08dc1c384d7b170ad47.jpg","text":"TemporaryFile(/tmp/multipartBody1758217112790455264asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526473806,"filename":"image_18082025_16_12_54_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/03c773f19a586d5647c3469446de8e16.jpg","text":"TemporaryFile(/tmp/multipartBody6922131367036570915asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526473806,"filename":"image_18082025_16_13_44_9641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/12c5ad5b4e857126a0ace49d3e27940e.jpg","text":"TemporaryFile(/tmp/multipartBody5211559669845405162asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526473806,"filename":"image_18082025_16_13_14_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/32c1b83b8df275821f84340541a3a9af.jpg","text":"TemporaryFile(/tmp/multipartBody1328333707218443995asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526473806,"filename":"image_18082025_16_13_25_10627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6105e7f882c4684b95425b5019e079c6.jpg","text":"TemporaryFile(/tmp/multipartBody3959946056588901776asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526473806,"filename":"image_18082025_16_13_05_10616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9b26bc620765d1df6dbd93f73f2c5490.jpg","text":"TemporaryFile(/tmp/multipartBody8787702084903872920asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526473806,"filename":"image_18082025_16_13_35_9637.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377706919","file1":"1377706906","file0":"1377706905","file4":"1377706942","file5":"1377706950","file3":"1377706931"},"map_files_photo_id_array":[{"photo_id":"1377706950","filename":"file5"},{"photo_id":"1377706919","filename":"file2"},{"photo_id":"1377706942","filename":"file4"},{"photo_id":"1377706906","filename":"file1"},{"photo_id":"1377706905","filename":"file0"},{"photo_id":"1377706931","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377706950":["hashtag1","hashtag2"]},{"1377706905":["hashtag1","hashtag2"]},{"1377706931":["hashtag1","hashtag2"]},{"1377706919":["hashtag1","hashtag2"]},{"1377706942":["hashtag1","hashtag2"]},{"1377706906":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377706950, 1377706905, 1377706931, 1377706919, 1377706942, 1377706906)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.96919298171997 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:14:17.205057
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/14/image_18082025_16_14_45_10611.jpg', 2), ('/home/nano/Desktop/images/18082025/16/14/image_18082025_16_14_34_9601.jpg', 2), ('/home/nano/Desktop/images/18082025/16/14/image_18082025_16_14_25_10617.jpg', 2), ('/home/nano/Desktop/images/18082025/16/14/image_18082025_16_14_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/16/13/image_18082025_16_14_05_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/16/13/image_18082025_16_13_55_10643.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/14/image_18082025_16_14_45_10611.jpg', '/home/nano/Desktop/images/18082025/16/14/image_18082025_16_14_34_9601.jpg', '/home/nano/Desktop/images/18082025/16/14/image_18082025_16_14_25_10617.jpg', '/home/nano/Desktop/images/18082025/16/14/image_18082025_16_14_14_9660.jpg', '/home/nano/Desktop/images/18082025/16/13/image_18082025_16_14_05_9622.jpg', '/home/nano/Desktop/images/18082025/16/13/image_18082025_16_13_55_10643.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/14/image_18082025_16_14_45_10611.jpg
/home/nano/Desktop/images/18082025/16/14/image_18082025_16_14_34_9601.jpg
/home/nano/Desktop/images/18082025/16/14/image_18082025_16_14_25_10617.jpg
/home/nano/Desktop/images/18082025/16/14/image_18082025_16_14_14_9660.jpg
/home/nano/Desktop/images/18082025/16/13/image_18082025_16_14_05_9622.jpg
/home/nano/Desktop/images/18082025/16/13/image_18082025_16_13_55_10643.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377706980","1377706977","1377706982","1377706973","1377706975","1377706984"],"photo_ids_order":["1377706973","1377706975","1377706977","1377706980","1377706982","1377706984"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e7f4b87c3e6ed00449a7dedfd8e47a00.jpg","text":"TemporaryFile(/tmp/multipartBody7829634023675461942asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526518405,"filename":"image_18082025_16_14_14_9660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5abf9bd4f3236f08031a9c5950c6a63c.jpg","text":"TemporaryFile(/tmp/multipartBody5066951663943807903asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526518405,"filename":"image_18082025_16_14_25_10617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3231cf7ee026cf53687d0e83c30ba607.jpg","text":"TemporaryFile(/tmp/multipartBody5098572430455350337asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526518405,"filename":"image_18082025_16_14_05_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6ff3d5cb8cc7edb02d1eb857f5e80720.jpg","text":"TemporaryFile(/tmp/multipartBody7727158171945146298asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526518405,"filename":"image_18082025_16_14_45_10611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a25dcd67c2df7c3abc8865b3a496be74.jpg","text":"TemporaryFile(/tmp/multipartBody541737783269467569asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526518405,"filename":"image_18082025_16_14_34_9601.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/624bd760d2eb90953d30a3a5d82cde10.jpg","text":"TemporaryFile(/tmp/multipartBody1583943866268229798asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526518405,"filename":"image_18082025_16_13_55_10643.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377706977","file1":"1377706975","file0":"1377706973","file4":"1377706982","file5":"1377706984","file3":"1377706980"},"map_files_photo_id_array":[{"photo_id":"1377706984","filename":"file5"},{"photo_id":"1377706977","filename":"file2"},{"photo_id":"1377706982","filename":"file4"},{"photo_id":"1377706975","filename":"file1"},{"photo_id":"1377706973","filename":"file0"},{"photo_id":"1377706980","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377706980":["hashtag1","hashtag2"]},{"1377706977":["hashtag1","hashtag2"]},{"1377706982":["hashtag1","hashtag2"]},{"1377706973":["hashtag1","hashtag2"]},{"1377706975":["hashtag1","hashtag2"]},{"1377706984":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377706980, 1377706977, 1377706982, 1377706973, 1377706975, 1377706984)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.734150648117065 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:15:03.137672
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/30/image_18082025_10_30_24_9744.jpg', 2), ('/home/nano/Desktop/images/18082025/10/30/image_18082025_10_30_15_9835.jpg', 2), ('/home/nano/Desktop/images/18082025/10/29/image_18082025_10_30_05_9822.jpg', 2), ('/home/nano/Desktop/images/18082025/10/29/image_18082025_10_29_55_10826.jpg', 2), ('/home/nano/Desktop/images/18082025/10/29/image_18082025_10_29_44_9831.jpg', 2), ('/home/nano/Desktop/images/18082025/10/29/image_18082025_10_29_34_9808.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/30/image_18082025_10_30_24_9744.jpg', '/home/nano/Desktop/images/18082025/10/30/image_18082025_10_30_15_9835.jpg', '/home/nano/Desktop/images/18082025/10/29/image_18082025_10_30_05_9822.jpg', '/home/nano/Desktop/images/18082025/10/29/image_18082025_10_29_55_10826.jpg', '/home/nano/Desktop/images/18082025/10/29/image_18082025_10_29_44_9831.jpg', '/home/nano/Desktop/images/18082025/10/29/image_18082025_10_29_34_9808.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/30/image_18082025_10_30_24_9744.jpg
/home/nano/Desktop/images/18082025/10/30/image_18082025_10_30_15_9835.jpg
/home/nano/Desktop/images/18082025/10/29/image_18082025_10_30_05_9822.jpg
/home/nano/Desktop/images/18082025/10/29/image_18082025_10_29_55_10826.jpg
/home/nano/Desktop/images/18082025/10/29/image_18082025_10_29_44_9831.jpg
/home/nano/Desktop/images/18082025/10/29/image_18082025_10_29_34_9808.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377706995","1377707000","1377707003","1377706993","1377706996","1377706998"],"photo_ids_order":["1377706993","1377706995","1377706996","1377706998","1377707000","1377707003"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3f6e6b69c3af723e37fd537eac2877c4.jpg","text":"TemporaryFile(/tmp/multipartBody2376867571158154449asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526564928,"filename":"image_18082025_10_30_15_9835.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3df7e2c32c3bde834e1918b91454a47b.jpg","text":"TemporaryFile(/tmp/multipartBody3059032395491161491asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526564928,"filename":"image_18082025_10_29_44_9831.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d75d468485a903c09253ef836422a2bf.jpg","text":"TemporaryFile(/tmp/multipartBody6963330934131236839asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526564928,"filename":"image_18082025_10_29_34_9808.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/673ee59319c16ee766b72a90f410ce6a.jpg","text":"TemporaryFile(/tmp/multipartBody1692499567895263875asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526564928,"filename":"image_18082025_10_30_24_9744.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b9242c91afd33548b934e8cbb6f63432.jpg","text":"TemporaryFile(/tmp/multipartBody9109047825657386538asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526564928,"filename":"image_18082025_10_30_05_9822.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/581c5d465e0c961172374f0622570b6e.jpg","text":"TemporaryFile(/tmp/multipartBody2968198510317510991asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526564928,"filename":"image_18082025_10_29_55_10826.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377706996","file1":"1377706995","file0":"1377706993","file4":"1377707000","file5":"1377707003","file3":"1377706998"},"map_files_photo_id_array":[{"photo_id":"1377707003","filename":"file5"},{"photo_id":"1377706996","filename":"file2"},{"photo_id":"1377707000","filename":"file4"},{"photo_id":"1377706995","filename":"file1"},{"photo_id":"1377706993","filename":"file0"},{"photo_id":"1377706998","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377706995":["hashtag1","hashtag2"]},{"1377707000":["hashtag1","hashtag2"]},{"1377707003":["hashtag1","hashtag2"]},{"1377706993":["hashtag1","hashtag2"]},{"1377706996":["hashtag1","hashtag2"]},{"1377706998":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377706995, 1377707000, 1377707003, 1377706993, 1377706996, 1377706998)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.00674271583557 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:15:47.286564
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/15/image_18082025_16_15_44_9673.jpg', 2), ('/home/nano/Desktop/images/18082025/16/15/image_18082025_16_15_35_9695.jpg', 2), ('/home/nano/Desktop/images/18082025/16/15/image_18082025_16_15_25_10695.jpg', 2), ('/home/nano/Desktop/images/18082025/16/15/image_18082025_16_15_14_9740.jpg', 2), ('/home/nano/Desktop/images/18082025/16/14/image_18082025_16_15_04_9749.jpg', 2), ('/home/nano/Desktop/images/18082025/16/14/image_18082025_16_14_55_9673.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/15/image_18082025_16_15_44_9673.jpg', '/home/nano/Desktop/images/18082025/16/15/image_18082025_16_15_35_9695.jpg', '/home/nano/Desktop/images/18082025/16/15/image_18082025_16_15_25_10695.jpg', '/home/nano/Desktop/images/18082025/16/15/image_18082025_16_15_14_9740.jpg', '/home/nano/Desktop/images/18082025/16/14/image_18082025_16_15_04_9749.jpg', '/home/nano/Desktop/images/18082025/16/14/image_18082025_16_14_55_9673.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/15/image_18082025_16_15_44_9673.jpg
/home/nano/Desktop/images/18082025/16/15/image_18082025_16_15_35_9695.jpg
/home/nano/Desktop/images/18082025/16/15/image_18082025_16_15_25_10695.jpg
/home/nano/Desktop/images/18082025/16/15/image_18082025_16_15_14_9740.jpg
/home/nano/Desktop/images/18082025/16/14/image_18082025_16_15_04_9749.jpg
/home/nano/Desktop/images/18082025/16/14/image_18082025_16_14_55_9673.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377707043","1377707051","1377707045","1377707047","1377707029","1377707049"],"photo_ids_order":["1377707029","1377707043","1377707045","1377707047","1377707049","1377707051"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bf3d400aeb174456977cdc339d2adee1.jpg","text":"TemporaryFile(/tmp/multipartBody4347931091418699930asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526609082,"filename":"image_18082025_16_15_35_9695.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/71242d5b480f1fe8f81d98aa1c16e12f.jpg","text":"TemporaryFile(/tmp/multipartBody6753826694404604194asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526609082,"filename":"image_18082025_16_14_55_9673.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3414c284f9412a84463fc090a2477e4a.jpg","text":"TemporaryFile(/tmp/multipartBody7874493601967994391asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526609082,"filename":"image_18082025_16_15_25_10695.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e5e4ed5186801e3190dfa4952d2fd376.jpg","text":"TemporaryFile(/tmp/multipartBody7568470557524099366asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526609082,"filename":"image_18082025_16_15_14_9740.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f5d6a0daafaf115607d598b49513445b.jpg","text":"TemporaryFile(/tmp/multipartBody845297029410007677asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526609082,"filename":"image_18082025_16_15_44_9673.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bd1ac5acd4a20f4b02936bd1383a21f0.jpg","text":"TemporaryFile(/tmp/multipartBody2117695500710202449asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526609082,"filename":"image_18082025_16_15_04_9749.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377707045","file1":"1377707043","file0":"1377707029","file4":"1377707049","file5":"1377707051","file3":"1377707047"},"map_files_photo_id_array":[{"photo_id":"1377707051","filename":"file5"},{"photo_id":"1377707045","filename":"file2"},{"photo_id":"1377707049","filename":"file4"},{"photo_id":"1377707043","filename":"file1"},{"photo_id":"1377707029","filename":"file0"},{"photo_id":"1377707047","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377707043":["hashtag1","hashtag2"]},{"1377707051":["hashtag1","hashtag2"]},{"1377707045":["hashtag1","hashtag2"]},{"1377707047":["hashtag1","hashtag2"]},{"1377707029":["hashtag1","hashtag2"]},{"1377707049":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377707043, 1377707051, 1377707045, 1377707047, 1377707029, 1377707049)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.166242837905884 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:16:32.400800
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/16/image_18082025_16_16_44_9698.jpg', 2), ('/home/nano/Desktop/images/18082025/16/16/image_18082025_16_16_35_10681.jpg', 2), ('/home/nano/Desktop/images/18082025/16/16/image_18082025_16_16_24_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/16/16/image_18082025_16_16_14_9708.jpg', 2), ('/home/nano/Desktop/images/18082025/16/15/image_18082025_16_16_05_9733.jpg', 2), ('/home/nano/Desktop/images/18082025/16/15/image_18082025_16_15_55_10729.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/16/image_18082025_16_16_44_9698.jpg', '/home/nano/Desktop/images/18082025/16/16/image_18082025_16_16_35_10681.jpg', '/home/nano/Desktop/images/18082025/16/16/image_18082025_16_16_24_9668.jpg', '/home/nano/Desktop/images/18082025/16/16/image_18082025_16_16_14_9708.jpg', '/home/nano/Desktop/images/18082025/16/15/image_18082025_16_16_05_9733.jpg', '/home/nano/Desktop/images/18082025/16/15/image_18082025_16_15_55_10729.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/16/image_18082025_16_16_44_9698.jpg
/home/nano/Desktop/images/18082025/16/16/image_18082025_16_16_35_10681.jpg
/home/nano/Desktop/images/18082025/16/16/image_18082025_16_16_24_9668.jpg
/home/nano/Desktop/images/18082025/16/16/image_18082025_16_16_14_9708.jpg
/home/nano/Desktop/images/18082025/16/15/image_18082025_16_16_05_9733.jpg
/home/nano/Desktop/images/18082025/16/15/image_18082025_16_15_55_10729.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.5699236392974854 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:16:47.452141
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/16/image_18082025_16_16_44_9698.jpg', 2), ('/home/nano/Desktop/images/18082025/16/16/image_18082025_16_16_35_10681.jpg', 2), ('/home/nano/Desktop/images/18082025/16/16/image_18082025_16_16_24_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/16/16/image_18082025_16_16_14_9708.jpg', 2), ('/home/nano/Desktop/images/18082025/16/15/image_18082025_16_16_05_9733.jpg', 2), ('/home/nano/Desktop/images/18082025/16/15/image_18082025_16_15_55_10729.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/16/image_18082025_16_16_44_9698.jpg', '/home/nano/Desktop/images/18082025/16/16/image_18082025_16_16_35_10681.jpg', '/home/nano/Desktop/images/18082025/16/16/image_18082025_16_16_24_9668.jpg', '/home/nano/Desktop/images/18082025/16/16/image_18082025_16_16_14_9708.jpg', '/home/nano/Desktop/images/18082025/16/15/image_18082025_16_16_05_9733.jpg', '/home/nano/Desktop/images/18082025/16/15/image_18082025_16_15_55_10729.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/16/image_18082025_16_16_44_9698.jpg
/home/nano/Desktop/images/18082025/16/16/image_18082025_16_16_35_10681.jpg
/home/nano/Desktop/images/18082025/16/16/image_18082025_16_16_24_9668.jpg
/home/nano/Desktop/images/18082025/16/16/image_18082025_16_16_14_9708.jpg
/home/nano/Desktop/images/18082025/16/15/image_18082025_16_16_05_9733.jpg
/home/nano/Desktop/images/18082025/16/15/image_18082025_16_15_55_10729.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377707130","1377707114","1377707123","1377707101","1377707088","1377707127"],"photo_ids_order":["1377707088","1377707101","1377707114","1377707123","1377707127","1377707130"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e59f20f49171c3bdb0c91c770a68ee6e.jpg","text":"TemporaryFile(/tmp/multipartBody5001529486166117201asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526669053,"filename":"image_18082025_16_15_55_10729.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/91873131f70b118b497883b3966802c3.jpg","text":"TemporaryFile(/tmp/multipartBody642103602756660092asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526669053,"filename":"image_18082025_16_16_24_9668.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/52b9ba63765d6fb0a1129a1463af7b4f.jpg","text":"TemporaryFile(/tmp/multipartBody2329526480912507293asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526669053,"filename":"image_18082025_16_16_14_9708.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a45e7334a26aff0e25d7f2823ac23f52.jpg","text":"TemporaryFile(/tmp/multipartBody995830469125821900asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526669053,"filename":"image_18082025_16_16_35_10681.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3defef6b276becdbf1bac911d29216e4.jpg","text":"TemporaryFile(/tmp/multipartBody3439289153229591952asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526669053,"filename":"image_18082025_16_16_44_9698.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b2e0372c6331c02f11c8b5635660af41.jpg","text":"TemporaryFile(/tmp/multipartBody2074772047776858278asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526669053,"filename":"image_18082025_16_16_05_9733.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377707114","file1":"1377707101","file0":"1377707088","file4":"1377707127","file5":"1377707130","file3":"1377707123"},"map_files_photo_id_array":[{"photo_id":"1377707130","filename":"file5"},{"photo_id":"1377707114","filename":"file2"},{"photo_id":"1377707127","filename":"file4"},{"photo_id":"1377707101","filename":"file1"},{"photo_id":"1377707088","filename":"file0"},{"photo_id":"1377707123","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377707130":["hashtag1","hashtag2"]},{"1377707114":["hashtag1","hashtag2"]},{"1377707123":["hashtag1","hashtag2"]},{"1377707101":["hashtag1","hashtag2"]},{"1377707088":["hashtag1","hashtag2"]},{"1377707127":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377707130, 1377707114, 1377707123, 1377707101, 1377707088, 1377707127)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.41243076324463 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:17:32.531983
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/17/image_18082025_16_17_45_9699.jpg', 2), ('/home/nano/Desktop/images/18082025/16/17/image_18082025_16_17_35_10719.jpg', 2), ('/home/nano/Desktop/images/18082025/16/17/image_18082025_16_17_24_9702.jpg', 2), ('/home/nano/Desktop/images/18082025/16/17/image_18082025_16_17_15_9730.jpg', 2), ('/home/nano/Desktop/images/18082025/16/16/image_18082025_16_17_05_10698.jpg', 2), ('/home/nano/Desktop/images/18082025/16/16/image_18082025_16_16_54_9708.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/17/image_18082025_16_17_45_9699.jpg', '/home/nano/Desktop/images/18082025/16/17/image_18082025_16_17_35_10719.jpg', '/home/nano/Desktop/images/18082025/16/17/image_18082025_16_17_24_9702.jpg', '/home/nano/Desktop/images/18082025/16/17/image_18082025_16_17_15_9730.jpg', '/home/nano/Desktop/images/18082025/16/16/image_18082025_16_17_05_10698.jpg', '/home/nano/Desktop/images/18082025/16/16/image_18082025_16_16_54_9708.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/17/image_18082025_16_17_45_9699.jpg
/home/nano/Desktop/images/18082025/16/17/image_18082025_16_17_35_10719.jpg
/home/nano/Desktop/images/18082025/16/17/image_18082025_16_17_24_9702.jpg
/home/nano/Desktop/images/18082025/16/17/image_18082025_16_17_15_9730.jpg
/home/nano/Desktop/images/18082025/16/16/image_18082025_16_17_05_10698.jpg
/home/nano/Desktop/images/18082025/16/16/image_18082025_16_16_54_9708.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377707142","1377707139","1377707183","1377707167","1377707175","1377707160"],"photo_ids_order":["1377707139","1377707142","1377707160","1377707167","1377707175","1377707183"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/06138e3da9de0bc8b08f70f29708549d.jpg","text":"TemporaryFile(/tmp/multipartBody2178353610905729594asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526714225,"filename":"image_18082025_16_17_35_10719.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e1090e067fe03fe5e17e93646fcc627d.jpg","text":"TemporaryFile(/tmp/multipartBody4706295769683631806asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526714225,"filename":"image_18082025_16_17_45_9699.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4b1f67e46c3235c1eda0eb0869f46e9b.jpg","text":"TemporaryFile(/tmp/multipartBody8320579291176195568asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526714225,"filename":"image_18082025_16_16_54_9708.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ec4947608b1dafc0a856b660912c78c7.jpg","text":"TemporaryFile(/tmp/multipartBody4569618291891757948asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526714225,"filename":"image_18082025_16_17_15_9730.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/269d94a218e6e1563c72ca459801a457.jpg","text":"TemporaryFile(/tmp/multipartBody1530206135185256057asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526714225,"filename":"image_18082025_16_17_05_10698.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a6e68b12faa966f8929850dd95477d93.jpg","text":"TemporaryFile(/tmp/multipartBody5339387446582583639asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526714225,"filename":"image_18082025_16_17_24_9702.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377707160","file1":"1377707142","file0":"1377707139","file4":"1377707175","file5":"1377707183","file3":"1377707167"},"map_files_photo_id_array":[{"photo_id":"1377707183","filename":"file5"},{"photo_id":"1377707160","filename":"file2"},{"photo_id":"1377707175","filename":"file4"},{"photo_id":"1377707142","filename":"file1"},{"photo_id":"1377707139","filename":"file0"},{"photo_id":"1377707167","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377707142":["hashtag1","hashtag2"]},{"1377707139":["hashtag1","hashtag2"]},{"1377707183":["hashtag1","hashtag2"]},{"1377707167":["hashtag1","hashtag2"]},{"1377707175":["hashtag1","hashtag2"]},{"1377707160":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377707142, 1377707139, 1377707183, 1377707167, 1377707175, 1377707160)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.748288869857788 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:18:17.664148
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/18/image_18082025_16_18_45_10721.jpg', 2), ('/home/nano/Desktop/images/18082025/16/18/image_18082025_16_18_34_9694.jpg', 2), ('/home/nano/Desktop/images/18082025/16/18/image_18082025_16_18_25_9680.jpg', 2), ('/home/nano/Desktop/images/18082025/16/18/image_18082025_16_18_15_10781.jpg', 2), ('/home/nano/Desktop/images/18082025/16/17/image_18082025_16_18_04_9720.jpg', 2), ('/home/nano/Desktop/images/18082025/16/17/image_18082025_16_17_54_9705.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/18/image_18082025_16_18_45_10721.jpg', '/home/nano/Desktop/images/18082025/16/18/image_18082025_16_18_34_9694.jpg', '/home/nano/Desktop/images/18082025/16/18/image_18082025_16_18_25_9680.jpg', '/home/nano/Desktop/images/18082025/16/18/image_18082025_16_18_15_10781.jpg', '/home/nano/Desktop/images/18082025/16/17/image_18082025_16_18_04_9720.jpg', '/home/nano/Desktop/images/18082025/16/17/image_18082025_16_17_54_9705.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/18/image_18082025_16_18_45_10721.jpg
/home/nano/Desktop/images/18082025/16/18/image_18082025_16_18_34_9694.jpg
/home/nano/Desktop/images/18082025/16/18/image_18082025_16_18_25_9680.jpg
/home/nano/Desktop/images/18082025/16/18/image_18082025_16_18_15_10781.jpg
/home/nano/Desktop/images/18082025/16/17/image_18082025_16_18_04_9720.jpg
/home/nano/Desktop/images/18082025/16/17/image_18082025_16_17_54_9705.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377707208","1377707207","1377707203","1377707206","1377707209","1377707199"],"photo_ids_order":["1377707199","1377707203","1377707206","1377707207","1377707208","1377707209"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6f9e89d3b080067e1f50b2c9e159d48d.jpg","text":"TemporaryFile(/tmp/multipartBody7271269594186638414asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526759462,"filename":"image_18082025_16_18_04_9720.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2568a89df09cdb811b468e040a884a40.jpg","text":"TemporaryFile(/tmp/multipartBody522509496571996169asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526759462,"filename":"image_18082025_16_18_15_10781.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4fdb9f49cde75185f3d7b79613e0d5fc.jpg","text":"TemporaryFile(/tmp/multipartBody333242567249974011asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526759462,"filename":"image_18082025_16_18_34_9694.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bf4939c1d03213dac5c06b36286e956f.jpg","text":"TemporaryFile(/tmp/multipartBody1179005537963636963asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526759462,"filename":"image_18082025_16_18_25_9680.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7e090351a911d65257fe5e51d1cc195a.jpg","text":"TemporaryFile(/tmp/multipartBody5966427356656168600asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526759462,"filename":"image_18082025_16_17_54_9705.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/17733fc4116b5bf188e6340d7d21263c.jpg","text":"TemporaryFile(/tmp/multipartBody838962459120935656asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526759462,"filename":"image_18082025_16_18_45_10721.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377707206","file1":"1377707203","file0":"1377707199","file4":"1377707208","file5":"1377707209","file3":"1377707207"},"map_files_photo_id_array":[{"photo_id":"1377707209","filename":"file5"},{"photo_id":"1377707206","filename":"file2"},{"photo_id":"1377707208","filename":"file4"},{"photo_id":"1377707203","filename":"file1"},{"photo_id":"1377707199","filename":"file0"},{"photo_id":"1377707207","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377707208":["hashtag1","hashtag2"]},{"1377707207":["hashtag1","hashtag2"]},{"1377707203":["hashtag1","hashtag2"]},{"1377707206":["hashtag1","hashtag2"]},{"1377707209":["hashtag1","hashtag2"]},{"1377707199":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377707208, 1377707207, 1377707203, 1377707206, 1377707209, 1377707199)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.1921763420105 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:19:03.767265
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/29/image_18082025_10_29_24_9806.jpg', 2), ('/home/nano/Desktop/images/18082025/10/29/image_18082025_10_29_15_9872.jpg', 2), ('/home/nano/Desktop/images/18082025/10/28/image_18082025_10_29_05_9816.jpg', 2), ('/home/nano/Desktop/images/18082025/10/28/image_18082025_10_28_55_10840.jpg', 2), ('/home/nano/Desktop/images/18082025/10/28/image_18082025_10_28_44_9810.jpg', 2), ('/home/nano/Desktop/images/18082025/10/28/image_18082025_10_28_34_9810.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/29/image_18082025_10_29_24_9806.jpg', '/home/nano/Desktop/images/18082025/10/29/image_18082025_10_29_15_9872.jpg', '/home/nano/Desktop/images/18082025/10/28/image_18082025_10_29_05_9816.jpg', '/home/nano/Desktop/images/18082025/10/28/image_18082025_10_28_55_10840.jpg', '/home/nano/Desktop/images/18082025/10/28/image_18082025_10_28_44_9810.jpg', '/home/nano/Desktop/images/18082025/10/28/image_18082025_10_28_34_9810.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/29/image_18082025_10_29_24_9806.jpg
/home/nano/Desktop/images/18082025/10/29/image_18082025_10_29_15_9872.jpg
/home/nano/Desktop/images/18082025/10/28/image_18082025_10_29_05_9816.jpg
/home/nano/Desktop/images/18082025/10/28/image_18082025_10_28_55_10840.jpg
/home/nano/Desktop/images/18082025/10/28/image_18082025_10_28_44_9810.jpg
/home/nano/Desktop/images/18082025/10/28/image_18082025_10_28_34_9810.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377707220","1377707223","1377707228","1377707239","1377707232","1377707226"],"photo_ids_order":["1377707220","1377707223","1377707226","1377707228","1377707232","1377707239"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a0680458553605dc67886107478bfe89.jpg","text":"TemporaryFile(/tmp/multipartBody2044960956539416618asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526805836,"filename":"image_18082025_10_29_24_9806.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1eb03bb917aeba8851ac119df7f0d340.jpg","text":"TemporaryFile(/tmp/multipartBody2674075415644113114asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526805836,"filename":"image_18082025_10_29_15_9872.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e879cf77493760f9d8eb94b02fc4c651.jpg","text":"TemporaryFile(/tmp/multipartBody8111721707802961583asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526805836,"filename":"image_18082025_10_28_55_10840.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0a3106cec576f28ef7f207f95f136652.jpg","text":"TemporaryFile(/tmp/multipartBody3521541969027696539asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526805836,"filename":"image_18082025_10_28_34_9810.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ef100608d1e90b4b12c497acdfbe6b7d.jpg","text":"TemporaryFile(/tmp/multipartBody6064793141194368332asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526805836,"filename":"image_18082025_10_28_44_9810.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fd43a744555c93102bd0417c323a5891.jpg","text":"TemporaryFile(/tmp/multipartBody2635483979423660101asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526805836,"filename":"image_18082025_10_29_05_9816.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377707226","file1":"1377707223","file0":"1377707220","file4":"1377707232","file5":"1377707239","file3":"1377707228"},"map_files_photo_id_array":[{"photo_id":"1377707239","filename":"file5"},{"photo_id":"1377707226","filename":"file2"},{"photo_id":"1377707232","filename":"file4"},{"photo_id":"1377707223","filename":"file1"},{"photo_id":"1377707220","filename":"file0"},{"photo_id":"1377707228","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377707220":["hashtag1","hashtag2"]},{"1377707223":["hashtag1","hashtag2"]},{"1377707228":["hashtag1","hashtag2"]},{"1377707239":["hashtag1","hashtag2"]},{"1377707232":["hashtag1","hashtag2"]},{"1377707226":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377707220, 1377707223, 1377707228, 1377707239, 1377707232, 1377707226)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.763165712356567 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:19:47.747202
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/19/image_18082025_16_19_44_9685.jpg', 2), ('/home/nano/Desktop/images/18082025/16/19/image_18082025_16_19_35_9721.jpg', 2), ('/home/nano/Desktop/images/18082025/16/19/image_18082025_16_19_25_10730.jpg', 2), ('/home/nano/Desktop/images/18082025/16/19/image_18082025_16_19_14_9765.jpg', 2), ('/home/nano/Desktop/images/18082025/16/18/image_18082025_16_19_04_9746.jpg', 2), ('/home/nano/Desktop/images/18082025/16/18/image_18082025_16_18_55_9692.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/19/image_18082025_16_19_44_9685.jpg', '/home/nano/Desktop/images/18082025/16/19/image_18082025_16_19_35_9721.jpg', '/home/nano/Desktop/images/18082025/16/19/image_18082025_16_19_25_10730.jpg', '/home/nano/Desktop/images/18082025/16/19/image_18082025_16_19_14_9765.jpg', '/home/nano/Desktop/images/18082025/16/18/image_18082025_16_19_04_9746.jpg', '/home/nano/Desktop/images/18082025/16/18/image_18082025_16_18_55_9692.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/19/image_18082025_16_19_44_9685.jpg
/home/nano/Desktop/images/18082025/16/19/image_18082025_16_19_35_9721.jpg
/home/nano/Desktop/images/18082025/16/19/image_18082025_16_19_25_10730.jpg
/home/nano/Desktop/images/18082025/16/19/image_18082025_16_19_14_9765.jpg
/home/nano/Desktop/images/18082025/16/18/image_18082025_16_19_04_9746.jpg
/home/nano/Desktop/images/18082025/16/18/image_18082025_16_18_55_9692.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377707267","1377707261","1377707258","1377707272","1377707263","1377707259"],"photo_ids_order":["1377707258","1377707259","1377707261","1377707263","1377707267","1377707272"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ef5db760682f2097294bee0a278f86b3.jpg","text":"TemporaryFile(/tmp/multipartBody9181154740612206615asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526849448,"filename":"image_18082025_16_19_04_9746.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1b3b1cb5290f9daf24ae935cb891f78f.jpg","text":"TemporaryFile(/tmp/multipartBody4348708083406139487asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526849448,"filename":"image_18082025_16_19_25_10730.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/442956b3cd7d0a52d5a4af5075db7bb6.jpg","text":"TemporaryFile(/tmp/multipartBody4508035532755095531asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526849448,"filename":"image_18082025_16_19_44_9685.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0cfe6985abaa484338ef3afcd475d6ee.jpg","text":"TemporaryFile(/tmp/multipartBody190087882261253107asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526849448,"filename":"image_18082025_16_18_55_9692.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cb1f51363530402d74979aebe45de4d4.jpg","text":"TemporaryFile(/tmp/multipartBody7611266608545313620asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526849448,"filename":"image_18082025_16_19_14_9765.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e33eb2230ed46e01cf66031028e78cdd.jpg","text":"TemporaryFile(/tmp/multipartBody7214813179409884100asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526849448,"filename":"image_18082025_16_19_35_9721.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377707261","file1":"1377707259","file0":"1377707258","file4":"1377707267","file5":"1377707272","file3":"1377707263"},"map_files_photo_id_array":[{"photo_id":"1377707272","filename":"file5"},{"photo_id":"1377707261","filename":"file2"},{"photo_id":"1377707267","filename":"file4"},{"photo_id":"1377707259","filename":"file1"},{"photo_id":"1377707258","filename":"file0"},{"photo_id":"1377707263","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377707267":["hashtag1","hashtag2"]},{"1377707261":["hashtag1","hashtag2"]},{"1377707258":["hashtag1","hashtag2"]},{"1377707272":["hashtag1","hashtag2"]},{"1377707263":["hashtag1","hashtag2"]},{"1377707259":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377707267, 1377707261, 1377707258, 1377707272, 1377707263, 1377707259)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.33654451370239 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:20:31.907623
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/20/image_18082025_16_20_55_10604.jpg', 2), ('/home/nano/Desktop/images/18082025/16/20/image_18082025_16_20_35_9595.jpg', 2), ('/home/nano/Desktop/images/18082025/16/20/image_18082025_16_20_25_10605.jpg', 2), ('/home/nano/Desktop/images/18082025/16/20/image_18082025_16_20_14_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/16/19/image_18082025_16_20_05_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/16/19/image_18082025_16_19_55_10669.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/20/image_18082025_16_20_55_10604.jpg', '/home/nano/Desktop/images/18082025/16/20/image_18082025_16_20_35_9595.jpg', '/home/nano/Desktop/images/18082025/16/20/image_18082025_16_20_25_10605.jpg', '/home/nano/Desktop/images/18082025/16/20/image_18082025_16_20_14_9622.jpg', '/home/nano/Desktop/images/18082025/16/19/image_18082025_16_20_05_9629.jpg', '/home/nano/Desktop/images/18082025/16/19/image_18082025_16_19_55_10669.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/20/image_18082025_16_20_55_10604.jpg
/home/nano/Desktop/images/18082025/16/20/image_18082025_16_20_35_9595.jpg
/home/nano/Desktop/images/18082025/16/20/image_18082025_16_20_25_10605.jpg
/home/nano/Desktop/images/18082025/16/20/image_18082025_16_20_14_9622.jpg
/home/nano/Desktop/images/18082025/16/19/image_18082025_16_20_05_9629.jpg
/home/nano/Desktop/images/18082025/16/19/image_18082025_16_19_55_10669.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377707288","1377707282","1377707290","1377707284","1377707283","1377707286"],"photo_ids_order":["1377707282","1377707283","1377707284","1377707286","1377707288","1377707290"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a489d2a1a88c483a476b17eea44c50bd.jpg","text":"TemporaryFile(/tmp/multipartBody565577584223191645asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526893265,"filename":"image_18082025_16_20_05_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/854a34b6a3a73e439f895c58793ca6a4.jpg","text":"TemporaryFile(/tmp/multipartBody4306113306606503708asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526893265,"filename":"image_18082025_16_20_55_10604.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f75674a33fbc3b45218c5304fc64ee2f.jpg","text":"TemporaryFile(/tmp/multipartBody5136386412085930194asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526893265,"filename":"image_18082025_16_19_55_10669.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6f9f47b2ca5a3ddfdc642cb150b6d46c.jpg","text":"TemporaryFile(/tmp/multipartBody3584177948429646062asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526893265,"filename":"image_18082025_16_20_25_10605.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/08c4b5c696711ace43b17f36daa70da5.jpg","text":"TemporaryFile(/tmp/multipartBody6072220467873720692asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526893265,"filename":"image_18082025_16_20_35_9595.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5bec34599c71983ca5a729cc25b47351.jpg","text":"TemporaryFile(/tmp/multipartBody6429667396776793687asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526893265,"filename":"image_18082025_16_20_14_9622.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377707284","file1":"1377707283","file0":"1377707282","file4":"1377707288","file5":"1377707290","file3":"1377707286"},"map_files_photo_id_array":[{"photo_id":"1377707290","filename":"file5"},{"photo_id":"1377707284","filename":"file2"},{"photo_id":"1377707288","filename":"file4"},{"photo_id":"1377707283","filename":"file1"},{"photo_id":"1377707282","filename":"file0"},{"photo_id":"1377707286","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377707288":["hashtag1","hashtag2"]},{"1377707282":["hashtag1","hashtag2"]},{"1377707290":["hashtag1","hashtag2"]},{"1377707284":["hashtag1","hashtag2"]},{"1377707283":["hashtag1","hashtag2"]},{"1377707286":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377707288, 1377707282, 1377707290, 1377707284, 1377707283, 1377707286)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.90807747840881 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:21:16.945521
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/21/image_18082025_16_21_45_10606.jpg', 2), ('/home/nano/Desktop/images/18082025/16/21/image_18082025_16_21_34_9599.jpg', 2), ('/home/nano/Desktop/images/18082025/16/21/image_18082025_16_21_25_9597.jpg', 2), ('/home/nano/Desktop/images/18082025/16/21/image_18082025_16_21_15_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/16/20/image_18082025_16_21_04_9596.jpg', 2), ('/home/nano/Desktop/images/18082025/16/20/image_18082025_16_20_44_9599.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/21/image_18082025_16_21_45_10606.jpg', '/home/nano/Desktop/images/18082025/16/21/image_18082025_16_21_34_9599.jpg', '/home/nano/Desktop/images/18082025/16/21/image_18082025_16_21_25_9597.jpg', '/home/nano/Desktop/images/18082025/16/21/image_18082025_16_21_15_10638.jpg', '/home/nano/Desktop/images/18082025/16/20/image_18082025_16_21_04_9596.jpg', '/home/nano/Desktop/images/18082025/16/20/image_18082025_16_20_44_9599.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/21/image_18082025_16_21_45_10606.jpg
/home/nano/Desktop/images/18082025/16/21/image_18082025_16_21_34_9599.jpg
/home/nano/Desktop/images/18082025/16/21/image_18082025_16_21_25_9597.jpg
/home/nano/Desktop/images/18082025/16/21/image_18082025_16_21_15_10638.jpg
/home/nano/Desktop/images/18082025/16/20/image_18082025_16_21_04_9596.jpg
/home/nano/Desktop/images/18082025/16/20/image_18082025_16_20_44_9599.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377707310","1377707306","1377707315","1377707335","1377707323","1377707308"],"photo_ids_order":["1377707306","1377707308","1377707310","1377707315","1377707323","1377707335"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b2071e1802729534d0fbed5e9a7d2b6b.jpg","text":"TemporaryFile(/tmp/multipartBody901606713333191990asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526938008,"filename":"image_18082025_16_21_25_9597.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/158480dac4b194e517d88655a53c0820.jpg","text":"TemporaryFile(/tmp/multipartBody8275121956891735595asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526938008,"filename":"image_18082025_16_21_45_10606.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5d4c6c47488a706770a6f34d1279ec9b.jpg","text":"TemporaryFile(/tmp/multipartBody5221095061992632585asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526938008,"filename":"image_18082025_16_21_15_10638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0b315434bfb0e9f61bcc292a8fc86c75.jpg","text":"TemporaryFile(/tmp/multipartBody7846855542624917510asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526938008,"filename":"image_18082025_16_20_44_9599.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/15992770106fc25e8d4b327f0bf11a2d.jpg","text":"TemporaryFile(/tmp/multipartBody3555774584545554959asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526938008,"filename":"image_18082025_16_21_04_9596.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/89fcec5474e557304f7c6d3420734ae0.jpg","text":"TemporaryFile(/tmp/multipartBody6572492586495095192asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526938008,"filename":"image_18082025_16_21_34_9599.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377707310","file1":"1377707308","file0":"1377707306","file4":"1377707323","file5":"1377707335","file3":"1377707315"},"map_files_photo_id_array":[{"photo_id":"1377707335","filename":"file5"},{"photo_id":"1377707310","filename":"file2"},{"photo_id":"1377707323","filename":"file4"},{"photo_id":"1377707308","filename":"file1"},{"photo_id":"1377707306","filename":"file0"},{"photo_id":"1377707315","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377707310":["hashtag1","hashtag2"]},{"1377707306":["hashtag1","hashtag2"]},{"1377707315":["hashtag1","hashtag2"]},{"1377707335":["hashtag1","hashtag2"]},{"1377707323":["hashtag1","hashtag2"]},{"1377707308":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377707310, 1377707306, 1377707315, 1377707335, 1377707323, 1377707308)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.173685789108276 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:22:02.372617
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/28/image_18082025_10_28_25_9816.jpg', 2), ('/home/nano/Desktop/images/18082025/10/27/image_18082025_10_28_05_9826.jpg', 2), ('/home/nano/Desktop/images/18082025/10/27/image_18082025_10_27_55_10822.jpg', 2), ('/home/nano/Desktop/images/18082025/10/27/image_18082025_10_27_44_9815.jpg', 2), ('/home/nano/Desktop/images/18082025/10/27/image_18082025_10_27_34_9809.jpg', 2), ('/home/nano/Desktop/images/18082025/10/27/image_18082025_10_27_25_9832.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/28/image_18082025_10_28_25_9816.jpg', '/home/nano/Desktop/images/18082025/10/27/image_18082025_10_28_05_9826.jpg', '/home/nano/Desktop/images/18082025/10/27/image_18082025_10_27_55_10822.jpg', '/home/nano/Desktop/images/18082025/10/27/image_18082025_10_27_44_9815.jpg', '/home/nano/Desktop/images/18082025/10/27/image_18082025_10_27_34_9809.jpg', '/home/nano/Desktop/images/18082025/10/27/image_18082025_10_27_25_9832.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/28/image_18082025_10_28_25_9816.jpg
/home/nano/Desktop/images/18082025/10/27/image_18082025_10_28_05_9826.jpg
/home/nano/Desktop/images/18082025/10/27/image_18082025_10_27_55_10822.jpg
/home/nano/Desktop/images/18082025/10/27/image_18082025_10_27_44_9815.jpg
/home/nano/Desktop/images/18082025/10/27/image_18082025_10_27_34_9809.jpg
/home/nano/Desktop/images/18082025/10/27/image_18082025_10_27_25_9832.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377707421","1377707409","1377707417","1377707411","1377707405","1377707413"],"photo_ids_order":["1377707405","1377707409","1377707411","1377707413","1377707417","1377707421"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/298a3cc526f2a7b10430bfcf92ea9cd3.jpg","text":"TemporaryFile(/tmp/multipartBody7893081591247206628asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526984523,"filename":"image_18082025_10_27_25_9832.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0dc27683691ca41f2d49aa2a2a6f6c6a.jpg","text":"TemporaryFile(/tmp/multipartBody9024436235861882898asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526984523,"filename":"image_18082025_10_28_05_9826.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d7eaa37307adff2535af3934eff6e5c9.jpg","text":"TemporaryFile(/tmp/multipartBody7347456272189098032asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526984523,"filename":"image_18082025_10_27_34_9809.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cb62cd354cdc6e467a871e022931c550.jpg","text":"TemporaryFile(/tmp/multipartBody8972827940491468721asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526984523,"filename":"image_18082025_10_27_55_10822.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/58560a97f986145c0afe351465623fe7.jpg","text":"TemporaryFile(/tmp/multipartBody6168453426525234078asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526984523,"filename":"image_18082025_10_28_25_9816.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b8fd01b28bd5e3cf13869c3bac3bd8c7.jpg","text":"TemporaryFile(/tmp/multipartBody4659385441194334130asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755526984523,"filename":"image_18082025_10_27_44_9815.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377707411","file1":"1377707409","file0":"1377707405","file4":"1377707417","file5":"1377707421","file3":"1377707413"},"map_files_photo_id_array":[{"photo_id":"1377707421","filename":"file5"},{"photo_id":"1377707411","filename":"file2"},{"photo_id":"1377707417","filename":"file4"},{"photo_id":"1377707409","filename":"file1"},{"photo_id":"1377707405","filename":"file0"},{"photo_id":"1377707413","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377707421":["hashtag1","hashtag2"]},{"1377707409":["hashtag1","hashtag2"]},{"1377707417":["hashtag1","hashtag2"]},{"1377707411":["hashtag1","hashtag2"]},{"1377707405":["hashtag1","hashtag2"]},{"1377707413":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377707421, 1377707409, 1377707417, 1377707411, 1377707405, 1377707413)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.384069204330444 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:22:47.033757
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/22/image_18082025_16_22_44_9597.jpg', 2), ('/home/nano/Desktop/images/18082025/16/22/image_18082025_16_22_35_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/16/22/image_18082025_16_22_24_9604.jpg', 2), ('/home/nano/Desktop/images/18082025/16/22/image_18082025_16_22_15_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/16/21/image_18082025_16_22_05_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/16/21/image_18082025_16_21_54_9599.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/22/image_18082025_16_22_44_9597.jpg', '/home/nano/Desktop/images/18082025/16/22/image_18082025_16_22_35_10621.jpg', '/home/nano/Desktop/images/18082025/16/22/image_18082025_16_22_24_9604.jpg', '/home/nano/Desktop/images/18082025/16/22/image_18082025_16_22_15_9617.jpg', '/home/nano/Desktop/images/18082025/16/21/image_18082025_16_22_05_10629.jpg', '/home/nano/Desktop/images/18082025/16/21/image_18082025_16_21_54_9599.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/22/image_18082025_16_22_44_9597.jpg
/home/nano/Desktop/images/18082025/16/22/image_18082025_16_22_35_10621.jpg
/home/nano/Desktop/images/18082025/16/22/image_18082025_16_22_24_9604.jpg
/home/nano/Desktop/images/18082025/16/22/image_18082025_16_22_15_9617.jpg
/home/nano/Desktop/images/18082025/16/21/image_18082025_16_22_05_10629.jpg
/home/nano/Desktop/images/18082025/16/21/image_18082025_16_21_54_9599.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377707438","1377707432","1377707440","1377707434","1377707443","1377707436"],"photo_ids_order":["1377707432","1377707434","1377707436","1377707438","1377707440","1377707443"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/686c2765be21670b7cb1a6482df2a903.jpg","text":"TemporaryFile(/tmp/multipartBody5699255995643004543asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527028318,"filename":"image_18082025_16_22_15_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/75ee7e4a5bc26b233ffec45093b52f42.jpg","text":"TemporaryFile(/tmp/multipartBody1286741692758452asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527028318,"filename":"image_18082025_16_22_44_9597.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2278ab62614cb720c548352ee82bff73.jpg","text":"TemporaryFile(/tmp/multipartBody6817037988891325087asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527028318,"filename":"image_18082025_16_22_05_10629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e6e23cd1da4ca951e15b710ee8427bb9.jpg","text":"TemporaryFile(/tmp/multipartBody1247034746018394983asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527028318,"filename":"image_18082025_16_22_35_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b08b774be7e311889cb8449bb21f9f8b.jpg","text":"TemporaryFile(/tmp/multipartBody2935143710342346902asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527028318,"filename":"image_18082025_16_21_54_9599.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/aa7a574ff7ffd2b72ee8195d75db0330.jpg","text":"TemporaryFile(/tmp/multipartBody554915099122210609asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527028318,"filename":"image_18082025_16_22_24_9604.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377707436","file1":"1377707434","file0":"1377707432","file4":"1377707440","file5":"1377707443","file3":"1377707438"},"map_files_photo_id_array":[{"photo_id":"1377707443","filename":"file5"},{"photo_id":"1377707436","filename":"file2"},{"photo_id":"1377707440","filename":"file4"},{"photo_id":"1377707434","filename":"file1"},{"photo_id":"1377707432","filename":"file0"},{"photo_id":"1377707438","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377707438":["hashtag1","hashtag2"]},{"1377707432":["hashtag1","hashtag2"]},{"1377707440":["hashtag1","hashtag2"]},{"1377707434":["hashtag1","hashtag2"]},{"1377707443":["hashtag1","hashtag2"]},{"1377707436":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377707438, 1377707432, 1377707440, 1377707434, 1377707443, 1377707436)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.10510492324829 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:23:32.147697
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/23/image_18082025_16_23_44_9599.jpg', 2), ('/home/nano/Desktop/images/18082025/16/23/image_18082025_16_23_35_9599.jpg', 2), ('/home/nano/Desktop/images/18082025/16/23/image_18082025_16_23_25_10612.jpg', 2), ('/home/nano/Desktop/images/18082025/16/23/image_18082025_16_23_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/16/22/image_18082025_16_23_05_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/16/22/image_18082025_16_22_55_10612.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/23/image_18082025_16_23_44_9599.jpg', '/home/nano/Desktop/images/18082025/16/23/image_18082025_16_23_35_9599.jpg', '/home/nano/Desktop/images/18082025/16/23/image_18082025_16_23_25_10612.jpg', '/home/nano/Desktop/images/18082025/16/23/image_18082025_16_23_14_9662.jpg', '/home/nano/Desktop/images/18082025/16/22/image_18082025_16_23_05_9607.jpg', '/home/nano/Desktop/images/18082025/16/22/image_18082025_16_22_55_10612.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/23/image_18082025_16_23_44_9599.jpg
/home/nano/Desktop/images/18082025/16/23/image_18082025_16_23_35_9599.jpg
/home/nano/Desktop/images/18082025/16/23/image_18082025_16_23_25_10612.jpg
/home/nano/Desktop/images/18082025/16/23/image_18082025_16_23_14_9662.jpg
/home/nano/Desktop/images/18082025/16/22/image_18082025_16_23_05_9607.jpg
/home/nano/Desktop/images/18082025/16/22/image_18082025_16_22_55_10612.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377707498","1377707486","1377707474","1377707464","1377707454","1377707457"],"photo_ids_order":["1377707454","1377707457","1377707464","1377707474","1377707486","1377707498"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/741b9f713c31d0197c3479e44daa85ec.jpg","text":"TemporaryFile(/tmp/multipartBody6907395248694555377asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527073613,"filename":"image_18082025_16_22_55_10612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b50a91cc6f3934a99bf3bbd016b40b4d.jpg","text":"TemporaryFile(/tmp/multipartBody2907409791256477947asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527073613,"filename":"image_18082025_16_23_05_9607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6a6c790125f525573b8d9ca8894efe05.jpg","text":"TemporaryFile(/tmp/multipartBody7996927680441584424asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527073613,"filename":"image_18082025_16_23_14_9662.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/62eff7d28db8ec3da9b57fbdd8a07104.jpg","text":"TemporaryFile(/tmp/multipartBody2010202970054621642asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527073613,"filename":"image_18082025_16_23_25_10612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/db6d8097f0280e5ab3500a148106986c.jpg","text":"TemporaryFile(/tmp/multipartBody8372492055566373953asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527073613,"filename":"image_18082025_16_23_44_9599.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fa59d4a7ce9a0f15ad0a799b8cac7d49.jpg","text":"TemporaryFile(/tmp/multipartBody546966443236547264asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527073613,"filename":"image_18082025_16_23_35_9599.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377707464","file1":"1377707457","file0":"1377707454","file4":"1377707486","file5":"1377707498","file3":"1377707474"},"map_files_photo_id_array":[{"photo_id":"1377707498","filename":"file5"},{"photo_id":"1377707464","filename":"file2"},{"photo_id":"1377707486","filename":"file4"},{"photo_id":"1377707457","filename":"file1"},{"photo_id":"1377707454","filename":"file0"},{"photo_id":"1377707474","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377707498":["hashtag1","hashtag2"]},{"1377707486":["hashtag1","hashtag2"]},{"1377707474":["hashtag1","hashtag2"]},{"1377707464":["hashtag1","hashtag2"]},{"1377707454":["hashtag1","hashtag2"]},{"1377707457":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377707498, 1377707486, 1377707474, 1377707464, 1377707454, 1377707457)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.967602729797363 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:24:17.245266
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/24/image_18082025_16_24_45_10608.jpg', 2), ('/home/nano/Desktop/images/18082025/16/24/image_18082025_16_24_34_9603.jpg', 2), ('/home/nano/Desktop/images/18082025/16/24/image_18082025_16_24_25_9602.jpg', 2), ('/home/nano/Desktop/images/18082025/16/24/image_18082025_16_24_15_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/16/23/image_18082025_16_24_04_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/16/23/image_18082025_16_23_55_10613.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/24/image_18082025_16_24_45_10608.jpg', '/home/nano/Desktop/images/18082025/16/24/image_18082025_16_24_34_9603.jpg', '/home/nano/Desktop/images/18082025/16/24/image_18082025_16_24_25_9602.jpg', '/home/nano/Desktop/images/18082025/16/24/image_18082025_16_24_15_10667.jpg', '/home/nano/Desktop/images/18082025/16/23/image_18082025_16_24_04_9613.jpg', '/home/nano/Desktop/images/18082025/16/23/image_18082025_16_23_55_10613.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/24/image_18082025_16_24_45_10608.jpg
/home/nano/Desktop/images/18082025/16/24/image_18082025_16_24_34_9603.jpg
/home/nano/Desktop/images/18082025/16/24/image_18082025_16_24_25_9602.jpg
/home/nano/Desktop/images/18082025/16/24/image_18082025_16_24_15_10667.jpg
/home/nano/Desktop/images/18082025/16/23/image_18082025_16_24_04_9613.jpg
/home/nano/Desktop/images/18082025/16/23/image_18082025_16_23_55_10613.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377707514","1377707519","1377707512","1377707521","1377707523","1377707517"],"photo_ids_order":["1377707512","1377707514","1377707517","1377707519","1377707521","1377707523"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/aeb267efcfef2589024d5e54167f9a56.jpg","text":"TemporaryFile(/tmp/multipartBody9211991194283046781asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527118645,"filename":"image_18082025_16_24_34_9603.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/167774883063e9f0e70bc8e4d0077764.jpg","text":"TemporaryFile(/tmp/multipartBody7074244612684177329asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527118645,"filename":"image_18082025_16_24_15_10667.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fc0918b2830db0f36989d712d9cc964f.jpg","text":"TemporaryFile(/tmp/multipartBody24571185616700466asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527118645,"filename":"image_18082025_16_24_45_10608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/20520ba0734c53466c9404ceee761804.jpg","text":"TemporaryFile(/tmp/multipartBody3520267218900292188asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527118645,"filename":"image_18082025_16_24_04_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6b10606bbe7f0cc3598d69fae703468a.jpg","text":"TemporaryFile(/tmp/multipartBody4442883485030080722asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527118645,"filename":"image_18082025_16_23_55_10613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b5add4cad46a8568bb2d6b57a27fe548.jpg","text":"TemporaryFile(/tmp/multipartBody2717549397734037625asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527118645,"filename":"image_18082025_16_24_25_9602.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377707517","file1":"1377707514","file0":"1377707512","file4":"1377707521","file5":"1377707523","file3":"1377707519"},"map_files_photo_id_array":[{"photo_id":"1377707523","filename":"file5"},{"photo_id":"1377707517","filename":"file2"},{"photo_id":"1377707521","filename":"file4"},{"photo_id":"1377707514","filename":"file1"},{"photo_id":"1377707512","filename":"file0"},{"photo_id":"1377707519","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377707514":["hashtag1","hashtag2"]},{"1377707519":["hashtag1","hashtag2"]},{"1377707512":["hashtag1","hashtag2"]},{"1377707521":["hashtag1","hashtag2"]},{"1377707523":["hashtag1","hashtag2"]},{"1377707517":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377707514, 1377707519, 1377707512, 1377707521, 1377707523, 1377707517)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.343771934509277 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:25:03.014104
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/27/image_18082025_10_27_15_9868.jpg', 2), ('/home/nano/Desktop/images/18082025/10/26/image_18082025_10_27_05_10835.jpg', 2), ('/home/nano/Desktop/images/18082025/10/26/image_18082025_10_26_54_9811.jpg', 2), ('/home/nano/Desktop/images/18082025/10/26/image_18082025_10_26_44_9817.jpg', 2), ('/home/nano/Desktop/images/18082025/10/26/image_18082025_10_26_34_9793.jpg', 2), ('/home/nano/Desktop/images/18082025/10/26/image_18082025_10_26_25_9799.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/27/image_18082025_10_27_15_9868.jpg', '/home/nano/Desktop/images/18082025/10/26/image_18082025_10_27_05_10835.jpg', '/home/nano/Desktop/images/18082025/10/26/image_18082025_10_26_54_9811.jpg', '/home/nano/Desktop/images/18082025/10/26/image_18082025_10_26_44_9817.jpg', '/home/nano/Desktop/images/18082025/10/26/image_18082025_10_26_34_9793.jpg', '/home/nano/Desktop/images/18082025/10/26/image_18082025_10_26_25_9799.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/27/image_18082025_10_27_15_9868.jpg
/home/nano/Desktop/images/18082025/10/26/image_18082025_10_27_05_10835.jpg
/home/nano/Desktop/images/18082025/10/26/image_18082025_10_26_54_9811.jpg
/home/nano/Desktop/images/18082025/10/26/image_18082025_10_26_44_9817.jpg
/home/nano/Desktop/images/18082025/10/26/image_18082025_10_26_34_9793.jpg
/home/nano/Desktop/images/18082025/10/26/image_18082025_10_26_25_9799.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377707528","1377707530","1377707533","1377707536","1377707541","1377707538"],"photo_ids_order":["1377707528","1377707530","1377707533","1377707536","1377707538","1377707541"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/03ce356dc6f2943db587e746c75d8410.jpg","text":"TemporaryFile(/tmp/multipartBody5416720056927827983asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527165159,"filename":"image_18082025_10_27_15_9868.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/229d19201a0a857798f8f4cf43a1fdfc.jpg","text":"TemporaryFile(/tmp/multipartBody4877002811664250838asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527165159,"filename":"image_18082025_10_27_05_10835.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ded653ff45e44ae9c3b60d1d6c221cfb.jpg","text":"TemporaryFile(/tmp/multipartBody1481896177843366107asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527165159,"filename":"image_18082025_10_26_54_9811.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3ecb06ecdb858ca329874e23e887e345.jpg","text":"TemporaryFile(/tmp/multipartBody1760115627755212678asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527165159,"filename":"image_18082025_10_26_44_9817.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/221adad3a9eaa56d0a09c8a6a64ab990.jpg","text":"TemporaryFile(/tmp/multipartBody1892537695799895466asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527165159,"filename":"image_18082025_10_26_25_9799.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/660c4b05add9a16dc7cc2fdd9097377a.jpg","text":"TemporaryFile(/tmp/multipartBody7947890376569369594asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527165159,"filename":"image_18082025_10_26_34_9793.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377707533","file1":"1377707530","file0":"1377707528","file4":"1377707538","file5":"1377707541","file3":"1377707536"},"map_files_photo_id_array":[{"photo_id":"1377707541","filename":"file5"},{"photo_id":"1377707533","filename":"file2"},{"photo_id":"1377707538","filename":"file4"},{"photo_id":"1377707530","filename":"file1"},{"photo_id":"1377707528","filename":"file0"},{"photo_id":"1377707536","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377707528":["hashtag1","hashtag2"]},{"1377707530":["hashtag1","hashtag2"]},{"1377707533":["hashtag1","hashtag2"]},{"1377707536":["hashtag1","hashtag2"]},{"1377707541":["hashtag1","hashtag2"]},{"1377707538":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377707528, 1377707530, 1377707533, 1377707536, 1377707541, 1377707538)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.76127243041992 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:25:47.344718
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/25/image_18082025_16_25_45_9707.jpg', 2), ('/home/nano/Desktop/images/18082025/16/25/image_18082025_16_25_35_10680.jpg', 2), ('/home/nano/Desktop/images/18082025/16/25/image_18082025_16_25_24_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/16/25/image_18082025_16_25_15_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/16/24/image_18082025_16_25_05_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/16/24/image_18082025_16_24_54_9596.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/25/image_18082025_16_25_45_9707.jpg', '/home/nano/Desktop/images/18082025/16/25/image_18082025_16_25_35_10680.jpg', '/home/nano/Desktop/images/18082025/16/25/image_18082025_16_25_24_9636.jpg', '/home/nano/Desktop/images/18082025/16/25/image_18082025_16_25_15_9624.jpg', '/home/nano/Desktop/images/18082025/16/24/image_18082025_16_25_05_10626.jpg', '/home/nano/Desktop/images/18082025/16/24/image_18082025_16_24_54_9596.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/25/image_18082025_16_25_45_9707.jpg
/home/nano/Desktop/images/18082025/16/25/image_18082025_16_25_35_10680.jpg
/home/nano/Desktop/images/18082025/16/25/image_18082025_16_25_24_9636.jpg
/home/nano/Desktop/images/18082025/16/25/image_18082025_16_25_15_9624.jpg
/home/nano/Desktop/images/18082025/16/24/image_18082025_16_25_05_10626.jpg
/home/nano/Desktop/images/18082025/16/24/image_18082025_16_24_54_9596.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377707604","1377707594","1377707581","1377707623","1377707566","1377707616"],"photo_ids_order":["1377707566","1377707581","1377707594","1377707604","1377707616","1377707623"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ce0ee849b62132c239f3305f1df0b0ef.jpg","text":"TemporaryFile(/tmp/multipartBody254163880816159566asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527208888,"filename":"image_18082025_16_25_15_9624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/90e1b24446bf36d184f146259aec9cfd.jpg","text":"TemporaryFile(/tmp/multipartBody7196805894986438372asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527208888,"filename":"image_18082025_16_25_24_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e406ad989e814be87a8d30be5b031330.jpg","text":"TemporaryFile(/tmp/multipartBody3415319473804583167asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527208888,"filename":"image_18082025_16_25_35_10680.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e12d6d410049252e20121e79f2e0af4b.jpg","text":"TemporaryFile(/tmp/multipartBody794489196361759830asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527208888,"filename":"image_18082025_16_24_54_9596.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8cf4bf34dbaf4ce70afd741899015c04.jpg","text":"TemporaryFile(/tmp/multipartBody769724208108660285asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527208888,"filename":"image_18082025_16_25_45_9707.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3ef8ab350c1b06a61337180c81821c42.jpg","text":"TemporaryFile(/tmp/multipartBody6538204422504185617asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527208888,"filename":"image_18082025_16_25_05_10626.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377707594","file1":"1377707581","file0":"1377707566","file4":"1377707616","file5":"1377707623","file3":"1377707604"},"map_files_photo_id_array":[{"photo_id":"1377707623","filename":"file5"},{"photo_id":"1377707594","filename":"file2"},{"photo_id":"1377707616","filename":"file4"},{"photo_id":"1377707581","filename":"file1"},{"photo_id":"1377707566","filename":"file0"},{"photo_id":"1377707604","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377707604":["hashtag1","hashtag2"]},{"1377707594":["hashtag1","hashtag2"]},{"1377707581":["hashtag1","hashtag2"]},{"1377707623":["hashtag1","hashtag2"]},{"1377707566":["hashtag1","hashtag2"]},{"1377707616":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377707604, 1377707594, 1377707581, 1377707623, 1377707566, 1377707616)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.74204611778259 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:26:32.493620
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/26/image_18082025_16_26_45_10738.jpg', 2), ('/home/nano/Desktop/images/18082025/16/26/image_18082025_16_26_34_9725.jpg', 2), ('/home/nano/Desktop/images/18082025/16/26/image_18082025_16_26_25_9724.jpg', 2), ('/home/nano/Desktop/images/18082025/16/26/image_18082025_16_26_15_10698.jpg', 2), ('/home/nano/Desktop/images/18082025/16/25/image_18082025_16_26_04_9712.jpg', 2), ('/home/nano/Desktop/images/18082025/16/25/image_18082025_16_25_54_9710.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/26/image_18082025_16_26_45_10738.jpg', '/home/nano/Desktop/images/18082025/16/26/image_18082025_16_26_34_9725.jpg', '/home/nano/Desktop/images/18082025/16/26/image_18082025_16_26_25_9724.jpg', '/home/nano/Desktop/images/18082025/16/26/image_18082025_16_26_15_10698.jpg', '/home/nano/Desktop/images/18082025/16/25/image_18082025_16_26_04_9712.jpg', '/home/nano/Desktop/images/18082025/16/25/image_18082025_16_25_54_9710.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/26/image_18082025_16_26_45_10738.jpg
/home/nano/Desktop/images/18082025/16/26/image_18082025_16_26_34_9725.jpg
/home/nano/Desktop/images/18082025/16/26/image_18082025_16_26_25_9724.jpg
/home/nano/Desktop/images/18082025/16/26/image_18082025_16_26_15_10698.jpg
/home/nano/Desktop/images/18082025/16/25/image_18082025_16_26_04_9712.jpg
/home/nano/Desktop/images/18082025/16/25/image_18082025_16_25_54_9710.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377707666","1377707669","1377707668","1377707662","1377707670","1377707664"],"photo_ids_order":["1377707662","1377707664","1377707666","1377707668","1377707669","1377707670"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dadddd239e12ebde98eedfc0455b00aa.jpg","text":"TemporaryFile(/tmp/multipartBody6274042790876263177asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527254364,"filename":"image_18082025_16_26_25_9724.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/97b3b6c5e8627a766189ecab6c2f0b9c.jpg","text":"TemporaryFile(/tmp/multipartBody5060264891666393533asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527254364,"filename":"image_18082025_16_26_04_9712.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/80c4cd0612fc2e8f7bf28cf8af6b5466.jpg","text":"TemporaryFile(/tmp/multipartBody3857785816986338984asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527254364,"filename":"image_18082025_16_26_15_10698.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1124b7586253ec139d97358f99a53a3e.jpg","text":"TemporaryFile(/tmp/multipartBody3370978379128998841asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527254364,"filename":"image_18082025_16_26_45_10738.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3c09db647271526aa34cc7959522633c.jpg","text":"TemporaryFile(/tmp/multipartBody7142460138234675483asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527254364,"filename":"image_18082025_16_25_54_9710.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/21d807fa5a06909fae6e12cab0a4de35.jpg","text":"TemporaryFile(/tmp/multipartBody2767653910047124170asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527254364,"filename":"image_18082025_16_26_34_9725.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377707666","file1":"1377707664","file0":"1377707662","file4":"1377707669","file5":"1377707670","file3":"1377707668"},"map_files_photo_id_array":[{"photo_id":"1377707670","filename":"file5"},{"photo_id":"1377707666","filename":"file2"},{"photo_id":"1377707669","filename":"file4"},{"photo_id":"1377707664","filename":"file1"},{"photo_id":"1377707662","filename":"file0"},{"photo_id":"1377707668","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377707666":["hashtag1","hashtag2"]},{"1377707669":["hashtag1","hashtag2"]},{"1377707668":["hashtag1","hashtag2"]},{"1377707662":["hashtag1","hashtag2"]},{"1377707670":["hashtag1","hashtag2"]},{"1377707664":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377707666, 1377707669, 1377707668, 1377707662, 1377707670, 1377707664)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.85149335861206 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:27:17.668979
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/27/image_18082025_16_27_44_9730.jpg', 2), ('/home/nano/Desktop/images/18082025/16/27/image_18082025_16_27_35_9710.jpg', 2), ('/home/nano/Desktop/images/18082025/16/27/image_18082025_16_27_25_10715.jpg', 2), ('/home/nano/Desktop/images/18082025/16/27/image_18082025_16_27_14_9734.jpg', 2), ('/home/nano/Desktop/images/18082025/16/26/image_18082025_16_27_04_9752.jpg', 2), ('/home/nano/Desktop/images/18082025/16/26/image_18082025_16_26_55_9715.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/27/image_18082025_16_27_44_9730.jpg', '/home/nano/Desktop/images/18082025/16/27/image_18082025_16_27_35_9710.jpg', '/home/nano/Desktop/images/18082025/16/27/image_18082025_16_27_25_10715.jpg', '/home/nano/Desktop/images/18082025/16/27/image_18082025_16_27_14_9734.jpg', '/home/nano/Desktop/images/18082025/16/26/image_18082025_16_27_04_9752.jpg', '/home/nano/Desktop/images/18082025/16/26/image_18082025_16_26_55_9715.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/27/image_18082025_16_27_44_9730.jpg
/home/nano/Desktop/images/18082025/16/27/image_18082025_16_27_35_9710.jpg
/home/nano/Desktop/images/18082025/16/27/image_18082025_16_27_25_10715.jpg
/home/nano/Desktop/images/18082025/16/27/image_18082025_16_27_14_9734.jpg
/home/nano/Desktop/images/18082025/16/26/image_18082025_16_27_04_9752.jpg
/home/nano/Desktop/images/18082025/16/26/image_18082025_16_26_55_9715.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377707696","1377707687","1377707689","1377707685","1377707688","1377707682"],"photo_ids_order":["1377707682","1377707685","1377707687","1377707688","1377707689","1377707696"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/700ce87c6fca4148c8522a4da62a604f.jpg","text":"TemporaryFile(/tmp/multipartBody8259271661497568218asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527299348,"filename":"image_18082025_16_26_55_9715.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/87a280992f74c24eb9bb4aee725b36ff.jpg","text":"TemporaryFile(/tmp/multipartBody3865310900650139911asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527299348,"filename":"image_18082025_16_27_25_10715.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/591e60732549969953e3c5b290e491a6.jpg","text":"TemporaryFile(/tmp/multipartBody4236810672194512099asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527299348,"filename":"image_18082025_16_27_04_9752.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8abf792d5739cde185f854393245ac4f.jpg","text":"TemporaryFile(/tmp/multipartBody1888345453585308547asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527299348,"filename":"image_18082025_16_27_35_9710.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/06aae664f9d8ecb4aadc0cb56e973080.jpg","text":"TemporaryFile(/tmp/multipartBody5105207713251461667asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527299348,"filename":"image_18082025_16_27_14_9734.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f1b4dc3123101c007973d00df6a5c5a1.jpg","text":"TemporaryFile(/tmp/multipartBody6324764220484672734asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527299348,"filename":"image_18082025_16_27_44_9730.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377707687","file1":"1377707685","file0":"1377707682","file4":"1377707689","file5":"1377707696","file3":"1377707688"},"map_files_photo_id_array":[{"photo_id":"1377707696","filename":"file5"},{"photo_id":"1377707687","filename":"file2"},{"photo_id":"1377707689","filename":"file4"},{"photo_id":"1377707685","filename":"file1"},{"photo_id":"1377707682","filename":"file0"},{"photo_id":"1377707688","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377707696":["hashtag1","hashtag2"]},{"1377707687":["hashtag1","hashtag2"]},{"1377707689":["hashtag1","hashtag2"]},{"1377707685":["hashtag1","hashtag2"]},{"1377707688":["hashtag1","hashtag2"]},{"1377707682":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377707696, 1377707687, 1377707689, 1377707685, 1377707688, 1377707682)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.546600580215454 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:28:03.223904
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/26/image_18082025_10_26_15_9830.jpg', 2), ('/home/nano/Desktop/images/18082025/10/25/image_18082025_10_26_05_10829.jpg', 2), ('/home/nano/Desktop/images/18082025/10/25/image_18082025_10_25_54_9836.jpg', 2), ('/home/nano/Desktop/images/18082025/10/25/image_18082025_10_25_44_9797.jpg', 2), ('/home/nano/Desktop/images/18082025/10/25/image_18082025_10_25_35_9793.jpg', 2), ('/home/nano/Desktop/images/18082025/10/25/image_18082025_10_25_25_9792.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/26/image_18082025_10_26_15_9830.jpg', '/home/nano/Desktop/images/18082025/10/25/image_18082025_10_26_05_10829.jpg', '/home/nano/Desktop/images/18082025/10/25/image_18082025_10_25_54_9836.jpg', '/home/nano/Desktop/images/18082025/10/25/image_18082025_10_25_44_9797.jpg', '/home/nano/Desktop/images/18082025/10/25/image_18082025_10_25_35_9793.jpg', '/home/nano/Desktop/images/18082025/10/25/image_18082025_10_25_25_9792.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/26/image_18082025_10_26_15_9830.jpg
/home/nano/Desktop/images/18082025/10/25/image_18082025_10_26_05_10829.jpg
/home/nano/Desktop/images/18082025/10/25/image_18082025_10_25_54_9836.jpg
/home/nano/Desktop/images/18082025/10/25/image_18082025_10_25_44_9797.jpg
/home/nano/Desktop/images/18082025/10/25/image_18082025_10_25_35_9793.jpg
/home/nano/Desktop/images/18082025/10/25/image_18082025_10_25_25_9792.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377707735","1377707729","1377707737","1377707731","1377707725","1377707733"],"photo_ids_order":["1377707725","1377707729","1377707731","1377707733","1377707735","1377707737"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5de40331e177359798fd6c7094025601.jpg","text":"TemporaryFile(/tmp/multipartBody5826861076743348285asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527345415,"filename":"image_18082025_10_25_35_9793.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6b4ff2136c4b7c82adf242e0a189ba9f.jpg","text":"TemporaryFile(/tmp/multipartBody2987834005885492690asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527345415,"filename":"image_18082025_10_26_05_10829.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8fd448d4eedb93014686bff345fbb2c6.jpg","text":"TemporaryFile(/tmp/multipartBody7161785137033757453asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527345415,"filename":"image_18082025_10_25_25_9792.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c9d2703ca43d4e9b0c60b7a577a59df3.jpg","text":"TemporaryFile(/tmp/multipartBody5114512466555579320asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527345415,"filename":"image_18082025_10_25_54_9836.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9e9fd2a39adb186e30970e7625c6bb46.jpg","text":"TemporaryFile(/tmp/multipartBody1578431397615802335asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527345415,"filename":"image_18082025_10_26_15_9830.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/53cb1cc2a1f1142179ac65925facd6ce.jpg","text":"TemporaryFile(/tmp/multipartBody2205669839588970259asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527345415,"filename":"image_18082025_10_25_44_9797.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377707731","file1":"1377707729","file0":"1377707725","file4":"1377707735","file5":"1377707737","file3":"1377707733"},"map_files_photo_id_array":[{"photo_id":"1377707737","filename":"file5"},{"photo_id":"1377707731","filename":"file2"},{"photo_id":"1377707735","filename":"file4"},{"photo_id":"1377707729","filename":"file1"},{"photo_id":"1377707725","filename":"file0"},{"photo_id":"1377707733","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377707735":["hashtag1","hashtag2"]},{"1377707729":["hashtag1","hashtag2"]},{"1377707737":["hashtag1","hashtag2"]},{"1377707731":["hashtag1","hashtag2"]},{"1377707725":["hashtag1","hashtag2"]},{"1377707733":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377707735, 1377707729, 1377707737, 1377707731, 1377707725, 1377707733)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.88660669326782 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:28:47.703214
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/28/image_18082025_16_28_45_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/16/28/image_18082025_16_28_35_10729.jpg', 2), ('/home/nano/Desktop/images/18082025/16/28/image_18082025_16_28_24_9716.jpg', 2), ('/home/nano/Desktop/images/18082025/16/28/image_18082025_16_28_15_9824.jpg', 2), ('/home/nano/Desktop/images/18082025/16/27/image_18082025_16_28_05_10716.jpg', 2), ('/home/nano/Desktop/images/18082025/16/27/image_18082025_16_27_54_9709.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/28/image_18082025_16_28_45_9630.jpg', '/home/nano/Desktop/images/18082025/16/28/image_18082025_16_28_35_10729.jpg', '/home/nano/Desktop/images/18082025/16/28/image_18082025_16_28_24_9716.jpg', '/home/nano/Desktop/images/18082025/16/28/image_18082025_16_28_15_9824.jpg', '/home/nano/Desktop/images/18082025/16/27/image_18082025_16_28_05_10716.jpg', '/home/nano/Desktop/images/18082025/16/27/image_18082025_16_27_54_9709.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/28/image_18082025_16_28_45_9630.jpg
/home/nano/Desktop/images/18082025/16/28/image_18082025_16_28_35_10729.jpg
/home/nano/Desktop/images/18082025/16/28/image_18082025_16_28_24_9716.jpg
/home/nano/Desktop/images/18082025/16/28/image_18082025_16_28_15_9824.jpg
/home/nano/Desktop/images/18082025/16/27/image_18082025_16_28_05_10716.jpg
/home/nano/Desktop/images/18082025/16/27/image_18082025_16_27_54_9709.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377707745","1377707759","1377707761","1377707754","1377707748","1377707757"],"photo_ids_order":["1377707745","1377707748","1377707754","1377707757","1377707759","1377707761"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/37463510049f53466705f8bfbd41ffb3.jpg","text":"TemporaryFile(/tmp/multipartBody9138334161208432298asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527389518,"filename":"image_18082025_16_28_45_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1d355555709c99c7e75e3ab08cff05ef.jpg","text":"TemporaryFile(/tmp/multipartBody475300645935667970asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527389518,"filename":"image_18082025_16_28_05_10716.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b12270612741b6d2a5115e6e6fff067b.jpg","text":"TemporaryFile(/tmp/multipartBody3819428244138125061asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527389518,"filename":"image_18082025_16_27_54_9709.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/65ae40fac3c0fa2650603bd0f0f74109.jpg","text":"TemporaryFile(/tmp/multipartBody3399338059425172880asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527389518,"filename":"image_18082025_16_28_24_9716.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8f94eedb0fe8e065ef36ede3496f453d.jpg","text":"TemporaryFile(/tmp/multipartBody5509697567324875948asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527389518,"filename":"image_18082025_16_28_35_10729.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8e78572acedf2d173e47967ddd5e434a.jpg","text":"TemporaryFile(/tmp/multipartBody184700864520602341asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527389518,"filename":"image_18082025_16_28_15_9824.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377707754","file1":"1377707748","file0":"1377707745","file4":"1377707759","file5":"1377707761","file3":"1377707757"},"map_files_photo_id_array":[{"photo_id":"1377707761","filename":"file5"},{"photo_id":"1377707754","filename":"file2"},{"photo_id":"1377707759","filename":"file4"},{"photo_id":"1377707748","filename":"file1"},{"photo_id":"1377707745","filename":"file0"},{"photo_id":"1377707757","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377707745":["hashtag1","hashtag2"]},{"1377707759":["hashtag1","hashtag2"]},{"1377707761":["hashtag1","hashtag2"]},{"1377707754":["hashtag1","hashtag2"]},{"1377707748":["hashtag1","hashtag2"]},{"1377707757":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377707745, 1377707759, 1377707761, 1377707754, 1377707748, 1377707757)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.886308193206787 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:29:31.809217
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/29/image_18082025_16_29_44_9734.jpg', 2), ('/home/nano/Desktop/images/18082025/16/29/image_18082025_16_29_34_9712.jpg', 2), ('/home/nano/Desktop/images/18082025/16/29/image_18082025_16_29_25_9746.jpg', 2), ('/home/nano/Desktop/images/18082025/16/29/image_18082025_16_29_15_10808.jpg', 2), ('/home/nano/Desktop/images/18082025/16/28/image_18082025_16_29_04_9787.jpg', 2), ('/home/nano/Desktop/images/18082025/16/28/image_18082025_16_28_54_9726.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/29/image_18082025_16_29_44_9734.jpg', '/home/nano/Desktop/images/18082025/16/29/image_18082025_16_29_34_9712.jpg', '/home/nano/Desktop/images/18082025/16/29/image_18082025_16_29_25_9746.jpg', '/home/nano/Desktop/images/18082025/16/29/image_18082025_16_29_15_10808.jpg', '/home/nano/Desktop/images/18082025/16/28/image_18082025_16_29_04_9787.jpg', '/home/nano/Desktop/images/18082025/16/28/image_18082025_16_28_54_9726.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/29/image_18082025_16_29_44_9734.jpg
/home/nano/Desktop/images/18082025/16/29/image_18082025_16_29_34_9712.jpg
/home/nano/Desktop/images/18082025/16/29/image_18082025_16_29_25_9746.jpg
/home/nano/Desktop/images/18082025/16/29/image_18082025_16_29_15_10808.jpg
/home/nano/Desktop/images/18082025/16/28/image_18082025_16_29_04_9787.jpg
/home/nano/Desktop/images/18082025/16/28/image_18082025_16_28_54_9726.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377707795","1377707798","1377707799","1377707784","1377707778","1377707781"],"photo_ids_order":["1377707778","1377707781","1377707784","1377707795","1377707798","1377707799"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a88d7df86029c0254248bff01c66889f.jpg","text":"TemporaryFile(/tmp/multipartBody4261056120176402432asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527433643,"filename":"image_18082025_16_29_15_10808.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/075c5434a5f874fa5c38420686e75749.jpg","text":"TemporaryFile(/tmp/multipartBody8430666704924393396asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527433643,"filename":"image_18082025_16_29_04_9787.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b3877b39c0cf0503cf51fdf7c7253a02.jpg","text":"TemporaryFile(/tmp/multipartBody4564814709323127958asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527433643,"filename":"image_18082025_16_28_54_9726.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5f41230e7d2568ad9f3807aa3b4418bb.jpg","text":"TemporaryFile(/tmp/multipartBody2753159976334628418asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527433643,"filename":"image_18082025_16_29_25_9746.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b531313a1ace06dfbfbfcd31b65fabb4.jpg","text":"TemporaryFile(/tmp/multipartBody1360769922023101864asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527433643,"filename":"image_18082025_16_29_44_9734.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4f369a0d3b910337d5e85a07d1b8c904.jpg","text":"TemporaryFile(/tmp/multipartBody8894847753172309755asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527433643,"filename":"image_18082025_16_29_34_9712.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377707784","file1":"1377707781","file0":"1377707778","file4":"1377707798","file5":"1377707799","file3":"1377707795"},"map_files_photo_id_array":[{"photo_id":"1377707799","filename":"file5"},{"photo_id":"1377707784","filename":"file2"},{"photo_id":"1377707798","filename":"file4"},{"photo_id":"1377707781","filename":"file1"},{"photo_id":"1377707778","filename":"file0"},{"photo_id":"1377707795","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377707795":["hashtag1","hashtag2"]},{"1377707798":["hashtag1","hashtag2"]},{"1377707799":["hashtag1","hashtag2"]},{"1377707784":["hashtag1","hashtag2"]},{"1377707778":["hashtag1","hashtag2"]},{"1377707781":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377707795, 1377707798, 1377707799, 1377707784, 1377707778, 1377707781)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.75990700721741 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:30:16.918303
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/30/image_18082025_16_30_45_9704.jpg', 2), ('/home/nano/Desktop/images/18082025/16/30/image_18082025_16_30_35_10751.jpg', 2), ('/home/nano/Desktop/images/18082025/16/30/image_18082025_16_30_24_9708.jpg', 2), ('/home/nano/Desktop/images/18082025/16/30/image_18082025_16_30_14_9683.jpg', 2), ('/home/nano/Desktop/images/18082025/16/29/image_18082025_16_30_05_9714.jpg', 2), ('/home/nano/Desktop/images/18082025/16/29/image_18082025_16_29_55_10784.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/30/image_18082025_16_30_45_9704.jpg', '/home/nano/Desktop/images/18082025/16/30/image_18082025_16_30_35_10751.jpg', '/home/nano/Desktop/images/18082025/16/30/image_18082025_16_30_24_9708.jpg', '/home/nano/Desktop/images/18082025/16/30/image_18082025_16_30_14_9683.jpg', '/home/nano/Desktop/images/18082025/16/29/image_18082025_16_30_05_9714.jpg', '/home/nano/Desktop/images/18082025/16/29/image_18082025_16_29_55_10784.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/30/image_18082025_16_30_45_9704.jpg
/home/nano/Desktop/images/18082025/16/30/image_18082025_16_30_35_10751.jpg
/home/nano/Desktop/images/18082025/16/30/image_18082025_16_30_24_9708.jpg
/home/nano/Desktop/images/18082025/16/30/image_18082025_16_30_14_9683.jpg
/home/nano/Desktop/images/18082025/16/29/image_18082025_16_30_05_9714.jpg
/home/nano/Desktop/images/18082025/16/29/image_18082025_16_29_55_10784.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377707823","1377707825","1377707810","1377707813","1377707822","1377707818"],"photo_ids_order":["1377707810","1377707813","1377707818","1377707822","1377707823","1377707825"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f58b6ea97ab77371c35ef099cf56df7a.jpg","text":"TemporaryFile(/tmp/multipartBody5760343815076953316asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527478753,"filename":"image_18082025_16_30_05_9714.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d5e9c90a1a4b8ffe0f10a636f4c1f520.jpg","text":"TemporaryFile(/tmp/multipartBody4771334692618259469asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527478753,"filename":"image_18082025_16_29_55_10784.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f64c3029241026f77969263a32ed62a2.jpg","text":"TemporaryFile(/tmp/multipartBody3927842950306583279asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527478753,"filename":"image_18082025_16_30_45_9704.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6bfd0e0c1049cfce4f63e4aa1fd2c6eb.jpg","text":"TemporaryFile(/tmp/multipartBody8044908219584304675asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527478753,"filename":"image_18082025_16_30_35_10751.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f56db3013351d995db4be387570321f9.jpg","text":"TemporaryFile(/tmp/multipartBody2670333806680049253asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527478753,"filename":"image_18082025_16_30_14_9683.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/efc76253b53e1b35689d2aa29f9ed306.jpg","text":"TemporaryFile(/tmp/multipartBody7691977683054992324asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527478753,"filename":"image_18082025_16_30_24_9708.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377707818","file1":"1377707813","file0":"1377707810","file4":"1377707823","file5":"1377707825","file3":"1377707822"},"map_files_photo_id_array":[{"photo_id":"1377707825","filename":"file5"},{"photo_id":"1377707818","filename":"file2"},{"photo_id":"1377707823","filename":"file4"},{"photo_id":"1377707813","filename":"file1"},{"photo_id":"1377707810","filename":"file0"},{"photo_id":"1377707822","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377707823":["hashtag1","hashtag2"]},{"1377707825":["hashtag1","hashtag2"]},{"1377707810":["hashtag1","hashtag2"]},{"1377707813":["hashtag1","hashtag2"]},{"1377707822":["hashtag1","hashtag2"]},{"1377707818":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377707823, 1377707825, 1377707810, 1377707813, 1377707822, 1377707818)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.58333778381348 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:31:02.592213
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/25/image_18082025_10_25_15_10838.jpg', 2), ('/home/nano/Desktop/images/18082025/10/24/image_18082025_10_25_04_9821.jpg', 2), ('/home/nano/Desktop/images/18082025/10/24/image_18082025_10_24_54_9795.jpg', 2), ('/home/nano/Desktop/images/18082025/10/24/image_18082025_10_24_45_9803.jpg', 2), ('/home/nano/Desktop/images/18082025/10/24/image_18082025_10_24_35_9797.jpg', 2), ('/home/nano/Desktop/images/18082025/10/24/image_18082025_10_24_25_10832.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/25/image_18082025_10_25_15_10838.jpg', '/home/nano/Desktop/images/18082025/10/24/image_18082025_10_25_04_9821.jpg', '/home/nano/Desktop/images/18082025/10/24/image_18082025_10_24_54_9795.jpg', '/home/nano/Desktop/images/18082025/10/24/image_18082025_10_24_45_9803.jpg', '/home/nano/Desktop/images/18082025/10/24/image_18082025_10_24_35_9797.jpg', '/home/nano/Desktop/images/18082025/10/24/image_18082025_10_24_25_10832.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/25/image_18082025_10_25_15_10838.jpg
/home/nano/Desktop/images/18082025/10/24/image_18082025_10_25_04_9821.jpg
/home/nano/Desktop/images/18082025/10/24/image_18082025_10_24_54_9795.jpg
/home/nano/Desktop/images/18082025/10/24/image_18082025_10_24_45_9803.jpg
/home/nano/Desktop/images/18082025/10/24/image_18082025_10_24_35_9797.jpg
/home/nano/Desktop/images/18082025/10/24/image_18082025_10_24_25_10832.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377707861","1377707854","1377707857","1377707851","1377707853","1377707847"],"photo_ids_order":["1377707847","1377707851","1377707853","1377707854","1377707857","1377707861"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6ea68f3d6b56d18cf1de97c28a6acfed.jpg","text":"TemporaryFile(/tmp/multipartBody6407034282014039500asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527524583,"filename":"image_18082025_10_24_25_10832.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5b245b232076c4a9207283160a44099f.jpg","text":"TemporaryFile(/tmp/multipartBody2578172502549447050asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527524583,"filename":"image_18082025_10_24_45_9803.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a5635d7ef91ad23989c7740d2ba22de3.jpg","text":"TemporaryFile(/tmp/multipartBody3946621037165692176asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527524583,"filename":"image_18082025_10_24_35_9797.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/160cb2889f593da2ae7d18d0098e10c8.jpg","text":"TemporaryFile(/tmp/multipartBody4785256019320865151asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527524583,"filename":"image_18082025_10_25_04_9821.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f7902c435a1054147729612008dfd798.jpg","text":"TemporaryFile(/tmp/multipartBody3378130255265256968asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527524583,"filename":"image_18082025_10_24_54_9795.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c0596c76f898e389491197c567292aa7.jpg","text":"TemporaryFile(/tmp/multipartBody2356720409652605094asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527524583,"filename":"image_18082025_10_25_15_10838.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377707853","file1":"1377707851","file0":"1377707847","file4":"1377707857","file5":"1377707861","file3":"1377707854"},"map_files_photo_id_array":[{"photo_id":"1377707861","filename":"file5"},{"photo_id":"1377707853","filename":"file2"},{"photo_id":"1377707857","filename":"file4"},{"photo_id":"1377707851","filename":"file1"},{"photo_id":"1377707847","filename":"file0"},{"photo_id":"1377707854","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377707861":["hashtag1","hashtag2"]},{"1377707854":["hashtag1","hashtag2"]},{"1377707857":["hashtag1","hashtag2"]},{"1377707851":["hashtag1","hashtag2"]},{"1377707853":["hashtag1","hashtag2"]},{"1377707847":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377707861, 1377707854, 1377707857, 1377707851, 1377707853, 1377707847)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.18015193939209 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:31:47.033316
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/31/image_18082025_16_31_44_9795.jpg', 2), ('/home/nano/Desktop/images/18082025/16/31/image_18082025_16_31_34_9778.jpg', 2), ('/home/nano/Desktop/images/18082025/16/31/image_18082025_16_31_24_9730.jpg', 2), ('/home/nano/Desktop/images/18082025/16/31/image_18082025_16_31_15_9805.jpg', 2), ('/home/nano/Desktop/images/18082025/16/30/image_18082025_16_31_05_10719.jpg', 2), ('/home/nano/Desktop/images/18082025/16/30/image_18082025_16_30_54_9690.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/31/image_18082025_16_31_44_9795.jpg', '/home/nano/Desktop/images/18082025/16/31/image_18082025_16_31_34_9778.jpg', '/home/nano/Desktop/images/18082025/16/31/image_18082025_16_31_24_9730.jpg', '/home/nano/Desktop/images/18082025/16/31/image_18082025_16_31_15_9805.jpg', '/home/nano/Desktop/images/18082025/16/30/image_18082025_16_31_05_10719.jpg', '/home/nano/Desktop/images/18082025/16/30/image_18082025_16_30_54_9690.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/31/image_18082025_16_31_44_9795.jpg
/home/nano/Desktop/images/18082025/16/31/image_18082025_16_31_34_9778.jpg
/home/nano/Desktop/images/18082025/16/31/image_18082025_16_31_24_9730.jpg
/home/nano/Desktop/images/18082025/16/31/image_18082025_16_31_15_9805.jpg
/home/nano/Desktop/images/18082025/16/30/image_18082025_16_31_05_10719.jpg
/home/nano/Desktop/images/18082025/16/30/image_18082025_16_30_54_9690.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.471954345703125 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:32:02.579895
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/31/image_18082025_16_31_44_9795.jpg', 2), ('/home/nano/Desktop/images/18082025/16/31/image_18082025_16_31_34_9778.jpg', 2), ('/home/nano/Desktop/images/18082025/16/31/image_18082025_16_31_24_9730.jpg', 2), ('/home/nano/Desktop/images/18082025/16/31/image_18082025_16_31_15_9805.jpg', 2), ('/home/nano/Desktop/images/18082025/16/30/image_18082025_16_31_05_10719.jpg', 2), ('/home/nano/Desktop/images/18082025/16/30/image_18082025_16_30_54_9690.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/31/image_18082025_16_31_44_9795.jpg', '/home/nano/Desktop/images/18082025/16/31/image_18082025_16_31_34_9778.jpg', '/home/nano/Desktop/images/18082025/16/31/image_18082025_16_31_24_9730.jpg', '/home/nano/Desktop/images/18082025/16/31/image_18082025_16_31_15_9805.jpg', '/home/nano/Desktop/images/18082025/16/30/image_18082025_16_31_05_10719.jpg', '/home/nano/Desktop/images/18082025/16/30/image_18082025_16_30_54_9690.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/31/image_18082025_16_31_44_9795.jpg
/home/nano/Desktop/images/18082025/16/31/image_18082025_16_31_34_9778.jpg
/home/nano/Desktop/images/18082025/16/31/image_18082025_16_31_24_9730.jpg
/home/nano/Desktop/images/18082025/16/31/image_18082025_16_31_15_9805.jpg
/home/nano/Desktop/images/18082025/16/30/image_18082025_16_31_05_10719.jpg
/home/nano/Desktop/images/18082025/16/30/image_18082025_16_30_54_9690.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377707916","1377707919","1377707936","1377707927","1377707923","1377707931"],"photo_ids_order":["1377707916","1377707919","1377707923","1377707927","1377707931","1377707936"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9ebd542d18909f67dc866e88355147ad.jpg","text":"TemporaryFile(/tmp/multipartBody9207130523554977701asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527584202,"filename":"image_18082025_16_31_44_9795.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/56879d39780b054a84799661806fa349.jpg","text":"TemporaryFile(/tmp/multipartBody6924290168151870080asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527584202,"filename":"image_18082025_16_31_34_9778.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/025ffe000b99d953036eb0d0812db60a.jpg","text":"TemporaryFile(/tmp/multipartBody8739328127881391629asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527584202,"filename":"image_18082025_16_30_54_9690.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/21156b4f6c5c02daf0b281327fcfbe8f.jpg","text":"TemporaryFile(/tmp/multipartBody2856094787689216292asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527584202,"filename":"image_18082025_16_31_15_9805.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7080fadd66c1f8859043186a730659a3.jpg","text":"TemporaryFile(/tmp/multipartBody2982626355576025150asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527584202,"filename":"image_18082025_16_31_24_9730.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f0c3d6bf7d6d376d1dc69ebe69453b61.jpg","text":"TemporaryFile(/tmp/multipartBody8174236477740128099asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527584202,"filename":"image_18082025_16_31_05_10719.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377707923","file1":"1377707919","file0":"1377707916","file4":"1377707931","file5":"1377707936","file3":"1377707927"},"map_files_photo_id_array":[{"photo_id":"1377707936","filename":"file5"},{"photo_id":"1377707923","filename":"file2"},{"photo_id":"1377707931","filename":"file4"},{"photo_id":"1377707919","filename":"file1"},{"photo_id":"1377707916","filename":"file0"},{"photo_id":"1377707927","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377707916":["hashtag1","hashtag2"]},{"1377707919":["hashtag1","hashtag2"]},{"1377707936":["hashtag1","hashtag2"]},{"1377707927":["hashtag1","hashtag2"]},{"1377707923":["hashtag1","hashtag2"]},{"1377707931":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377707916, 1377707919, 1377707936, 1377707927, 1377707923, 1377707931)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.980838775634766 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:32:47.162647
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/32/image_18082025_16_32_45_9713.jpg', 2), ('/home/nano/Desktop/images/18082025/16/32/image_18082025_16_32_35_9793.jpg', 2), ('/home/nano/Desktop/images/18082025/16/32/image_18082025_16_32_25_10721.jpg', 2), ('/home/nano/Desktop/images/18082025/16/32/image_18082025_16_32_14_9767.jpg', 2), ('/home/nano/Desktop/images/18082025/16/31/image_18082025_16_32_05_9795.jpg', 2), ('/home/nano/Desktop/images/18082025/16/31/image_18082025_16_31_55_10705.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/32/image_18082025_16_32_45_9713.jpg', '/home/nano/Desktop/images/18082025/16/32/image_18082025_16_32_35_9793.jpg', '/home/nano/Desktop/images/18082025/16/32/image_18082025_16_32_25_10721.jpg', '/home/nano/Desktop/images/18082025/16/32/image_18082025_16_32_14_9767.jpg', '/home/nano/Desktop/images/18082025/16/31/image_18082025_16_32_05_9795.jpg', '/home/nano/Desktop/images/18082025/16/31/image_18082025_16_31_55_10705.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/32/image_18082025_16_32_45_9713.jpg
/home/nano/Desktop/images/18082025/16/32/image_18082025_16_32_35_9793.jpg
/home/nano/Desktop/images/18082025/16/32/image_18082025_16_32_25_10721.jpg
/home/nano/Desktop/images/18082025/16/32/image_18082025_16_32_14_9767.jpg
/home/nano/Desktop/images/18082025/16/31/image_18082025_16_32_05_9795.jpg
/home/nano/Desktop/images/18082025/16/31/image_18082025_16_31_55_10705.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377707954","1377707951","1377707947","1377707958","1377707952","1377707949"],"photo_ids_order":["1377707947","1377707949","1377707951","1377707952","1377707954","1377707958"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f811e5595642696a1c6803822cee8859.jpg","text":"TemporaryFile(/tmp/multipartBody1401466549537026411asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527628852,"filename":"image_18082025_16_32_05_9795.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/defa9e14a85123018d8c7040b62c9278.jpg","text":"TemporaryFile(/tmp/multipartBody7901939098531606295asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527628852,"filename":"image_18082025_16_32_25_10721.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/36561763ba05b84d04521335844415ab.jpg","text":"TemporaryFile(/tmp/multipartBody7927916851506556864asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527628852,"filename":"image_18082025_16_32_45_9713.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/654894bb3b4ae34fd13b8d689118995f.jpg","text":"TemporaryFile(/tmp/multipartBody8387878227367830100asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527628852,"filename":"image_18082025_16_31_55_10705.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c3fde691db7601f3b3e84358f8d46526.jpg","text":"TemporaryFile(/tmp/multipartBody286459633226322910asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527628852,"filename":"image_18082025_16_32_14_9767.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/42d48b65e7eb007fbdb630e65c4cb7c0.jpg","text":"TemporaryFile(/tmp/multipartBody625217358638609918asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527628852,"filename":"image_18082025_16_32_35_9793.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377707951","file1":"1377707949","file0":"1377707947","file4":"1377707954","file5":"1377707958","file3":"1377707952"},"map_files_photo_id_array":[{"photo_id":"1377707958","filename":"file5"},{"photo_id":"1377707951","filename":"file2"},{"photo_id":"1377707954","filename":"file4"},{"photo_id":"1377707949","filename":"file1"},{"photo_id":"1377707947","filename":"file0"},{"photo_id":"1377707952","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377707954":["hashtag1","hashtag2"]},{"1377707951":["hashtag1","hashtag2"]},{"1377707947":["hashtag1","hashtag2"]},{"1377707958":["hashtag1","hashtag2"]},{"1377707952":["hashtag1","hashtag2"]},{"1377707949":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377707954, 1377707951, 1377707947, 1377707958, 1377707952, 1377707949)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.98981809616089 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:33:32.292083
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/33/image_18082025_16_33_45_10727.jpg', 2), ('/home/nano/Desktop/images/18082025/16/33/image_18082025_16_33_34_9691.jpg', 2), ('/home/nano/Desktop/images/18082025/16/33/image_18082025_16_33_24_9741.jpg', 2), ('/home/nano/Desktop/images/18082025/16/33/image_18082025_16_33_15_9725.jpg', 2), ('/home/nano/Desktop/images/18082025/16/32/image_18082025_16_33_05_10721.jpg', 2), ('/home/nano/Desktop/images/18082025/16/32/image_18082025_16_32_54_9692.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/33/image_18082025_16_33_45_10727.jpg', '/home/nano/Desktop/images/18082025/16/33/image_18082025_16_33_34_9691.jpg', '/home/nano/Desktop/images/18082025/16/33/image_18082025_16_33_24_9741.jpg', '/home/nano/Desktop/images/18082025/16/33/image_18082025_16_33_15_9725.jpg', '/home/nano/Desktop/images/18082025/16/32/image_18082025_16_33_05_10721.jpg', '/home/nano/Desktop/images/18082025/16/32/image_18082025_16_32_54_9692.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/33/image_18082025_16_33_45_10727.jpg
/home/nano/Desktop/images/18082025/16/33/image_18082025_16_33_34_9691.jpg
/home/nano/Desktop/images/18082025/16/33/image_18082025_16_33_24_9741.jpg
/home/nano/Desktop/images/18082025/16/33/image_18082025_16_33_15_9725.jpg
/home/nano/Desktop/images/18082025/16/32/image_18082025_16_33_05_10721.jpg
/home/nano/Desktop/images/18082025/16/32/image_18082025_16_32_54_9692.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377707984","1377707977","1377707986","1377707980","1377707982","1377707985"],"photo_ids_order":["1377707977","1377707980","1377707982","1377707984","1377707985","1377707986"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/52c858896113399d1c0f2eb07c40cf32.jpg","text":"TemporaryFile(/tmp/multipartBody3316977179737300295asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527674108,"filename":"image_18082025_16_33_15_9725.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/266fb6246555f083c1132eb3381bc87d.jpg","text":"TemporaryFile(/tmp/multipartBody1865469598255741189asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527674108,"filename":"image_18082025_16_33_45_10727.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3299b25ac2b08e5d46e8bd975c36ecf2.jpg","text":"TemporaryFile(/tmp/multipartBody7520338940785035024asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527674108,"filename":"image_18082025_16_32_54_9692.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3f29ab04b036640989ebbb4ce10af59d.jpg","text":"TemporaryFile(/tmp/multipartBody6944656313078429267asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527674108,"filename":"image_18082025_16_33_34_9691.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/84d36afe5ecda792df7aecf61a711cd3.jpg","text":"TemporaryFile(/tmp/multipartBody6541755891670529885asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527674108,"filename":"image_18082025_16_33_24_9741.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7a02d9565db3d17e1e1c226c3d18a070.jpg","text":"TemporaryFile(/tmp/multipartBody4438099263059885771asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527674108,"filename":"image_18082025_16_33_05_10721.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377707982","file1":"1377707980","file0":"1377707977","file4":"1377707985","file5":"1377707986","file3":"1377707984"},"map_files_photo_id_array":[{"photo_id":"1377707986","filename":"file5"},{"photo_id":"1377707982","filename":"file2"},{"photo_id":"1377707985","filename":"file4"},{"photo_id":"1377707980","filename":"file1"},{"photo_id":"1377707977","filename":"file0"},{"photo_id":"1377707984","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377707984":["hashtag1","hashtag2"]},{"1377707977":["hashtag1","hashtag2"]},{"1377707986":["hashtag1","hashtag2"]},{"1377707980":["hashtag1","hashtag2"]},{"1377707982":["hashtag1","hashtag2"]},{"1377707985":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377707984, 1377707977, 1377707986, 1377707980, 1377707982, 1377707985)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.07815766334534 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:34:17.388252
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/34/image_18082025_16_34_45_9757.jpg', 2), ('/home/nano/Desktop/images/18082025/16/34/image_18082025_16_34_35_9807.jpg', 2), ('/home/nano/Desktop/images/18082025/16/34/image_18082025_16_34_25_10813.jpg', 2), ('/home/nano/Desktop/images/18082025/16/34/image_18082025_16_34_14_9840.jpg', 2), ('/home/nano/Desktop/images/18082025/16/33/image_18082025_16_34_04_9740.jpg', 2), ('/home/nano/Desktop/images/18082025/16/33/image_18082025_16_33_55_9701.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/34/image_18082025_16_34_45_9757.jpg', '/home/nano/Desktop/images/18082025/16/34/image_18082025_16_34_35_9807.jpg', '/home/nano/Desktop/images/18082025/16/34/image_18082025_16_34_25_10813.jpg', '/home/nano/Desktop/images/18082025/16/34/image_18082025_16_34_14_9840.jpg', '/home/nano/Desktop/images/18082025/16/33/image_18082025_16_34_04_9740.jpg', '/home/nano/Desktop/images/18082025/16/33/image_18082025_16_33_55_9701.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/34/image_18082025_16_34_45_9757.jpg
/home/nano/Desktop/images/18082025/16/34/image_18082025_16_34_35_9807.jpg
/home/nano/Desktop/images/18082025/16/34/image_18082025_16_34_25_10813.jpg
/home/nano/Desktop/images/18082025/16/34/image_18082025_16_34_14_9840.jpg
/home/nano/Desktop/images/18082025/16/33/image_18082025_16_34_04_9740.jpg
/home/nano/Desktop/images/18082025/16/33/image_18082025_16_33_55_9701.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377708005","1377707995","1377707998","1377708004","1377708000","1377708003"],"photo_ids_order":["1377707995","1377707998","1377708000","1377708003","1377708004","1377708005"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/69779d7e9b8f6af527834c9816fa8de7.jpg","text":"TemporaryFile(/tmp/multipartBody2843878148161449427asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527719201,"filename":"image_18082025_16_33_55_9701.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0412ef8b5809378d7f02a51e0bb10f12.jpg","text":"TemporaryFile(/tmp/multipartBody2597983990828931765asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527719201,"filename":"image_18082025_16_34_45_9757.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2d5bab6b96f53416bdbbb23e8e42d6bb.jpg","text":"TemporaryFile(/tmp/multipartBody4875949202864436551asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527719201,"filename":"image_18082025_16_34_35_9807.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/79e4f19411971151d2175d86e7429f4f.jpg","text":"TemporaryFile(/tmp/multipartBody198804851703121767asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527719201,"filename":"image_18082025_16_34_04_9740.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3e015d8cda7226245ef1f008e9f165f7.jpg","text":"TemporaryFile(/tmp/multipartBody436274198997362178asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527719201,"filename":"image_18082025_16_34_25_10813.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bb0718e369252fd4526b3bd4aafcb328.jpg","text":"TemporaryFile(/tmp/multipartBody6971747147461500016asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527719201,"filename":"image_18082025_16_34_14_9840.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377708000","file1":"1377707998","file0":"1377707995","file4":"1377708004","file5":"1377708005","file3":"1377708003"},"map_files_photo_id_array":[{"photo_id":"1377708005","filename":"file5"},{"photo_id":"1377708000","filename":"file2"},{"photo_id":"1377708004","filename":"file4"},{"photo_id":"1377707998","filename":"file1"},{"photo_id":"1377707995","filename":"file0"},{"photo_id":"1377708003","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377708005":["hashtag1","hashtag2"]},{"1377707995":["hashtag1","hashtag2"]},{"1377707998":["hashtag1","hashtag2"]},{"1377708004":["hashtag1","hashtag2"]},{"1377708000":["hashtag1","hashtag2"]},{"1377708003":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377708005, 1377707995, 1377707998, 1377708004, 1377708000, 1377708003)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.47147870063782 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:35:03.186970
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/24/image_18082025_10_24_14_9832.jpg', 2), ('/home/nano/Desktop/images/18082025/10/23/image_18082025_10_24_04_9837.jpg', 2), ('/home/nano/Desktop/images/18082025/10/23/image_18082025_10_23_54_9802.jpg', 2), ('/home/nano/Desktop/images/18082025/10/23/image_18082025_10_23_45_9800.jpg', 2), ('/home/nano/Desktop/images/18082025/10/23/image_18082025_10_23_35_9802.jpg', 2), ('/home/nano/Desktop/images/18082025/10/23/image_18082025_10_23_25_10812.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/24/image_18082025_10_24_14_9832.jpg', '/home/nano/Desktop/images/18082025/10/23/image_18082025_10_24_04_9837.jpg', '/home/nano/Desktop/images/18082025/10/23/image_18082025_10_23_54_9802.jpg', '/home/nano/Desktop/images/18082025/10/23/image_18082025_10_23_45_9800.jpg', '/home/nano/Desktop/images/18082025/10/23/image_18082025_10_23_35_9802.jpg', '/home/nano/Desktop/images/18082025/10/23/image_18082025_10_23_25_10812.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/24/image_18082025_10_24_14_9832.jpg
/home/nano/Desktop/images/18082025/10/23/image_18082025_10_24_04_9837.jpg
/home/nano/Desktop/images/18082025/10/23/image_18082025_10_23_54_9802.jpg
/home/nano/Desktop/images/18082025/10/23/image_18082025_10_23_45_9800.jpg
/home/nano/Desktop/images/18082025/10/23/image_18082025_10_23_35_9802.jpg
/home/nano/Desktop/images/18082025/10/23/image_18082025_10_23_25_10812.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377708026","1377708029","1377708022","1377708016","1377708019","1377708024"],"photo_ids_order":["1377708016","1377708019","1377708022","1377708024","1377708026","1377708029"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4e9f42e0ff573cd243797a0c1e1b79ce.jpg","text":"TemporaryFile(/tmp/multipartBody391127022696098804asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527765265,"filename":"image_18082025_10_23_35_9802.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ce1eecf1da2a6d2c21365c743a32e317.jpg","text":"TemporaryFile(/tmp/multipartBody1063440606199388999asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527765265,"filename":"image_18082025_10_23_25_10812.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/93474d4a4b71a2dcf7525121f3840ec2.jpg","text":"TemporaryFile(/tmp/multipartBody9158996637724655295asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527765265,"filename":"image_18082025_10_23_54_9802.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/08caf5bd9a56ea4e147eca768cb8818e.jpg","text":"TemporaryFile(/tmp/multipartBody6516099680390196515asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527765265,"filename":"image_18082025_10_24_14_9832.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/da06a71bb62db93cd3f081ccfe34d304.jpg","text":"TemporaryFile(/tmp/multipartBody3036522981554481775asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527765265,"filename":"image_18082025_10_24_04_9837.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d8edefec5072a3b601ab8e8f678b07a4.jpg","text":"TemporaryFile(/tmp/multipartBody1154151842905394733asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527765265,"filename":"image_18082025_10_23_45_9800.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377708022","file1":"1377708019","file0":"1377708016","file4":"1377708026","file5":"1377708029","file3":"1377708024"},"map_files_photo_id_array":[{"photo_id":"1377708029","filename":"file5"},{"photo_id":"1377708022","filename":"file2"},{"photo_id":"1377708026","filename":"file4"},{"photo_id":"1377708019","filename":"file1"},{"photo_id":"1377708016","filename":"file0"},{"photo_id":"1377708024","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377708026":["hashtag1","hashtag2"]},{"1377708029":["hashtag1","hashtag2"]},{"1377708022":["hashtag1","hashtag2"]},{"1377708016":["hashtag1","hashtag2"]},{"1377708019":["hashtag1","hashtag2"]},{"1377708024":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377708026, 1377708029, 1377708022, 1377708016, 1377708019, 1377708024)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.007704734802246 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:35:47.470073
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/35/image_18082025_16_35_45_9686.jpg', 2), ('/home/nano/Desktop/images/18082025/16/35/image_18082025_16_35_35_10682.jpg', 2), ('/home/nano/Desktop/images/18082025/16/35/image_18082025_16_35_24_9708.jpg', 2), ('/home/nano/Desktop/images/18082025/16/35/image_18082025_16_35_15_9702.jpg', 2), ('/home/nano/Desktop/images/18082025/16/34/image_18082025_16_35_05_10733.jpg', 2), ('/home/nano/Desktop/images/18082025/16/34/image_18082025_16_34_54_9710.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/35/image_18082025_16_35_45_9686.jpg', '/home/nano/Desktop/images/18082025/16/35/image_18082025_16_35_35_10682.jpg', '/home/nano/Desktop/images/18082025/16/35/image_18082025_16_35_24_9708.jpg', '/home/nano/Desktop/images/18082025/16/35/image_18082025_16_35_15_9702.jpg', '/home/nano/Desktop/images/18082025/16/34/image_18082025_16_35_05_10733.jpg', '/home/nano/Desktop/images/18082025/16/34/image_18082025_16_34_54_9710.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/35/image_18082025_16_35_45_9686.jpg
/home/nano/Desktop/images/18082025/16/35/image_18082025_16_35_35_10682.jpg
/home/nano/Desktop/images/18082025/16/35/image_18082025_16_35_24_9708.jpg
/home/nano/Desktop/images/18082025/16/35/image_18082025_16_35_15_9702.jpg
/home/nano/Desktop/images/18082025/16/34/image_18082025_16_35_05_10733.jpg
/home/nano/Desktop/images/18082025/16/34/image_18082025_16_34_54_9710.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377708041","1377708076","1377708061","1377708069","1377708072","1377708066"],"photo_ids_order":["1377708041","1377708061","1377708066","1377708069","1377708072","1377708076"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3ab0cc0f2eea0c6dccb356708d979bf0.jpg","text":"TemporaryFile(/tmp/multipartBody8305766538993129122asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527809185,"filename":"image_18082025_16_35_45_9686.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/20ded815f9941a754b7b3d9e449ad73f.jpg","text":"TemporaryFile(/tmp/multipartBody5668048391095971152asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527809185,"filename":"image_18082025_16_34_54_9710.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9989af883616103f63dde34cd71db52e.jpg","text":"TemporaryFile(/tmp/multipartBody795475837586621348asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527809185,"filename":"image_18082025_16_35_35_10682.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e17fd8ff6e47f43824db2a9e1881a009.jpg","text":"TemporaryFile(/tmp/multipartBody4061685078861774496asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527809185,"filename":"image_18082025_16_35_15_9702.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/948cc70ce38c2644f32a097176fc5bee.jpg","text":"TemporaryFile(/tmp/multipartBody9134942985751817870asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527809185,"filename":"image_18082025_16_35_05_10733.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/03cdc58da47b0a8edc22f119f7c7d99f.jpg","text":"TemporaryFile(/tmp/multipartBody7181710626108951685asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527809185,"filename":"image_18082025_16_35_24_9708.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377708066","file1":"1377708061","file0":"1377708041","file4":"1377708072","file5":"1377708076","file3":"1377708069"},"map_files_photo_id_array":[{"photo_id":"1377708076","filename":"file5"},{"photo_id":"1377708066","filename":"file2"},{"photo_id":"1377708072","filename":"file4"},{"photo_id":"1377708061","filename":"file1"},{"photo_id":"1377708041","filename":"file0"},{"photo_id":"1377708069","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377708041":["hashtag1","hashtag2"]},{"1377708076":["hashtag1","hashtag2"]},{"1377708061":["hashtag1","hashtag2"]},{"1377708069":["hashtag1","hashtag2"]},{"1377708072":["hashtag1","hashtag2"]},{"1377708066":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377708041, 1377708076, 1377708061, 1377708069, 1377708072, 1377708066)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.32542538642883 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:36:32.606730
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/36/image_18082025_16_36_44_9772.jpg', 2), ('/home/nano/Desktop/images/18082025/16/36/image_18082025_16_36_34_9717.jpg', 2), ('/home/nano/Desktop/images/18082025/16/36/image_18082025_16_36_25_9679.jpg', 2), ('/home/nano/Desktop/images/18082025/16/36/image_18082025_16_36_15_10762.jpg', 2), ('/home/nano/Desktop/images/18082025/16/35/image_18082025_16_36_04_9703.jpg', 2), ('/home/nano/Desktop/images/18082025/16/35/image_18082025_16_35_54_9720.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/36/image_18082025_16_36_44_9772.jpg', '/home/nano/Desktop/images/18082025/16/36/image_18082025_16_36_34_9717.jpg', '/home/nano/Desktop/images/18082025/16/36/image_18082025_16_36_25_9679.jpg', '/home/nano/Desktop/images/18082025/16/36/image_18082025_16_36_15_10762.jpg', '/home/nano/Desktop/images/18082025/16/35/image_18082025_16_36_04_9703.jpg', '/home/nano/Desktop/images/18082025/16/35/image_18082025_16_35_54_9720.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/36/image_18082025_16_36_44_9772.jpg
/home/nano/Desktop/images/18082025/16/36/image_18082025_16_36_34_9717.jpg
/home/nano/Desktop/images/18082025/16/36/image_18082025_16_36_25_9679.jpg
/home/nano/Desktop/images/18082025/16/36/image_18082025_16_36_15_10762.jpg
/home/nano/Desktop/images/18082025/16/35/image_18082025_16_36_04_9703.jpg
/home/nano/Desktop/images/18082025/16/35/image_18082025_16_35_54_9720.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377708134","1377708131","1377708125","1377708110","1377708128","1377708121"],"photo_ids_order":["1377708110","1377708121","1377708125","1377708128","1377708131","1377708134"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e60fd87abdf3852571f8ea9abeca05e4.jpg","text":"TemporaryFile(/tmp/multipartBody3077319058012279930asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527854533,"filename":"image_18082025_16_35_54_9720.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1a8c4fe7c2369c3c4ee510106d9b9875.jpg","text":"TemporaryFile(/tmp/multipartBody2895549713048575877asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527854533,"filename":"image_18082025_16_36_04_9703.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/50a427d6c13183f389634408d3377c95.jpg","text":"TemporaryFile(/tmp/multipartBody1074854153248180022asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527854533,"filename":"image_18082025_16_36_25_9679.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/81348aba82170fb3f32d82fb698e3dfb.jpg","text":"TemporaryFile(/tmp/multipartBody6729508506831593834asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527854533,"filename":"image_18082025_16_36_44_9772.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/951ce4c175c14cf17368018c0180d11b.jpg","text":"TemporaryFile(/tmp/multipartBody42581141519083225asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527854533,"filename":"image_18082025_16_36_15_10762.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7fe9262fe9a414881de39c7575a98c5c.jpg","text":"TemporaryFile(/tmp/multipartBody4525435749879075267asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527854533,"filename":"image_18082025_16_36_34_9717.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377708125","file1":"1377708121","file0":"1377708110","file4":"1377708131","file5":"1377708134","file3":"1377708128"},"map_files_photo_id_array":[{"photo_id":"1377708134","filename":"file5"},{"photo_id":"1377708125","filename":"file2"},{"photo_id":"1377708131","filename":"file4"},{"photo_id":"1377708121","filename":"file1"},{"photo_id":"1377708110","filename":"file0"},{"photo_id":"1377708128","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377708134":["hashtag1","hashtag2"]},{"1377708131":["hashtag1","hashtag2"]},{"1377708125":["hashtag1","hashtag2"]},{"1377708110":["hashtag1","hashtag2"]},{"1377708128":["hashtag1","hashtag2"]},{"1377708121":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377708134, 1377708131, 1377708125, 1377708110, 1377708128, 1377708121)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.387550830841064 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:37:17.672314
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/37/image_18082025_16_37_45_9703.jpg', 2), ('/home/nano/Desktop/images/18082025/16/37/image_18082025_16_37_35_10724.jpg', 2), ('/home/nano/Desktop/images/18082025/16/37/image_18082025_16_37_24_9714.jpg', 2), ('/home/nano/Desktop/images/18082025/16/37/image_18082025_16_37_15_9761.jpg', 2), ('/home/nano/Desktop/images/18082025/16/36/image_18082025_16_37_05_9824.jpg', 2), ('/home/nano/Desktop/images/18082025/16/36/image_18082025_16_36_55_10826.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/37/image_18082025_16_37_45_9703.jpg', '/home/nano/Desktop/images/18082025/16/37/image_18082025_16_37_35_10724.jpg', '/home/nano/Desktop/images/18082025/16/37/image_18082025_16_37_24_9714.jpg', '/home/nano/Desktop/images/18082025/16/37/image_18082025_16_37_15_9761.jpg', '/home/nano/Desktop/images/18082025/16/36/image_18082025_16_37_05_9824.jpg', '/home/nano/Desktop/images/18082025/16/36/image_18082025_16_36_55_10826.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/37/image_18082025_16_37_45_9703.jpg
/home/nano/Desktop/images/18082025/16/37/image_18082025_16_37_35_10724.jpg
/home/nano/Desktop/images/18082025/16/37/image_18082025_16_37_24_9714.jpg
/home/nano/Desktop/images/18082025/16/37/image_18082025_16_37_15_9761.jpg
/home/nano/Desktop/images/18082025/16/36/image_18082025_16_37_05_9824.jpg
/home/nano/Desktop/images/18082025/16/36/image_18082025_16_36_55_10826.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377708161","1377708149","1377708164","1377708157","1377708145","1377708142"],"photo_ids_order":["1377708142","1377708145","1377708149","1377708157","1377708161","1377708164"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0f7c7dfecfe15112374b4a8a88171ed3.jpg","text":"TemporaryFile(/tmp/multipartBody8597856611095801200asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527899351,"filename":"image_18082025_16_37_05_9824.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/780f283d53481edbc1807bf04f8bc621.jpg","text":"TemporaryFile(/tmp/multipartBody106764887850700420asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527899351,"filename":"image_18082025_16_37_24_9714.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bea07e82817ff539dc94d358030dfd85.jpg","text":"TemporaryFile(/tmp/multipartBody8375099873969072860asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527899351,"filename":"image_18082025_16_36_55_10826.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a60219eaa621a888dc42bbb79d61bfc9.jpg","text":"TemporaryFile(/tmp/multipartBody4824461953202652516asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527899351,"filename":"image_18082025_16_37_15_9761.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e95447e692dd162f989e85ef943e12a5.jpg","text":"TemporaryFile(/tmp/multipartBody3310569932877541502asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527899351,"filename":"image_18082025_16_37_35_10724.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/97c7f2850395666806b96ee1627ea8c6.jpg","text":"TemporaryFile(/tmp/multipartBody1581941701121578027asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527899351,"filename":"image_18082025_16_37_45_9703.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377708149","file1":"1377708145","file0":"1377708142","file4":"1377708161","file5":"1377708164","file3":"1377708157"},"map_files_photo_id_array":[{"photo_id":"1377708164","filename":"file5"},{"photo_id":"1377708149","filename":"file2"},{"photo_id":"1377708161","filename":"file4"},{"photo_id":"1377708145","filename":"file1"},{"photo_id":"1377708142","filename":"file0"},{"photo_id":"1377708157","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377708161":["hashtag1","hashtag2"]},{"1377708149":["hashtag1","hashtag2"]},{"1377708164":["hashtag1","hashtag2"]},{"1377708157":["hashtag1","hashtag2"]},{"1377708145":["hashtag1","hashtag2"]},{"1377708142":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377708161, 1377708149, 1377708164, 1377708157, 1377708145, 1377708142)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.27416491508484 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:38:02.181228
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/23/image_18082025_10_23_14_9832.jpg', 2), ('/home/nano/Desktop/images/18082025/10/22/image_18082025_10_23_04_9802.jpg', 2), ('/home/nano/Desktop/images/18082025/10/22/image_18082025_10_22_45_9801.jpg', 2), ('/home/nano/Desktop/images/18082025/10/22/image_18082025_10_22_35_10812.jpg', 2), ('/home/nano/Desktop/images/18082025/10/22/image_18082025_10_22_24_9821.jpg', 2), ('/home/nano/Desktop/images/18082025/10/22/image_18082025_10_22_14_9828.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/23/image_18082025_10_23_14_9832.jpg', '/home/nano/Desktop/images/18082025/10/22/image_18082025_10_23_04_9802.jpg', '/home/nano/Desktop/images/18082025/10/22/image_18082025_10_22_45_9801.jpg', '/home/nano/Desktop/images/18082025/10/22/image_18082025_10_22_35_10812.jpg', '/home/nano/Desktop/images/18082025/10/22/image_18082025_10_22_24_9821.jpg', '/home/nano/Desktop/images/18082025/10/22/image_18082025_10_22_14_9828.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/23/image_18082025_10_23_14_9832.jpg
/home/nano/Desktop/images/18082025/10/22/image_18082025_10_23_04_9802.jpg
/home/nano/Desktop/images/18082025/10/22/image_18082025_10_22_45_9801.jpg
/home/nano/Desktop/images/18082025/10/22/image_18082025_10_22_35_10812.jpg
/home/nano/Desktop/images/18082025/10/22/image_18082025_10_22_24_9821.jpg
/home/nano/Desktop/images/18082025/10/22/image_18082025_10_22_14_9828.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377708173","1377708167","1377708178","1377708169","1377708180","1377708185"],"photo_ids_order":["1377708167","1377708169","1377708173","1377708178","1377708180","1377708185"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f9b233a4fb8b56b60f014413ca46ace6.jpg","text":"TemporaryFile(/tmp/multipartBody102930458372713068asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527944119,"filename":"image_18082025_10_22_45_9801.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b99367dbc30601c07b82f73e4438be0d.jpg","text":"TemporaryFile(/tmp/multipartBody5575637226889989700asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527944119,"filename":"image_18082025_10_23_14_9832.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/850ef68734eb50e35a80b3ca3904dfa7.jpg","text":"TemporaryFile(/tmp/multipartBody5697349439481599799asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527944119,"filename":"image_18082025_10_22_35_10812.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bc7e218c8ecd3eba89a6c0076a52d665.jpg","text":"TemporaryFile(/tmp/multipartBody54981237645165168asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527944119,"filename":"image_18082025_10_23_04_9802.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/23c2a012088d772083519e07d5cad593.jpg","text":"TemporaryFile(/tmp/multipartBody6464348714387145242asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527944119,"filename":"image_18082025_10_22_24_9821.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b1aaa5cb34388a023bb65360c7fc50d8.jpg","text":"TemporaryFile(/tmp/multipartBody3350344989739773223asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527944119,"filename":"image_18082025_10_22_14_9828.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377708173","file1":"1377708169","file0":"1377708167","file4":"1377708180","file5":"1377708185","file3":"1377708178"},"map_files_photo_id_array":[{"photo_id":"1377708185","filename":"file5"},{"photo_id":"1377708173","filename":"file2"},{"photo_id":"1377708180","filename":"file4"},{"photo_id":"1377708169","filename":"file1"},{"photo_id":"1377708167","filename":"file0"},{"photo_id":"1377708178","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377708173":["hashtag1","hashtag2"]},{"1377708167":["hashtag1","hashtag2"]},{"1377708178":["hashtag1","hashtag2"]},{"1377708169":["hashtag1","hashtag2"]},{"1377708180":["hashtag1","hashtag2"]},{"1377708185":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377708173, 1377708167, 1377708178, 1377708169, 1377708180, 1377708185)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.583351850509644 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:38:46.754779
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/38/image_18082025_16_38_45_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/16/38/image_18082025_16_38_35_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/16/38/image_18082025_16_38_24_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/16/38/image_18082025_16_38_15_9676.jpg', 2), ('/home/nano/Desktop/images/18082025/16/37/image_18082025_16_38_05_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/16/37/image_18082025_16_37_54_9711.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/38/image_18082025_16_38_45_9611.jpg', '/home/nano/Desktop/images/18082025/16/38/image_18082025_16_38_35_10625.jpg', '/home/nano/Desktop/images/18082025/16/38/image_18082025_16_38_24_9614.jpg', '/home/nano/Desktop/images/18082025/16/38/image_18082025_16_38_15_9676.jpg', '/home/nano/Desktop/images/18082025/16/37/image_18082025_16_38_05_10673.jpg', '/home/nano/Desktop/images/18082025/16/37/image_18082025_16_37_54_9711.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/38/image_18082025_16_38_45_9611.jpg
/home/nano/Desktop/images/18082025/16/38/image_18082025_16_38_35_10625.jpg
/home/nano/Desktop/images/18082025/16/38/image_18082025_16_38_24_9614.jpg
/home/nano/Desktop/images/18082025/16/38/image_18082025_16_38_15_9676.jpg
/home/nano/Desktop/images/18082025/16/37/image_18082025_16_38_05_10673.jpg
/home/nano/Desktop/images/18082025/16/37/image_18082025_16_37_54_9711.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377708203","1377708193","1377708196","1377708200","1377708195","1377708198"],"photo_ids_order":["1377708193","1377708195","1377708196","1377708198","1377708200","1377708203"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/405f60641ed76248768984d63236f670.jpg","text":"TemporaryFile(/tmp/multipartBody3928281706008319392asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527988155,"filename":"image_18082025_16_37_54_9711.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e748d0d4c79e36bbe33f2587a77b4b4b.jpg","text":"TemporaryFile(/tmp/multipartBody5522841909887356696asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527988155,"filename":"image_18082025_16_38_45_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/07fc94c8ea94417d3cb6e5779d848a5f.jpg","text":"TemporaryFile(/tmp/multipartBody4078755817860162607asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527988155,"filename":"image_18082025_16_38_24_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/07c7f3a9744388471f1865877b2095db.jpg","text":"TemporaryFile(/tmp/multipartBody8884466532879399291asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527988155,"filename":"image_18082025_16_38_05_10673.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0c38004c968bf72d340845fa40c78a27.jpg","text":"TemporaryFile(/tmp/multipartBody5546442870944395964asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527988155,"filename":"image_18082025_16_38_35_10625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dca6f1c77bcdf3cee0028492410e360c.jpg","text":"TemporaryFile(/tmp/multipartBody1820817325190616653asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755527988155,"filename":"image_18082025_16_38_15_9676.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377708196","file1":"1377708195","file0":"1377708193","file4":"1377708200","file5":"1377708203","file3":"1377708198"},"map_files_photo_id_array":[{"photo_id":"1377708203","filename":"file5"},{"photo_id":"1377708196","filename":"file2"},{"photo_id":"1377708200","filename":"file4"},{"photo_id":"1377708195","filename":"file1"},{"photo_id":"1377708193","filename":"file0"},{"photo_id":"1377708198","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377708203":["hashtag1","hashtag2"]},{"1377708193":["hashtag1","hashtag2"]},{"1377708196":["hashtag1","hashtag2"]},{"1377708200":["hashtag1","hashtag2"]},{"1377708195":["hashtag1","hashtag2"]},{"1377708198":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377708203, 1377708193, 1377708196, 1377708200, 1377708195, 1377708198)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.27549982070923 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:39:31.886375
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/39/image_18082025_16_39_44_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/16/39/image_18082025_16_39_35_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/16/39/image_18082025_16_39_25_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/16/39/image_18082025_16_39_14_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/16/38/image_18082025_16_39_05_10622.jpg', 2), ('/home/nano/Desktop/images/18082025/16/38/image_18082025_16_38_54_9606.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/39/image_18082025_16_39_44_9615.jpg', '/home/nano/Desktop/images/18082025/16/39/image_18082025_16_39_35_9612.jpg', '/home/nano/Desktop/images/18082025/16/39/image_18082025_16_39_25_10623.jpg', '/home/nano/Desktop/images/18082025/16/39/image_18082025_16_39_14_9629.jpg', '/home/nano/Desktop/images/18082025/16/38/image_18082025_16_39_05_10622.jpg', '/home/nano/Desktop/images/18082025/16/38/image_18082025_16_38_54_9606.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/39/image_18082025_16_39_44_9615.jpg
/home/nano/Desktop/images/18082025/16/39/image_18082025_16_39_35_9612.jpg
/home/nano/Desktop/images/18082025/16/39/image_18082025_16_39_25_10623.jpg
/home/nano/Desktop/images/18082025/16/39/image_18082025_16_39_14_9629.jpg
/home/nano/Desktop/images/18082025/16/38/image_18082025_16_39_05_10622.jpg
/home/nano/Desktop/images/18082025/16/38/image_18082025_16_38_54_9606.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377708257","1377708242","1377708230","1377708271","1377708250","1377708268"],"photo_ids_order":["1377708230","1377708242","1377708250","1377708257","1377708268","1377708271"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a673e70382e2e6929b64cf350d7d13f6.jpg","text":"TemporaryFile(/tmp/multipartBody2929189473784568014asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528033123,"filename":"image_18082025_16_39_14_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/365d4f3ddea89f01dfe26c829d656c6d.jpg","text":"TemporaryFile(/tmp/multipartBody2461854812478136314asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528033123,"filename":"image_18082025_16_39_35_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a9e7afb2a1bae03e6281563fe5add492.jpg","text":"TemporaryFile(/tmp/multipartBody6966009672379497273asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528033123,"filename":"image_18082025_16_39_44_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b53c82d4723a1875baa39b11159d5ce7.jpg","text":"TemporaryFile(/tmp/multipartBody3888281981622856604asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528033123,"filename":"image_18082025_16_38_54_9606.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e2ca9a789af93fe7d4a76885cf438346.jpg","text":"TemporaryFile(/tmp/multipartBody533803831056316180asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528033123,"filename":"image_18082025_16_39_25_10623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9b71712890a91de0f787d0419ef6f849.jpg","text":"TemporaryFile(/tmp/multipartBody1700909240504571076asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528033123,"filename":"image_18082025_16_39_05_10622.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377708250","file1":"1377708242","file0":"1377708230","file4":"1377708268","file5":"1377708271","file3":"1377708257"},"map_files_photo_id_array":[{"photo_id":"1377708271","filename":"file5"},{"photo_id":"1377708250","filename":"file2"},{"photo_id":"1377708268","filename":"file4"},{"photo_id":"1377708242","filename":"file1"},{"photo_id":"1377708230","filename":"file0"},{"photo_id":"1377708257","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377708257":["hashtag1","hashtag2"]},{"1377708242":["hashtag1","hashtag2"]},{"1377708230":["hashtag1","hashtag2"]},{"1377708271":["hashtag1","hashtag2"]},{"1377708250":["hashtag1","hashtag2"]},{"1377708268":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377708257, 1377708242, 1377708230, 1377708271, 1377708250, 1377708268)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.868818283081055 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:40:16.952746
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/40/image_18082025_16_40_44_9598.jpg', 2), ('/home/nano/Desktop/images/18082025/16/40/image_18082025_16_40_35_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/16/40/image_18082025_16_40_25_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/16/40/image_18082025_16_40_14_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/16/39/image_18082025_16_40_05_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/16/39/image_18082025_16_39_55_10676.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/40/image_18082025_16_40_44_9598.jpg', '/home/nano/Desktop/images/18082025/16/40/image_18082025_16_40_35_9608.jpg', '/home/nano/Desktop/images/18082025/16/40/image_18082025_16_40_25_10663.jpg', '/home/nano/Desktop/images/18082025/16/40/image_18082025_16_40_14_9667.jpg', '/home/nano/Desktop/images/18082025/16/39/image_18082025_16_40_05_9649.jpg', '/home/nano/Desktop/images/18082025/16/39/image_18082025_16_39_55_10676.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/40/image_18082025_16_40_44_9598.jpg
/home/nano/Desktop/images/18082025/16/40/image_18082025_16_40_35_9608.jpg
/home/nano/Desktop/images/18082025/16/40/image_18082025_16_40_25_10663.jpg
/home/nano/Desktop/images/18082025/16/40/image_18082025_16_40_14_9667.jpg
/home/nano/Desktop/images/18082025/16/39/image_18082025_16_40_05_9649.jpg
/home/nano/Desktop/images/18082025/16/39/image_18082025_16_39_55_10676.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377708283","1377708286","1377708294","1377708297","1377708296","1377708290"],"photo_ids_order":["1377708283","1377708286","1377708290","1377708294","1377708296","1377708297"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/40c381c0f91714c151a85c2a8fd762fe.jpg","text":"TemporaryFile(/tmp/multipartBody6209767418891822829asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528078289,"filename":"image_18082025_16_40_44_9598.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4284180007a1041f45d2e601e6874b33.jpg","text":"TemporaryFile(/tmp/multipartBody1512115549537620271asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528078289,"filename":"image_18082025_16_40_35_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a1664713f1632ce9e4ce71b2d2c397dc.jpg","text":"TemporaryFile(/tmp/multipartBody6214103537210629608asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528078289,"filename":"image_18082025_16_40_14_9667.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/49e157f530c7becc46509ec809bc32c9.jpg","text":"TemporaryFile(/tmp/multipartBody2375805050724536577asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528078289,"filename":"image_18082025_16_39_55_10676.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9722b89928ae24979519e882fbd165b8.jpg","text":"TemporaryFile(/tmp/multipartBody5530537157491672036asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528078289,"filename":"image_18082025_16_40_05_9649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6b839f4fb3f99b4c4311a0860ca1c8a8.jpg","text":"TemporaryFile(/tmp/multipartBody6667310885370283508asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528078289,"filename":"image_18082025_16_40_25_10663.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377708290","file1":"1377708286","file0":"1377708283","file4":"1377708296","file5":"1377708297","file3":"1377708294"},"map_files_photo_id_array":[{"photo_id":"1377708297","filename":"file5"},{"photo_id":"1377708290","filename":"file2"},{"photo_id":"1377708296","filename":"file4"},{"photo_id":"1377708286","filename":"file1"},{"photo_id":"1377708283","filename":"file0"},{"photo_id":"1377708294","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377708283":["hashtag1","hashtag2"]},{"1377708286":["hashtag1","hashtag2"]},{"1377708294":["hashtag1","hashtag2"]},{"1377708297":["hashtag1","hashtag2"]},{"1377708296":["hashtag1","hashtag2"]},{"1377708290":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377708283, 1377708286, 1377708294, 1377708297, 1377708296, 1377708290)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.953749895095825 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:41:02.615282
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/21/image_18082025_10_22_04_9810.jpg', 2), ('/home/nano/Desktop/images/18082025/10/21/image_18082025_10_21_55_9827.jpg', 2), ('/home/nano/Desktop/images/18082025/10/21/image_18082025_10_21_45_9806.jpg', 2), ('/home/nano/Desktop/images/18082025/10/21/image_18082025_10_21_35_10831.jpg', 2), ('/home/nano/Desktop/images/18082025/10/21/image_18082025_10_21_24_9802.jpg', 2), ('/home/nano/Desktop/images/18082025/10/21/image_18082025_10_21_14_9829.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/21/image_18082025_10_22_04_9810.jpg', '/home/nano/Desktop/images/18082025/10/21/image_18082025_10_21_55_9827.jpg', '/home/nano/Desktop/images/18082025/10/21/image_18082025_10_21_45_9806.jpg', '/home/nano/Desktop/images/18082025/10/21/image_18082025_10_21_35_10831.jpg', '/home/nano/Desktop/images/18082025/10/21/image_18082025_10_21_24_9802.jpg', '/home/nano/Desktop/images/18082025/10/21/image_18082025_10_21_14_9829.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/21/image_18082025_10_22_04_9810.jpg
/home/nano/Desktop/images/18082025/10/21/image_18082025_10_21_55_9827.jpg
/home/nano/Desktop/images/18082025/10/21/image_18082025_10_21_45_9806.jpg
/home/nano/Desktop/images/18082025/10/21/image_18082025_10_21_35_10831.jpg
/home/nano/Desktop/images/18082025/10/21/image_18082025_10_21_24_9802.jpg
/home/nano/Desktop/images/18082025/10/21/image_18082025_10_21_14_9829.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377708320","1377708323","1377708316","1377708318","1377708327","1377708312"],"photo_ids_order":["1377708312","1377708316","1377708318","1377708320","1377708323","1377708327"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5b2cba65b71cb12f0e9f80875e2972c6.jpg","text":"TemporaryFile(/tmp/multipartBody2612014096857837306asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528124448,"filename":"image_18082025_10_21_35_10831.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8fa959f18f9520213b717389605dc370.jpg","text":"TemporaryFile(/tmp/multipartBody101442469241887658asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528124448,"filename":"image_18082025_10_21_24_9802.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f641a5263ba41fa8d8b0691337829b00.jpg","text":"TemporaryFile(/tmp/multipartBody2742128406090155454asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528124448,"filename":"image_18082025_10_21_55_9827.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4152c391fc8d1a8df697a62e31ca959c.jpg","text":"TemporaryFile(/tmp/multipartBody4525329862103391521asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528124448,"filename":"image_18082025_10_21_45_9806.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4065c1d06d50c3f208ba0cc6de6e1327.jpg","text":"TemporaryFile(/tmp/multipartBody6588437738939568666asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528124448,"filename":"image_18082025_10_21_14_9829.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7d7a1f526845a7395c791a0034a679d9.jpg","text":"TemporaryFile(/tmp/multipartBody8704549826331857553asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528124448,"filename":"image_18082025_10_22_04_9810.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377708318","file1":"1377708316","file0":"1377708312","file4":"1377708323","file5":"1377708327","file3":"1377708320"},"map_files_photo_id_array":[{"photo_id":"1377708327","filename":"file5"},{"photo_id":"1377708318","filename":"file2"},{"photo_id":"1377708323","filename":"file4"},{"photo_id":"1377708316","filename":"file1"},{"photo_id":"1377708312","filename":"file0"},{"photo_id":"1377708320","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377708320":["hashtag1","hashtag2"]},{"1377708323":["hashtag1","hashtag2"]},{"1377708316":["hashtag1","hashtag2"]},{"1377708318":["hashtag1","hashtag2"]},{"1377708327":["hashtag1","hashtag2"]},{"1377708312":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377708320, 1377708323, 1377708316, 1377708318, 1377708327, 1377708312)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.37622833251953 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:41:47.063637
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/41/image_18082025_16_41_45_10613.jpg', 2), ('/home/nano/Desktop/images/18082025/16/41/image_18082025_16_41_34_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/16/41/image_18082025_16_41_25_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/16/41/image_18082025_16_41_15_10671.jpg', 2), ('/home/nano/Desktop/images/18082025/16/40/image_18082025_16_41_04_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/16/40/image_18082025_16_40_55_10623.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/41/image_18082025_16_41_45_10613.jpg', '/home/nano/Desktop/images/18082025/16/41/image_18082025_16_41_34_9607.jpg', '/home/nano/Desktop/images/18082025/16/41/image_18082025_16_41_25_9607.jpg', '/home/nano/Desktop/images/18082025/16/41/image_18082025_16_41_15_10671.jpg', '/home/nano/Desktop/images/18082025/16/40/image_18082025_16_41_04_9613.jpg', '/home/nano/Desktop/images/18082025/16/40/image_18082025_16_40_55_10623.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/41/image_18082025_16_41_45_10613.jpg
/home/nano/Desktop/images/18082025/16/41/image_18082025_16_41_34_9607.jpg
/home/nano/Desktop/images/18082025/16/41/image_18082025_16_41_25_9607.jpg
/home/nano/Desktop/images/18082025/16/41/image_18082025_16_41_15_10671.jpg
/home/nano/Desktop/images/18082025/16/40/image_18082025_16_41_04_9613.jpg
/home/nano/Desktop/images/18082025/16/40/image_18082025_16_40_55_10623.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377708404","1377708388","1377708406","1377708409","1377708405","1377708395"],"photo_ids_order":["1377708388","1377708395","1377708404","1377708405","1377708406","1377708409"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/751a7ad0eae0a7a6862617a3b3e72be6.jpg","text":"TemporaryFile(/tmp/multipartBody9026984660255956924asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528168182,"filename":"image_18082025_16_41_25_9607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dcf15914cf637ba6dcc6ac3495219dac.jpg","text":"TemporaryFile(/tmp/multipartBody7251409908171214635asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528168182,"filename":"image_18082025_16_41_45_10613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5bd55dc9f56bd6d4188e1eb38217180b.jpg","text":"TemporaryFile(/tmp/multipartBody2978956930356579974asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528168182,"filename":"image_18082025_16_41_04_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ea7a3ace07655a4c823793b840414129.jpg","text":"TemporaryFile(/tmp/multipartBody3759524092802458375asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528168182,"filename":"image_18082025_16_40_55_10623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/323ee914d65151c6c78a22eaeac20107.jpg","text":"TemporaryFile(/tmp/multipartBody4061530035161540439asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528168182,"filename":"image_18082025_16_41_15_10671.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ceae4d74936fd1400cccb3c9db045a10.jpg","text":"TemporaryFile(/tmp/multipartBody7876912132875451590asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528168182,"filename":"image_18082025_16_41_34_9607.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377708404","file1":"1377708395","file0":"1377708388","file4":"1377708406","file5":"1377708409","file3":"1377708405"},"map_files_photo_id_array":[{"photo_id":"1377708409","filename":"file5"},{"photo_id":"1377708404","filename":"file2"},{"photo_id":"1377708406","filename":"file4"},{"photo_id":"1377708395","filename":"file1"},{"photo_id":"1377708388","filename":"file0"},{"photo_id":"1377708405","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377708404":["hashtag1","hashtag2"]},{"1377708388":["hashtag1","hashtag2"]},{"1377708406":["hashtag1","hashtag2"]},{"1377708409":["hashtag1","hashtag2"]},{"1377708405":["hashtag1","hashtag2"]},{"1377708395":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377708404, 1377708388, 1377708406, 1377708409, 1377708405, 1377708395)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.245222091674805 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:42:32.158194
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/42/image_18082025_16_42_45_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/16/42/image_18082025_16_42_35_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/16/42/image_18082025_16_42_24_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/16/42/image_18082025_16_42_15_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/16/41/image_18082025_16_42_04_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/16/41/image_18082025_16_41_54_9597.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/42/image_18082025_16_42_45_9611.jpg', '/home/nano/Desktop/images/18082025/16/42/image_18082025_16_42_35_10627.jpg', '/home/nano/Desktop/images/18082025/16/42/image_18082025_16_42_24_9610.jpg', '/home/nano/Desktop/images/18082025/16/42/image_18082025_16_42_15_10666.jpg', '/home/nano/Desktop/images/18082025/16/41/image_18082025_16_42_04_9623.jpg', '/home/nano/Desktop/images/18082025/16/41/image_18082025_16_41_54_9597.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/42/image_18082025_16_42_45_9611.jpg
/home/nano/Desktop/images/18082025/16/42/image_18082025_16_42_35_10627.jpg
/home/nano/Desktop/images/18082025/16/42/image_18082025_16_42_24_9610.jpg
/home/nano/Desktop/images/18082025/16/42/image_18082025_16_42_15_10666.jpg
/home/nano/Desktop/images/18082025/16/41/image_18082025_16_42_04_9623.jpg
/home/nano/Desktop/images/18082025/16/41/image_18082025_16_41_54_9597.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377708431","1377708428","1377708436","1377708439","1377708433","1377708441"],"photo_ids_order":["1377708428","1377708431","1377708433","1377708436","1377708439","1377708441"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c606e24dacd6ba536e02723493c696eb.jpg","text":"TemporaryFile(/tmp/multipartBody9159103042783213179asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528213500,"filename":"image_18082025_16_42_35_10627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8a80e5656cad128df368a3f1feca6571.jpg","text":"TemporaryFile(/tmp/multipartBody2608011103918130874asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528213500,"filename":"image_18082025_16_42_45_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fc2cdd31f9696ba36d417bcda7636aa8.jpg","text":"TemporaryFile(/tmp/multipartBody3439526203668131169asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528213500,"filename":"image_18082025_16_42_15_10666.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d5c178a4d0f95e835a22fa839411f203.jpg","text":"TemporaryFile(/tmp/multipartBody2867857539523961087asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528213500,"filename":"image_18082025_16_42_04_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3df0af26d4a655f429d1fc711004950f.jpg","text":"TemporaryFile(/tmp/multipartBody1832078395008164518asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528213500,"filename":"image_18082025_16_42_24_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f39cf018ebd691f1d9108d512eebb3ed.jpg","text":"TemporaryFile(/tmp/multipartBody5433567921982674097asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528213500,"filename":"image_18082025_16_41_54_9597.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377708433","file1":"1377708431","file0":"1377708428","file4":"1377708439","file5":"1377708441","file3":"1377708436"},"map_files_photo_id_array":[{"photo_id":"1377708441","filename":"file5"},{"photo_id":"1377708433","filename":"file2"},{"photo_id":"1377708439","filename":"file4"},{"photo_id":"1377708431","filename":"file1"},{"photo_id":"1377708428","filename":"file0"},{"photo_id":"1377708436","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377708431":["hashtag1","hashtag2"]},{"1377708428":["hashtag1","hashtag2"]},{"1377708436":["hashtag1","hashtag2"]},{"1377708439":["hashtag1","hashtag2"]},{"1377708433":["hashtag1","hashtag2"]},{"1377708441":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377708431, 1377708428, 1377708436, 1377708439, 1377708433, 1377708441)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.333625078201294 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:43:17.258889
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/43/image_18082025_16_43_44_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/16/43/image_18082025_16_43_35_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/16/43/image_18082025_16_43_24_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/16/43/image_18082025_16_43_15_9685.jpg', 2), ('/home/nano/Desktop/images/18082025/16/42/image_18082025_16_43_05_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/16/42/image_18082025_16_42_54_9648.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/43/image_18082025_16_43_44_9607.jpg', '/home/nano/Desktop/images/18082025/16/43/image_18082025_16_43_35_10621.jpg', '/home/nano/Desktop/images/18082025/16/43/image_18082025_16_43_24_9640.jpg', '/home/nano/Desktop/images/18082025/16/43/image_18082025_16_43_15_9685.jpg', '/home/nano/Desktop/images/18082025/16/42/image_18082025_16_43_05_10653.jpg', '/home/nano/Desktop/images/18082025/16/42/image_18082025_16_42_54_9648.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/43/image_18082025_16_43_44_9607.jpg
/home/nano/Desktop/images/18082025/16/43/image_18082025_16_43_35_10621.jpg
/home/nano/Desktop/images/18082025/16/43/image_18082025_16_43_24_9640.jpg
/home/nano/Desktop/images/18082025/16/43/image_18082025_16_43_15_9685.jpg
/home/nano/Desktop/images/18082025/16/42/image_18082025_16_43_05_10653.jpg
/home/nano/Desktop/images/18082025/16/42/image_18082025_16_42_54_9648.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377708470","1377708464","1377708467","1377708452","1377708456","1377708461"],"photo_ids_order":["1377708452","1377708456","1377708461","1377708464","1377708467","1377708470"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e365fb0f9246445951d5af7a452dc7dd.jpg","text":"TemporaryFile(/tmp/multipartBody47736125162324222asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528258384,"filename":"image_18082025_16_42_54_9648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a4701a0215b179b6bca9c0c2ae7867fb.jpg","text":"TemporaryFile(/tmp/multipartBody6954757143146266571asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528258384,"filename":"image_18082025_16_43_15_9685.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dd3c3e536449e1c27212e2941fbb2d54.jpg","text":"TemporaryFile(/tmp/multipartBody3235405471302029068asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528258384,"filename":"image_18082025_16_43_05_10653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a53c18b27f06e53c57ad7bb93a772f5b.jpg","text":"TemporaryFile(/tmp/multipartBody3274853417134691322asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528258384,"filename":"image_18082025_16_43_44_9607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f33349ed333e8ba4a856c0a52940a391.jpg","text":"TemporaryFile(/tmp/multipartBody4152478896293558099asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528258384,"filename":"image_18082025_16_43_35_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/71289f1a65360fb126c18552b6f9ae17.jpg","text":"TemporaryFile(/tmp/multipartBody7233945237113167289asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528258384,"filename":"image_18082025_16_43_24_9640.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377708461","file1":"1377708456","file0":"1377708452","file4":"1377708467","file5":"1377708470","file3":"1377708464"},"map_files_photo_id_array":[{"photo_id":"1377708470","filename":"file5"},{"photo_id":"1377708461","filename":"file2"},{"photo_id":"1377708467","filename":"file4"},{"photo_id":"1377708456","filename":"file1"},{"photo_id":"1377708452","filename":"file0"},{"photo_id":"1377708464","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377708470":["hashtag1","hashtag2"]},{"1377708464":["hashtag1","hashtag2"]},{"1377708467":["hashtag1","hashtag2"]},{"1377708452":["hashtag1","hashtag2"]},{"1377708456":["hashtag1","hashtag2"]},{"1377708461":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377708470, 1377708464, 1377708467, 1377708452, 1377708456, 1377708461)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.18976354598999 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:44:03.322684
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/20/image_18082025_10_21_05_9825.jpg', 2), ('/home/nano/Desktop/images/18082025/10/20/image_18082025_10_20_55_9799.jpg', 2), ('/home/nano/Desktop/images/18082025/10/20/image_18082025_10_20_45_10811.jpg', 2), ('/home/nano/Desktop/images/18082025/10/20/image_18082025_10_20_34_9802.jpg', 2), ('/home/nano/Desktop/images/18082025/10/20/image_18082025_10_20_24_9799.jpg', 2), ('/home/nano/Desktop/images/18082025/10/20/image_18082025_10_20_15_9842.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/20/image_18082025_10_21_05_9825.jpg', '/home/nano/Desktop/images/18082025/10/20/image_18082025_10_20_55_9799.jpg', '/home/nano/Desktop/images/18082025/10/20/image_18082025_10_20_45_10811.jpg', '/home/nano/Desktop/images/18082025/10/20/image_18082025_10_20_34_9802.jpg', '/home/nano/Desktop/images/18082025/10/20/image_18082025_10_20_24_9799.jpg', '/home/nano/Desktop/images/18082025/10/20/image_18082025_10_20_15_9842.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/20/image_18082025_10_21_05_9825.jpg
/home/nano/Desktop/images/18082025/10/20/image_18082025_10_20_55_9799.jpg
/home/nano/Desktop/images/18082025/10/20/image_18082025_10_20_45_10811.jpg
/home/nano/Desktop/images/18082025/10/20/image_18082025_10_20_34_9802.jpg
/home/nano/Desktop/images/18082025/10/20/image_18082025_10_20_24_9799.jpg
/home/nano/Desktop/images/18082025/10/20/image_18082025_10_20_15_9842.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.8180599212646484 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:44:17.362953
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/44/image_18082025_16_44_44_9600.jpg', 2), ('/home/nano/Desktop/images/18082025/16/44/image_18082025_16_44_35_9604.jpg', 2), ('/home/nano/Desktop/images/18082025/16/44/image_18082025_16_44_25_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/16/44/image_18082025_16_44_14_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/16/43/image_18082025_16_44_05_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/16/43/image_18082025_16_43_54_9608.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/44/image_18082025_16_44_44_9600.jpg', '/home/nano/Desktop/images/18082025/16/44/image_18082025_16_44_35_9604.jpg', '/home/nano/Desktop/images/18082025/16/44/image_18082025_16_44_25_10632.jpg', '/home/nano/Desktop/images/18082025/16/44/image_18082025_16_44_14_9637.jpg', '/home/nano/Desktop/images/18082025/16/43/image_18082025_16_44_05_10629.jpg', '/home/nano/Desktop/images/18082025/16/43/image_18082025_16_43_54_9608.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/44/image_18082025_16_44_44_9600.jpg
/home/nano/Desktop/images/18082025/16/44/image_18082025_16_44_35_9604.jpg
/home/nano/Desktop/images/18082025/16/44/image_18082025_16_44_25_10632.jpg
/home/nano/Desktop/images/18082025/16/44/image_18082025_16_44_14_9637.jpg
/home/nano/Desktop/images/18082025/16/43/image_18082025_16_44_05_10629.jpg
/home/nano/Desktop/images/18082025/16/43/image_18082025_16_43_54_9608.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377708536","1377708534","1377708528","1377708537","1377708531","1377708525"],"photo_ids_order":["1377708525","1377708528","1377708531","1377708534","1377708536","1377708537"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a4988aa7c550422b8fda4179ff7c0052.jpg","text":"TemporaryFile(/tmp/multipartBody9113517519588185567asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528318435,"filename":"image_18082025_16_44_05_10629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/df50da1cf968b3bd0e6732776b5d60ba.jpg","text":"TemporaryFile(/tmp/multipartBody1614723833371901050asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528318435,"filename":"image_18082025_16_44_14_9637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/386b78ac65500504764e215b2cb319b2.jpg","text":"TemporaryFile(/tmp/multipartBody7749195770876351012asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528318435,"filename":"image_18082025_16_44_35_9604.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7bd6de31173f320de457fbb433b7279a.jpg","text":"TemporaryFile(/tmp/multipartBody4794711817938749744asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528318435,"filename":"image_18082025_16_43_54_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/db3a49838ce14cef87fcacfc1d1aca98.jpg","text":"TemporaryFile(/tmp/multipartBody4525960528963810819asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528318435,"filename":"image_18082025_16_44_25_10632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d405141315410aaf9c2f9de819c53e1b.jpg","text":"TemporaryFile(/tmp/multipartBody1451435567028655065asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528318435,"filename":"image_18082025_16_44_44_9600.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377708531","file1":"1377708528","file0":"1377708525","file4":"1377708536","file5":"1377708537","file3":"1377708534"},"map_files_photo_id_array":[{"photo_id":"1377708537","filename":"file5"},{"photo_id":"1377708531","filename":"file2"},{"photo_id":"1377708536","filename":"file4"},{"photo_id":"1377708528","filename":"file1"},{"photo_id":"1377708525","filename":"file0"},{"photo_id":"1377708534","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377708536":["hashtag1","hashtag2"]},{"1377708534":["hashtag1","hashtag2"]},{"1377708528":["hashtag1","hashtag2"]},{"1377708537":["hashtag1","hashtag2"]},{"1377708531":["hashtag1","hashtag2"]},{"1377708525":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377708536, 1377708534, 1377708528, 1377708537, 1377708531, 1377708525)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.546363353729248 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:45:03.249852
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/20/image_18082025_10_21_05_9825.jpg', 2), ('/home/nano/Desktop/images/18082025/10/20/image_18082025_10_20_55_9799.jpg', 2), ('/home/nano/Desktop/images/18082025/10/20/image_18082025_10_20_45_10811.jpg', 2), ('/home/nano/Desktop/images/18082025/10/20/image_18082025_10_20_34_9802.jpg', 2), ('/home/nano/Desktop/images/18082025/10/20/image_18082025_10_20_24_9799.jpg', 2), ('/home/nano/Desktop/images/18082025/10/20/image_18082025_10_20_15_9842.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/20/image_18082025_10_21_05_9825.jpg', '/home/nano/Desktop/images/18082025/10/20/image_18082025_10_20_55_9799.jpg', '/home/nano/Desktop/images/18082025/10/20/image_18082025_10_20_45_10811.jpg', '/home/nano/Desktop/images/18082025/10/20/image_18082025_10_20_34_9802.jpg', '/home/nano/Desktop/images/18082025/10/20/image_18082025_10_20_24_9799.jpg', '/home/nano/Desktop/images/18082025/10/20/image_18082025_10_20_15_9842.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/20/image_18082025_10_21_05_9825.jpg
/home/nano/Desktop/images/18082025/10/20/image_18082025_10_20_55_9799.jpg
/home/nano/Desktop/images/18082025/10/20/image_18082025_10_20_45_10811.jpg
/home/nano/Desktop/images/18082025/10/20/image_18082025_10_20_34_9802.jpg
/home/nano/Desktop/images/18082025/10/20/image_18082025_10_20_24_9799.jpg
/home/nano/Desktop/images/18082025/10/20/image_18082025_10_20_15_9842.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377708551","1377708554","1377708553","1377708556","1377708559","1377708552"],"photo_ids_order":["1377708551","1377708552","1377708553","1377708554","1377708556","1377708559"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3caea7b3b093704f74c61d7b09e64f8c.jpg","text":"TemporaryFile(/tmp/multipartBody2985172384487331418asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528365263,"filename":"image_18082025_10_21_05_9825.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8be67ad1a6a644393452b1a543b72b1a.jpg","text":"TemporaryFile(/tmp/multipartBody5396989081903316632asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528365263,"filename":"image_18082025_10_20_34_9802.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b1e07c0d81dd4cc4633f4de8a8957c82.jpg","text":"TemporaryFile(/tmp/multipartBody6794821304875137568asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528365263,"filename":"image_18082025_10_20_45_10811.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8bcdc4a1dd1f5d47af3bc6d82a625050.jpg","text":"TemporaryFile(/tmp/multipartBody2035104227779201523asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528365263,"filename":"image_18082025_10_20_24_9799.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f8bab9dbad039c8889554b3fad1c185f.jpg","text":"TemporaryFile(/tmp/multipartBody3064439895441592871asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528365263,"filename":"image_18082025_10_20_15_9842.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bf0ca380222052bbc5c56ade2e5500e3.jpg","text":"TemporaryFile(/tmp/multipartBody5084237121268279156asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528365263,"filename":"image_18082025_10_20_55_9799.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377708553","file1":"1377708552","file0":"1377708551","file4":"1377708556","file5":"1377708559","file3":"1377708554"},"map_files_photo_id_array":[{"photo_id":"1377708559","filename":"file5"},{"photo_id":"1377708553","filename":"file2"},{"photo_id":"1377708556","filename":"file4"},{"photo_id":"1377708552","filename":"file1"},{"photo_id":"1377708551","filename":"file0"},{"photo_id":"1377708554","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377708551":["hashtag1","hashtag2"]},{"1377708554":["hashtag1","hashtag2"]},{"1377708553":["hashtag1","hashtag2"]},{"1377708556":["hashtag1","hashtag2"]},{"1377708559":["hashtag1","hashtag2"]},{"1377708552":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377708551, 1377708554, 1377708553, 1377708556, 1377708559, 1377708552)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.072564125061035 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:45:47.437328
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/45/image_18082025_16_45_45_10622.jpg', 2), ('/home/nano/Desktop/images/18082025/16/45/image_18082025_16_45_34_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/16/45/image_18082025_16_45_25_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/16/45/image_18082025_16_45_14_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/16/44/image_18082025_16_45_04_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/16/44/image_18082025_16_44_55_10612.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/45/image_18082025_16_45_45_10622.jpg', '/home/nano/Desktop/images/18082025/16/45/image_18082025_16_45_34_9610.jpg', '/home/nano/Desktop/images/18082025/16/45/image_18082025_16_45_25_10621.jpg', '/home/nano/Desktop/images/18082025/16/45/image_18082025_16_45_14_9628.jpg', '/home/nano/Desktop/images/18082025/16/44/image_18082025_16_45_04_9640.jpg', '/home/nano/Desktop/images/18082025/16/44/image_18082025_16_44_55_10612.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/45/image_18082025_16_45_45_10622.jpg
/home/nano/Desktop/images/18082025/16/45/image_18082025_16_45_34_9610.jpg
/home/nano/Desktop/images/18082025/16/45/image_18082025_16_45_25_10621.jpg
/home/nano/Desktop/images/18082025/16/45/image_18082025_16_45_14_9628.jpg
/home/nano/Desktop/images/18082025/16/44/image_18082025_16_45_04_9640.jpg
/home/nano/Desktop/images/18082025/16/44/image_18082025_16_44_55_10612.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377708589","1377708591","1377708600","1377708593","1377708587","1377708596"],"photo_ids_order":["1377708587","1377708589","1377708591","1377708593","1377708596","1377708600"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4b0f49eaf38fdd1a0fbb2558c7216b41.jpg","text":"TemporaryFile(/tmp/multipartBody1330355341881896669asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528408683,"filename":"image_18082025_16_45_34_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9a61a25813bd647111a1e7ed0338a578.jpg","text":"TemporaryFile(/tmp/multipartBody4287233300210256644asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528408683,"filename":"image_18082025_16_45_25_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8198aec53d2789af1ab18a13c864e292.jpg","text":"TemporaryFile(/tmp/multipartBody6859187829474089784asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528408683,"filename":"image_18082025_16_44_55_10612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/46ad709f4545b0c2ac201f0085f7cccc.jpg","text":"TemporaryFile(/tmp/multipartBody3888837720567851733asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528408683,"filename":"image_18082025_16_45_14_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/41c5ce6ee0b04ba7105e2668a19dac49.jpg","text":"TemporaryFile(/tmp/multipartBody6078907508986385325asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528408683,"filename":"image_18082025_16_45_45_10622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d33a9a248c56bccbbb8daa543e2dc355.jpg","text":"TemporaryFile(/tmp/multipartBody6903347935642419498asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528408683,"filename":"image_18082025_16_45_04_9640.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377708591","file1":"1377708589","file0":"1377708587","file4":"1377708596","file5":"1377708600","file3":"1377708593"},"map_files_photo_id_array":[{"photo_id":"1377708600","filename":"file5"},{"photo_id":"1377708591","filename":"file2"},{"photo_id":"1377708596","filename":"file4"},{"photo_id":"1377708589","filename":"file1"},{"photo_id":"1377708587","filename":"file0"},{"photo_id":"1377708593","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377708589":["hashtag1","hashtag2"]},{"1377708591":["hashtag1","hashtag2"]},{"1377708600":["hashtag1","hashtag2"]},{"1377708593":["hashtag1","hashtag2"]},{"1377708587":["hashtag1","hashtag2"]},{"1377708596":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377708589, 1377708591, 1377708600, 1377708593, 1377708587, 1377708596)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.28653120994568 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:46:32.533634
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/46/image_18082025_16_46_45_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/16/46/image_18082025_16_46_34_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/16/46/image_18082025_16_46_25_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/16/46/image_18082025_16_46_15_10681.jpg', 2), ('/home/nano/Desktop/images/18082025/16/45/image_18082025_16_46_04_9702.jpg', 2), ('/home/nano/Desktop/images/18082025/16/45/image_18082025_16_45_55_9691.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/46/image_18082025_16_46_45_10627.jpg', '/home/nano/Desktop/images/18082025/16/46/image_18082025_16_46_34_9617.jpg', '/home/nano/Desktop/images/18082025/16/46/image_18082025_16_46_25_9644.jpg', '/home/nano/Desktop/images/18082025/16/46/image_18082025_16_46_15_10681.jpg', '/home/nano/Desktop/images/18082025/16/45/image_18082025_16_46_04_9702.jpg', '/home/nano/Desktop/images/18082025/16/45/image_18082025_16_45_55_9691.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/46/image_18082025_16_46_45_10627.jpg
/home/nano/Desktop/images/18082025/16/46/image_18082025_16_46_34_9617.jpg
/home/nano/Desktop/images/18082025/16/46/image_18082025_16_46_25_9644.jpg
/home/nano/Desktop/images/18082025/16/46/image_18082025_16_46_15_10681.jpg
/home/nano/Desktop/images/18082025/16/45/image_18082025_16_46_04_9702.jpg
/home/nano/Desktop/images/18082025/16/45/image_18082025_16_45_55_9691.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377708647","1377708626","1377708670","1377708640","1377708672","1377708666"],"photo_ids_order":["1377708626","1377708640","1377708647","1377708666","1377708670","1377708672"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/75fd230f2901662a71e2854557aff5d8.jpg","text":"TemporaryFile(/tmp/multipartBody9192613774412992493asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528453914,"filename":"image_18082025_16_46_25_9644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0ab70b1babb6facf1fcbdd3db7e69539.jpg","text":"TemporaryFile(/tmp/multipartBody6755906045313956339asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528453914,"filename":"image_18082025_16_46_45_10627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e97fdc1d537185e10aa44fe2a2164593.jpg","text":"TemporaryFile(/tmp/multipartBody2037381753659024317asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528453914,"filename":"image_18082025_16_46_04_9702.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6343770ba318ef9f961933c4c55cc541.jpg","text":"TemporaryFile(/tmp/multipartBody6109006559578924959asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528453914,"filename":"image_18082025_16_46_34_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/827ea09a7fa6778753efc817c2b7c13f.jpg","text":"TemporaryFile(/tmp/multipartBody7538800909525384131asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528453914,"filename":"image_18082025_16_45_55_9691.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c7f3b9fc32757e93b341a96521fe2e20.jpg","text":"TemporaryFile(/tmp/multipartBody1666304991249534250asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528453914,"filename":"image_18082025_16_46_15_10681.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377708647","file1":"1377708640","file0":"1377708626","file4":"1377708670","file5":"1377708672","file3":"1377708666"},"map_files_photo_id_array":[{"photo_id":"1377708672","filename":"file5"},{"photo_id":"1377708647","filename":"file2"},{"photo_id":"1377708670","filename":"file4"},{"photo_id":"1377708640","filename":"file1"},{"photo_id":"1377708626","filename":"file0"},{"photo_id":"1377708666","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377708647":["hashtag1","hashtag2"]},{"1377708626":["hashtag1","hashtag2"]},{"1377708670":["hashtag1","hashtag2"]},{"1377708640":["hashtag1","hashtag2"]},{"1377708672":["hashtag1","hashtag2"]},{"1377708666":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377708647, 1377708626, 1377708670, 1377708640, 1377708672, 1377708666)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.67355704307556 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:47:17.651421
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/47/image_18082025_16_47_45_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/16/47/image_18082025_16_47_35_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/16/47/image_18082025_16_47_24_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/16/47/image_18082025_16_47_15_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/16/46/image_18082025_16_47_04_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/16/46/image_18082025_16_46_54_9611.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/47/image_18082025_16_47_45_9608.jpg', '/home/nano/Desktop/images/18082025/16/47/image_18082025_16_47_35_10618.jpg', '/home/nano/Desktop/images/18082025/16/47/image_18082025_16_47_24_9611.jpg', '/home/nano/Desktop/images/18082025/16/47/image_18082025_16_47_15_10639.jpg', '/home/nano/Desktop/images/18082025/16/46/image_18082025_16_47_04_9623.jpg', '/home/nano/Desktop/images/18082025/16/46/image_18082025_16_46_54_9611.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/47/image_18082025_16_47_45_9608.jpg
/home/nano/Desktop/images/18082025/16/47/image_18082025_16_47_35_10618.jpg
/home/nano/Desktop/images/18082025/16/47/image_18082025_16_47_24_9611.jpg
/home/nano/Desktop/images/18082025/16/47/image_18082025_16_47_15_10639.jpg
/home/nano/Desktop/images/18082025/16/46/image_18082025_16_47_04_9623.jpg
/home/nano/Desktop/images/18082025/16/46/image_18082025_16_46_54_9611.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377708685","1377708679","1377708688","1377708696","1377708681","1377708692"],"photo_ids_order":["1377708679","1377708681","1377708685","1377708688","1377708692","1377708696"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6860fee0a218807cbebde9ab29cebbce.jpg","text":"TemporaryFile(/tmp/multipartBody2184039008111143481asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528498872,"filename":"image_18082025_16_47_24_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/958c951936fea6919203a0b44bc2f18e.jpg","text":"TemporaryFile(/tmp/multipartBody2551809654202201765asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528498872,"filename":"image_18082025_16_47_45_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/04da1b57bc8cfcb683afa905c268757c.jpg","text":"TemporaryFile(/tmp/multipartBody4612501566606288787asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528498872,"filename":"image_18082025_16_47_15_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/78ab909d8115033705350336b0a2b19f.jpg","text":"TemporaryFile(/tmp/multipartBody7311414448650264800asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528498872,"filename":"image_18082025_16_46_54_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4a00d6ccca1740bc405ad81ff91d0878.jpg","text":"TemporaryFile(/tmp/multipartBody6017289334290729912asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528498872,"filename":"image_18082025_16_47_35_10618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9f27f7125438f792924e1e2508ba0c38.jpg","text":"TemporaryFile(/tmp/multipartBody1129055583842385056asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528498872,"filename":"image_18082025_16_47_04_9623.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377708685","file1":"1377708681","file0":"1377708679","file4":"1377708692","file5":"1377708696","file3":"1377708688"},"map_files_photo_id_array":[{"photo_id":"1377708696","filename":"file5"},{"photo_id":"1377708685","filename":"file2"},{"photo_id":"1377708692","filename":"file4"},{"photo_id":"1377708681","filename":"file1"},{"photo_id":"1377708679","filename":"file0"},{"photo_id":"1377708688","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377708685":["hashtag1","hashtag2"]},{"1377708679":["hashtag1","hashtag2"]},{"1377708688":["hashtag1","hashtag2"]},{"1377708696":["hashtag1","hashtag2"]},{"1377708681":["hashtag1","hashtag2"]},{"1377708692":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377708685, 1377708679, 1377708688, 1377708696, 1377708681, 1377708692)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.75253415107727 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:48:02.318298
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/19/image_18082025_10_20_05_9802.jpg', 2), ('/home/nano/Desktop/images/18082025/10/19/image_18082025_10_19_55_10810.jpg', 2), ('/home/nano/Desktop/images/18082025/10/19/image_18082025_10_19_44_9807.jpg', 2), ('/home/nano/Desktop/images/18082025/10/19/image_18082025_10_19_34_9802.jpg', 2), ('/home/nano/Desktop/images/18082025/10/19/image_18082025_10_19_24_9805.jpg', 2), ('/home/nano/Desktop/images/18082025/10/19/image_18082025_10_19_15_9826.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/19/image_18082025_10_20_05_9802.jpg', '/home/nano/Desktop/images/18082025/10/19/image_18082025_10_19_55_10810.jpg', '/home/nano/Desktop/images/18082025/10/19/image_18082025_10_19_44_9807.jpg', '/home/nano/Desktop/images/18082025/10/19/image_18082025_10_19_34_9802.jpg', '/home/nano/Desktop/images/18082025/10/19/image_18082025_10_19_24_9805.jpg', '/home/nano/Desktop/images/18082025/10/19/image_18082025_10_19_15_9826.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/19/image_18082025_10_20_05_9802.jpg
/home/nano/Desktop/images/18082025/10/19/image_18082025_10_19_55_10810.jpg
/home/nano/Desktop/images/18082025/10/19/image_18082025_10_19_44_9807.jpg
/home/nano/Desktop/images/18082025/10/19/image_18082025_10_19_34_9802.jpg
/home/nano/Desktop/images/18082025/10/19/image_18082025_10_19_24_9805.jpg
/home/nano/Desktop/images/18082025/10/19/image_18082025_10_19_15_9826.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377708749","1377708740","1377708736","1377708744","1377708747","1377708732"],"photo_ids_order":["1377708732","1377708736","1377708740","1377708744","1377708747","1377708749"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/206e1da76458fc1fdfe26b9c0076837a.jpg","text":"TemporaryFile(/tmp/multipartBody4585801167738137760asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528544396,"filename":"image_18082025_10_19_15_9826.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/eb0130c9ebfec52b35a7b6e5df95259f.jpg","text":"TemporaryFile(/tmp/multipartBody7926517065123732968asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528544396,"filename":"image_18082025_10_19_44_9807.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c95626dbb6aa400e739ac3ebdefa6571.jpg","text":"TemporaryFile(/tmp/multipartBody5738362143053827692asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528544396,"filename":"image_18082025_10_19_55_10810.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/44592915987b14954c5698714f47e468.jpg","text":"TemporaryFile(/tmp/multipartBody8445178334314366478asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528544396,"filename":"image_18082025_10_19_34_9802.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dc27a32e2e5145c572124c4ba69487dc.jpg","text":"TemporaryFile(/tmp/multipartBody7661505961356717198asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528544396,"filename":"image_18082025_10_19_24_9805.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/26b60e0085c9ab116e6f08e5b7ee4308.jpg","text":"TemporaryFile(/tmp/multipartBody2300151225362706273asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528544396,"filename":"image_18082025_10_20_05_9802.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377708740","file1":"1377708736","file0":"1377708732","file4":"1377708747","file5":"1377708749","file3":"1377708744"},"map_files_photo_id_array":[{"photo_id":"1377708749","filename":"file5"},{"photo_id":"1377708740","filename":"file2"},{"photo_id":"1377708747","filename":"file4"},{"photo_id":"1377708736","filename":"file1"},{"photo_id":"1377708732","filename":"file0"},{"photo_id":"1377708744","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377708749":["hashtag1","hashtag2"]},{"1377708740":["hashtag1","hashtag2"]},{"1377708736":["hashtag1","hashtag2"]},{"1377708744":["hashtag1","hashtag2"]},{"1377708747":["hashtag1","hashtag2"]},{"1377708732":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377708749, 1377708740, 1377708736, 1377708744, 1377708747, 1377708732)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.39528036117554 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:48:46.754444
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/48/image_18082025_16_48_44_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/16/48/image_18082025_16_48_35_10613.jpg', 2), ('/home/nano/Desktop/images/18082025/16/48/image_18082025_16_48_24_9600.jpg', 2), ('/home/nano/Desktop/images/18082025/16/48/image_18082025_16_48_14_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/16/47/image_18082025_16_48_05_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/16/47/image_18082025_16_47_54_9619.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/48/image_18082025_16_48_44_9610.jpg', '/home/nano/Desktop/images/18082025/16/48/image_18082025_16_48_35_10613.jpg', '/home/nano/Desktop/images/18082025/16/48/image_18082025_16_48_24_9600.jpg', '/home/nano/Desktop/images/18082025/16/48/image_18082025_16_48_14_9630.jpg', '/home/nano/Desktop/images/18082025/16/47/image_18082025_16_48_05_10623.jpg', '/home/nano/Desktop/images/18082025/16/47/image_18082025_16_47_54_9619.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/48/image_18082025_16_48_44_9610.jpg
/home/nano/Desktop/images/18082025/16/48/image_18082025_16_48_35_10613.jpg
/home/nano/Desktop/images/18082025/16/48/image_18082025_16_48_24_9600.jpg
/home/nano/Desktop/images/18082025/16/48/image_18082025_16_48_14_9630.jpg
/home/nano/Desktop/images/18082025/16/47/image_18082025_16_48_05_10623.jpg
/home/nano/Desktop/images/18082025/16/47/image_18082025_16_47_54_9619.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377708758","1377708760","1377708754","1377708756","1377708765","1377708753"],"photo_ids_order":["1377708753","1377708754","1377708756","1377708758","1377708760","1377708765"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3a1d9aa812c6f01ed9197beff9c6c879.jpg","text":"TemporaryFile(/tmp/multipartBody3372830360949763275asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528587764,"filename":"image_18082025_16_48_14_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6c6ec479d0d8f3bd4af3004f566090d7.jpg","text":"TemporaryFile(/tmp/multipartBody2259401950094562730asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528587764,"filename":"image_18082025_16_48_05_10623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4d7fcaa40ba88d2a080cda484f6ca454.jpg","text":"TemporaryFile(/tmp/multipartBody2008100422917404asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528587764,"filename":"image_18082025_16_48_35_10613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/abffcbb48d9485a1d2b6c71c722e99ab.jpg","text":"TemporaryFile(/tmp/multipartBody7459800062378082809asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528587764,"filename":"image_18082025_16_48_24_9600.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/296204240ff63c8c619749a2e97dc146.jpg","text":"TemporaryFile(/tmp/multipartBody4669895816033892528asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528587764,"filename":"image_18082025_16_47_54_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/32ad6e08e036860b57b1edee8e88728c.jpg","text":"TemporaryFile(/tmp/multipartBody6456101445656868906asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528587764,"filename":"image_18082025_16_48_44_9610.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377708756","file1":"1377708754","file0":"1377708753","file4":"1377708760","file5":"1377708765","file3":"1377708758"},"map_files_photo_id_array":[{"photo_id":"1377708765","filename":"file5"},{"photo_id":"1377708756","filename":"file2"},{"photo_id":"1377708760","filename":"file4"},{"photo_id":"1377708754","filename":"file1"},{"photo_id":"1377708753","filename":"file0"},{"photo_id":"1377708758","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377708758":["hashtag1","hashtag2"]},{"1377708760":["hashtag1","hashtag2"]},{"1377708754":["hashtag1","hashtag2"]},{"1377708756":["hashtag1","hashtag2"]},{"1377708765":["hashtag1","hashtag2"]},{"1377708753":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377708758, 1377708760, 1377708754, 1377708756, 1377708765, 1377708753)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.816462993621826 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:49:31.892533
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/49/image_18082025_16_49_45_10608.jpg', 2), ('/home/nano/Desktop/images/18082025/16/49/image_18082025_16_49_34_9599.jpg', 2), ('/home/nano/Desktop/images/18082025/16/49/image_18082025_16_49_25_10616.jpg', 2), ('/home/nano/Desktop/images/18082025/16/49/image_18082025_16_49_14_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/16/48/image_18082025_16_49_05_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/16/48/image_18082025_16_48_55_10656.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/49/image_18082025_16_49_45_10608.jpg', '/home/nano/Desktop/images/18082025/16/49/image_18082025_16_49_34_9599.jpg', '/home/nano/Desktop/images/18082025/16/49/image_18082025_16_49_25_10616.jpg', '/home/nano/Desktop/images/18082025/16/49/image_18082025_16_49_14_9639.jpg', '/home/nano/Desktop/images/18082025/16/48/image_18082025_16_49_05_9640.jpg', '/home/nano/Desktop/images/18082025/16/48/image_18082025_16_48_55_10656.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/49/image_18082025_16_49_45_10608.jpg
/home/nano/Desktop/images/18082025/16/49/image_18082025_16_49_34_9599.jpg
/home/nano/Desktop/images/18082025/16/49/image_18082025_16_49_25_10616.jpg
/home/nano/Desktop/images/18082025/16/49/image_18082025_16_49_14_9639.jpg
/home/nano/Desktop/images/18082025/16/48/image_18082025_16_49_05_9640.jpg
/home/nano/Desktop/images/18082025/16/48/image_18082025_16_48_55_10656.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377708782","1377708778","1377708811","1377708805","1377708780","1377708788"],"photo_ids_order":["1377708778","1377708780","1377708782","1377708788","1377708805","1377708811"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6c2eadb58e24fd9f3af8def7b390a47c.jpg","text":"TemporaryFile(/tmp/multipartBody1847543073884279657asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528633401,"filename":"image_18082025_16_49_25_10616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d717932d5caf43f16731c43e43cd5cef.jpg","text":"TemporaryFile(/tmp/multipartBody8101670599051207740asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528633401,"filename":"image_18082025_16_49_45_10608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2f0d2ceeafe88204dfc7beeef7782469.jpg","text":"TemporaryFile(/tmp/multipartBody5294991622560697523asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528633401,"filename":"image_18082025_16_48_55_10656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e508f0252ffbfa5aa05c70353015ec32.jpg","text":"TemporaryFile(/tmp/multipartBody4300193556251886276asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528633401,"filename":"image_18082025_16_49_05_9640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f323c44b0e169209ce2168c045b39cba.jpg","text":"TemporaryFile(/tmp/multipartBody4866284457036733910asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528633401,"filename":"image_18082025_16_49_34_9599.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/683dc3b04aa36978ace422ac70dbf0b9.jpg","text":"TemporaryFile(/tmp/multipartBody5336218003744409550asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528633401,"filename":"image_18082025_16_49_14_9639.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377708782","file1":"1377708780","file0":"1377708778","file4":"1377708805","file5":"1377708811","file3":"1377708788"},"map_files_photo_id_array":[{"photo_id":"1377708811","filename":"file5"},{"photo_id":"1377708782","filename":"file2"},{"photo_id":"1377708805","filename":"file4"},{"photo_id":"1377708780","filename":"file1"},{"photo_id":"1377708778","filename":"file0"},{"photo_id":"1377708788","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377708782":["hashtag1","hashtag2"]},{"1377708778":["hashtag1","hashtag2"]},{"1377708811":["hashtag1","hashtag2"]},{"1377708805":["hashtag1","hashtag2"]},{"1377708780":["hashtag1","hashtag2"]},{"1377708788":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377708782, 1377708778, 1377708811, 1377708805, 1377708780, 1377708788)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.502362966537476 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:50:16.987699
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/50/image_18082025_16_50_45_10605.jpg', 2), ('/home/nano/Desktop/images/18082025/16/50/image_18082025_16_50_34_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/16/50/image_18082025_16_50_24_9595.jpg', 2), ('/home/nano/Desktop/images/18082025/16/50/image_18082025_16_50_15_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/16/49/image_18082025_16_50_04_9604.jpg', 2), ('/home/nano/Desktop/images/18082025/16/49/image_18082025_16_49_55_9602.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/50/image_18082025_16_50_45_10605.jpg', '/home/nano/Desktop/images/18082025/16/50/image_18082025_16_50_34_9617.jpg', '/home/nano/Desktop/images/18082025/16/50/image_18082025_16_50_24_9595.jpg', '/home/nano/Desktop/images/18082025/16/50/image_18082025_16_50_15_10625.jpg', '/home/nano/Desktop/images/18082025/16/49/image_18082025_16_50_04_9604.jpg', '/home/nano/Desktop/images/18082025/16/49/image_18082025_16_49_55_9602.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/50/image_18082025_16_50_45_10605.jpg
/home/nano/Desktop/images/18082025/16/50/image_18082025_16_50_34_9617.jpg
/home/nano/Desktop/images/18082025/16/50/image_18082025_16_50_24_9595.jpg
/home/nano/Desktop/images/18082025/16/50/image_18082025_16_50_15_10625.jpg
/home/nano/Desktop/images/18082025/16/49/image_18082025_16_50_04_9604.jpg
/home/nano/Desktop/images/18082025/16/49/image_18082025_16_49_55_9602.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.1395294666290283 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:50:31.961386
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/50/image_18082025_16_50_45_10605.jpg', 2), ('/home/nano/Desktop/images/18082025/16/50/image_18082025_16_50_34_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/16/50/image_18082025_16_50_24_9595.jpg', 2), ('/home/nano/Desktop/images/18082025/16/50/image_18082025_16_50_15_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/16/49/image_18082025_16_50_04_9604.jpg', 2), ('/home/nano/Desktop/images/18082025/16/49/image_18082025_16_49_55_9602.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/50/image_18082025_16_50_45_10605.jpg', '/home/nano/Desktop/images/18082025/16/50/image_18082025_16_50_34_9617.jpg', '/home/nano/Desktop/images/18082025/16/50/image_18082025_16_50_24_9595.jpg', '/home/nano/Desktop/images/18082025/16/50/image_18082025_16_50_15_10625.jpg', '/home/nano/Desktop/images/18082025/16/49/image_18082025_16_50_04_9604.jpg', '/home/nano/Desktop/images/18082025/16/49/image_18082025_16_49_55_9602.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/50/image_18082025_16_50_45_10605.jpg
/home/nano/Desktop/images/18082025/16/50/image_18082025_16_50_34_9617.jpg
/home/nano/Desktop/images/18082025/16/50/image_18082025_16_50_24_9595.jpg
/home/nano/Desktop/images/18082025/16/50/image_18082025_16_50_15_10625.jpg
/home/nano/Desktop/images/18082025/16/49/image_18082025_16_50_04_9604.jpg
/home/nano/Desktop/images/18082025/16/49/image_18082025_16_49_55_9602.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377708836","1377708839","1377708841","1377708838","1377708843","1377708834"],"photo_ids_order":["1377708834","1377708836","1377708838","1377708839","1377708841","1377708843"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8513759e72c1cc80c41148f8a9aa8051.jpg","text":"TemporaryFile(/tmp/multipartBody6542151949706901437asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528693176,"filename":"image_18082025_16_50_34_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/782dba44f18d37fed2e6979eb2741c44.jpg","text":"TemporaryFile(/tmp/multipartBody245324247867649271asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528693176,"filename":"image_18082025_16_50_15_10625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/56356b75a11054f85b945d67d2ebb280.jpg","text":"TemporaryFile(/tmp/multipartBody3658652887663489734asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528693176,"filename":"image_18082025_16_50_04_9604.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4b1ba266680a23e13efe43c65b481884.jpg","text":"TemporaryFile(/tmp/multipartBody6622048823860821335asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528693176,"filename":"image_18082025_16_50_24_9595.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1102cf7f6a2ac5d6da0a6c54f91bb707.jpg","text":"TemporaryFile(/tmp/multipartBody8763166258491402637asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528693176,"filename":"image_18082025_16_49_55_9602.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b1dafb76f22af7886c02f5e61b17c85d.jpg","text":"TemporaryFile(/tmp/multipartBody1585766474215338384asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528693176,"filename":"image_18082025_16_50_45_10605.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377708838","file1":"1377708836","file0":"1377708834","file4":"1377708841","file5":"1377708843","file3":"1377708839"},"map_files_photo_id_array":[{"photo_id":"1377708843","filename":"file5"},{"photo_id":"1377708838","filename":"file2"},{"photo_id":"1377708841","filename":"file4"},{"photo_id":"1377708836","filename":"file1"},{"photo_id":"1377708834","filename":"file0"},{"photo_id":"1377708839","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377708836":["hashtag1","hashtag2"]},{"1377708839":["hashtag1","hashtag2"]},{"1377708841":["hashtag1","hashtag2"]},{"1377708838":["hashtag1","hashtag2"]},{"1377708843":["hashtag1","hashtag2"]},{"1377708834":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377708836, 1377708839, 1377708841, 1377708838, 1377708843, 1377708834)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.722328424453735 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:51:17.102320
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/51/image_18082025_16_51_44_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/16/51/image_18082025_16_51_35_10611.jpg', 2), ('/home/nano/Desktop/images/18082025/16/51/image_18082025_16_51_24_9597.jpg', 2), ('/home/nano/Desktop/images/18082025/16/51/image_18082025_16_51_15_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/16/50/image_18082025_16_51_05_10620.jpg', 2), ('/home/nano/Desktop/images/18082025/16/50/image_18082025_16_50_54_9599.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/51/image_18082025_16_51_44_9635.jpg', '/home/nano/Desktop/images/18082025/16/51/image_18082025_16_51_35_10611.jpg', '/home/nano/Desktop/images/18082025/16/51/image_18082025_16_51_24_9597.jpg', '/home/nano/Desktop/images/18082025/16/51/image_18082025_16_51_15_9606.jpg', '/home/nano/Desktop/images/18082025/16/50/image_18082025_16_51_05_10620.jpg', '/home/nano/Desktop/images/18082025/16/50/image_18082025_16_50_54_9599.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/51/image_18082025_16_51_44_9635.jpg
/home/nano/Desktop/images/18082025/16/51/image_18082025_16_51_35_10611.jpg
/home/nano/Desktop/images/18082025/16/51/image_18082025_16_51_24_9597.jpg
/home/nano/Desktop/images/18082025/16/51/image_18082025_16_51_15_9606.jpg
/home/nano/Desktop/images/18082025/16/50/image_18082025_16_51_05_10620.jpg
/home/nano/Desktop/images/18082025/16/50/image_18082025_16_50_54_9599.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377708863","1377708889","1377708859","1377708907","1377708855","1377708870"],"photo_ids_order":["1377708855","1377708859","1377708863","1377708870","1377708889","1377708907"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3b21715c770df7c931d4612993ade898.jpg","text":"TemporaryFile(/tmp/multipartBody6832927817230179654asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528738241,"filename":"image_18082025_16_51_24_9597.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8167c772792c1940acff98418884b5de.jpg","text":"TemporaryFile(/tmp/multipartBody381622844835235774asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528738241,"filename":"image_18082025_16_51_05_10620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0dd917f8066a0844e984ce88c3401b28.jpg","text":"TemporaryFile(/tmp/multipartBody2236977791198620813asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528738241,"filename":"image_18082025_16_51_35_10611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/157d94fd1231e554fa85172c7728c105.jpg","text":"TemporaryFile(/tmp/multipartBody3808202182483431211asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528738241,"filename":"image_18082025_16_50_54_9599.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e9c4078a841021228998d61c0970ad33.jpg","text":"TemporaryFile(/tmp/multipartBody1850774575575442463asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528738241,"filename":"image_18082025_16_51_44_9635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d49e065eb019d362ecc612c9a760c5af.jpg","text":"TemporaryFile(/tmp/multipartBody4013362096807341770asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528738241,"filename":"image_18082025_16_51_15_9606.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377708863","file1":"1377708859","file0":"1377708855","file4":"1377708889","file5":"1377708907","file3":"1377708870"},"map_files_photo_id_array":[{"photo_id":"1377708907","filename":"file5"},{"photo_id":"1377708863","filename":"file2"},{"photo_id":"1377708889","filename":"file4"},{"photo_id":"1377708859","filename":"file1"},{"photo_id":"1377708855","filename":"file0"},{"photo_id":"1377708870","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377708863":["hashtag1","hashtag2"]},{"1377708889":["hashtag1","hashtag2"]},{"1377708859":["hashtag1","hashtag2"]},{"1377708907":["hashtag1","hashtag2"]},{"1377708855":["hashtag1","hashtag2"]},{"1377708870":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377708863, 1377708889, 1377708859, 1377708907, 1377708855, 1377708870)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.685304880142212 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:52:02.783356
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/18/image_18082025_10_19_05_10713.jpg', 2), ('/home/nano/Desktop/images/18082025/10/18/image_18082025_10_18_54_9679.jpg', 2), ('/home/nano/Desktop/images/18082025/10/18/image_18082025_10_18_44_9690.jpg', 2), ('/home/nano/Desktop/images/18082025/10/18/image_18082025_10_18_35_9708.jpg', 2), ('/home/nano/Desktop/images/18082025/10/18/image_18082025_10_18_25_10733.jpg', 2), ('/home/nano/Desktop/images/18082025/10/18/image_18082025_10_18_14_9739.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/18/image_18082025_10_19_05_10713.jpg', '/home/nano/Desktop/images/18082025/10/18/image_18082025_10_18_54_9679.jpg', '/home/nano/Desktop/images/18082025/10/18/image_18082025_10_18_44_9690.jpg', '/home/nano/Desktop/images/18082025/10/18/image_18082025_10_18_35_9708.jpg', '/home/nano/Desktop/images/18082025/10/18/image_18082025_10_18_25_10733.jpg', '/home/nano/Desktop/images/18082025/10/18/image_18082025_10_18_14_9739.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/18/image_18082025_10_19_05_10713.jpg
/home/nano/Desktop/images/18082025/10/18/image_18082025_10_18_54_9679.jpg
/home/nano/Desktop/images/18082025/10/18/image_18082025_10_18_44_9690.jpg
/home/nano/Desktop/images/18082025/10/18/image_18082025_10_18_35_9708.jpg
/home/nano/Desktop/images/18082025/10/18/image_18082025_10_18_25_10733.jpg
/home/nano/Desktop/images/18082025/10/18/image_18082025_10_18_14_9739.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377708962","1377708964","1377708967","1377708955","1377708969","1377708959"],"photo_ids_order":["1377708955","1377708959","1377708962","1377708964","1377708967","1377708969"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/80c040dcb5021d608969343b3b97fadd.jpg","text":"TemporaryFile(/tmp/multipartBody7436412637743491523asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528784363,"filename":"image_18082025_10_18_44_9690.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cefa2534ba7fdb28f7b15fd33846e141.jpg","text":"TemporaryFile(/tmp/multipartBody52637265578325164asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528784363,"filename":"image_18082025_10_18_35_9708.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/78e7caeeb9345f966fe9ea6f810519dc.jpg","text":"TemporaryFile(/tmp/multipartBody9091039221769396221asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528784363,"filename":"image_18082025_10_18_25_10733.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8661cf5f579b90e0d12244a1885aec0c.jpg","text":"TemporaryFile(/tmp/multipartBody3677089557759816320asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528784363,"filename":"image_18082025_10_19_05_10713.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/97dd5582944d216c3ba7b024e52c459c.jpg","text":"TemporaryFile(/tmp/multipartBody3133930947781950225asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528784363,"filename":"image_18082025_10_18_14_9739.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f3af4e748ffc84894b86ea63c592ba15.jpg","text":"TemporaryFile(/tmp/multipartBody3193319975632882331asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528784363,"filename":"image_18082025_10_18_54_9679.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377708962","file1":"1377708959","file0":"1377708955","file4":"1377708967","file5":"1377708969","file3":"1377708964"},"map_files_photo_id_array":[{"photo_id":"1377708969","filename":"file5"},{"photo_id":"1377708962","filename":"file2"},{"photo_id":"1377708967","filename":"file4"},{"photo_id":"1377708959","filename":"file1"},{"photo_id":"1377708955","filename":"file0"},{"photo_id":"1377708964","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377708962":["hashtag1","hashtag2"]},{"1377708964":["hashtag1","hashtag2"]},{"1377708967":["hashtag1","hashtag2"]},{"1377708955":["hashtag1","hashtag2"]},{"1377708969":["hashtag1","hashtag2"]},{"1377708959":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377708962, 1377708964, 1377708967, 1377708955, 1377708969, 1377708959)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.30718755722046 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:52:47.311986
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/52/image_18082025_16_52_44_9603.jpg', 2), ('/home/nano/Desktop/images/18082025/16/52/image_18082025_16_52_35_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/16/52/image_18082025_16_52_25_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/16/52/image_18082025_16_52_14_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/16/51/image_18082025_16_52_05_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/16/51/image_18082025_16_51_55_10673.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/52/image_18082025_16_52_44_9603.jpg', '/home/nano/Desktop/images/18082025/16/52/image_18082025_16_52_35_9627.jpg', '/home/nano/Desktop/images/18082025/16/52/image_18082025_16_52_25_10623.jpg', '/home/nano/Desktop/images/18082025/16/52/image_18082025_16_52_14_9650.jpg', '/home/nano/Desktop/images/18082025/16/51/image_18082025_16_52_05_9635.jpg', '/home/nano/Desktop/images/18082025/16/51/image_18082025_16_51_55_10673.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/52/image_18082025_16_52_44_9603.jpg
/home/nano/Desktop/images/18082025/16/52/image_18082025_16_52_35_9627.jpg
/home/nano/Desktop/images/18082025/16/52/image_18082025_16_52_25_10623.jpg
/home/nano/Desktop/images/18082025/16/52/image_18082025_16_52_14_9650.jpg
/home/nano/Desktop/images/18082025/16/51/image_18082025_16_52_05_9635.jpg
/home/nano/Desktop/images/18082025/16/51/image_18082025_16_51_55_10673.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377708980","1377708974","1377708976","1377708985","1377708972","1377708978"],"photo_ids_order":["1377708972","1377708974","1377708976","1377708978","1377708980","1377708985"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1527543d53ebafbc744441fa68828214.jpg","text":"TemporaryFile(/tmp/multipartBody7865417999220228884asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528828778,"filename":"image_18082025_16_52_05_9635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a94dd39cd4630424991d33a73dc56084.jpg","text":"TemporaryFile(/tmp/multipartBody3914121981667830812asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528828778,"filename":"image_18082025_16_52_35_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b985b8296c752fab25fab69537853276.jpg","text":"TemporaryFile(/tmp/multipartBody8718994362279092798asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528828778,"filename":"image_18082025_16_52_25_10623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/af1facc2de6da7a171227562a0e0789b.jpg","text":"TemporaryFile(/tmp/multipartBody2555256416765637888asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528828778,"filename":"image_18082025_16_51_55_10673.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e855b127778595f7e28f61355293d2f3.jpg","text":"TemporaryFile(/tmp/multipartBody4385110893647327693asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528828778,"filename":"image_18082025_16_52_44_9603.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fbc0e373eb4b24a2231238b5ba7a6a8d.jpg","text":"TemporaryFile(/tmp/multipartBody2314791564893508596asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528828778,"filename":"image_18082025_16_52_14_9650.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377708976","file1":"1377708974","file0":"1377708972","file4":"1377708980","file5":"1377708985","file3":"1377708978"},"map_files_photo_id_array":[{"photo_id":"1377708985","filename":"file5"},{"photo_id":"1377708976","filename":"file2"},{"photo_id":"1377708980","filename":"file4"},{"photo_id":"1377708974","filename":"file1"},{"photo_id":"1377708972","filename":"file0"},{"photo_id":"1377708978","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377708980":["hashtag1","hashtag2"]},{"1377708974":["hashtag1","hashtag2"]},{"1377708976":["hashtag1","hashtag2"]},{"1377708985":["hashtag1","hashtag2"]},{"1377708972":["hashtag1","hashtag2"]},{"1377708978":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377708980, 1377708974, 1377708976, 1377708985, 1377708972, 1377708978)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.988670349121094 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:53:32.412846
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/53/image_18082025_16_53_45_10611.jpg', 2), ('/home/nano/Desktop/images/18082025/16/53/image_18082025_16_53_34_9601.jpg', 2), ('/home/nano/Desktop/images/18082025/16/53/image_18082025_16_53_25_10612.jpg', 2), ('/home/nano/Desktop/images/18082025/16/53/image_18082025_16_53_14_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/16/52/image_18082025_16_53_04_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/16/52/image_18082025_16_52_55_10614.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/53/image_18082025_16_53_45_10611.jpg', '/home/nano/Desktop/images/18082025/16/53/image_18082025_16_53_34_9601.jpg', '/home/nano/Desktop/images/18082025/16/53/image_18082025_16_53_25_10612.jpg', '/home/nano/Desktop/images/18082025/16/53/image_18082025_16_53_14_9635.jpg', '/home/nano/Desktop/images/18082025/16/52/image_18082025_16_53_04_9628.jpg', '/home/nano/Desktop/images/18082025/16/52/image_18082025_16_52_55_10614.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/53/image_18082025_16_53_45_10611.jpg
/home/nano/Desktop/images/18082025/16/53/image_18082025_16_53_34_9601.jpg
/home/nano/Desktop/images/18082025/16/53/image_18082025_16_53_25_10612.jpg
/home/nano/Desktop/images/18082025/16/53/image_18082025_16_53_14_9635.jpg
/home/nano/Desktop/images/18082025/16/52/image_18082025_16_53_04_9628.jpg
/home/nano/Desktop/images/18082025/16/52/image_18082025_16_52_55_10614.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377709016","1377709010","1377709018","1377709011","1377709014","1377709008"],"photo_ids_order":["1377709008","1377709010","1377709011","1377709014","1377709016","1377709018"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9c55bbeb977f2a165b00e14fd45ff17f.jpg","text":"TemporaryFile(/tmp/multipartBody108744523072476973asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528873700,"filename":"image_18082025_16_53_04_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c6de6f5fd14066b7e7317f7f6dbed9ef.jpg","text":"TemporaryFile(/tmp/multipartBody5434154901045036847asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528873700,"filename":"image_18082025_16_53_34_9601.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ea5ae1e9b464989fd13f390736e6e4ba.jpg","text":"TemporaryFile(/tmp/multipartBody6640014561516371502asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528873700,"filename":"image_18082025_16_52_55_10614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/117ceed7353c28fcf89dc077ce5d2d26.jpg","text":"TemporaryFile(/tmp/multipartBody3135977200320850349asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528873700,"filename":"image_18082025_16_53_25_10612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b0bbf0d003a249fe27f11d8f535c60ef.jpg","text":"TemporaryFile(/tmp/multipartBody8716935063792507832asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528873700,"filename":"image_18082025_16_53_14_9635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4de1745cf6cfe3faa5159537a4e7d7a2.jpg","text":"TemporaryFile(/tmp/multipartBody2806193345701066147asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528873700,"filename":"image_18082025_16_53_45_10611.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377709011","file1":"1377709010","file0":"1377709008","file4":"1377709016","file5":"1377709018","file3":"1377709014"},"map_files_photo_id_array":[{"photo_id":"1377709018","filename":"file5"},{"photo_id":"1377709011","filename":"file2"},{"photo_id":"1377709016","filename":"file4"},{"photo_id":"1377709010","filename":"file1"},{"photo_id":"1377709008","filename":"file0"},{"photo_id":"1377709014","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377709016":["hashtag1","hashtag2"]},{"1377709010":["hashtag1","hashtag2"]},{"1377709018":["hashtag1","hashtag2"]},{"1377709011":["hashtag1","hashtag2"]},{"1377709014":["hashtag1","hashtag2"]},{"1377709008":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377709016, 1377709010, 1377709018, 1377709011, 1377709014, 1377709008)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.784059524536133 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:54:17.486507
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/54/image_18082025_16_54_45_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/16/54/image_18082025_16_54_35_10609.jpg', 2), ('/home/nano/Desktop/images/18082025/16/54/image_18082025_16_54_24_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/16/54/image_18082025_16_54_15_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/16/53/image_18082025_16_54_04_9605.jpg', 2), ('/home/nano/Desktop/images/18082025/16/53/image_18082025_16_53_54_9600.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/54/image_18082025_16_54_45_9651.jpg', '/home/nano/Desktop/images/18082025/16/54/image_18082025_16_54_35_10609.jpg', '/home/nano/Desktop/images/18082025/16/54/image_18082025_16_54_24_9606.jpg', '/home/nano/Desktop/images/18082025/16/54/image_18082025_16_54_15_10665.jpg', '/home/nano/Desktop/images/18082025/16/53/image_18082025_16_54_04_9605.jpg', '/home/nano/Desktop/images/18082025/16/53/image_18082025_16_53_54_9600.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/54/image_18082025_16_54_45_9651.jpg
/home/nano/Desktop/images/18082025/16/54/image_18082025_16_54_35_10609.jpg
/home/nano/Desktop/images/18082025/16/54/image_18082025_16_54_24_9606.jpg
/home/nano/Desktop/images/18082025/16/54/image_18082025_16_54_15_10665.jpg
/home/nano/Desktop/images/18082025/16/53/image_18082025_16_54_04_9605.jpg
/home/nano/Desktop/images/18082025/16/53/image_18082025_16_53_54_9600.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377709037","1377709033","1377709041","1377709044","1377709026","1377709029"],"photo_ids_order":["1377709026","1377709029","1377709033","1377709037","1377709041","1377709044"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a3411f3d82466ae8ca4a0018a8be51aa.jpg","text":"TemporaryFile(/tmp/multipartBody5570613218212694952asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528918596,"filename":"image_18082025_16_54_15_10665.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/17c906d6665c4e12a4415f10b8e21bb9.jpg","text":"TemporaryFile(/tmp/multipartBody4077272142485426668asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528918596,"filename":"image_18082025_16_54_24_9606.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/748275fd9c29a5808818761c8cd38b66.jpg","text":"TemporaryFile(/tmp/multipartBody7732240087255684157asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528918596,"filename":"image_18082025_16_54_04_9605.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/70e82af654f966d28f433e2aa562c3c4.jpg","text":"TemporaryFile(/tmp/multipartBody653176054741993989asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528918596,"filename":"image_18082025_16_53_54_9600.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3f6bb2b755d6dfdbcea33671740b03c9.jpg","text":"TemporaryFile(/tmp/multipartBody446406110337863469asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528918596,"filename":"image_18082025_16_54_45_9651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e2d38dcbd04f4bd337391a0b347f91e0.jpg","text":"TemporaryFile(/tmp/multipartBody4775956450438245673asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528918596,"filename":"image_18082025_16_54_35_10609.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377709033","file1":"1377709029","file0":"1377709026","file4":"1377709041","file5":"1377709044","file3":"1377709037"},"map_files_photo_id_array":[{"photo_id":"1377709044","filename":"file5"},{"photo_id":"1377709033","filename":"file2"},{"photo_id":"1377709041","filename":"file4"},{"photo_id":"1377709029","filename":"file1"},{"photo_id":"1377709026","filename":"file0"},{"photo_id":"1377709037","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377709037":["hashtag1","hashtag2"]},{"1377709033":["hashtag1","hashtag2"]},{"1377709041":["hashtag1","hashtag2"]},{"1377709044":["hashtag1","hashtag2"]},{"1377709026":["hashtag1","hashtag2"]},{"1377709029":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377709037, 1377709033, 1377709041, 1377709044, 1377709026, 1377709029)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.422173500061035 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:55:03.375722
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/17/image_18082025_10_18_05_9723.jpg', 2), ('/home/nano/Desktop/images/18082025/10/17/image_18082025_10_17_55_10734.jpg', 2), ('/home/nano/Desktop/images/18082025/10/17/image_18082025_10_17_44_9716.jpg', 2), ('/home/nano/Desktop/images/18082025/10/17/image_18082025_10_17_34_9691.jpg', 2), ('/home/nano/Desktop/images/18082025/10/17/image_18082025_10_17_25_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/10/17/image_18082025_10_17_15_10645.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/17/image_18082025_10_18_05_9723.jpg', '/home/nano/Desktop/images/18082025/10/17/image_18082025_10_17_55_10734.jpg', '/home/nano/Desktop/images/18082025/10/17/image_18082025_10_17_44_9716.jpg', '/home/nano/Desktop/images/18082025/10/17/image_18082025_10_17_34_9691.jpg', '/home/nano/Desktop/images/18082025/10/17/image_18082025_10_17_25_9658.jpg', '/home/nano/Desktop/images/18082025/10/17/image_18082025_10_17_15_10645.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/17/image_18082025_10_18_05_9723.jpg
/home/nano/Desktop/images/18082025/10/17/image_18082025_10_17_55_10734.jpg
/home/nano/Desktop/images/18082025/10/17/image_18082025_10_17_44_9716.jpg
/home/nano/Desktop/images/18082025/10/17/image_18082025_10_17_34_9691.jpg
/home/nano/Desktop/images/18082025/10/17/image_18082025_10_17_25_9658.jpg
/home/nano/Desktop/images/18082025/10/17/image_18082025_10_17_15_10645.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377709066","1377709051","1377709054","1377709062","1377709070","1377709058"],"photo_ids_order":["1377709051","1377709054","1377709058","1377709062","1377709066","1377709070"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/27ffcf3934e0817dd4b3cabadea9c573.jpg","text":"TemporaryFile(/tmp/multipartBody6647203793512017206asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528964619,"filename":"image_18082025_10_17_25_9658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cb35c94d59426d0bd09f29b82f0155ce.jpg","text":"TemporaryFile(/tmp/multipartBody4479099602107935579asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528964619,"filename":"image_18082025_10_18_05_9723.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3be97def66134eeaa4afd30f8fc7fa81.jpg","text":"TemporaryFile(/tmp/multipartBody2029444188098031635asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528964619,"filename":"image_18082025_10_17_55_10734.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/39d5e6b5724811d855e3cb1bda1c3d7d.jpg","text":"TemporaryFile(/tmp/multipartBody6534784953986436455asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528964619,"filename":"image_18082025_10_17_34_9691.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b7a3391ba5e07485fda4d6ba4b624453.jpg","text":"TemporaryFile(/tmp/multipartBody3858180684884307736asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528964619,"filename":"image_18082025_10_17_15_10645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6ab7f609456d735ad1a302dfd97bacbc.jpg","text":"TemporaryFile(/tmp/multipartBody7782831229610115847asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755528964619,"filename":"image_18082025_10_17_44_9716.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377709058","file1":"1377709054","file0":"1377709051","file4":"1377709066","file5":"1377709070","file3":"1377709062"},"map_files_photo_id_array":[{"photo_id":"1377709070","filename":"file5"},{"photo_id":"1377709058","filename":"file2"},{"photo_id":"1377709066","filename":"file4"},{"photo_id":"1377709054","filename":"file1"},{"photo_id":"1377709051","filename":"file0"},{"photo_id":"1377709062","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377709066":["hashtag1","hashtag2"]},{"1377709051":["hashtag1","hashtag2"]},{"1377709054":["hashtag1","hashtag2"]},{"1377709062":["hashtag1","hashtag2"]},{"1377709070":["hashtag1","hashtag2"]},{"1377709058":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377709066, 1377709051, 1377709054, 1377709062, 1377709070, 1377709058)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.58055019378662 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:55:47.591427
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/55/image_18082025_16_55_44_9599.jpg', 2), ('/home/nano/Desktop/images/18082025/16/55/image_18082025_16_55_35_10601.jpg', 2), ('/home/nano/Desktop/images/18082025/16/55/image_18082025_16_55_24_9599.jpg', 2), ('/home/nano/Desktop/images/18082025/16/55/image_18082025_16_55_15_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/16/54/image_18082025_16_55_05_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/16/54/image_18082025_16_54_54_9623.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/55/image_18082025_16_55_44_9599.jpg', '/home/nano/Desktop/images/18082025/16/55/image_18082025_16_55_35_10601.jpg', '/home/nano/Desktop/images/18082025/16/55/image_18082025_16_55_24_9599.jpg', '/home/nano/Desktop/images/18082025/16/55/image_18082025_16_55_15_9629.jpg', '/home/nano/Desktop/images/18082025/16/54/image_18082025_16_55_05_10631.jpg', '/home/nano/Desktop/images/18082025/16/54/image_18082025_16_54_54_9623.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/55/image_18082025_16_55_44_9599.jpg
/home/nano/Desktop/images/18082025/16/55/image_18082025_16_55_35_10601.jpg
/home/nano/Desktop/images/18082025/16/55/image_18082025_16_55_24_9599.jpg
/home/nano/Desktop/images/18082025/16/55/image_18082025_16_55_15_9629.jpg
/home/nano/Desktop/images/18082025/16/54/image_18082025_16_55_05_10631.jpg
/home/nano/Desktop/images/18082025/16/54/image_18082025_16_54_54_9623.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377709092","1377709095","1377709089","1377709080","1377709082","1377709085"],"photo_ids_order":["1377709080","1377709082","1377709085","1377709089","1377709092","1377709095"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/70470f8832e7f384cf9063dad0355c64.jpg","text":"TemporaryFile(/tmp/multipartBody5029306526708828029asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529008816,"filename":"image_18082025_16_55_05_10631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9cffc633492ee406263471fdea0ab1fd.jpg","text":"TemporaryFile(/tmp/multipartBody957513372044233195asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529008816,"filename":"image_18082025_16_54_54_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/77b8fc65a93e8cda9b63044814632d03.jpg","text":"TemporaryFile(/tmp/multipartBody6082688738629818073asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529008816,"filename":"image_18082025_16_55_15_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8aa91fa77b42e4cf7e8fb07ee40b2096.jpg","text":"TemporaryFile(/tmp/multipartBody317796122667347513asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529008816,"filename":"image_18082025_16_55_44_9599.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4eb7855ba34967b2f7d694b2a70cc734.jpg","text":"TemporaryFile(/tmp/multipartBody6429922264710213043asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529008816,"filename":"image_18082025_16_55_35_10601.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fc03e558dbcb78327f9af8506e216620.jpg","text":"TemporaryFile(/tmp/multipartBody6072007289824727887asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529008816,"filename":"image_18082025_16_55_24_9599.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377709085","file1":"1377709082","file0":"1377709080","file4":"1377709092","file5":"1377709095","file3":"1377709089"},"map_files_photo_id_array":[{"photo_id":"1377709095","filename":"file5"},{"photo_id":"1377709085","filename":"file2"},{"photo_id":"1377709092","filename":"file4"},{"photo_id":"1377709082","filename":"file1"},{"photo_id":"1377709080","filename":"file0"},{"photo_id":"1377709089","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377709092":["hashtag1","hashtag2"]},{"1377709095":["hashtag1","hashtag2"]},{"1377709089":["hashtag1","hashtag2"]},{"1377709080":["hashtag1","hashtag2"]},{"1377709082":["hashtag1","hashtag2"]},{"1377709085":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377709092, 1377709095, 1377709089, 1377709080, 1377709082, 1377709085)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.82850790023804 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:56:32.755719
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/56/image_18082025_16_56_45_10609.jpg', 2), ('/home/nano/Desktop/images/18082025/16/56/image_18082025_16_56_34_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/16/56/image_18082025_16_56_25_10612.jpg', 2), ('/home/nano/Desktop/images/18082025/16/56/image_18082025_16_56_14_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/16/55/image_18082025_16_56_05_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/16/55/image_18082025_16_55_55_10611.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/56/image_18082025_16_56_45_10609.jpg', '/home/nano/Desktop/images/18082025/16/56/image_18082025_16_56_34_9608.jpg', '/home/nano/Desktop/images/18082025/16/56/image_18082025_16_56_25_10612.jpg', '/home/nano/Desktop/images/18082025/16/56/image_18082025_16_56_14_9623.jpg', '/home/nano/Desktop/images/18082025/16/55/image_18082025_16_56_05_9617.jpg', '/home/nano/Desktop/images/18082025/16/55/image_18082025_16_55_55_10611.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/56/image_18082025_16_56_45_10609.jpg
/home/nano/Desktop/images/18082025/16/56/image_18082025_16_56_34_9608.jpg
/home/nano/Desktop/images/18082025/16/56/image_18082025_16_56_25_10612.jpg
/home/nano/Desktop/images/18082025/16/56/image_18082025_16_56_14_9623.jpg
/home/nano/Desktop/images/18082025/16/55/image_18082025_16_56_05_9617.jpg
/home/nano/Desktop/images/18082025/16/55/image_18082025_16_55_55_10611.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377709141","1377709144","1377709138","1377709134","1377709119","1377709130"],"photo_ids_order":["1377709119","1377709130","1377709134","1377709138","1377709141","1377709144"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ad9f4bee327d2a9a0e0b3a3491194b41.jpg","text":"TemporaryFile(/tmp/multipartBody5210419125959002333asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529054090,"filename":"image_18082025_16_56_05_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5005dadcd1c2719b3ef97cdf52a64f1b.jpg","text":"TemporaryFile(/tmp/multipartBody7697668206710692125asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529054090,"filename":"image_18082025_16_55_55_10611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c9bec1186b1da9cf4713640c589980ef.jpg","text":"TemporaryFile(/tmp/multipartBody5260787157270525445asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529054090,"filename":"image_18082025_16_56_14_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f78e824f45ecc9419c635ae496912e9d.jpg","text":"TemporaryFile(/tmp/multipartBody7527121194630913435asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529054090,"filename":"image_18082025_16_56_25_10612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/75e7acf4841d8b2c2d0fdb06bbb8f08a.jpg","text":"TemporaryFile(/tmp/multipartBody1588195767583849284asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529054090,"filename":"image_18082025_16_56_45_10609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/48b2b5d8555197ee2928b28e8a14d0d0.jpg","text":"TemporaryFile(/tmp/multipartBody780419974813570900asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529054090,"filename":"image_18082025_16_56_34_9608.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377709134","file1":"1377709130","file0":"1377709119","file4":"1377709141","file5":"1377709144","file3":"1377709138"},"map_files_photo_id_array":[{"photo_id":"1377709144","filename":"file5"},{"photo_id":"1377709134","filename":"file2"},{"photo_id":"1377709141","filename":"file4"},{"photo_id":"1377709130","filename":"file1"},{"photo_id":"1377709119","filename":"file0"},{"photo_id":"1377709138","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377709141":["hashtag1","hashtag2"]},{"1377709144":["hashtag1","hashtag2"]},{"1377709138":["hashtag1","hashtag2"]},{"1377709134":["hashtag1","hashtag2"]},{"1377709119":["hashtag1","hashtag2"]},{"1377709130":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377709141, 1377709144, 1377709138, 1377709134, 1377709119, 1377709130)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.44099712371826 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:57:16.794318
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/57/image_18082025_16_57_45_10633.jpg', 2), ('/home/nano/Desktop/images/18082025/16/57/image_18082025_16_57_34_9603.jpg', 2), ('/home/nano/Desktop/images/18082025/16/57/image_18082025_16_57_24_9597.jpg', 2), ('/home/nano/Desktop/images/18082025/16/57/image_18082025_16_57_15_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/16/56/image_18082025_16_57_04_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/16/56/image_18082025_16_56_55_9621.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/57/image_18082025_16_57_45_10633.jpg', '/home/nano/Desktop/images/18082025/16/57/image_18082025_16_57_34_9603.jpg', '/home/nano/Desktop/images/18082025/16/57/image_18082025_16_57_24_9597.jpg', '/home/nano/Desktop/images/18082025/16/57/image_18082025_16_57_15_10621.jpg', '/home/nano/Desktop/images/18082025/16/56/image_18082025_16_57_04_9631.jpg', '/home/nano/Desktop/images/18082025/16/56/image_18082025_16_56_55_9621.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/57/image_18082025_16_57_45_10633.jpg
/home/nano/Desktop/images/18082025/16/57/image_18082025_16_57_34_9603.jpg
/home/nano/Desktop/images/18082025/16/57/image_18082025_16_57_24_9597.jpg
/home/nano/Desktop/images/18082025/16/57/image_18082025_16_57_15_10621.jpg
/home/nano/Desktop/images/18082025/16/56/image_18082025_16_57_04_9631.jpg
/home/nano/Desktop/images/18082025/16/56/image_18082025_16_56_55_9621.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377709168","1377709165","1377709161","1377709155","1377709157","1377709172"],"photo_ids_order":["1377709155","1377709157","1377709161","1377709165","1377709168","1377709172"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8ece84376fa2d79ba4e66fe4b1dfef13.jpg","text":"TemporaryFile(/tmp/multipartBody6375387188270702879asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529097928,"filename":"image_18082025_16_57_04_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2fbd5d7ebcfd145cb0930ce3107c7dae.jpg","text":"TemporaryFile(/tmp/multipartBody52885106670085985asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529097928,"filename":"image_18082025_16_57_15_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/54f5defeca785b23a628ace8d8eada44.jpg","text":"TemporaryFile(/tmp/multipartBody108002057218784359asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529097928,"filename":"image_18082025_16_57_24_9597.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9fa4b7db3ef9a94f721bf6b8ddcd4bc0.jpg","text":"TemporaryFile(/tmp/multipartBody2597150326077012672asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529097928,"filename":"image_18082025_16_57_45_10633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fc489d1117343721a4bbd3d986d0a67f.jpg","text":"TemporaryFile(/tmp/multipartBody9069931004525012asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529097928,"filename":"image_18082025_16_57_34_9603.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/61f9aed4279628852824234f494a7e52.jpg","text":"TemporaryFile(/tmp/multipartBody7385781418845858046asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529097928,"filename":"image_18082025_16_56_55_9621.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377709161","file1":"1377709157","file0":"1377709155","file4":"1377709168","file5":"1377709172","file3":"1377709165"},"map_files_photo_id_array":[{"photo_id":"1377709172","filename":"file5"},{"photo_id":"1377709161","filename":"file2"},{"photo_id":"1377709168","filename":"file4"},{"photo_id":"1377709157","filename":"file1"},{"photo_id":"1377709155","filename":"file0"},{"photo_id":"1377709165","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377709168":["hashtag1","hashtag2"]},{"1377709165":["hashtag1","hashtag2"]},{"1377709161":["hashtag1","hashtag2"]},{"1377709155":["hashtag1","hashtag2"]},{"1377709157":["hashtag1","hashtag2"]},{"1377709172":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377709168, 1377709165, 1377709161, 1377709155, 1377709157, 1377709172)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.316690921783447 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:59:03.202086
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/16/image_18082025_10_17_04_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/10/16/image_18082025_10_16_55_10610.jpg', 2), ('/home/nano/Desktop/images/18082025/10/16/image_18082025_10_16_44_9605.jpg', 2), ('/home/nano/Desktop/images/18082025/10/16/image_18082025_10_16_35_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/10/16/image_18082025_10_16_25_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/10/16/image_18082025_10_16_14_9615.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/16/image_18082025_10_17_04_9617.jpg', '/home/nano/Desktop/images/18082025/10/16/image_18082025_10_16_55_10610.jpg', '/home/nano/Desktop/images/18082025/10/16/image_18082025_10_16_44_9605.jpg', '/home/nano/Desktop/images/18082025/10/16/image_18082025_10_16_35_9623.jpg', '/home/nano/Desktop/images/18082025/10/16/image_18082025_10_16_25_10621.jpg', '/home/nano/Desktop/images/18082025/10/16/image_18082025_10_16_14_9615.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/16/image_18082025_10_17_04_9617.jpg
/home/nano/Desktop/images/18082025/10/16/image_18082025_10_16_55_10610.jpg
/home/nano/Desktop/images/18082025/10/16/image_18082025_10_16_44_9605.jpg
/home/nano/Desktop/images/18082025/10/16/image_18082025_10_16_35_9623.jpg
/home/nano/Desktop/images/18082025/10/16/image_18082025_10_16_25_10621.jpg
/home/nano/Desktop/images/18082025/10/16/image_18082025_10_16_14_9615.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377709214","1377709202","1377709222","1377709209","1377709218","1377709206"],"photo_ids_order":["1377709202","1377709206","1377709209","1377709214","1377709218","1377709222"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e9e72c14b04953ee63dd24c7e496ac02.jpg","text":"TemporaryFile(/tmp/multipartBody4745834306187211350asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529204385,"filename":"image_18082025_10_16_35_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/edb46d79436e8084654142219c858f66.jpg","text":"TemporaryFile(/tmp/multipartBody598235553971154429asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529204385,"filename":"image_18082025_10_17_04_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/78e02d9432999170b30478fc3f9aade4.jpg","text":"TemporaryFile(/tmp/multipartBody9150318277542725387asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529204385,"filename":"image_18082025_10_16_14_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f4479d9d3ac4c50a6a29c3aafc5858aa.jpg","text":"TemporaryFile(/tmp/multipartBody5694131639458555794asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529204385,"filename":"image_18082025_10_16_44_9605.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d03537c116ab2d30a4c4cc5b316f1ed2.jpg","text":"TemporaryFile(/tmp/multipartBody7020513220867569914asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529204385,"filename":"image_18082025_10_16_25_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5ffa8a6d79104d6da376527700d58600.jpg","text":"TemporaryFile(/tmp/multipartBody8381233553883860954asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529204385,"filename":"image_18082025_10_16_55_10610.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377709209","file1":"1377709206","file0":"1377709202","file4":"1377709218","file5":"1377709222","file3":"1377709214"},"map_files_photo_id_array":[{"photo_id":"1377709222","filename":"file5"},{"photo_id":"1377709209","filename":"file2"},{"photo_id":"1377709218","filename":"file4"},{"photo_id":"1377709206","filename":"file1"},{"photo_id":"1377709202","filename":"file0"},{"photo_id":"1377709214","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377709214":["hashtag1","hashtag2"]},{"1377709202":["hashtag1","hashtag2"]},{"1377709222":["hashtag1","hashtag2"]},{"1377709209":["hashtag1","hashtag2"]},{"1377709218":["hashtag1","hashtag2"]},{"1377709206":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377709214, 1377709202, 1377709222, 1377709209, 1377709218, 1377709206)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.78268384933472 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 16:59:47.075541
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/59/image_18082025_16_59_44_9602.jpg', 2), ('/home/nano/Desktop/images/18082025/16/59/image_18082025_16_59_35_9599.jpg', 2), ('/home/nano/Desktop/images/18082025/16/59/image_18082025_16_59_25_10607.jpg', 2), ('/home/nano/Desktop/images/18082025/16/59/image_18082025_16_59_14_9604.jpg', 2), ('/home/nano/Desktop/images/18082025/16/58/image_18082025_16_59_05_10620.jpg', 2), ('/home/nano/Desktop/images/18082025/16/58/image_18082025_16_58_54_9598.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/59/image_18082025_16_59_44_9602.jpg', '/home/nano/Desktop/images/18082025/16/59/image_18082025_16_59_35_9599.jpg', '/home/nano/Desktop/images/18082025/16/59/image_18082025_16_59_25_10607.jpg', '/home/nano/Desktop/images/18082025/16/59/image_18082025_16_59_14_9604.jpg', '/home/nano/Desktop/images/18082025/16/58/image_18082025_16_59_05_10620.jpg', '/home/nano/Desktop/images/18082025/16/58/image_18082025_16_58_54_9598.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/59/image_18082025_16_59_44_9602.jpg
/home/nano/Desktop/images/18082025/16/59/image_18082025_16_59_35_9599.jpg
/home/nano/Desktop/images/18082025/16/59/image_18082025_16_59_25_10607.jpg
/home/nano/Desktop/images/18082025/16/59/image_18082025_16_59_14_9604.jpg
/home/nano/Desktop/images/18082025/16/58/image_18082025_16_59_05_10620.jpg
/home/nano/Desktop/images/18082025/16/58/image_18082025_16_58_54_9598.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377709240","1377709251","1377709242","1377709236","1377709244","1377709247"],"photo_ids_order":["1377709236","1377709240","1377709242","1377709244","1377709247","1377709251"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/43ec40d8c7b1b11091bdb67a0395b882.jpg","text":"TemporaryFile(/tmp/multipartBody3052611917151270325asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529248376,"filename":"image_18082025_16_59_35_9599.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2309e4fc02c46dd1426d3397f120f0ac.jpg","text":"TemporaryFile(/tmp/multipartBody8727968085238092427asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529248376,"filename":"image_18082025_16_58_54_9598.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/99a92163c219fa943b0ba6c9789bd39e.jpg","text":"TemporaryFile(/tmp/multipartBody7616011649080220029asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529248376,"filename":"image_18082025_16_59_25_10607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/76bddeb1b6d071257001639af616c598.jpg","text":"TemporaryFile(/tmp/multipartBody4870802829168156544asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529248376,"filename":"image_18082025_16_59_44_9602.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f4199e2918e3067add02b501ab7246be.jpg","text":"TemporaryFile(/tmp/multipartBody5277574005314236851asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529248376,"filename":"image_18082025_16_59_14_9604.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e982d524b8f3c4e24fb194c9f14df502.jpg","text":"TemporaryFile(/tmp/multipartBody6086454252558433554asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529248376,"filename":"image_18082025_16_59_05_10620.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377709242","file1":"1377709240","file0":"1377709236","file4":"1377709247","file5":"1377709251","file3":"1377709244"},"map_files_photo_id_array":[{"photo_id":"1377709251","filename":"file5"},{"photo_id":"1377709242","filename":"file2"},{"photo_id":"1377709247","filename":"file4"},{"photo_id":"1377709240","filename":"file1"},{"photo_id":"1377709236","filename":"file0"},{"photo_id":"1377709244","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377709240":["hashtag1","hashtag2"]},{"1377709251":["hashtag1","hashtag2"]},{"1377709242":["hashtag1","hashtag2"]},{"1377709236":["hashtag1","hashtag2"]},{"1377709244":["hashtag1","hashtag2"]},{"1377709247":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377709240, 1377709251, 1377709242, 1377709236, 1377709244, 1377709247)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.35321044921875 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:00:32.194943
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/00/image_18082025_17_00_45_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/17/00/image_18082025_17_00_34_9602.jpg', 2), ('/home/nano/Desktop/images/18082025/17/00/image_18082025_17_00_25_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/17/00/image_18082025_17_00_15_10633.jpg', 2), ('/home/nano/Desktop/images/18082025/16/59/image_18082025_17_00_04_9598.jpg', 2), ('/home/nano/Desktop/images/18082025/16/59/image_18082025_16_59_55_10609.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/00/image_18082025_17_00_45_10648.jpg', '/home/nano/Desktop/images/18082025/17/00/image_18082025_17_00_34_9602.jpg', '/home/nano/Desktop/images/18082025/17/00/image_18082025_17_00_25_9643.jpg', '/home/nano/Desktop/images/18082025/17/00/image_18082025_17_00_15_10633.jpg', '/home/nano/Desktop/images/18082025/16/59/image_18082025_17_00_04_9598.jpg', '/home/nano/Desktop/images/18082025/16/59/image_18082025_16_59_55_10609.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/00/image_18082025_17_00_45_10648.jpg
/home/nano/Desktop/images/18082025/17/00/image_18082025_17_00_34_9602.jpg
/home/nano/Desktop/images/18082025/17/00/image_18082025_17_00_25_9643.jpg
/home/nano/Desktop/images/18082025/17/00/image_18082025_17_00_15_10633.jpg
/home/nano/Desktop/images/18082025/16/59/image_18082025_17_00_04_9598.jpg
/home/nano/Desktop/images/18082025/16/59/image_18082025_16_59_55_10609.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377709267","1377709261","1377709264","1377709263","1377709266","1377709259"],"photo_ids_order":["1377709259","1377709261","1377709263","1377709264","1377709266","1377709267"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/03c498df8082a7e6cc1f4e27114bfb69.jpg","text":"TemporaryFile(/tmp/multipartBody5876238221418933384asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529293768,"filename":"image_18082025_16_59_55_10609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1d73a95f80f58c04d6346819951ab0c9.jpg","text":"TemporaryFile(/tmp/multipartBody6910965176776518825asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529293768,"filename":"image_18082025_17_00_34_9602.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e306f2a37e50f7a97c84321f28f16f60.jpg","text":"TemporaryFile(/tmp/multipartBody4571331971498522907asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529293768,"filename":"image_18082025_17_00_15_10633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8e47c65d5b0eee80ed6ac52b73f1ef90.jpg","text":"TemporaryFile(/tmp/multipartBody3305158592679615131asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529293768,"filename":"image_18082025_17_00_25_9643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5da600ecbb89db0f231eddc7a0eb7407.jpg","text":"TemporaryFile(/tmp/multipartBody3801240693820776370asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529293768,"filename":"image_18082025_17_00_04_9598.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e4c45a2a69081d03063918fdf84fc3c4.jpg","text":"TemporaryFile(/tmp/multipartBody6393862493053842343asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529293768,"filename":"image_18082025_17_00_45_10648.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377709263","file1":"1377709261","file0":"1377709259","file4":"1377709266","file5":"1377709267","file3":"1377709264"},"map_files_photo_id_array":[{"photo_id":"1377709267","filename":"file5"},{"photo_id":"1377709263","filename":"file2"},{"photo_id":"1377709266","filename":"file4"},{"photo_id":"1377709261","filename":"file1"},{"photo_id":"1377709259","filename":"file0"},{"photo_id":"1377709264","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377709267":["hashtag1","hashtag2"]},{"1377709261":["hashtag1","hashtag2"]},{"1377709264":["hashtag1","hashtag2"]},{"1377709263":["hashtag1","hashtag2"]},{"1377709266":["hashtag1","hashtag2"]},{"1377709259":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377709267, 1377709261, 1377709264, 1377709263, 1377709266, 1377709259)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.83339285850525 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:01:17.269749
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/01/image_18082025_17_01_45_9598.jpg', 2), ('/home/nano/Desktop/images/18082025/17/01/image_18082025_17_01_35_10606.jpg', 2), ('/home/nano/Desktop/images/18082025/17/01/image_18082025_17_01_24_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/17/01/image_18082025_17_01_15_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/17/00/image_18082025_17_01_04_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/17/00/image_18082025_17_00_54_9612.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/01/image_18082025_17_01_45_9598.jpg', '/home/nano/Desktop/images/18082025/17/01/image_18082025_17_01_35_10606.jpg', '/home/nano/Desktop/images/18082025/17/01/image_18082025_17_01_24_9618.jpg', '/home/nano/Desktop/images/18082025/17/01/image_18082025_17_01_15_10645.jpg', '/home/nano/Desktop/images/18082025/17/00/image_18082025_17_01_04_9642.jpg', '/home/nano/Desktop/images/18082025/17/00/image_18082025_17_00_54_9612.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/01/image_18082025_17_01_45_9598.jpg
/home/nano/Desktop/images/18082025/17/01/image_18082025_17_01_35_10606.jpg
/home/nano/Desktop/images/18082025/17/01/image_18082025_17_01_24_9618.jpg
/home/nano/Desktop/images/18082025/17/01/image_18082025_17_01_15_10645.jpg
/home/nano/Desktop/images/18082025/17/00/image_18082025_17_01_04_9642.jpg
/home/nano/Desktop/images/18082025/17/00/image_18082025_17_00_54_9612.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377709340","1377709307","1377709301","1377709304","1377709324","1377709310"],"photo_ids_order":["1377709301","1377709304","1377709307","1377709310","1377709324","1377709340"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0be5518754a2cbf09f6648f0ae6adab6.jpg","text":"TemporaryFile(/tmp/multipartBody7196507855072377850asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529338464,"filename":"image_18082025_17_00_54_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/940601b37af51bab234f981049e4f714.jpg","text":"TemporaryFile(/tmp/multipartBody6591793523233165955asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529338464,"filename":"image_18082025_17_01_24_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0225447c48d718c0d54dc44a72665450.jpg","text":"TemporaryFile(/tmp/multipartBody5465481244784088915asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529338464,"filename":"image_18082025_17_01_45_9598.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5f2773a36fcebd8b6fb06cc14e905d53.jpg","text":"TemporaryFile(/tmp/multipartBody7147277985293160982asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529338464,"filename":"image_18082025_17_01_35_10606.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c1aa214e739a5d0e07fd5fc4036c5aa8.jpg","text":"TemporaryFile(/tmp/multipartBody403516406267810150asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529338464,"filename":"image_18082025_17_01_04_9642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0d15c5df4053b5bf050d2759da93bd30.jpg","text":"TemporaryFile(/tmp/multipartBody481753123690819761asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529338464,"filename":"image_18082025_17_01_15_10645.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377709307","file1":"1377709304","file0":"1377709301","file4":"1377709324","file5":"1377709340","file3":"1377709310"},"map_files_photo_id_array":[{"photo_id":"1377709340","filename":"file5"},{"photo_id":"1377709307","filename":"file2"},{"photo_id":"1377709324","filename":"file4"},{"photo_id":"1377709304","filename":"file1"},{"photo_id":"1377709301","filename":"file0"},{"photo_id":"1377709310","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377709340":["hashtag1","hashtag2"]},{"1377709307":["hashtag1","hashtag2"]},{"1377709301":["hashtag1","hashtag2"]},{"1377709304":["hashtag1","hashtag2"]},{"1377709324":["hashtag1","hashtag2"]},{"1377709310":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377709340, 1377709307, 1377709301, 1377709304, 1377709324, 1377709310)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.454204082489014 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:02:02.922937
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/16/58/image_18082025_16_58_44_9599.jpg', 2), ('/home/nano/Desktop/images/18082025/16/58/image_18082025_16_58_35_10614.jpg', 2), ('/home/nano/Desktop/images/18082025/16/58/image_18082025_16_58_24_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/16/58/image_18082025_16_58_15_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/16/57/image_18082025_16_58_05_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/16/57/image_18082025_16_57_54_9646.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/16/58/image_18082025_16_58_44_9599.jpg', '/home/nano/Desktop/images/18082025/16/58/image_18082025_16_58_35_10614.jpg', '/home/nano/Desktop/images/18082025/16/58/image_18082025_16_58_24_9629.jpg', '/home/nano/Desktop/images/18082025/16/58/image_18082025_16_58_15_9658.jpg', '/home/nano/Desktop/images/18082025/16/57/image_18082025_16_58_05_10631.jpg', '/home/nano/Desktop/images/18082025/16/57/image_18082025_16_57_54_9646.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/16/58/image_18082025_16_58_44_9599.jpg
/home/nano/Desktop/images/18082025/16/58/image_18082025_16_58_35_10614.jpg
/home/nano/Desktop/images/18082025/16/58/image_18082025_16_58_24_9629.jpg
/home/nano/Desktop/images/18082025/16/58/image_18082025_16_58_15_9658.jpg
/home/nano/Desktop/images/18082025/16/57/image_18082025_16_58_05_10631.jpg
/home/nano/Desktop/images/18082025/16/57/image_18082025_16_57_54_9646.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377709378","1377709375","1377709373","1377709370","1377709364","1377709367"],"photo_ids_order":["1377709364","1377709367","1377709370","1377709373","1377709375","1377709378"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/70085eb8ee75f172e3b482a8d7888c0b.jpg","text":"TemporaryFile(/tmp/multipartBody4399698944995318810asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529384378,"filename":"image_18082025_16_57_54_9646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b1ca4e5a2c5644eb5417a560d92e2534.jpg","text":"TemporaryFile(/tmp/multipartBody5183013236678175491asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529384378,"filename":"image_18082025_16_58_05_10631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bf256d394db576aaaeacebffe11e90a3.jpg","text":"TemporaryFile(/tmp/multipartBody6043976644127994014asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529384378,"filename":"image_18082025_16_58_15_9658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c0925b948738722a701181c67a896422.jpg","text":"TemporaryFile(/tmp/multipartBody3029239268581502769asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529384378,"filename":"image_18082025_16_58_24_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b29aa79886dbc70390cc93d8d2be2d95.jpg","text":"TemporaryFile(/tmp/multipartBody3110472794644995557asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529384378,"filename":"image_18082025_16_58_44_9599.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4968ac2d214ca338fc29c50bafe141aa.jpg","text":"TemporaryFile(/tmp/multipartBody552542566774692557asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529384378,"filename":"image_18082025_16_58_35_10614.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377709370","file1":"1377709367","file0":"1377709364","file4":"1377709375","file5":"1377709378","file3":"1377709373"},"map_files_photo_id_array":[{"photo_id":"1377709378","filename":"file5"},{"photo_id":"1377709370","filename":"file2"},{"photo_id":"1377709375","filename":"file4"},{"photo_id":"1377709367","filename":"file1"},{"photo_id":"1377709364","filename":"file0"},{"photo_id":"1377709373","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377709378":["hashtag1","hashtag2"]},{"1377709375":["hashtag1","hashtag2"]},{"1377709373":["hashtag1","hashtag2"]},{"1377709370":["hashtag1","hashtag2"]},{"1377709364":["hashtag1","hashtag2"]},{"1377709367":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377709378, 1377709375, 1377709373, 1377709370, 1377709364, 1377709367)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.182823657989502 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:02:47.391259
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/02/image_18082025_17_02_44_9596.jpg', 2), ('/home/nano/Desktop/images/18082025/17/02/image_18082025_17_02_35_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/17/02/image_18082025_17_02_25_10610.jpg', 2), ('/home/nano/Desktop/images/18082025/17/02/image_18082025_17_02_14_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/17/01/image_18082025_17_02_05_10617.jpg', 2), ('/home/nano/Desktop/images/18082025/17/01/image_18082025_17_01_54_9600.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/02/image_18082025_17_02_44_9596.jpg', '/home/nano/Desktop/images/18082025/17/02/image_18082025_17_02_35_9622.jpg', '/home/nano/Desktop/images/18082025/17/02/image_18082025_17_02_25_10610.jpg', '/home/nano/Desktop/images/18082025/17/02/image_18082025_17_02_14_9623.jpg', '/home/nano/Desktop/images/18082025/17/01/image_18082025_17_02_05_10617.jpg', '/home/nano/Desktop/images/18082025/17/01/image_18082025_17_01_54_9600.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/02/image_18082025_17_02_44_9596.jpg
/home/nano/Desktop/images/18082025/17/02/image_18082025_17_02_35_9622.jpg
/home/nano/Desktop/images/18082025/17/02/image_18082025_17_02_25_10610.jpg
/home/nano/Desktop/images/18082025/17/02/image_18082025_17_02_14_9623.jpg
/home/nano/Desktop/images/18082025/17/01/image_18082025_17_02_05_10617.jpg
/home/nano/Desktop/images/18082025/17/01/image_18082025_17_01_54_9600.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377709396","1377709390","1377709389","1377709392","1377709391","1377709388"],"photo_ids_order":["1377709388","1377709389","1377709390","1377709391","1377709392","1377709396"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/971ccdfb7c1032ab70eb2a9ab7e0acd3.jpg","text":"TemporaryFile(/tmp/multipartBody5700804849120920938asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529428761,"filename":"image_18082025_17_01_54_9600.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bf480657d7e38bbdeb310b1bdb237deb.jpg","text":"TemporaryFile(/tmp/multipartBody6694368545720607350asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529428761,"filename":"image_18082025_17_02_25_10610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/59f1c99fd33734edd31b6fcdab64ae55.jpg","text":"TemporaryFile(/tmp/multipartBody2080624228375707619asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529428761,"filename":"image_18082025_17_02_35_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/412bd93deefb2e65c740c21ec6a8ee19.jpg","text":"TemporaryFile(/tmp/multipartBody649924562777340268asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529428761,"filename":"image_18082025_17_02_05_10617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f1899d7569ed37b331e16daafc982455.jpg","text":"TemporaryFile(/tmp/multipartBody3638633426666958378asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529428761,"filename":"image_18082025_17_02_14_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/221e8fd02b655cd7a8f326dadfc00cad.jpg","text":"TemporaryFile(/tmp/multipartBody96387699718322238asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529428761,"filename":"image_18082025_17_02_44_9596.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377709390","file1":"1377709389","file0":"1377709388","file4":"1377709392","file5":"1377709396","file3":"1377709391"},"map_files_photo_id_array":[{"photo_id":"1377709396","filename":"file5"},{"photo_id":"1377709390","filename":"file2"},{"photo_id":"1377709392","filename":"file4"},{"photo_id":"1377709389","filename":"file1"},{"photo_id":"1377709388","filename":"file0"},{"photo_id":"1377709391","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377709396":["hashtag1","hashtag2"]},{"1377709390":["hashtag1","hashtag2"]},{"1377709389":["hashtag1","hashtag2"]},{"1377709392":["hashtag1","hashtag2"]},{"1377709391":["hashtag1","hashtag2"]},{"1377709388":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377709396, 1377709390, 1377709389, 1377709392, 1377709391, 1377709388)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.23156476020813 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:03:32.542758
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/03/image_18082025_17_03_45_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/17/03/image_18082025_17_03_34_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/17/03/image_18082025_17_03_25_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/17/03/image_18082025_17_03_14_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/17/02/image_18082025_17_03_04_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/17/02/image_18082025_17_02_55_10613.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/03/image_18082025_17_03_45_10646.jpg', '/home/nano/Desktop/images/18082025/17/03/image_18082025_17_03_34_9618.jpg', '/home/nano/Desktop/images/18082025/17/03/image_18082025_17_03_25_10641.jpg', '/home/nano/Desktop/images/18082025/17/03/image_18082025_17_03_14_9619.jpg', '/home/nano/Desktop/images/18082025/17/02/image_18082025_17_03_04_9608.jpg', '/home/nano/Desktop/images/18082025/17/02/image_18082025_17_02_55_10613.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/03/image_18082025_17_03_45_10646.jpg
/home/nano/Desktop/images/18082025/17/03/image_18082025_17_03_34_9618.jpg
/home/nano/Desktop/images/18082025/17/03/image_18082025_17_03_25_10641.jpg
/home/nano/Desktop/images/18082025/17/03/image_18082025_17_03_14_9619.jpg
/home/nano/Desktop/images/18082025/17/02/image_18082025_17_03_04_9608.jpg
/home/nano/Desktop/images/18082025/17/02/image_18082025_17_02_55_10613.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377709421","1377709415","1377709441","1377709414","1377709413","1377709430"],"photo_ids_order":["1377709413","1377709414","1377709415","1377709421","1377709430","1377709441"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5ceadcf326a192207890f6f9490d2bc8.jpg","text":"TemporaryFile(/tmp/multipartBody4507376043776808039asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529473975,"filename":"image_18082025_17_03_14_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/57c8ac7caadda7dd7c33aa3905f5678d.jpg","text":"TemporaryFile(/tmp/multipartBody7037818743600465169asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529473975,"filename":"image_18082025_17_03_25_10641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8945e6f495f8189a07635eab347b9eb2.jpg","text":"TemporaryFile(/tmp/multipartBody363409866340643381asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529473975,"filename":"image_18082025_17_02_55_10613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/668f347023d42a11b3b6f46d84767335.jpg","text":"TemporaryFile(/tmp/multipartBody7185493477750367922asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529473975,"filename":"image_18082025_17_03_34_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3ddfe6233dbca8709e642fb43c12f584.jpg","text":"TemporaryFile(/tmp/multipartBody7768879390140751001asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529473975,"filename":"image_18082025_17_03_45_10646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/af77bcca029af0de6c1e4f920bf7a041.jpg","text":"TemporaryFile(/tmp/multipartBody6559952412228206150asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529473975,"filename":"image_18082025_17_03_04_9608.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377709415","file1":"1377709414","file0":"1377709413","file4":"1377709430","file5":"1377709441","file3":"1377709421"},"map_files_photo_id_array":[{"photo_id":"1377709441","filename":"file5"},{"photo_id":"1377709415","filename":"file2"},{"photo_id":"1377709430","filename":"file4"},{"photo_id":"1377709414","filename":"file1"},{"photo_id":"1377709413","filename":"file0"},{"photo_id":"1377709421","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377709421":["hashtag1","hashtag2"]},{"1377709415":["hashtag1","hashtag2"]},{"1377709441":["hashtag1","hashtag2"]},{"1377709414":["hashtag1","hashtag2"]},{"1377709413":["hashtag1","hashtag2"]},{"1377709430":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377709421, 1377709415, 1377709441, 1377709414, 1377709413, 1377709430)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.934765338897705 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:04:17.695373
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/04/image_18082025_17_04_45_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/17/04/image_18082025_17_04_34_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/17/04/image_18082025_17_04_25_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/17/04/image_18082025_17_04_15_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/17/03/image_18082025_17_04_04_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/17/03/image_18082025_17_03_55_9629.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/04/image_18082025_17_04_45_10625.jpg', '/home/nano/Desktop/images/18082025/17/04/image_18082025_17_04_34_9631.jpg', '/home/nano/Desktop/images/18082025/17/04/image_18082025_17_04_25_9611.jpg', '/home/nano/Desktop/images/18082025/17/04/image_18082025_17_04_15_10651.jpg', '/home/nano/Desktop/images/18082025/17/03/image_18082025_17_04_04_9622.jpg', '/home/nano/Desktop/images/18082025/17/03/image_18082025_17_03_55_9629.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/04/image_18082025_17_04_45_10625.jpg
/home/nano/Desktop/images/18082025/17/04/image_18082025_17_04_34_9631.jpg
/home/nano/Desktop/images/18082025/17/04/image_18082025_17_04_25_9611.jpg
/home/nano/Desktop/images/18082025/17/04/image_18082025_17_04_15_10651.jpg
/home/nano/Desktop/images/18082025/17/03/image_18082025_17_04_04_9622.jpg
/home/nano/Desktop/images/18082025/17/03/image_18082025_17_03_55_9629.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377709465","1377709459","1377709461","1377709455","1377709472","1377709469"],"photo_ids_order":["1377709455","1377709459","1377709461","1377709465","1377709469","1377709472"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bb51a64fbb347f7afdf0965fa7bd88e5.jpg","text":"TemporaryFile(/tmp/multipartBody5654872023889728658asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529519380,"filename":"image_18082025_17_04_15_10651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/36e0f678dcd7737f673349c5413d0db3.jpg","text":"TemporaryFile(/tmp/multipartBody5794346359906456869asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529519380,"filename":"image_18082025_17_04_34_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ae83335bfd254ab6d24376e92342a1b6.jpg","text":"TemporaryFile(/tmp/multipartBody494640240288443916asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529519380,"filename":"image_18082025_17_04_25_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/607a2eb2aafbe242e200517b7d0e293c.jpg","text":"TemporaryFile(/tmp/multipartBody6855513454363943013asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529519380,"filename":"image_18082025_17_04_45_10625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3884439997faaa8637bd5293a6b14041.jpg","text":"TemporaryFile(/tmp/multipartBody7912036648739015881asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529519380,"filename":"image_18082025_17_03_55_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/826a90c41321668324f7f3bdefa97c2e.jpg","text":"TemporaryFile(/tmp/multipartBody2807198904276918056asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529519380,"filename":"image_18082025_17_04_04_9622.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377709461","file1":"1377709459","file0":"1377709455","file4":"1377709469","file5":"1377709472","file3":"1377709465"},"map_files_photo_id_array":[{"photo_id":"1377709472","filename":"file5"},{"photo_id":"1377709461","filename":"file2"},{"photo_id":"1377709469","filename":"file4"},{"photo_id":"1377709459","filename":"file1"},{"photo_id":"1377709455","filename":"file0"},{"photo_id":"1377709465","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377709465":["hashtag1","hashtag2"]},{"1377709459":["hashtag1","hashtag2"]},{"1377709461":["hashtag1","hashtag2"]},{"1377709455":["hashtag1","hashtag2"]},{"1377709472":["hashtag1","hashtag2"]},{"1377709469":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377709465, 1377709459, 1377709461, 1377709455, 1377709472, 1377709469)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.850505352020264 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:05:02.459964
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/15/image_18082025_10_16_05_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/10/15/image_18082025_10_15_54_9603.jpg', 2), ('/home/nano/Desktop/images/18082025/10/15/image_18082025_10_15_44_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/10/15/image_18082025_10_15_35_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/10/15/image_18082025_10_15_24_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/10/15/image_18082025_10_15_15_9619.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/15/image_18082025_10_16_05_10635.jpg', '/home/nano/Desktop/images/18082025/10/15/image_18082025_10_15_54_9603.jpg', '/home/nano/Desktop/images/18082025/10/15/image_18082025_10_15_44_9608.jpg', '/home/nano/Desktop/images/18082025/10/15/image_18082025_10_15_35_10630.jpg', '/home/nano/Desktop/images/18082025/10/15/image_18082025_10_15_24_9608.jpg', '/home/nano/Desktop/images/18082025/10/15/image_18082025_10_15_15_9619.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/15/image_18082025_10_16_05_10635.jpg
/home/nano/Desktop/images/18082025/10/15/image_18082025_10_15_54_9603.jpg
/home/nano/Desktop/images/18082025/10/15/image_18082025_10_15_44_9608.jpg
/home/nano/Desktop/images/18082025/10/15/image_18082025_10_15_35_10630.jpg
/home/nano/Desktop/images/18082025/10/15/image_18082025_10_15_24_9608.jpg
/home/nano/Desktop/images/18082025/10/15/image_18082025_10_15_15_9619.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377709483","1377709477","1377709479","1377709499","1377709493","1377709487"],"photo_ids_order":["1377709477","1377709479","1377709483","1377709487","1377709493","1377709499"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c62d69c691c103e96ebd16c7a0a08821.jpg","text":"TemporaryFile(/tmp/multipartBody616623300193017464asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529563695,"filename":"image_18082025_10_15_44_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8c055e61b26a19852970aabe8cd460c0.jpg","text":"TemporaryFile(/tmp/multipartBody132089935412086758asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529563695,"filename":"image_18082025_10_16_05_10635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2f596e444d26ac1f478655350ac003bd.jpg","text":"TemporaryFile(/tmp/multipartBody1340026815691207112asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529563695,"filename":"image_18082025_10_15_54_9603.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2b601a0f9b256ac7362a89d1cd0a513e.jpg","text":"TemporaryFile(/tmp/multipartBody4241402233544306534asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529563695,"filename":"image_18082025_10_15_15_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a996435f63df0c9d26349deca31a7cc4.jpg","text":"TemporaryFile(/tmp/multipartBody7615950351432684524asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529563695,"filename":"image_18082025_10_15_24_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3202fcce84bfad8677477ba4c40ac3fa.jpg","text":"TemporaryFile(/tmp/multipartBody2909662785007137615asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529563695,"filename":"image_18082025_10_15_35_10630.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377709483","file1":"1377709479","file0":"1377709477","file4":"1377709493","file5":"1377709499","file3":"1377709487"},"map_files_photo_id_array":[{"photo_id":"1377709499","filename":"file5"},{"photo_id":"1377709483","filename":"file2"},{"photo_id":"1377709493","filename":"file4"},{"photo_id":"1377709479","filename":"file1"},{"photo_id":"1377709477","filename":"file0"},{"photo_id":"1377709487","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377709483":["hashtag1","hashtag2"]},{"1377709477":["hashtag1","hashtag2"]},{"1377709479":["hashtag1","hashtag2"]},{"1377709499":["hashtag1","hashtag2"]},{"1377709493":["hashtag1","hashtag2"]},{"1377709487":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377709483, 1377709477, 1377709479, 1377709499, 1377709493, 1377709487)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.8407199382782 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:05:46.779711
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/05/image_18082025_17_05_44_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/17/05/image_18082025_17_05_35_10622.jpg', 2), ('/home/nano/Desktop/images/18082025/17/05/image_18082025_17_05_24_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/17/05/image_18082025_17_05_15_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/17/04/image_18082025_17_05_05_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/17/04/image_18082025_17_04_54_9605.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/05/image_18082025_17_05_44_9612.jpg', '/home/nano/Desktop/images/18082025/17/05/image_18082025_17_05_35_10622.jpg', '/home/nano/Desktop/images/18082025/17/05/image_18082025_17_05_24_9611.jpg', '/home/nano/Desktop/images/18082025/17/05/image_18082025_17_05_15_9631.jpg', '/home/nano/Desktop/images/18082025/17/04/image_18082025_17_05_05_10621.jpg', '/home/nano/Desktop/images/18082025/17/04/image_18082025_17_04_54_9605.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/05/image_18082025_17_05_44_9612.jpg
/home/nano/Desktop/images/18082025/17/05/image_18082025_17_05_35_10622.jpg
/home/nano/Desktop/images/18082025/17/05/image_18082025_17_05_24_9611.jpg
/home/nano/Desktop/images/18082025/17/05/image_18082025_17_05_15_9631.jpg
/home/nano/Desktop/images/18082025/17/04/image_18082025_17_05_05_10621.jpg
/home/nano/Desktop/images/18082025/17/04/image_18082025_17_04_54_9605.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377709546","1377709549","1377709557","1377709553","1377709544","1377709538"],"photo_ids_order":["1377709538","1377709544","1377709546","1377709549","1377709553","1377709557"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6f407999fd9d33cd21a1a063fe967ad0.jpg","text":"TemporaryFile(/tmp/multipartBody6985897104291105006asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529608087,"filename":"image_18082025_17_05_24_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d90e8c29cccd4c1fd3616eb2b95b8879.jpg","text":"TemporaryFile(/tmp/multipartBody609912414121038323asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529608087,"filename":"image_18082025_17_05_15_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bbb46559139be56daf30a1f39595f6bb.jpg","text":"TemporaryFile(/tmp/multipartBody1217531849095735801asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529608087,"filename":"image_18082025_17_04_54_9605.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8bb7126551207b1ae24c27dc7dc0d592.jpg","text":"TemporaryFile(/tmp/multipartBody8930111137088118698asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529608087,"filename":"image_18082025_17_05_05_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6870e879794f2d9db58e4e1077c5e1a4.jpg","text":"TemporaryFile(/tmp/multipartBody357244118343202336asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529608087,"filename":"image_18082025_17_05_35_10622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e4c18ce8b8776c43c7fbbbfaf301a67b.jpg","text":"TemporaryFile(/tmp/multipartBody2747139216683401818asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529608087,"filename":"image_18082025_17_05_44_9612.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377709546","file1":"1377709544","file0":"1377709538","file4":"1377709553","file5":"1377709557","file3":"1377709549"},"map_files_photo_id_array":[{"photo_id":"1377709557","filename":"file5"},{"photo_id":"1377709546","filename":"file2"},{"photo_id":"1377709553","filename":"file4"},{"photo_id":"1377709544","filename":"file1"},{"photo_id":"1377709538","filename":"file0"},{"photo_id":"1377709549","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377709546":["hashtag1","hashtag2"]},{"1377709549":["hashtag1","hashtag2"]},{"1377709557":["hashtag1","hashtag2"]},{"1377709553":["hashtag1","hashtag2"]},{"1377709544":["hashtag1","hashtag2"]},{"1377709538":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377709546, 1377709549, 1377709557, 1377709553, 1377709544, 1377709538)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.36585259437561 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:06:31.846763
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/06/image_18082025_17_06_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/17/06/image_18082025_17_06_35_9601.jpg', 2), ('/home/nano/Desktop/images/18082025/17/06/image_18082025_17_06_25_10615.jpg', 2), ('/home/nano/Desktop/images/18082025/17/06/image_18082025_17_06_14_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/17/05/image_18082025_17_06_05_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/17/05/image_18082025_17_05_54_9599.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/06/image_18082025_17_06_44_9643.jpg', '/home/nano/Desktop/images/18082025/17/06/image_18082025_17_06_35_9601.jpg', '/home/nano/Desktop/images/18082025/17/06/image_18082025_17_06_25_10615.jpg', '/home/nano/Desktop/images/18082025/17/06/image_18082025_17_06_14_9624.jpg', '/home/nano/Desktop/images/18082025/17/05/image_18082025_17_06_05_10645.jpg', '/home/nano/Desktop/images/18082025/17/05/image_18082025_17_05_54_9599.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/06/image_18082025_17_06_44_9643.jpg
/home/nano/Desktop/images/18082025/17/06/image_18082025_17_06_35_9601.jpg
/home/nano/Desktop/images/18082025/17/06/image_18082025_17_06_25_10615.jpg
/home/nano/Desktop/images/18082025/17/06/image_18082025_17_06_14_9624.jpg
/home/nano/Desktop/images/18082025/17/05/image_18082025_17_06_05_10645.jpg
/home/nano/Desktop/images/18082025/17/05/image_18082025_17_05_54_9599.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377709610","1377709627","1377709636","1377709599","1377709589","1377709622"],"photo_ids_order":["1377709589","1377709599","1377709610","1377709622","1377709627","1377709636"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9e41485960b6372d764d23b5879068a9.jpg","text":"TemporaryFile(/tmp/multipartBody4692682067469136181asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529653267,"filename":"image_18082025_17_06_25_10615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7e9bfc8f5c0181d0ae09501c7c9088b9.jpg","text":"TemporaryFile(/tmp/multipartBody5885061184846987098asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529653267,"filename":"image_18082025_17_06_05_10645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1af0dc8f43df029de126b06e46dbe779.jpg","text":"TemporaryFile(/tmp/multipartBody5775340118210246145asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529653267,"filename":"image_18082025_17_05_54_9599.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3646865cf813df8cd598bd42e778bd0a.jpg","text":"TemporaryFile(/tmp/multipartBody4296560040039232756asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529653267,"filename":"image_18082025_17_06_35_9601.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d67ecd653caef3f7c3d5f8377dc5e55a.jpg","text":"TemporaryFile(/tmp/multipartBody7825428881035821662asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529653267,"filename":"image_18082025_17_06_44_9643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9ec10b0e17e608734b2399cd81bdf417.jpg","text":"TemporaryFile(/tmp/multipartBody7037221249356632657asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529653267,"filename":"image_18082025_17_06_14_9624.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377709610","file1":"1377709599","file0":"1377709589","file4":"1377709627","file5":"1377709636","file3":"1377709622"},"map_files_photo_id_array":[{"photo_id":"1377709636","filename":"file5"},{"photo_id":"1377709610","filename":"file2"},{"photo_id":"1377709627","filename":"file4"},{"photo_id":"1377709599","filename":"file1"},{"photo_id":"1377709589","filename":"file0"},{"photo_id":"1377709622","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377709610":["hashtag1","hashtag2"]},{"1377709627":["hashtag1","hashtag2"]},{"1377709636":["hashtag1","hashtag2"]},{"1377709599":["hashtag1","hashtag2"]},{"1377709589":["hashtag1","hashtag2"]},{"1377709622":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377709610, 1377709627, 1377709636, 1377709599, 1377709589, 1377709622)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.13536500930786 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:07:16.971762
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/07/image_18082025_17_07_45_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/17/07/image_18082025_17_07_34_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/17/07/image_18082025_17_07_25_10616.jpg', 2), ('/home/nano/Desktop/images/18082025/17/07/image_18082025_17_07_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/17/06/image_18082025_17_07_04_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/17/06/image_18082025_17_06_55_10619.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/07/image_18082025_17_07_45_10641.jpg', '/home/nano/Desktop/images/18082025/17/07/image_18082025_17_07_34_9624.jpg', '/home/nano/Desktop/images/18082025/17/07/image_18082025_17_07_25_10616.jpg', '/home/nano/Desktop/images/18082025/17/07/image_18082025_17_07_14_9658.jpg', '/home/nano/Desktop/images/18082025/17/06/image_18082025_17_07_04_9626.jpg', '/home/nano/Desktop/images/18082025/17/06/image_18082025_17_06_55_10619.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/07/image_18082025_17_07_45_10641.jpg
/home/nano/Desktop/images/18082025/17/07/image_18082025_17_07_34_9624.jpg
/home/nano/Desktop/images/18082025/17/07/image_18082025_17_07_25_10616.jpg
/home/nano/Desktop/images/18082025/17/07/image_18082025_17_07_14_9658.jpg
/home/nano/Desktop/images/18082025/17/06/image_18082025_17_07_04_9626.jpg
/home/nano/Desktop/images/18082025/17/06/image_18082025_17_06_55_10619.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377709651","1377709654","1377709648","1377709656","1377709659","1377709646"],"photo_ids_order":["1377709646","1377709648","1377709651","1377709654","1377709656","1377709659"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d5d154311e420bc38f17b1a9d4f376ea.jpg","text":"TemporaryFile(/tmp/multipartBody8717477167858746843asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529698109,"filename":"image_18082025_17_07_25_10616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/df0b0caedf929f155d695a069049b0fd.jpg","text":"TemporaryFile(/tmp/multipartBody3886266910708930554asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529698109,"filename":"image_18082025_17_07_14_9658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d7db57af2673acf47bda3abef2c1f754.jpg","text":"TemporaryFile(/tmp/multipartBody3927876519249655703asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529698109,"filename":"image_18082025_17_07_34_9624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/36e114bd1fef44f0a902785c270baf8f.jpg","text":"TemporaryFile(/tmp/multipartBody6454372414225256391asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529698109,"filename":"image_18082025_17_07_04_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0891aec2d0e9cd8df031bcccb64b2f4e.jpg","text":"TemporaryFile(/tmp/multipartBody4283234594383564682asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529698109,"filename":"image_18082025_17_06_55_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d91714e449a7e753a5faa96f06c86c15.jpg","text":"TemporaryFile(/tmp/multipartBody839743424736694640asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529698109,"filename":"image_18082025_17_07_45_10641.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377709651","file1":"1377709648","file0":"1377709646","file4":"1377709656","file5":"1377709659","file3":"1377709654"},"map_files_photo_id_array":[{"photo_id":"1377709659","filename":"file5"},{"photo_id":"1377709651","filename":"file2"},{"photo_id":"1377709656","filename":"file4"},{"photo_id":"1377709648","filename":"file1"},{"photo_id":"1377709646","filename":"file0"},{"photo_id":"1377709654","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377709651":["hashtag1","hashtag2"]},{"1377709654":["hashtag1","hashtag2"]},{"1377709648":["hashtag1","hashtag2"]},{"1377709656":["hashtag1","hashtag2"]},{"1377709659":["hashtag1","hashtag2"]},{"1377709646":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377709651, 1377709654, 1377709648, 1377709656, 1377709659, 1377709646)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.09220242500305 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:08:02.555060
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/14/image_18082025_10_15_05_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/10/14/image_18082025_10_14_54_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/10/14/image_18082025_10_14_45_10620.jpg', 2), ('/home/nano/Desktop/images/18082025/10/14/image_18082025_10_14_34_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/10/14/image_18082025_10_14_24_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/10/14/image_18082025_10_14_15_10634.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/14/image_18082025_10_15_05_10666.jpg', '/home/nano/Desktop/images/18082025/10/14/image_18082025_10_14_54_9610.jpg', '/home/nano/Desktop/images/18082025/10/14/image_18082025_10_14_45_10620.jpg', '/home/nano/Desktop/images/18082025/10/14/image_18082025_10_14_34_9617.jpg', '/home/nano/Desktop/images/18082025/10/14/image_18082025_10_14_24_9606.jpg', '/home/nano/Desktop/images/18082025/10/14/image_18082025_10_14_15_10634.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/14/image_18082025_10_15_05_10666.jpg
/home/nano/Desktop/images/18082025/10/14/image_18082025_10_14_54_9610.jpg
/home/nano/Desktop/images/18082025/10/14/image_18082025_10_14_45_10620.jpg
/home/nano/Desktop/images/18082025/10/14/image_18082025_10_14_34_9617.jpg
/home/nano/Desktop/images/18082025/10/14/image_18082025_10_14_24_9606.jpg
/home/nano/Desktop/images/18082025/10/14/image_18082025_10_14_15_10634.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377709700","1377709695","1377709704","1377709697","1377709691","1377709688"],"photo_ids_order":["1377709688","1377709691","1377709695","1377709697","1377709700","1377709704"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f118d10e7a5ad0e75edded5cbddabc7f.jpg","text":"TemporaryFile(/tmp/multipartBody4098682406473704713asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529743825,"filename":"image_18082025_10_14_24_9606.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7274c19d982e7e90f7ef38ead4c8bb20.jpg","text":"TemporaryFile(/tmp/multipartBody8600146390696583318asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529743825,"filename":"image_18082025_10_14_45_10620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/65d5a7171149d701d5dd625080994c43.jpg","text":"TemporaryFile(/tmp/multipartBody6518267110790930058asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529743825,"filename":"image_18082025_10_14_15_10634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2aae7336e2b24c3dfdae03cd41a9a07c.jpg","text":"TemporaryFile(/tmp/multipartBody7548960968903045149asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529743825,"filename":"image_18082025_10_14_34_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0cab12e7b53d87803e3b473ce48161d1.jpg","text":"TemporaryFile(/tmp/multipartBody8175777077847613893asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529743825,"filename":"image_18082025_10_14_54_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/29fd9ae27b291e405ecdc7d55956d3e4.jpg","text":"TemporaryFile(/tmp/multipartBody1194063094184104988asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529743825,"filename":"image_18082025_10_15_05_10666.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377709695","file1":"1377709691","file0":"1377709688","file4":"1377709700","file5":"1377709704","file3":"1377709697"},"map_files_photo_id_array":[{"photo_id":"1377709704","filename":"file5"},{"photo_id":"1377709695","filename":"file2"},{"photo_id":"1377709700","filename":"file4"},{"photo_id":"1377709691","filename":"file1"},{"photo_id":"1377709688","filename":"file0"},{"photo_id":"1377709697","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377709700":["hashtag1","hashtag2"]},{"1377709695":["hashtag1","hashtag2"]},{"1377709704":["hashtag1","hashtag2"]},{"1377709697":["hashtag1","hashtag2"]},{"1377709691":["hashtag1","hashtag2"]},{"1377709688":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377709700, 1377709695, 1377709704, 1377709697, 1377709691, 1377709688)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.854533910751343 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:08:47.038120
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/08/image_18082025_17_08_45_10620.jpg', 2), ('/home/nano/Desktop/images/18082025/17/08/image_18082025_17_08_34_9603.jpg', 2), ('/home/nano/Desktop/images/18082025/17/08/image_18082025_17_08_25_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/17/08/image_18082025_17_08_15_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/17/07/image_18082025_17_08_04_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/17/07/image_18082025_17_07_55_9612.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/08/image_18082025_17_08_45_10620.jpg', '/home/nano/Desktop/images/18082025/17/08/image_18082025_17_08_34_9603.jpg', '/home/nano/Desktop/images/18082025/17/08/image_18082025_17_08_25_9637.jpg', '/home/nano/Desktop/images/18082025/17/08/image_18082025_17_08_15_10644.jpg', '/home/nano/Desktop/images/18082025/17/07/image_18082025_17_08_04_9612.jpg', '/home/nano/Desktop/images/18082025/17/07/image_18082025_17_07_55_9612.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/08/image_18082025_17_08_45_10620.jpg
/home/nano/Desktop/images/18082025/17/08/image_18082025_17_08_34_9603.jpg
/home/nano/Desktop/images/18082025/17/08/image_18082025_17_08_25_9637.jpg
/home/nano/Desktop/images/18082025/17/08/image_18082025_17_08_15_10644.jpg
/home/nano/Desktop/images/18082025/17/07/image_18082025_17_08_04_9612.jpg
/home/nano/Desktop/images/18082025/17/07/image_18082025_17_07_55_9612.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.1041460037231445 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:09:03.061785
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/08/image_18082025_17_08_45_10620.jpg', 2), ('/home/nano/Desktop/images/18082025/17/08/image_18082025_17_08_34_9603.jpg', 2), ('/home/nano/Desktop/images/18082025/17/08/image_18082025_17_08_25_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/17/08/image_18082025_17_08_15_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/17/07/image_18082025_17_08_04_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/17/07/image_18082025_17_07_55_9612.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/08/image_18082025_17_08_45_10620.jpg', '/home/nano/Desktop/images/18082025/17/08/image_18082025_17_08_34_9603.jpg', '/home/nano/Desktop/images/18082025/17/08/image_18082025_17_08_25_9637.jpg', '/home/nano/Desktop/images/18082025/17/08/image_18082025_17_08_15_10644.jpg', '/home/nano/Desktop/images/18082025/17/07/image_18082025_17_08_04_9612.jpg', '/home/nano/Desktop/images/18082025/17/07/image_18082025_17_07_55_9612.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/08/image_18082025_17_08_45_10620.jpg
/home/nano/Desktop/images/18082025/17/08/image_18082025_17_08_34_9603.jpg
/home/nano/Desktop/images/18082025/17/08/image_18082025_17_08_25_9637.jpg
/home/nano/Desktop/images/18082025/17/08/image_18082025_17_08_15_10644.jpg
/home/nano/Desktop/images/18082025/17/07/image_18082025_17_08_04_9612.jpg
/home/nano/Desktop/images/18082025/17/07/image_18082025_17_07_55_9612.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377709724","1377709726","1377709729","1377709717","1377709727","1377709721"],"photo_ids_order":["1377709717","1377709721","1377709724","1377709726","1377709727","1377709729"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d56a54f0f5f91333e8e02749edad16a3.jpg","text":"TemporaryFile(/tmp/multipartBody7415799990673171324asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529804054,"filename":"image_18082025_17_08_25_9637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4596c9a717e0b7ea3c9af207874caed6.jpg","text":"TemporaryFile(/tmp/multipartBody4539552319240626262asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529804054,"filename":"image_18082025_17_08_15_10644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3b2a503b53994ed136e8b7d6e287e973.jpg","text":"TemporaryFile(/tmp/multipartBody3135571270620589305asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529804054,"filename":"image_18082025_17_07_55_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1f33a226ad05c8e263c047db6d03cd15.jpg","text":"TemporaryFile(/tmp/multipartBody3484626795415211210asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529804054,"filename":"image_18082025_17_08_45_10620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/52386c249f5016914df3886f3e2b41b9.jpg","text":"TemporaryFile(/tmp/multipartBody5262191234962491179asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529804054,"filename":"image_18082025_17_08_04_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c56e17a826708b8c6365ce4bb718e6b8.jpg","text":"TemporaryFile(/tmp/multipartBody7158511674030016420asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529804054,"filename":"image_18082025_17_08_34_9603.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377709724","file1":"1377709721","file0":"1377709717","file4":"1377709727","file5":"1377709729","file3":"1377709726"},"map_files_photo_id_array":[{"photo_id":"1377709729","filename":"file5"},{"photo_id":"1377709724","filename":"file2"},{"photo_id":"1377709727","filename":"file4"},{"photo_id":"1377709721","filename":"file1"},{"photo_id":"1377709717","filename":"file0"},{"photo_id":"1377709726","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377709724":["hashtag1","hashtag2"]},{"1377709726":["hashtag1","hashtag2"]},{"1377709729":["hashtag1","hashtag2"]},{"1377709717":["hashtag1","hashtag2"]},{"1377709727":["hashtag1","hashtag2"]},{"1377709721":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377709724, 1377709726, 1377709729, 1377709717, 1377709727, 1377709721)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.86031413078308 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:09:47.162699
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/09/image_18082025_17_09_45_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/17/09/image_18082025_17_09_35_10633.jpg', 2), ('/home/nano/Desktop/images/18082025/17/09/image_18082025_17_09_24_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/17/09/image_18082025_17_09_15_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/17/08/image_18082025_17_09_05_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/17/08/image_18082025_17_08_54_9611.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/09/image_18082025_17_09_45_9662.jpg', '/home/nano/Desktop/images/18082025/17/09/image_18082025_17_09_35_10633.jpg', '/home/nano/Desktop/images/18082025/17/09/image_18082025_17_09_24_9618.jpg', '/home/nano/Desktop/images/18082025/17/09/image_18082025_17_09_15_9632.jpg', '/home/nano/Desktop/images/18082025/17/08/image_18082025_17_09_05_10647.jpg', '/home/nano/Desktop/images/18082025/17/08/image_18082025_17_08_54_9611.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/09/image_18082025_17_09_45_9662.jpg
/home/nano/Desktop/images/18082025/17/09/image_18082025_17_09_35_10633.jpg
/home/nano/Desktop/images/18082025/17/09/image_18082025_17_09_24_9618.jpg
/home/nano/Desktop/images/18082025/17/09/image_18082025_17_09_15_9632.jpg
/home/nano/Desktop/images/18082025/17/08/image_18082025_17_09_05_10647.jpg
/home/nano/Desktop/images/18082025/17/08/image_18082025_17_08_54_9611.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377709759","1377709767","1377709761","1377709755","1377709764","1377709757"],"photo_ids_order":["1377709755","1377709757","1377709759","1377709761","1377709764","1377709767"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/75d26dcf546f6545c614e5a67151ab8e.jpg","text":"TemporaryFile(/tmp/multipartBody6320108839630218775asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529848647,"filename":"image_18082025_17_09_24_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/85fd83d1d97adba6d23728488bd4e3bb.jpg","text":"TemporaryFile(/tmp/multipartBody5171049771917453719asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529848647,"filename":"image_18082025_17_08_54_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bafc545108db5fbaa8cf3a5fbfc34c0c.jpg","text":"TemporaryFile(/tmp/multipartBody4019510488384730046asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529848647,"filename":"image_18082025_17_09_15_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/11d4a3c42d105c7f30aa37b7b2cda031.jpg","text":"TemporaryFile(/tmp/multipartBody3933383169470390998asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529848647,"filename":"image_18082025_17_09_45_9662.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/25fd448c9e2cc79e7f47a230e987472c.jpg","text":"TemporaryFile(/tmp/multipartBody3358498306593926783asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529848647,"filename":"image_18082025_17_09_05_10647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7b4ae3fc69a2d9feefec043096ea0df5.jpg","text":"TemporaryFile(/tmp/multipartBody174162829298843390asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529848647,"filename":"image_18082025_17_09_35_10633.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377709759","file1":"1377709757","file0":"1377709755","file4":"1377709764","file5":"1377709767","file3":"1377709761"},"map_files_photo_id_array":[{"photo_id":"1377709767","filename":"file5"},{"photo_id":"1377709759","filename":"file2"},{"photo_id":"1377709764","filename":"file4"},{"photo_id":"1377709757","filename":"file1"},{"photo_id":"1377709755","filename":"file0"},{"photo_id":"1377709761","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377709759":["hashtag1","hashtag2"]},{"1377709767":["hashtag1","hashtag2"]},{"1377709761":["hashtag1","hashtag2"]},{"1377709755":["hashtag1","hashtag2"]},{"1377709764":["hashtag1","hashtag2"]},{"1377709757":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377709759, 1377709767, 1377709761, 1377709755, 1377709764, 1377709757)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.8491370677948 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:10:32.239765
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/10/image_18082025_17_10_44_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/17/10/image_18082025_17_10_35_10616.jpg', 2), ('/home/nano/Desktop/images/18082025/17/10/image_18082025_17_10_24_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/17/10/image_18082025_17_10_15_9679.jpg', 2), ('/home/nano/Desktop/images/18082025/17/09/image_18082025_17_10_05_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/17/09/image_18082025_17_09_54_9628.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/10/image_18082025_17_10_44_9631.jpg', '/home/nano/Desktop/images/18082025/17/10/image_18082025_17_10_35_10616.jpg', '/home/nano/Desktop/images/18082025/17/10/image_18082025_17_10_24_9614.jpg', '/home/nano/Desktop/images/18082025/17/10/image_18082025_17_10_15_9679.jpg', '/home/nano/Desktop/images/18082025/17/09/image_18082025_17_10_05_10667.jpg', '/home/nano/Desktop/images/18082025/17/09/image_18082025_17_09_54_9628.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/10/image_18082025_17_10_44_9631.jpg
/home/nano/Desktop/images/18082025/17/10/image_18082025_17_10_35_10616.jpg
/home/nano/Desktop/images/18082025/17/10/image_18082025_17_10_24_9614.jpg
/home/nano/Desktop/images/18082025/17/10/image_18082025_17_10_15_9679.jpg
/home/nano/Desktop/images/18082025/17/09/image_18082025_17_10_05_10667.jpg
/home/nano/Desktop/images/18082025/17/09/image_18082025_17_09_54_9628.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377709780","1377709786","1377709779","1377709782","1377709784","1377709778"],"photo_ids_order":["1377709778","1377709779","1377709780","1377709782","1377709784","1377709786"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4248eaa3b5a85e85fd1eb31b93d950d2.jpg","text":"TemporaryFile(/tmp/multipartBody199282897763639522asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529893411,"filename":"image_18082025_17_10_24_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a99bd30cda55a5697d21176ee310ffd0.jpg","text":"TemporaryFile(/tmp/multipartBody3780303305480650306asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529893411,"filename":"image_18082025_17_09_54_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d2fc3c54fb89708edae843a99b715998.jpg","text":"TemporaryFile(/tmp/multipartBody4183769457367856925asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529893411,"filename":"image_18082025_17_10_35_10616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/921d22b50e067559a9fab70a3142e953.jpg","text":"TemporaryFile(/tmp/multipartBody6229276144817304392asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529893411,"filename":"image_18082025_17_10_15_9679.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0e79c6574ecce10ae2bfdf8e31963e6e.jpg","text":"TemporaryFile(/tmp/multipartBody5522028462328911015asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529893411,"filename":"image_18082025_17_10_05_10667.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ef39d6dfd0afbd995ebccf3d18db6c3b.jpg","text":"TemporaryFile(/tmp/multipartBody1224323848287063866asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529893411,"filename":"image_18082025_17_10_44_9631.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377709780","file1":"1377709779","file0":"1377709778","file4":"1377709784","file5":"1377709786","file3":"1377709782"},"map_files_photo_id_array":[{"photo_id":"1377709786","filename":"file5"},{"photo_id":"1377709780","filename":"file2"},{"photo_id":"1377709784","filename":"file4"},{"photo_id":"1377709779","filename":"file1"},{"photo_id":"1377709778","filename":"file0"},{"photo_id":"1377709782","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377709780":["hashtag1","hashtag2"]},{"1377709786":["hashtag1","hashtag2"]},{"1377709779":["hashtag1","hashtag2"]},{"1377709782":["hashtag1","hashtag2"]},{"1377709784":["hashtag1","hashtag2"]},{"1377709778":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377709780, 1377709786, 1377709779, 1377709782, 1377709784, 1377709778)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.52647042274475 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:11:17.367708
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/11/image_18082025_17_11_44_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/17/11/image_18082025_17_11_34_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/17/11/image_18082025_17_11_25_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/17/11/image_18082025_17_11_14_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/17/10/image_18082025_17_11_05_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/17/10/image_18082025_17_10_55_10623.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/11/image_18082025_17_11_44_9608.jpg', '/home/nano/Desktop/images/18082025/17/11/image_18082025_17_11_34_9606.jpg', '/home/nano/Desktop/images/18082025/17/11/image_18082025_17_11_25_10624.jpg', '/home/nano/Desktop/images/18082025/17/11/image_18082025_17_11_14_9632.jpg', '/home/nano/Desktop/images/18082025/17/10/image_18082025_17_11_05_9610.jpg', '/home/nano/Desktop/images/18082025/17/10/image_18082025_17_10_55_10623.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/11/image_18082025_17_11_44_9608.jpg
/home/nano/Desktop/images/18082025/17/11/image_18082025_17_11_34_9606.jpg
/home/nano/Desktop/images/18082025/17/11/image_18082025_17_11_25_10624.jpg
/home/nano/Desktop/images/18082025/17/11/image_18082025_17_11_14_9632.jpg
/home/nano/Desktop/images/18082025/17/10/image_18082025_17_11_05_9610.jpg
/home/nano/Desktop/images/18082025/17/10/image_18082025_17_10_55_10623.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377709831","1377709816","1377709801","1377709848","1377709803","1377709856"],"photo_ids_order":["1377709801","1377709803","1377709816","1377709831","1377709848","1377709856"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0d12de7e401953c86a3a140d6033ad04.jpg","text":"TemporaryFile(/tmp/multipartBody8128462761211882928asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529938615,"filename":"image_18082025_17_11_14_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b0b9dea50e449dfa57cb3864b623b3f8.jpg","text":"TemporaryFile(/tmp/multipartBody4189854014312303494asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529938615,"filename":"image_18082025_17_11_25_10624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0fef1f3dfaf321b013e10c422d12e0ae.jpg","text":"TemporaryFile(/tmp/multipartBody8333175127558799576asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529938615,"filename":"image_18082025_17_11_44_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d2285bc36c883f6ec44363b5b2a6a036.jpg","text":"TemporaryFile(/tmp/multipartBody6280938178421681828asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529938615,"filename":"image_18082025_17_11_05_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4a50ed1106277c286930742839b45cef.jpg","text":"TemporaryFile(/tmp/multipartBody6187535775144541237asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529938615,"filename":"image_18082025_17_11_34_9606.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/74a47c17e0c2c88907adf402f4afefbd.jpg","text":"TemporaryFile(/tmp/multipartBody1877342477268385361asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529938615,"filename":"image_18082025_17_10_55_10623.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377709816","file1":"1377709803","file0":"1377709801","file4":"1377709848","file5":"1377709856","file3":"1377709831"},"map_files_photo_id_array":[{"photo_id":"1377709856","filename":"file5"},{"photo_id":"1377709816","filename":"file2"},{"photo_id":"1377709848","filename":"file4"},{"photo_id":"1377709803","filename":"file1"},{"photo_id":"1377709801","filename":"file0"},{"photo_id":"1377709831","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377709831":["hashtag1","hashtag2"]},{"1377709816":["hashtag1","hashtag2"]},{"1377709801":["hashtag1","hashtag2"]},{"1377709848":["hashtag1","hashtag2"]},{"1377709803":["hashtag1","hashtag2"]},{"1377709856":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377709831, 1377709816, 1377709801, 1377709848, 1377709803, 1377709856)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.0583176612854 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:12:03.014655
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/13/image_18082025_10_14_04_9592.jpg', 2), ('/home/nano/Desktop/images/18082025/10/13/image_18082025_10_13_55_10598.jpg', 2), ('/home/nano/Desktop/images/18082025/10/13/image_18082025_10_13_44_9598.jpg', 2), ('/home/nano/Desktop/images/18082025/10/13/image_18082025_10_13_34_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/10/13/image_18082025_10_13_25_10605.jpg', 2), ('/home/nano/Desktop/images/18082025/10/13/image_18082025_10_13_14_9620.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/13/image_18082025_10_14_04_9592.jpg', '/home/nano/Desktop/images/18082025/10/13/image_18082025_10_13_55_10598.jpg', '/home/nano/Desktop/images/18082025/10/13/image_18082025_10_13_44_9598.jpg', '/home/nano/Desktop/images/18082025/10/13/image_18082025_10_13_34_9609.jpg', '/home/nano/Desktop/images/18082025/10/13/image_18082025_10_13_25_10605.jpg', '/home/nano/Desktop/images/18082025/10/13/image_18082025_10_13_14_9620.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/13/image_18082025_10_14_04_9592.jpg
/home/nano/Desktop/images/18082025/10/13/image_18082025_10_13_55_10598.jpg
/home/nano/Desktop/images/18082025/10/13/image_18082025_10_13_44_9598.jpg
/home/nano/Desktop/images/18082025/10/13/image_18082025_10_13_34_9609.jpg
/home/nano/Desktop/images/18082025/10/13/image_18082025_10_13_25_10605.jpg
/home/nano/Desktop/images/18082025/10/13/image_18082025_10_13_14_9620.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.0689945220947266 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:12:17.483739
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/12/image_18082025_17_12_45_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/17/12/image_18082025_17_12_34_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/17/12/image_18082025_17_12_25_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/17/12/image_18082025_17_12_15_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/17/11/image_18082025_17_12_04_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/17/11/image_18082025_17_11_55_10639.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/12/image_18082025_17_12_45_10639.jpg', '/home/nano/Desktop/images/18082025/17/12/image_18082025_17_12_34_9636.jpg', '/home/nano/Desktop/images/18082025/17/12/image_18082025_17_12_25_9615.jpg', '/home/nano/Desktop/images/18082025/17/12/image_18082025_17_12_15_10648.jpg', '/home/nano/Desktop/images/18082025/17/11/image_18082025_17_12_04_9653.jpg', '/home/nano/Desktop/images/18082025/17/11/image_18082025_17_11_55_10639.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/12/image_18082025_17_12_45_10639.jpg
/home/nano/Desktop/images/18082025/17/12/image_18082025_17_12_34_9636.jpg
/home/nano/Desktop/images/18082025/17/12/image_18082025_17_12_25_9615.jpg
/home/nano/Desktop/images/18082025/17/12/image_18082025_17_12_15_10648.jpg
/home/nano/Desktop/images/18082025/17/11/image_18082025_17_12_04_9653.jpg
/home/nano/Desktop/images/18082025/17/11/image_18082025_17_11_55_10639.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377709901","1377709910","1377709912","1377709906","1377709911","1377709908"],"photo_ids_order":["1377709901","1377709906","1377709908","1377709910","1377709911","1377709912"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/94363223fc4ea64bb2358838752c994d.jpg","text":"TemporaryFile(/tmp/multipartBody2254455941595393988asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529998305,"filename":"image_18082025_17_12_45_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e24718d554d7619157629c9c9a64977f.jpg","text":"TemporaryFile(/tmp/multipartBody823478414718576865asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529998305,"filename":"image_18082025_17_12_15_10648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bdecc5a795a2be0a7fc3aa37db4301af.jpg","text":"TemporaryFile(/tmp/multipartBody9065610820133688673asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529998305,"filename":"image_18082025_17_11_55_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9e51850ee4f27e8275c2fa5189c66fd9.jpg","text":"TemporaryFile(/tmp/multipartBody5887962626071332556asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529998305,"filename":"image_18082025_17_12_34_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a97d0dc5d4e7635e85c3f45a1967332d.jpg","text":"TemporaryFile(/tmp/multipartBody3102177746043846281asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529998305,"filename":"image_18082025_17_12_04_9653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f11e3fce6459cf5ec7307ea4ad2372ae.jpg","text":"TemporaryFile(/tmp/multipartBody7197426127794754894asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755529998305,"filename":"image_18082025_17_12_25_9615.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377709908","file1":"1377709906","file0":"1377709901","file4":"1377709911","file5":"1377709912","file3":"1377709910"},"map_files_photo_id_array":[{"photo_id":"1377709912","filename":"file5"},{"photo_id":"1377709908","filename":"file2"},{"photo_id":"1377709911","filename":"file4"},{"photo_id":"1377709906","filename":"file1"},{"photo_id":"1377709901","filename":"file0"},{"photo_id":"1377709910","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377709901":["hashtag1","hashtag2"]},{"1377709910":["hashtag1","hashtag2"]},{"1377709912":["hashtag1","hashtag2"]},{"1377709906":["hashtag1","hashtag2"]},{"1377709911":["hashtag1","hashtag2"]},{"1377709908":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377709901, 1377709910, 1377709912, 1377709906, 1377709911, 1377709908)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.82546329498291 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:13:03.217910
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/13/image_18082025_10_14_04_9592.jpg', 2), ('/home/nano/Desktop/images/18082025/10/13/image_18082025_10_13_55_10598.jpg', 2), ('/home/nano/Desktop/images/18082025/10/13/image_18082025_10_13_44_9598.jpg', 2), ('/home/nano/Desktop/images/18082025/10/13/image_18082025_10_13_34_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/10/13/image_18082025_10_13_25_10605.jpg', 2), ('/home/nano/Desktop/images/18082025/10/13/image_18082025_10_13_14_9620.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/13/image_18082025_10_14_04_9592.jpg', '/home/nano/Desktop/images/18082025/10/13/image_18082025_10_13_55_10598.jpg', '/home/nano/Desktop/images/18082025/10/13/image_18082025_10_13_44_9598.jpg', '/home/nano/Desktop/images/18082025/10/13/image_18082025_10_13_34_9609.jpg', '/home/nano/Desktop/images/18082025/10/13/image_18082025_10_13_25_10605.jpg', '/home/nano/Desktop/images/18082025/10/13/image_18082025_10_13_14_9620.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/13/image_18082025_10_14_04_9592.jpg
/home/nano/Desktop/images/18082025/10/13/image_18082025_10_13_55_10598.jpg
/home/nano/Desktop/images/18082025/10/13/image_18082025_10_13_44_9598.jpg
/home/nano/Desktop/images/18082025/10/13/image_18082025_10_13_34_9609.jpg
/home/nano/Desktop/images/18082025/10/13/image_18082025_10_13_25_10605.jpg
/home/nano/Desktop/images/18082025/10/13/image_18082025_10_13_14_9620.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377709919","1377709929","1377709938","1377709931","1377709925","1377709934"],"photo_ids_order":["1377709919","1377709925","1377709929","1377709931","1377709934","1377709938"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5110889c8959b25b70ccc49f5b8640d3.jpg","text":"TemporaryFile(/tmp/multipartBody8682777050911761228asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530044335,"filename":"image_18082025_10_14_04_9592.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7cc2f51f7e942f951a4fcb226fe25cb6.jpg","text":"TemporaryFile(/tmp/multipartBody7273392787535390534asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530044335,"filename":"image_18082025_10_13_44_9598.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7530bbeb4a7a7b0e294259be35b6e170.jpg","text":"TemporaryFile(/tmp/multipartBody5043349885699919809asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530044335,"filename":"image_18082025_10_13_14_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f20906271634b7cda4713e8b5499533f.jpg","text":"TemporaryFile(/tmp/multipartBody2025854333399081989asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530044335,"filename":"image_18082025_10_13_34_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4190b17855811c601cc136caf77f0907.jpg","text":"TemporaryFile(/tmp/multipartBody3644499393553829832asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530044335,"filename":"image_18082025_10_13_55_10598.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b4f3e675276326f518dfe902104bef5f.jpg","text":"TemporaryFile(/tmp/multipartBody7179015989521749559asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530044335,"filename":"image_18082025_10_13_25_10605.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377709929","file1":"1377709925","file0":"1377709919","file4":"1377709934","file5":"1377709938","file3":"1377709931"},"map_files_photo_id_array":[{"photo_id":"1377709938","filename":"file5"},{"photo_id":"1377709929","filename":"file2"},{"photo_id":"1377709934","filename":"file4"},{"photo_id":"1377709925","filename":"file1"},{"photo_id":"1377709919","filename":"file0"},{"photo_id":"1377709931","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377709919":["hashtag1","hashtag2"]},{"1377709929":["hashtag1","hashtag2"]},{"1377709938":["hashtag1","hashtag2"]},{"1377709931":["hashtag1","hashtag2"]},{"1377709925":["hashtag1","hashtag2"]},{"1377709934":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377709919, 1377709929, 1377709938, 1377709931, 1377709925, 1377709934)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.83603048324585 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:13:47.577165
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/13/image_18082025_17_13_45_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/17/13/image_18082025_17_13_35_10622.jpg', 2), ('/home/nano/Desktop/images/18082025/17/13/image_18082025_17_13_24_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/17/13/image_18082025_17_13_15_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/17/12/image_18082025_17_13_04_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/17/12/image_18082025_17_12_55_9633.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/13/image_18082025_17_13_45_9609.jpg', '/home/nano/Desktop/images/18082025/17/13/image_18082025_17_13_35_10622.jpg', '/home/nano/Desktop/images/18082025/17/13/image_18082025_17_13_24_9610.jpg', '/home/nano/Desktop/images/18082025/17/13/image_18082025_17_13_15_10630.jpg', '/home/nano/Desktop/images/18082025/17/12/image_18082025_17_13_04_9653.jpg', '/home/nano/Desktop/images/18082025/17/12/image_18082025_17_12_55_9633.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/13/image_18082025_17_13_45_9609.jpg
/home/nano/Desktop/images/18082025/17/13/image_18082025_17_13_35_10622.jpg
/home/nano/Desktop/images/18082025/17/13/image_18082025_17_13_24_9610.jpg
/home/nano/Desktop/images/18082025/17/13/image_18082025_17_13_15_10630.jpg
/home/nano/Desktop/images/18082025/17/12/image_18082025_17_13_04_9653.jpg
/home/nano/Desktop/images/18082025/17/12/image_18082025_17_12_55_9633.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377709951","1377709945","1377709947","1377709944","1377709946","1377709955"],"photo_ids_order":["1377709944","1377709945","1377709946","1377709947","1377709951","1377709955"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/db70bdff999c17ff63584774157c4a1f.jpg","text":"TemporaryFile(/tmp/multipartBody1859828866838773727asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530088938,"filename":"image_18082025_17_13_04_9653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a57b0bd575bb2c1f1a26b19b2df920fe.jpg","text":"TemporaryFile(/tmp/multipartBody8209820614725640671asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530088938,"filename":"image_18082025_17_13_35_10622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dbc1dd617d16377231c3262f60f8910c.jpg","text":"TemporaryFile(/tmp/multipartBody4346331547839963163asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530088938,"filename":"image_18082025_17_13_15_10630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6efc301a950f5486f2698dfb63916661.jpg","text":"TemporaryFile(/tmp/multipartBody7388081405092250562asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530088938,"filename":"image_18082025_17_13_45_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/72c15bffff0104ac30e6093e56972321.jpg","text":"TemporaryFile(/tmp/multipartBody1571974473997733782asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530088938,"filename":"image_18082025_17_13_24_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4b23be89e9056281ab000b9460e15002.jpg","text":"TemporaryFile(/tmp/multipartBody5018145583819409445asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530088938,"filename":"image_18082025_17_12_55_9633.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377709946","file1":"1377709945","file0":"1377709944","file4":"1377709951","file5":"1377709955","file3":"1377709947"},"map_files_photo_id_array":[{"photo_id":"1377709955","filename":"file5"},{"photo_id":"1377709946","filename":"file2"},{"photo_id":"1377709951","filename":"file4"},{"photo_id":"1377709945","filename":"file1"},{"photo_id":"1377709944","filename":"file0"},{"photo_id":"1377709947","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377709951":["hashtag1","hashtag2"]},{"1377709945":["hashtag1","hashtag2"]},{"1377709947":["hashtag1","hashtag2"]},{"1377709944":["hashtag1","hashtag2"]},{"1377709946":["hashtag1","hashtag2"]},{"1377709955":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377709951, 1377709945, 1377709947, 1377709944, 1377709946, 1377709955)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.40449595451355 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:14:32.682048
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/14/image_18082025_17_14_44_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/17/14/image_18082025_17_14_35_10615.jpg', 2), ('/home/nano/Desktop/images/18082025/17/14/image_18082025_17_14_24_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/17/14/image_18082025_17_14_15_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/17/13/image_18082025_17_14_05_10611.jpg', 2), ('/home/nano/Desktop/images/18082025/17/13/image_18082025_17_13_54_9606.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/14/image_18082025_17_14_44_9606.jpg', '/home/nano/Desktop/images/18082025/17/14/image_18082025_17_14_35_10615.jpg', '/home/nano/Desktop/images/18082025/17/14/image_18082025_17_14_24_9626.jpg', '/home/nano/Desktop/images/18082025/17/14/image_18082025_17_14_15_9633.jpg', '/home/nano/Desktop/images/18082025/17/13/image_18082025_17_14_05_10611.jpg', '/home/nano/Desktop/images/18082025/17/13/image_18082025_17_13_54_9606.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/14/image_18082025_17_14_44_9606.jpg
/home/nano/Desktop/images/18082025/17/14/image_18082025_17_14_35_10615.jpg
/home/nano/Desktop/images/18082025/17/14/image_18082025_17_14_24_9626.jpg
/home/nano/Desktop/images/18082025/17/14/image_18082025_17_14_15_9633.jpg
/home/nano/Desktop/images/18082025/17/13/image_18082025_17_14_05_10611.jpg
/home/nano/Desktop/images/18082025/17/13/image_18082025_17_13_54_9606.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377709975","1377709969","1377709971","1377709968","1377709973","1377709967"],"photo_ids_order":["1377709967","1377709968","1377709969","1377709971","1377709973","1377709975"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8fb956fdf4d04ed29c7e60c8369d8f61.jpg","text":"TemporaryFile(/tmp/multipartBody2024145007704863321asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530134151,"filename":"image_18082025_17_13_54_9606.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/696806b25bcd20cc16ed46c1b531010a.jpg","text":"TemporaryFile(/tmp/multipartBody8904869106879318843asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530134151,"filename":"image_18082025_17_14_24_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8aa99f71544d0c3bb169f5140df1a7d4.jpg","text":"TemporaryFile(/tmp/multipartBody5217503355653640489asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530134151,"filename":"image_18082025_17_14_15_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6a64f5373ff36801ee19ad904ca41678.jpg","text":"TemporaryFile(/tmp/multipartBody6932894154530100790asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530134151,"filename":"image_18082025_17_14_35_10615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3b4e461ad56ce72b5babb1e822fc6909.jpg","text":"TemporaryFile(/tmp/multipartBody1581919788156446010asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530134151,"filename":"image_18082025_17_14_05_10611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/85f3ba44b1bd3b3cc8c901bbabd47bd3.jpg","text":"TemporaryFile(/tmp/multipartBody1385316567293228689asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530134151,"filename":"image_18082025_17_14_44_9606.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377709969","file1":"1377709968","file0":"1377709967","file4":"1377709973","file5":"1377709975","file3":"1377709971"},"map_files_photo_id_array":[{"photo_id":"1377709975","filename":"file5"},{"photo_id":"1377709969","filename":"file2"},{"photo_id":"1377709973","filename":"file4"},{"photo_id":"1377709968","filename":"file1"},{"photo_id":"1377709967","filename":"file0"},{"photo_id":"1377709971","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377709975":["hashtag1","hashtag2"]},{"1377709969":["hashtag1","hashtag2"]},{"1377709971":["hashtag1","hashtag2"]},{"1377709968":["hashtag1","hashtag2"]},{"1377709973":["hashtag1","hashtag2"]},{"1377709967":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377709975, 1377709969, 1377709971, 1377709968, 1377709973, 1377709967)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.89574074745178 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:15:16.782927
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/15/image_18082025_17_15_44_9675.jpg', 2), ('/home/nano/Desktop/images/18082025/17/15/image_18082025_17_15_35_9689.jpg', 2), ('/home/nano/Desktop/images/18082025/17/15/image_18082025_17_15_25_10677.jpg', 2), ('/home/nano/Desktop/images/18082025/17/15/image_18082025_17_15_14_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/17/14/image_18082025_17_15_05_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/17/14/image_18082025_17_14_55_10630.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/15/image_18082025_17_15_44_9675.jpg', '/home/nano/Desktop/images/18082025/17/15/image_18082025_17_15_35_9689.jpg', '/home/nano/Desktop/images/18082025/17/15/image_18082025_17_15_25_10677.jpg', '/home/nano/Desktop/images/18082025/17/15/image_18082025_17_15_14_9624.jpg', '/home/nano/Desktop/images/18082025/17/14/image_18082025_17_15_05_9644.jpg', '/home/nano/Desktop/images/18082025/17/14/image_18082025_17_14_55_10630.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/15/image_18082025_17_15_44_9675.jpg
/home/nano/Desktop/images/18082025/17/15/image_18082025_17_15_35_9689.jpg
/home/nano/Desktop/images/18082025/17/15/image_18082025_17_15_25_10677.jpg
/home/nano/Desktop/images/18082025/17/15/image_18082025_17_15_14_9624.jpg
/home/nano/Desktop/images/18082025/17/14/image_18082025_17_15_05_9644.jpg
/home/nano/Desktop/images/18082025/17/14/image_18082025_17_14_55_10630.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377709995","1377709983","1377709988","1377709991","1377709985","1377710007"],"photo_ids_order":["1377709983","1377709985","1377709988","1377709991","1377709995","1377710007"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b94673a90d00d945f7e10a4a8b68313e.jpg","text":"TemporaryFile(/tmp/multipartBody8567458013445353001asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530178090,"filename":"image_18082025_17_15_05_9644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/246bba16402a6f3307e4813cfdcf0db3.jpg","text":"TemporaryFile(/tmp/multipartBody5177176077437590915asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530178090,"filename":"image_18082025_17_15_44_9675.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b2cf70e06ee1ffd0b2844307d31b9ad6.jpg","text":"TemporaryFile(/tmp/multipartBody5869237109018778839asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530178090,"filename":"image_18082025_17_15_25_10677.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5ab300ba43a766d2a334d144779b1f99.jpg","text":"TemporaryFile(/tmp/multipartBody3193784562623676186asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530178090,"filename":"image_18082025_17_15_14_9624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6ca82a187deeb87903087edda1f98c7e.jpg","text":"TemporaryFile(/tmp/multipartBody7460871319159557234asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530178090,"filename":"image_18082025_17_15_35_9689.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7a9bc057fb3579fca1f46eecc5985eeb.jpg","text":"TemporaryFile(/tmp/multipartBody8736827273122653213asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530178090,"filename":"image_18082025_17_14_55_10630.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377709988","file1":"1377709985","file0":"1377709983","file4":"1377709995","file5":"1377710007","file3":"1377709991"},"map_files_photo_id_array":[{"photo_id":"1377710007","filename":"file5"},{"photo_id":"1377709988","filename":"file2"},{"photo_id":"1377709995","filename":"file4"},{"photo_id":"1377709985","filename":"file1"},{"photo_id":"1377709983","filename":"file0"},{"photo_id":"1377709991","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377709995":["hashtag1","hashtag2"]},{"1377709983":["hashtag1","hashtag2"]},{"1377709988":["hashtag1","hashtag2"]},{"1377709991":["hashtag1","hashtag2"]},{"1377709985":["hashtag1","hashtag2"]},{"1377710007":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377709995, 1377709983, 1377709988, 1377709991, 1377709985, 1377710007)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.531224727630615 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:16:02.481395
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/12/image_18082025_10_13_05_9603.jpg', 2), ('/home/nano/Desktop/images/18082025/10/12/image_18082025_10_12_55_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/10/12/image_18082025_10_12_44_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/10/12/image_18082025_10_12_35_10679.jpg', 2), ('/home/nano/Desktop/images/18082025/10/12/image_18082025_10_12_24_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/10/12/image_18082025_10_12_14_9789.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/12/image_18082025_10_13_05_9603.jpg', '/home/nano/Desktop/images/18082025/10/12/image_18082025_10_12_55_10624.jpg', '/home/nano/Desktop/images/18082025/10/12/image_18082025_10_12_44_9607.jpg', '/home/nano/Desktop/images/18082025/10/12/image_18082025_10_12_35_10679.jpg', '/home/nano/Desktop/images/18082025/10/12/image_18082025_10_12_24_9660.jpg', '/home/nano/Desktop/images/18082025/10/12/image_18082025_10_12_14_9789.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/12/image_18082025_10_13_05_9603.jpg
/home/nano/Desktop/images/18082025/10/12/image_18082025_10_12_55_10624.jpg
/home/nano/Desktop/images/18082025/10/12/image_18082025_10_12_44_9607.jpg
/home/nano/Desktop/images/18082025/10/12/image_18082025_10_12_35_10679.jpg
/home/nano/Desktop/images/18082025/10/12/image_18082025_10_12_24_9660.jpg
/home/nano/Desktop/images/18082025/10/12/image_18082025_10_12_14_9789.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377710039","1377710033","1377710042","1377710036","1377710029","1377710031"],"photo_ids_order":["1377710029","1377710031","1377710033","1377710036","1377710039","1377710042"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b782c1bd2345dcc99df69a50f7775e06.jpg","text":"TemporaryFile(/tmp/multipartBody2424725767738124760asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530223638,"filename":"image_18082025_10_12_24_9660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b1f7d255087af980086053dc0bc272c4.jpg","text":"TemporaryFile(/tmp/multipartBody4637323102223744519asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530223638,"filename":"image_18082025_10_12_44_9607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/55cd73bb53725a5964f40b77770edc5d.jpg","text":"TemporaryFile(/tmp/multipartBody7067560117996410110asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530223638,"filename":"image_18082025_10_12_14_9789.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/73abc8b1090e4503f14b33f9f4d49250.jpg","text":"TemporaryFile(/tmp/multipartBody2683360240825684049asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530223638,"filename":"image_18082025_10_12_35_10679.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f17c1c0557a677b8bea2416574041579.jpg","text":"TemporaryFile(/tmp/multipartBody6636638069431957140asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530223638,"filename":"image_18082025_10_13_05_9603.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/902c4e56181a48834b385e1310de024d.jpg","text":"TemporaryFile(/tmp/multipartBody4042872734222348129asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530223638,"filename":"image_18082025_10_12_55_10624.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377710033","file1":"1377710031","file0":"1377710029","file4":"1377710039","file5":"1377710042","file3":"1377710036"},"map_files_photo_id_array":[{"photo_id":"1377710042","filename":"file5"},{"photo_id":"1377710033","filename":"file2"},{"photo_id":"1377710039","filename":"file4"},{"photo_id":"1377710031","filename":"file1"},{"photo_id":"1377710029","filename":"file0"},{"photo_id":"1377710036","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377710039":["hashtag1","hashtag2"]},{"1377710033":["hashtag1","hashtag2"]},{"1377710042":["hashtag1","hashtag2"]},{"1377710036":["hashtag1","hashtag2"]},{"1377710029":["hashtag1","hashtag2"]},{"1377710031":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377710039, 1377710033, 1377710042, 1377710036, 1377710029, 1377710031)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.707494974136353 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:16:46.895292
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/16/image_18082025_17_16_44_9681.jpg', 2), ('/home/nano/Desktop/images/18082025/17/16/image_18082025_17_16_35_9676.jpg', 2), ('/home/nano/Desktop/images/18082025/17/16/image_18082025_17_16_25_10676.jpg', 2), ('/home/nano/Desktop/images/18082025/17/16/image_18082025_17_16_14_9696.jpg', 2), ('/home/nano/Desktop/images/18082025/17/15/image_18082025_17_16_05_9693.jpg', 2), ('/home/nano/Desktop/images/18082025/17/15/image_18082025_17_15_55_10682.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/16/image_18082025_17_16_44_9681.jpg', '/home/nano/Desktop/images/18082025/17/16/image_18082025_17_16_35_9676.jpg', '/home/nano/Desktop/images/18082025/17/16/image_18082025_17_16_25_10676.jpg', '/home/nano/Desktop/images/18082025/17/16/image_18082025_17_16_14_9696.jpg', '/home/nano/Desktop/images/18082025/17/15/image_18082025_17_16_05_9693.jpg', '/home/nano/Desktop/images/18082025/17/15/image_18082025_17_15_55_10682.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/16/image_18082025_17_16_44_9681.jpg
/home/nano/Desktop/images/18082025/17/16/image_18082025_17_16_35_9676.jpg
/home/nano/Desktop/images/18082025/17/16/image_18082025_17_16_25_10676.jpg
/home/nano/Desktop/images/18082025/17/16/image_18082025_17_16_14_9696.jpg
/home/nano/Desktop/images/18082025/17/15/image_18082025_17_16_05_9693.jpg
/home/nano/Desktop/images/18082025/17/15/image_18082025_17_15_55_10682.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377710078","1377710062","1377710085","1377710070","1377710076","1377710081"],"photo_ids_order":["1377710062","1377710070","1377710076","1377710078","1377710081","1377710085"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/081ddbbb35d8128f3c3428caca85d7c9.jpg","text":"TemporaryFile(/tmp/multipartBody4795362842775932105asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530268442,"filename":"image_18082025_17_16_14_9696.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1b9140cfbe5144f33011f2fd39bb6b16.jpg","text":"TemporaryFile(/tmp/multipartBody3175525010144285291asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530268442,"filename":"image_18082025_17_16_44_9681.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fcdf7efd638c5615c026deab285c3352.jpg","text":"TemporaryFile(/tmp/multipartBody8833164807354317727asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530268442,"filename":"image_18082025_17_15_55_10682.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a1d24d133b3578926df8002632aebd9f.jpg","text":"TemporaryFile(/tmp/multipartBody1666175560759078912asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530268442,"filename":"image_18082025_17_16_35_9676.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fcb88ce3526da5e871ccb1898cd116cb.jpg","text":"TemporaryFile(/tmp/multipartBody1361999759765628091asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530268442,"filename":"image_18082025_17_16_25_10676.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fb9d748b12930008b35a0e27cf02e2b7.jpg","text":"TemporaryFile(/tmp/multipartBody7685874867860617249asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530268442,"filename":"image_18082025_17_16_05_9693.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377710076","file1":"1377710070","file0":"1377710062","file4":"1377710081","file5":"1377710085","file3":"1377710078"},"map_files_photo_id_array":[{"photo_id":"1377710085","filename":"file5"},{"photo_id":"1377710076","filename":"file2"},{"photo_id":"1377710081","filename":"file4"},{"photo_id":"1377710070","filename":"file1"},{"photo_id":"1377710062","filename":"file0"},{"photo_id":"1377710078","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377710078":["hashtag1","hashtag2"]},{"1377710062":["hashtag1","hashtag2"]},{"1377710085":["hashtag1","hashtag2"]},{"1377710070":["hashtag1","hashtag2"]},{"1377710076":["hashtag1","hashtag2"]},{"1377710081":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377710078, 1377710062, 1377710085, 1377710070, 1377710076, 1377710081)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.379576206207275 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:17:31.996484
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/17/image_18082025_17_17_44_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/17/17/image_18082025_17_17_35_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/17/17/image_18082025_17_17_25_10619.jpg', 2), ('/home/nano/Desktop/images/18082025/17/17/image_18082025_17_17_14_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/17/16/image_18082025_17_17_05_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/17/16/image_18082025_17_16_55_10637.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/17/image_18082025_17_17_44_9617.jpg', '/home/nano/Desktop/images/18082025/17/17/image_18082025_17_17_35_9615.jpg', '/home/nano/Desktop/images/18082025/17/17/image_18082025_17_17_25_10619.jpg', '/home/nano/Desktop/images/18082025/17/17/image_18082025_17_17_14_9628.jpg', '/home/nano/Desktop/images/18082025/17/16/image_18082025_17_17_05_9613.jpg', '/home/nano/Desktop/images/18082025/17/16/image_18082025_17_16_55_10637.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/17/image_18082025_17_17_44_9617.jpg
/home/nano/Desktop/images/18082025/17/17/image_18082025_17_17_35_9615.jpg
/home/nano/Desktop/images/18082025/17/17/image_18082025_17_17_25_10619.jpg
/home/nano/Desktop/images/18082025/17/17/image_18082025_17_17_14_9628.jpg
/home/nano/Desktop/images/18082025/17/16/image_18082025_17_17_05_9613.jpg
/home/nano/Desktop/images/18082025/17/16/image_18082025_17_16_55_10637.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377710132","1377710108","1377710116","1377710125","1377710093","1377710096"],"photo_ids_order":["1377710093","1377710096","1377710108","1377710116","1377710125","1377710132"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0e046ea6edfe90466758b19e583ed161.jpg","text":"TemporaryFile(/tmp/multipartBody8333340740704208046asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530313083,"filename":"image_18082025_17_16_55_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f1b2a538e96fc865092090860fbc0102.jpg","text":"TemporaryFile(/tmp/multipartBody840974514167081744asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530313083,"filename":"image_18082025_17_17_25_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/108536bb043426194132aa5d99cc4924.jpg","text":"TemporaryFile(/tmp/multipartBody8929674745218833288asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530313083,"filename":"image_18082025_17_17_14_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1936087e25d1c004ef5df3f8f76996b5.jpg","text":"TemporaryFile(/tmp/multipartBody3756018773581204604asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530313083,"filename":"image_18082025_17_17_05_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4abc1df5eeb20a9df46865e5141184a0.jpg","text":"TemporaryFile(/tmp/multipartBody960186882035450711asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530313083,"filename":"image_18082025_17_17_44_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/403fe30a97a0caeb7895d54be5856748.jpg","text":"TemporaryFile(/tmp/multipartBody7520667991004886668asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530313083,"filename":"image_18082025_17_17_35_9615.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377710108","file1":"1377710096","file0":"1377710093","file4":"1377710125","file5":"1377710132","file3":"1377710116"},"map_files_photo_id_array":[{"photo_id":"1377710132","filename":"file5"},{"photo_id":"1377710108","filename":"file2"},{"photo_id":"1377710125","filename":"file4"},{"photo_id":"1377710096","filename":"file1"},{"photo_id":"1377710093","filename":"file0"},{"photo_id":"1377710116","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377710132":["hashtag1","hashtag2"]},{"1377710108":["hashtag1","hashtag2"]},{"1377710116":["hashtag1","hashtag2"]},{"1377710125":["hashtag1","hashtag2"]},{"1377710093":["hashtag1","hashtag2"]},{"1377710096":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377710132, 1377710108, 1377710116, 1377710125, 1377710093, 1377710096)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.184099912643433 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:18:17.108321
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/18/image_18082025_17_18_45_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/17/18/image_18082025_17_18_34_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/17/18/image_18082025_17_18_25_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/17/18/image_18082025_17_18_14_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/17/17/image_18082025_17_18_04_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/17/17/image_18082025_17_17_55_10623.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/18/image_18082025_17_18_45_10621.jpg', '/home/nano/Desktop/images/18082025/17/18/image_18082025_17_18_34_9616.jpg', '/home/nano/Desktop/images/18082025/17/18/image_18082025_17_18_25_10625.jpg', '/home/nano/Desktop/images/18082025/17/18/image_18082025_17_18_14_9645.jpg', '/home/nano/Desktop/images/18082025/17/17/image_18082025_17_18_04_9635.jpg', '/home/nano/Desktop/images/18082025/17/17/image_18082025_17_17_55_10623.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/18/image_18082025_17_18_45_10621.jpg
/home/nano/Desktop/images/18082025/17/18/image_18082025_17_18_34_9616.jpg
/home/nano/Desktop/images/18082025/17/18/image_18082025_17_18_25_10625.jpg
/home/nano/Desktop/images/18082025/17/18/image_18082025_17_18_14_9645.jpg
/home/nano/Desktop/images/18082025/17/17/image_18082025_17_18_04_9635.jpg
/home/nano/Desktop/images/18082025/17/17/image_18082025_17_17_55_10623.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377710144","1377710147","1377710149","1377710146","1377710148","1377710142"],"photo_ids_order":["1377710142","1377710144","1377710146","1377710147","1377710148","1377710149"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f0e0c6eae1d49450fffcc4f81abc15ee.jpg","text":"TemporaryFile(/tmp/multipartBody2496930987938839014asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530358463,"filename":"image_18082025_17_18_34_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5354c9d7dcae3fb75efc758f51379c42.jpg","text":"TemporaryFile(/tmp/multipartBody4502789535217694133asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530358463,"filename":"image_18082025_17_18_14_9645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5e2878bb7b3708b94a3ae9aaaeef072f.jpg","text":"TemporaryFile(/tmp/multipartBody2836068814914826330asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530358463,"filename":"image_18082025_17_17_55_10623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/95fd78a99e9f2e37944f624c10758d9b.jpg","text":"TemporaryFile(/tmp/multipartBody6298584204815854084asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530358463,"filename":"image_18082025_17_18_25_10625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/08931cb9c2e4f160869f7bfd4c95df8d.jpg","text":"TemporaryFile(/tmp/multipartBody606965563996539426asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530358463,"filename":"image_18082025_17_18_04_9635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fd40abbd79445367c631720daffb07f9.jpg","text":"TemporaryFile(/tmp/multipartBody3082487411610092544asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530358463,"filename":"image_18082025_17_18_45_10621.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377710146","file1":"1377710144","file0":"1377710142","file4":"1377710148","file5":"1377710149","file3":"1377710147"},"map_files_photo_id_array":[{"photo_id":"1377710149","filename":"file5"},{"photo_id":"1377710146","filename":"file2"},{"photo_id":"1377710148","filename":"file4"},{"photo_id":"1377710144","filename":"file1"},{"photo_id":"1377710142","filename":"file0"},{"photo_id":"1377710147","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377710144":["hashtag1","hashtag2"]},{"1377710147":["hashtag1","hashtag2"]},{"1377710149":["hashtag1","hashtag2"]},{"1377710146":["hashtag1","hashtag2"]},{"1377710148":["hashtag1","hashtag2"]},{"1377710142":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377710144, 1377710147, 1377710149, 1377710146, 1377710148, 1377710142)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.427973985672 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:19:03.204414
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/11/image_18082025_10_12_05_9768.jpg', 2), ('/home/nano/Desktop/images/18082025/10/11/image_18082025_10_11_55_10690.jpg', 2), ('/home/nano/Desktop/images/18082025/10/11/image_18082025_10_11_44_9711.jpg', 2), ('/home/nano/Desktop/images/18082025/10/11/image_18082025_10_11_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/10/11/image_18082025_10_11_25_10772.jpg', 2), ('/home/nano/Desktop/images/18082025/10/11/image_18082025_10_11_14_9831.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/11/image_18082025_10_12_05_9768.jpg', '/home/nano/Desktop/images/18082025/10/11/image_18082025_10_11_55_10690.jpg', '/home/nano/Desktop/images/18082025/10/11/image_18082025_10_11_44_9711.jpg', '/home/nano/Desktop/images/18082025/10/11/image_18082025_10_11_34_9642.jpg', '/home/nano/Desktop/images/18082025/10/11/image_18082025_10_11_25_10772.jpg', '/home/nano/Desktop/images/18082025/10/11/image_18082025_10_11_14_9831.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/11/image_18082025_10_12_05_9768.jpg
/home/nano/Desktop/images/18082025/10/11/image_18082025_10_11_55_10690.jpg
/home/nano/Desktop/images/18082025/10/11/image_18082025_10_11_44_9711.jpg
/home/nano/Desktop/images/18082025/10/11/image_18082025_10_11_34_9642.jpg
/home/nano/Desktop/images/18082025/10/11/image_18082025_10_11_25_10772.jpg
/home/nano/Desktop/images/18082025/10/11/image_18082025_10_11_14_9831.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377710183","1377710177","1377710158","1377710181","1377710166","1377710186"],"photo_ids_order":["1377710158","1377710166","1377710177","1377710181","1377710183","1377710186"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7977f000747b6d26f18dc5ff4be7b766.jpg","text":"TemporaryFile(/tmp/multipartBody1244409189393207466asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530404848,"filename":"image_18082025_10_11_25_10772.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/71bba7b2d1e0fe3e3af19cd4b0b7990c.jpg","text":"TemporaryFile(/tmp/multipartBody5495909095298250856asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530404848,"filename":"image_18082025_10_11_44_9711.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/515248ba5b9cb890f30cbed1a047802b.jpg","text":"TemporaryFile(/tmp/multipartBody2371450633345109159asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530404848,"filename":"image_18082025_10_12_05_9768.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/01078f132bec25fb5ad84c7f60c22697.jpg","text":"TemporaryFile(/tmp/multipartBody2007532574041367008asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530404848,"filename":"image_18082025_10_11_34_9642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5eac5207175f5c1712ec14726ea197f5.jpg","text":"TemporaryFile(/tmp/multipartBody4118308629041962024asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530404848,"filename":"image_18082025_10_11_55_10690.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/647515c81302e73684f3a711568eb3b4.jpg","text":"TemporaryFile(/tmp/multipartBody7178190354067308295asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530404848,"filename":"image_18082025_10_11_14_9831.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377710177","file1":"1377710166","file0":"1377710158","file4":"1377710183","file5":"1377710186","file3":"1377710181"},"map_files_photo_id_array":[{"photo_id":"1377710186","filename":"file5"},{"photo_id":"1377710177","filename":"file2"},{"photo_id":"1377710183","filename":"file4"},{"photo_id":"1377710166","filename":"file1"},{"photo_id":"1377710158","filename":"file0"},{"photo_id":"1377710181","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377710183":["hashtag1","hashtag2"]},{"1377710177":["hashtag1","hashtag2"]},{"1377710158":["hashtag1","hashtag2"]},{"1377710181":["hashtag1","hashtag2"]},{"1377710166":["hashtag1","hashtag2"]},{"1377710186":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377710183, 1377710177, 1377710158, 1377710181, 1377710166, 1377710186)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.39894509315491 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:19:47.215188
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/19/image_18082025_17_19_35_10620.jpg', 2), ('/home/nano/Desktop/images/18082025/17/19/image_18082025_17_19_24_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/17/19/image_18082025_17_19_15_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/17/18/image_18082025_17_19_04_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/17/18/image_18082025_17_18_55_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/10/10/image_18082025_10_11_04_9777.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/19/image_18082025_17_19_35_10620.jpg', '/home/nano/Desktop/images/18082025/17/19/image_18082025_17_19_24_9613.jpg', '/home/nano/Desktop/images/18082025/17/19/image_18082025_17_19_15_10655.jpg', '/home/nano/Desktop/images/18082025/17/18/image_18082025_17_19_04_9628.jpg', '/home/nano/Desktop/images/18082025/17/18/image_18082025_17_18_55_9617.jpg', '/home/nano/Desktop/images/18082025/10/10/image_18082025_10_11_04_9777.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/19/image_18082025_17_19_35_10620.jpg
/home/nano/Desktop/images/18082025/17/19/image_18082025_17_19_24_9613.jpg
/home/nano/Desktop/images/18082025/17/19/image_18082025_17_19_15_10655.jpg
/home/nano/Desktop/images/18082025/17/18/image_18082025_17_19_04_9628.jpg
/home/nano/Desktop/images/18082025/17/18/image_18082025_17_18_55_9617.jpg
/home/nano/Desktop/images/18082025/10/10/image_18082025_10_11_04_9777.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377710204","1377710203","1377710206","1377710209","1377710202","1377710205"],"photo_ids_order":["1377710202","1377710203","1377710204","1377710205","1377710206","1377710209"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8b8b17739984dfbbbf43133e937f7007.jpg","text":"TemporaryFile(/tmp/multipartBody6772232248790439677asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530448582,"filename":"image_18082025_17_19_15_10655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3e9d43b870feb42262389b9418d5c0a7.jpg","text":"TemporaryFile(/tmp/multipartBody4424461690636184463asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530448582,"filename":"image_18082025_17_19_24_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b7c7c6a930c9c89c851ab4e5c4364f80.jpg","text":"TemporaryFile(/tmp/multipartBody3217457034861051335asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530448582,"filename":"image_18082025_17_18_55_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0b958504615bfaaef21f27ce09c4d845.jpg","text":"TemporaryFile(/tmp/multipartBody2668073449484206866asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530448582,"filename":"image_18082025_10_11_04_9777.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9ecb33d85c5a8901a2dd263940e8ab94.jpg","text":"TemporaryFile(/tmp/multipartBody7087267585546714592asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530448582,"filename":"image_18082025_17_19_35_10620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1c804ba74cb60a3cdb22f6a0b2b6f5f0.jpg","text":"TemporaryFile(/tmp/multipartBody1212091960161380743asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530448582,"filename":"image_18082025_17_19_04_9628.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377710204","file1":"1377710203","file0":"1377710202","file4":"1377710206","file5":"1377710209","file3":"1377710205"},"map_files_photo_id_array":[{"photo_id":"1377710209","filename":"file5"},{"photo_id":"1377710204","filename":"file2"},{"photo_id":"1377710206","filename":"file4"},{"photo_id":"1377710203","filename":"file1"},{"photo_id":"1377710202","filename":"file0"},{"photo_id":"1377710205","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377710204":["hashtag1","hashtag2"]},{"1377710203":["hashtag1","hashtag2"]},{"1377710206":["hashtag1","hashtag2"]},{"1377710209":["hashtag1","hashtag2"]},{"1377710202":["hashtag1","hashtag2"]},{"1377710205":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377710204, 1377710203, 1377710206, 1377710209, 1377710202, 1377710205)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.930328845977783 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:20:32.321281
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/20/image_18082025_17_20_45_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/17/20/image_18082025_17_20_35_10731.jpg', 2), ('/home/nano/Desktop/images/18082025/17/20/image_18082025_17_20_24_9672.jpg', 2), ('/home/nano/Desktop/images/18082025/17/20/image_18082025_17_20_15_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/17/19/image_18082025_17_20_05_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/17/19/image_18082025_17_19_54_9639.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/20/image_18082025_17_20_45_9661.jpg', '/home/nano/Desktop/images/18082025/17/20/image_18082025_17_20_35_10731.jpg', '/home/nano/Desktop/images/18082025/17/20/image_18082025_17_20_24_9672.jpg', '/home/nano/Desktop/images/18082025/17/20/image_18082025_17_20_15_9641.jpg', '/home/nano/Desktop/images/18082025/17/19/image_18082025_17_20_05_10628.jpg', '/home/nano/Desktop/images/18082025/17/19/image_18082025_17_19_54_9639.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/20/image_18082025_17_20_45_9661.jpg
/home/nano/Desktop/images/18082025/17/20/image_18082025_17_20_35_10731.jpg
/home/nano/Desktop/images/18082025/17/20/image_18082025_17_20_24_9672.jpg
/home/nano/Desktop/images/18082025/17/20/image_18082025_17_20_15_9641.jpg
/home/nano/Desktop/images/18082025/17/19/image_18082025_17_20_05_10628.jpg
/home/nano/Desktop/images/18082025/17/19/image_18082025_17_19_54_9639.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377710231","1377710240","1377710234","1377710233","1377710236","1377710238"],"photo_ids_order":["1377710231","1377710233","1377710234","1377710236","1377710238","1377710240"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6adb038933d061b1d0dcbbd54d24e6f5.jpg","text":"TemporaryFile(/tmp/multipartBody470002125008162043asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530493718,"filename":"image_18082025_17_20_45_9661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4617f2b5e689a193085ac1c22166fae1.jpg","text":"TemporaryFile(/tmp/multipartBody6268000124779075984asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530493718,"filename":"image_18082025_17_19_54_9639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/aa6257df2d6cbb31e814f0934b92aa0a.jpg","text":"TemporaryFile(/tmp/multipartBody5413165551581015835asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530493718,"filename":"image_18082025_17_20_24_9672.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ccdb0116e3a745f82eccc132e54e5de8.jpg","text":"TemporaryFile(/tmp/multipartBody8774505318940011151asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530493718,"filename":"image_18082025_17_20_35_10731.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bc1c039a1a21de22b6115139f1126951.jpg","text":"TemporaryFile(/tmp/multipartBody4288892207613795062asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530493718,"filename":"image_18082025_17_20_15_9641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0dc0b14ef38ab9efe43bd5ea23661531.jpg","text":"TemporaryFile(/tmp/multipartBody8219671335269406578asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530493718,"filename":"image_18082025_17_20_05_10628.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377710234","file1":"1377710233","file0":"1377710231","file4":"1377710238","file5":"1377710240","file3":"1377710236"},"map_files_photo_id_array":[{"photo_id":"1377710240","filename":"file5"},{"photo_id":"1377710234","filename":"file2"},{"photo_id":"1377710238","filename":"file4"},{"photo_id":"1377710233","filename":"file1"},{"photo_id":"1377710231","filename":"file0"},{"photo_id":"1377710236","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377710231":["hashtag1","hashtag2"]},{"1377710240":["hashtag1","hashtag2"]},{"1377710234":["hashtag1","hashtag2"]},{"1377710233":["hashtag1","hashtag2"]},{"1377710236":["hashtag1","hashtag2"]},{"1377710238":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377710231, 1377710240, 1377710234, 1377710233, 1377710236, 1377710238)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.16675353050232 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:21:17.366403
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/21/image_18082025_17_21_45_10699.jpg', 2), ('/home/nano/Desktop/images/18082025/17/21/image_18082025_17_21_34_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/17/21/image_18082025_17_21_24_9737.jpg', 2), ('/home/nano/Desktop/images/18082025/17/21/image_18082025_17_21_15_9732.jpg', 2), ('/home/nano/Desktop/images/18082025/17/20/image_18082025_17_21_05_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/17/20/image_18082025_17_20_54_9616.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/21/image_18082025_17_21_45_10699.jpg', '/home/nano/Desktop/images/18082025/17/21/image_18082025_17_21_34_9641.jpg', '/home/nano/Desktop/images/18082025/17/21/image_18082025_17_21_24_9737.jpg', '/home/nano/Desktop/images/18082025/17/21/image_18082025_17_21_15_9732.jpg', '/home/nano/Desktop/images/18082025/17/20/image_18082025_17_21_05_10665.jpg', '/home/nano/Desktop/images/18082025/17/20/image_18082025_17_20_54_9616.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/21/image_18082025_17_21_45_10699.jpg
/home/nano/Desktop/images/18082025/17/21/image_18082025_17_21_34_9641.jpg
/home/nano/Desktop/images/18082025/17/21/image_18082025_17_21_24_9737.jpg
/home/nano/Desktop/images/18082025/17/21/image_18082025_17_21_15_9732.jpg
/home/nano/Desktop/images/18082025/17/20/image_18082025_17_21_05_10665.jpg
/home/nano/Desktop/images/18082025/17/20/image_18082025_17_20_54_9616.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377710279","1377710262","1377710286","1377710268","1377710253","1377710256"],"photo_ids_order":["1377710253","1377710256","1377710262","1377710268","1377710279","1377710286"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cfff20acc9fc5365a7418c43fc10f59b.jpg","text":"TemporaryFile(/tmp/multipartBody3245763526931246300asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530538652,"filename":"image_18082025_17_21_05_10665.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/734897c0f95b701c66a81aefa1dd8ec1.jpg","text":"TemporaryFile(/tmp/multipartBody40006609663044872asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530538652,"filename":"image_18082025_17_21_24_9737.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bff0c8b8b2c38f8b5972f0255bceae7c.jpg","text":"TemporaryFile(/tmp/multipartBody6935892638576352628asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530538652,"filename":"image_18082025_17_20_54_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d8651c532ed1e0b764c87b4c719ff9ad.jpg","text":"TemporaryFile(/tmp/multipartBody4480818494823185006asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530538652,"filename":"image_18082025_17_21_15_9732.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8c96a662bd6d87127ee1a62053c2558b.jpg","text":"TemporaryFile(/tmp/multipartBody8647610356999605964asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530538652,"filename":"image_18082025_17_21_45_10699.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ea1f4380a2115fd469a21fe470764bdc.jpg","text":"TemporaryFile(/tmp/multipartBody3037841250103157644asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530538652,"filename":"image_18082025_17_21_34_9641.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377710262","file1":"1377710256","file0":"1377710253","file4":"1377710279","file5":"1377710286","file3":"1377710268"},"map_files_photo_id_array":[{"photo_id":"1377710286","filename":"file5"},{"photo_id":"1377710262","filename":"file2"},{"photo_id":"1377710279","filename":"file4"},{"photo_id":"1377710256","filename":"file1"},{"photo_id":"1377710253","filename":"file0"},{"photo_id":"1377710268","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377710279":["hashtag1","hashtag2"]},{"1377710262":["hashtag1","hashtag2"]},{"1377710286":["hashtag1","hashtag2"]},{"1377710268":["hashtag1","hashtag2"]},{"1377710253":["hashtag1","hashtag2"]},{"1377710256":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377710279, 1377710262, 1377710286, 1377710268, 1377710253, 1377710256)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.332229137420654 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:22:03.116345
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/10/image_18082025_10_10_54_9774.jpg', 2), ('/home/nano/Desktop/images/18082025/10/10/image_18082025_10_10_45_9752.jpg', 2), ('/home/nano/Desktop/images/18082025/10/10/image_18082025_10_10_35_10746.jpg', 2), ('/home/nano/Desktop/images/18082025/10/10/image_18082025_10_10_24_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/10/10/image_18082025_10_10_15_9780.jpg', 2), ('/home/nano/Desktop/images/18082025/10/09/image_18082025_10_10_05_10689.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/10/image_18082025_10_10_54_9774.jpg', '/home/nano/Desktop/images/18082025/10/10/image_18082025_10_10_45_9752.jpg', '/home/nano/Desktop/images/18082025/10/10/image_18082025_10_10_35_10746.jpg', '/home/nano/Desktop/images/18082025/10/10/image_18082025_10_10_24_9647.jpg', '/home/nano/Desktop/images/18082025/10/10/image_18082025_10_10_15_9780.jpg', '/home/nano/Desktop/images/18082025/10/09/image_18082025_10_10_05_10689.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/10/image_18082025_10_10_54_9774.jpg
/home/nano/Desktop/images/18082025/10/10/image_18082025_10_10_45_9752.jpg
/home/nano/Desktop/images/18082025/10/10/image_18082025_10_10_35_10746.jpg
/home/nano/Desktop/images/18082025/10/10/image_18082025_10_10_24_9647.jpg
/home/nano/Desktop/images/18082025/10/10/image_18082025_10_10_15_9780.jpg
/home/nano/Desktop/images/18082025/10/09/image_18082025_10_10_05_10689.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377710357","1377710350","1377710353","1377710344","1377710338","1377710361"],"photo_ids_order":["1377710338","1377710344","1377710350","1377710353","1377710357","1377710361"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/28c6a561c9426bc8a75758fb155369ae.jpg","text":"TemporaryFile(/tmp/multipartBody6640935754916181922asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530584768,"filename":"image_18082025_10_10_15_9780.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/06febd8d2ccd961e3e3bb1d857b1460f.jpg","text":"TemporaryFile(/tmp/multipartBody4220369391217242542asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530584768,"filename":"image_18082025_10_10_35_10746.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f50c3d8b69219392dbe4b2be333b627f.jpg","text":"TemporaryFile(/tmp/multipartBody4240708197068329452asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530584768,"filename":"image_18082025_10_10_24_9647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4ba98096ca49a075eb70ee1255a83805.jpg","text":"TemporaryFile(/tmp/multipartBody5664596325985508744asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530584768,"filename":"image_18082025_10_10_45_9752.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8cc160be2b5c44daa605ca27de4f8cf6.jpg","text":"TemporaryFile(/tmp/multipartBody979730363590281217asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530584768,"filename":"image_18082025_10_10_54_9774.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/764d68452e06a5c4592ebb5a8a45d374.jpg","text":"TemporaryFile(/tmp/multipartBody2791876659374808499asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530584768,"filename":"image_18082025_10_10_05_10689.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377710350","file1":"1377710344","file0":"1377710338","file4":"1377710357","file5":"1377710361","file3":"1377710353"},"map_files_photo_id_array":[{"photo_id":"1377710361","filename":"file5"},{"photo_id":"1377710350","filename":"file2"},{"photo_id":"1377710357","filename":"file4"},{"photo_id":"1377710344","filename":"file1"},{"photo_id":"1377710338","filename":"file0"},{"photo_id":"1377710353","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377710357":["hashtag1","hashtag2"]},{"1377710350":["hashtag1","hashtag2"]},{"1377710353":["hashtag1","hashtag2"]},{"1377710344":["hashtag1","hashtag2"]},{"1377710338":["hashtag1","hashtag2"]},{"1377710361":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377710357, 1377710350, 1377710353, 1377710344, 1377710338, 1377710361)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.03407335281372 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:22:47.560730
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/22/image_18082025_17_22_44_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/17/22/image_18082025_17_22_35_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/17/22/image_18082025_17_22_24_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/17/22/image_18082025_17_22_15_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/17/21/image_18082025_17_22_05_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/17/21/image_18082025_17_21_54_9609.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/22/image_18082025_17_22_44_9616.jpg', '/home/nano/Desktop/images/18082025/17/22/image_18082025_17_22_35_10621.jpg', '/home/nano/Desktop/images/18082025/17/22/image_18082025_17_22_24_9613.jpg', '/home/nano/Desktop/images/18082025/17/22/image_18082025_17_22_15_9641.jpg', '/home/nano/Desktop/images/18082025/17/21/image_18082025_17_22_05_10635.jpg', '/home/nano/Desktop/images/18082025/17/21/image_18082025_17_21_54_9609.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/22/image_18082025_17_22_44_9616.jpg
/home/nano/Desktop/images/18082025/17/22/image_18082025_17_22_35_10621.jpg
/home/nano/Desktop/images/18082025/17/22/image_18082025_17_22_24_9613.jpg
/home/nano/Desktop/images/18082025/17/22/image_18082025_17_22_15_9641.jpg
/home/nano/Desktop/images/18082025/17/21/image_18082025_17_22_05_10635.jpg
/home/nano/Desktop/images/18082025/17/21/image_18082025_17_21_54_9609.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377710380","1377710368","1377710376","1377710370","1377710373","1377710366"],"photo_ids_order":["1377710366","1377710368","1377710370","1377710373","1377710376","1377710380"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9f6fcb1b24bd82501586121fb88e8d97.jpg","text":"TemporaryFile(/tmp/multipartBody6595023883856272057asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530628731,"filename":"image_18082025_17_21_54_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6722191948416bc0513dde66243c2ba5.jpg","text":"TemporaryFile(/tmp/multipartBody8973290643983414680asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530628731,"filename":"image_18082025_17_22_35_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/29f4afc865ac7d8ef139ef008c46c864.jpg","text":"TemporaryFile(/tmp/multipartBody7461624617811598262asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530628731,"filename":"image_18082025_17_22_05_10635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e170395a6a24d83f8a00d64045138015.jpg","text":"TemporaryFile(/tmp/multipartBody3497197214028948775asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530628731,"filename":"image_18082025_17_22_24_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/30c52915266aa9f80f197d9562977a3e.jpg","text":"TemporaryFile(/tmp/multipartBody1147753164810266987asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530628731,"filename":"image_18082025_17_22_15_9641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/33bd3b2156bf42be50dea4a68a434305.jpg","text":"TemporaryFile(/tmp/multipartBody2949895263533685305asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530628731,"filename":"image_18082025_17_22_44_9616.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377710370","file1":"1377710368","file0":"1377710366","file4":"1377710376","file5":"1377710380","file3":"1377710373"},"map_files_photo_id_array":[{"photo_id":"1377710380","filename":"file5"},{"photo_id":"1377710370","filename":"file2"},{"photo_id":"1377710376","filename":"file4"},{"photo_id":"1377710368","filename":"file1"},{"photo_id":"1377710366","filename":"file0"},{"photo_id":"1377710373","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377710380":["hashtag1","hashtag2"]},{"1377710368":["hashtag1","hashtag2"]},{"1377710376":["hashtag1","hashtag2"]},{"1377710370":["hashtag1","hashtag2"]},{"1377710373":["hashtag1","hashtag2"]},{"1377710366":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377710380, 1377710368, 1377710376, 1377710370, 1377710373, 1377710366)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.44916796684265 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:23:32.686018
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/23/image_18082025_17_23_44_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/17/23/image_18082025_17_23_35_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/17/23/image_18082025_17_23_25_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/17/23/image_18082025_17_23_14_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/17/22/image_18082025_17_23_05_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/17/22/image_18082025_17_22_54_9612.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/23/image_18082025_17_23_44_9617.jpg', '/home/nano/Desktop/images/18082025/17/23/image_18082025_17_23_35_9635.jpg', '/home/nano/Desktop/images/18082025/17/23/image_18082025_17_23_25_10629.jpg', '/home/nano/Desktop/images/18082025/17/23/image_18082025_17_23_14_9650.jpg', '/home/nano/Desktop/images/18082025/17/22/image_18082025_17_23_05_10626.jpg', '/home/nano/Desktop/images/18082025/17/22/image_18082025_17_22_54_9612.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/23/image_18082025_17_23_44_9617.jpg
/home/nano/Desktop/images/18082025/17/23/image_18082025_17_23_35_9635.jpg
/home/nano/Desktop/images/18082025/17/23/image_18082025_17_23_25_10629.jpg
/home/nano/Desktop/images/18082025/17/23/image_18082025_17_23_14_9650.jpg
/home/nano/Desktop/images/18082025/17/22/image_18082025_17_23_05_10626.jpg
/home/nano/Desktop/images/18082025/17/22/image_18082025_17_22_54_9612.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377710408","1377710401","1377710419","1377710397","1377710427","1377710400"],"photo_ids_order":["1377710397","1377710400","1377710401","1377710408","1377710419","1377710427"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c54c89fd6d5658ba1b01c6b8258e6bfe.jpg","text":"TemporaryFile(/tmp/multipartBody4032885015673426590asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530674320,"filename":"image_18082025_17_23_14_9650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8a8b8be98bee4de1069b179f3fda5e71.jpg","text":"TemporaryFile(/tmp/multipartBody5053365849863685618asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530674320,"filename":"image_18082025_17_23_25_10629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bd8f8507df8c2f5f1d5ca401409e4cc7.jpg","text":"TemporaryFile(/tmp/multipartBody4213072247884703046asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530674320,"filename":"image_18082025_17_23_05_10626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/275fded6ebc1a75c324daf7ca40bb463.jpg","text":"TemporaryFile(/tmp/multipartBody7250787990774945810asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530674320,"filename":"image_18082025_17_23_44_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e354848be6b4be70c70846c27dcab8b9.jpg","text":"TemporaryFile(/tmp/multipartBody4075022179344707434asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530674320,"filename":"image_18082025_17_22_54_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e933f322aba220f06df9f382b08d0370.jpg","text":"TemporaryFile(/tmp/multipartBody1402397033655559930asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530674320,"filename":"image_18082025_17_23_35_9635.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377710401","file1":"1377710400","file0":"1377710397","file4":"1377710419","file5":"1377710427","file3":"1377710408"},"map_files_photo_id_array":[{"photo_id":"1377710427","filename":"file5"},{"photo_id":"1377710401","filename":"file2"},{"photo_id":"1377710419","filename":"file4"},{"photo_id":"1377710400","filename":"file1"},{"photo_id":"1377710397","filename":"file0"},{"photo_id":"1377710408","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377710408":["hashtag1","hashtag2"]},{"1377710401":["hashtag1","hashtag2"]},{"1377710419":["hashtag1","hashtag2"]},{"1377710397":["hashtag1","hashtag2"]},{"1377710427":["hashtag1","hashtag2"]},{"1377710400":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377710408, 1377710401, 1377710419, 1377710397, 1377710427, 1377710400)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.185750246047974 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:24:16.811789
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/24/image_18082025_17_24_45_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/17/24/image_18082025_17_24_34_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/17/24/image_18082025_17_24_25_10619.jpg', 2), ('/home/nano/Desktop/images/18082025/17/24/image_18082025_17_24_14_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/17/23/image_18082025_17_24_05_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/17/23/image_18082025_17_23_55_10624.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/24/image_18082025_17_24_45_10626.jpg', '/home/nano/Desktop/images/18082025/17/24/image_18082025_17_24_34_9619.jpg', '/home/nano/Desktop/images/18082025/17/24/image_18082025_17_24_25_10619.jpg', '/home/nano/Desktop/images/18082025/17/24/image_18082025_17_24_14_9628.jpg', '/home/nano/Desktop/images/18082025/17/23/image_18082025_17_24_05_9640.jpg', '/home/nano/Desktop/images/18082025/17/23/image_18082025_17_23_55_10624.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/24/image_18082025_17_24_45_10626.jpg
/home/nano/Desktop/images/18082025/17/24/image_18082025_17_24_34_9619.jpg
/home/nano/Desktop/images/18082025/17/24/image_18082025_17_24_25_10619.jpg
/home/nano/Desktop/images/18082025/17/24/image_18082025_17_24_14_9628.jpg
/home/nano/Desktop/images/18082025/17/23/image_18082025_17_24_05_9640.jpg
/home/nano/Desktop/images/18082025/17/23/image_18082025_17_23_55_10624.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377710447","1377710456","1377710458","1377710440","1377710454","1377710451"],"photo_ids_order":["1377710440","1377710447","1377710451","1377710454","1377710456","1377710458"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/16934bab206cc20ba80ec6b3f02c364e.jpg","text":"TemporaryFile(/tmp/multipartBody531075861855363317asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530718143,"filename":"image_18082025_17_24_34_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0e58f13cf1c8fcaf4c5882ed7d1cc460.jpg","text":"TemporaryFile(/tmp/multipartBody3377709828948684204asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530718143,"filename":"image_18082025_17_24_05_9640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/42f03aea780dc106173090800cee593b.jpg","text":"TemporaryFile(/tmp/multipartBody5425725389954175024asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530718143,"filename":"image_18082025_17_23_55_10624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/83bc16feb6d1645c514b8f9ce7b85a01.jpg","text":"TemporaryFile(/tmp/multipartBody9205947902326869462asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530718143,"filename":"image_18082025_17_24_45_10626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ddff57a2e53fdc0b150cdaecddc1190a.jpg","text":"TemporaryFile(/tmp/multipartBody1354924842260308549asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530718143,"filename":"image_18082025_17_24_14_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a8d53c72159e593cf339bc176dea67ef.jpg","text":"TemporaryFile(/tmp/multipartBody265637178079395721asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530718143,"filename":"image_18082025_17_24_25_10619.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377710451","file1":"1377710447","file0":"1377710440","file4":"1377710456","file5":"1377710458","file3":"1377710454"},"map_files_photo_id_array":[{"photo_id":"1377710458","filename":"file5"},{"photo_id":"1377710451","filename":"file2"},{"photo_id":"1377710456","filename":"file4"},{"photo_id":"1377710447","filename":"file1"},{"photo_id":"1377710440","filename":"file0"},{"photo_id":"1377710454","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377710447":["hashtag1","hashtag2"]},{"1377710456":["hashtag1","hashtag2"]},{"1377710458":["hashtag1","hashtag2"]},{"1377710440":["hashtag1","hashtag2"]},{"1377710454":["hashtag1","hashtag2"]},{"1377710451":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377710447, 1377710456, 1377710458, 1377710440, 1377710454, 1377710451)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.766671895980835 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:25:02.368516
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/09/image_18082025_10_09_54_9725.jpg', 2), ('/home/nano/Desktop/images/18082025/10/09/image_18082025_10_09_44_9723.jpg', 2), ('/home/nano/Desktop/images/18082025/10/09/image_18082025_10_09_35_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/10/09/image_18082025_10_09_25_10745.jpg', 2), ('/home/nano/Desktop/images/18082025/10/09/image_18082025_10_09_14_9709.jpg', 2), ('/home/nano/Desktop/images/18082025/10/08/image_18082025_10_09_05_9788.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/09/image_18082025_10_09_54_9725.jpg', '/home/nano/Desktop/images/18082025/10/09/image_18082025_10_09_44_9723.jpg', '/home/nano/Desktop/images/18082025/10/09/image_18082025_10_09_35_9644.jpg', '/home/nano/Desktop/images/18082025/10/09/image_18082025_10_09_25_10745.jpg', '/home/nano/Desktop/images/18082025/10/09/image_18082025_10_09_14_9709.jpg', '/home/nano/Desktop/images/18082025/10/08/image_18082025_10_09_05_9788.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/09/image_18082025_10_09_54_9725.jpg
/home/nano/Desktop/images/18082025/10/09/image_18082025_10_09_44_9723.jpg
/home/nano/Desktop/images/18082025/10/09/image_18082025_10_09_35_9644.jpg
/home/nano/Desktop/images/18082025/10/09/image_18082025_10_09_25_10745.jpg
/home/nano/Desktop/images/18082025/10/09/image_18082025_10_09_14_9709.jpg
/home/nano/Desktop/images/18082025/10/08/image_18082025_10_09_05_9788.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377710467","1377710472","1377710481","1377710475","1377710469","1377710478"],"photo_ids_order":["1377710467","1377710469","1377710472","1377710475","1377710478","1377710481"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f150fffcb15ee21bb0a23bb6def6ba8e.jpg","text":"TemporaryFile(/tmp/multipartBody1775162980916950807asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530764010,"filename":"image_18082025_10_09_54_9725.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/05721918a466e21a7cea3d31bf89e430.jpg","text":"TemporaryFile(/tmp/multipartBody5183087560227950917asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530764010,"filename":"image_18082025_10_09_35_9644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1e38ec3224124a9f175e45fff9cf04cc.jpg","text":"TemporaryFile(/tmp/multipartBody4396433836610589740asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530764010,"filename":"image_18082025_10_09_05_9788.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/41b7e382b3b971fedefacb594273a8f5.jpg","text":"TemporaryFile(/tmp/multipartBody1762116329447395812asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530764010,"filename":"image_18082025_10_09_25_10745.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1dfd9405f4057f39faf39f68e51a655b.jpg","text":"TemporaryFile(/tmp/multipartBody4302891466572198706asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530764010,"filename":"image_18082025_10_09_44_9723.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a70b873545c468b157b9fc5cb430697f.jpg","text":"TemporaryFile(/tmp/multipartBody5045564913056905866asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530764010,"filename":"image_18082025_10_09_14_9709.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377710472","file1":"1377710469","file0":"1377710467","file4":"1377710478","file5":"1377710481","file3":"1377710475"},"map_files_photo_id_array":[{"photo_id":"1377710481","filename":"file5"},{"photo_id":"1377710472","filename":"file2"},{"photo_id":"1377710478","filename":"file4"},{"photo_id":"1377710469","filename":"file1"},{"photo_id":"1377710467","filename":"file0"},{"photo_id":"1377710475","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377710467":["hashtag1","hashtag2"]},{"1377710472":["hashtag1","hashtag2"]},{"1377710481":["hashtag1","hashtag2"]},{"1377710475":["hashtag1","hashtag2"]},{"1377710469":["hashtag1","hashtag2"]},{"1377710478":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377710467, 1377710472, 1377710481, 1377710475, 1377710469, 1377710478)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.30431938171387 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:25:46.903137
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/25/image_18082025_17_25_45_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/17/25/image_18082025_17_25_34_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/17/25/image_18082025_17_25_25_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/17/25/image_18082025_17_25_15_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/17/24/image_18082025_17_25_04_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/17/24/image_18082025_17_24_55_9615.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/25/image_18082025_17_25_45_10627.jpg', '/home/nano/Desktop/images/18082025/17/25/image_18082025_17_25_34_9623.jpg', '/home/nano/Desktop/images/18082025/17/25/image_18082025_17_25_25_9611.jpg', '/home/nano/Desktop/images/18082025/17/25/image_18082025_17_25_15_10660.jpg', '/home/nano/Desktop/images/18082025/17/24/image_18082025_17_25_04_9621.jpg', '/home/nano/Desktop/images/18082025/17/24/image_18082025_17_24_55_9615.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/25/image_18082025_17_25_45_10627.jpg
/home/nano/Desktop/images/18082025/17/25/image_18082025_17_25_34_9623.jpg
/home/nano/Desktop/images/18082025/17/25/image_18082025_17_25_25_9611.jpg
/home/nano/Desktop/images/18082025/17/25/image_18082025_17_25_15_10660.jpg
/home/nano/Desktop/images/18082025/17/24/image_18082025_17_25_04_9621.jpg
/home/nano/Desktop/images/18082025/17/24/image_18082025_17_24_55_9615.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377710516","1377710525","1377710530","1377710535","1377710520","1377710514"],"photo_ids_order":["1377710514","1377710516","1377710520","1377710525","1377710530","1377710535"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/22b51dcf66fe2c0ab2602cc99ce37356.jpg","text":"TemporaryFile(/tmp/multipartBody8559575858756759789asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530808291,"filename":"image_18082025_17_25_34_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1594e925d0512cec5f978d237699039f.jpg","text":"TemporaryFile(/tmp/multipartBody4669600066048404566asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530808291,"filename":"image_18082025_17_25_15_10660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0121ba675fd8ab098f2424ec27232dbb.jpg","text":"TemporaryFile(/tmp/multipartBody3766562545188105369asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530808291,"filename":"image_18082025_17_25_04_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/84e5c28076803a9a077682436c0b0cbd.jpg","text":"TemporaryFile(/tmp/multipartBody6021995328717153926asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530808291,"filename":"image_18082025_17_24_55_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6561e56297b00d7c84832d8fa730299f.jpg","text":"TemporaryFile(/tmp/multipartBody6242733490576884914asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530808291,"filename":"image_18082025_17_25_25_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bcb4ad017397698bde1425ff7d49a5d5.jpg","text":"TemporaryFile(/tmp/multipartBody5545832794078070823asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530808291,"filename":"image_18082025_17_25_45_10627.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377710520","file1":"1377710516","file0":"1377710514","file4":"1377710530","file5":"1377710535","file3":"1377710525"},"map_files_photo_id_array":[{"photo_id":"1377710535","filename":"file5"},{"photo_id":"1377710520","filename":"file2"},{"photo_id":"1377710530","filename":"file4"},{"photo_id":"1377710516","filename":"file1"},{"photo_id":"1377710514","filename":"file0"},{"photo_id":"1377710525","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377710516":["hashtag1","hashtag2"]},{"1377710525":["hashtag1","hashtag2"]},{"1377710530":["hashtag1","hashtag2"]},{"1377710535":["hashtag1","hashtag2"]},{"1377710520":["hashtag1","hashtag2"]},{"1377710514":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377710516, 1377710525, 1377710530, 1377710535, 1377710520, 1377710514)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.83845663070679 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:26:32.012915
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/26/image_18082025_17_26_45_10681.jpg', 2), ('/home/nano/Desktop/images/18082025/17/26/image_18082025_17_26_34_9679.jpg', 2), ('/home/nano/Desktop/images/18082025/17/26/image_18082025_17_26_24_9666.jpg', 2), ('/home/nano/Desktop/images/18082025/17/26/image_18082025_17_26_15_9675.jpg', 2), ('/home/nano/Desktop/images/18082025/17/25/image_18082025_17_26_05_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/17/25/image_18082025_17_25_54_9621.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/26/image_18082025_17_26_45_10681.jpg', '/home/nano/Desktop/images/18082025/17/26/image_18082025_17_26_34_9679.jpg', '/home/nano/Desktop/images/18082025/17/26/image_18082025_17_26_24_9666.jpg', '/home/nano/Desktop/images/18082025/17/26/image_18082025_17_26_15_9675.jpg', '/home/nano/Desktop/images/18082025/17/25/image_18082025_17_26_05_10638.jpg', '/home/nano/Desktop/images/18082025/17/25/image_18082025_17_25_54_9621.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/26/image_18082025_17_26_45_10681.jpg
/home/nano/Desktop/images/18082025/17/26/image_18082025_17_26_34_9679.jpg
/home/nano/Desktop/images/18082025/17/26/image_18082025_17_26_24_9666.jpg
/home/nano/Desktop/images/18082025/17/26/image_18082025_17_26_15_9675.jpg
/home/nano/Desktop/images/18082025/17/25/image_18082025_17_26_05_10638.jpg
/home/nano/Desktop/images/18082025/17/25/image_18082025_17_25_54_9621.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377710573","1377710603","1377710568","1377710604","1377710582","1377710591"],"photo_ids_order":["1377710568","1377710573","1377710582","1377710591","1377710603","1377710604"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a552aa76133039c27d1a485c5c9906f9.jpg","text":"TemporaryFile(/tmp/multipartBody5264718360622955767asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530853574,"filename":"image_18082025_17_26_34_9679.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d2f536b63a0f528d6593404c90454aaa.jpg","text":"TemporaryFile(/tmp/multipartBody2459715810145207494asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530853574,"filename":"image_18082025_17_26_05_10638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7eb0edd2d1ce66d75c420af1d4c64b64.jpg","text":"TemporaryFile(/tmp/multipartBody1529023371198158121asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530853574,"filename":"image_18082025_17_26_45_10681.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fa660afe8c926f7db576620ff928dfeb.jpg","text":"TemporaryFile(/tmp/multipartBody8274450711335922947asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530853574,"filename":"image_18082025_17_25_54_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e74c3680656f1428f4664e695db40070.jpg","text":"TemporaryFile(/tmp/multipartBody6784708807099752577asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530853574,"filename":"image_18082025_17_26_24_9666.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/165638dabf571ea735f35651702c1ba7.jpg","text":"TemporaryFile(/tmp/multipartBody6305349978928862934asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530853574,"filename":"image_18082025_17_26_15_9675.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377710582","file1":"1377710573","file0":"1377710568","file4":"1377710603","file5":"1377710604","file3":"1377710591"},"map_files_photo_id_array":[{"photo_id":"1377710604","filename":"file5"},{"photo_id":"1377710582","filename":"file2"},{"photo_id":"1377710603","filename":"file4"},{"photo_id":"1377710573","filename":"file1"},{"photo_id":"1377710568","filename":"file0"},{"photo_id":"1377710591","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377710573":["hashtag1","hashtag2"]},{"1377710603":["hashtag1","hashtag2"]},{"1377710568":["hashtag1","hashtag2"]},{"1377710604":["hashtag1","hashtag2"]},{"1377710582":["hashtag1","hashtag2"]},{"1377710591":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377710573, 1377710603, 1377710568, 1377710604, 1377710582, 1377710591)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.75027084350586 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:27:17.091761
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/27/image_18082025_17_27_44_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/17/27/image_18082025_17_27_35_10615.jpg', 2), ('/home/nano/Desktop/images/18082025/17/27/image_18082025_17_27_24_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/17/27/image_18082025_17_27_15_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/17/26/image_18082025_17_27_05_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/17/26/image_18082025_17_26_54_9651.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/27/image_18082025_17_27_44_9615.jpg', '/home/nano/Desktop/images/18082025/17/27/image_18082025_17_27_35_10615.jpg', '/home/nano/Desktop/images/18082025/17/27/image_18082025_17_27_24_9613.jpg', '/home/nano/Desktop/images/18082025/17/27/image_18082025_17_27_15_9618.jpg', '/home/nano/Desktop/images/18082025/17/26/image_18082025_17_27_05_10624.jpg', '/home/nano/Desktop/images/18082025/17/26/image_18082025_17_26_54_9651.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/27/image_18082025_17_27_44_9615.jpg
/home/nano/Desktop/images/18082025/17/27/image_18082025_17_27_35_10615.jpg
/home/nano/Desktop/images/18082025/17/27/image_18082025_17_27_24_9613.jpg
/home/nano/Desktop/images/18082025/17/27/image_18082025_17_27_15_9618.jpg
/home/nano/Desktop/images/18082025/17/26/image_18082025_17_27_05_10624.jpg
/home/nano/Desktop/images/18082025/17/26/image_18082025_17_26_54_9651.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377710618","1377710629","1377710640","1377710622","1377710631","1377710625"],"photo_ids_order":["1377710618","1377710622","1377710625","1377710629","1377710631","1377710640"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/20d7398fc1f7fb945e955f254828ff3b.jpg","text":"TemporaryFile(/tmp/multipartBody7082259999725343101asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530898282,"filename":"image_18082025_17_27_44_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5aee6f0fcade80e85766744746fa71d2.jpg","text":"TemporaryFile(/tmp/multipartBody5968084140156893070asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530898282,"filename":"image_18082025_17_27_15_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/071832cda9ca65f1f574e5525f65ce9d.jpg","text":"TemporaryFile(/tmp/multipartBody6002170141424102574asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530898282,"filename":"image_18082025_17_26_54_9651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b4cd49cda98e614a8c55994aeff5d54d.jpg","text":"TemporaryFile(/tmp/multipartBody1341951296002737036asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530898282,"filename":"image_18082025_17_27_35_10615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/64cc82346828c7c0f9bc0a97324dbd40.jpg","text":"TemporaryFile(/tmp/multipartBody4870557808936827504asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530898282,"filename":"image_18082025_17_27_05_10624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/add424c9e421e8efa504e7ac65bbc519.jpg","text":"TemporaryFile(/tmp/multipartBody665861099536779747asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530898282,"filename":"image_18082025_17_27_24_9613.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377710625","file1":"1377710622","file0":"1377710618","file4":"1377710631","file5":"1377710640","file3":"1377710629"},"map_files_photo_id_array":[{"photo_id":"1377710640","filename":"file5"},{"photo_id":"1377710625","filename":"file2"},{"photo_id":"1377710631","filename":"file4"},{"photo_id":"1377710622","filename":"file1"},{"photo_id":"1377710618","filename":"file0"},{"photo_id":"1377710629","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377710618":["hashtag1","hashtag2"]},{"1377710629":["hashtag1","hashtag2"]},{"1377710640":["hashtag1","hashtag2"]},{"1377710622":["hashtag1","hashtag2"]},{"1377710631":["hashtag1","hashtag2"]},{"1377710625":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377710618, 1377710629, 1377710640, 1377710622, 1377710631, 1377710625)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.60345268249512 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:28:02.743011
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/08/image_18082025_10_08_55_9777.jpg', 2), ('/home/nano/Desktop/images/18082025/10/08/image_18082025_10_08_45_10788.jpg', 2), ('/home/nano/Desktop/images/18082025/10/08/image_18082025_10_08_34_9778.jpg', 2), ('/home/nano/Desktop/images/18082025/10/08/image_18082025_10_08_24_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/10/08/image_18082025_10_08_15_9732.jpg', 2), ('/home/nano/Desktop/images/18082025/10/07/image_18082025_10_08_05_10674.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/08/image_18082025_10_08_55_9777.jpg', '/home/nano/Desktop/images/18082025/10/08/image_18082025_10_08_45_10788.jpg', '/home/nano/Desktop/images/18082025/10/08/image_18082025_10_08_34_9778.jpg', '/home/nano/Desktop/images/18082025/10/08/image_18082025_10_08_24_9648.jpg', '/home/nano/Desktop/images/18082025/10/08/image_18082025_10_08_15_9732.jpg', '/home/nano/Desktop/images/18082025/10/07/image_18082025_10_08_05_10674.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/08/image_18082025_10_08_55_9777.jpg
/home/nano/Desktop/images/18082025/10/08/image_18082025_10_08_45_10788.jpg
/home/nano/Desktop/images/18082025/10/08/image_18082025_10_08_34_9778.jpg
/home/nano/Desktop/images/18082025/10/08/image_18082025_10_08_24_9648.jpg
/home/nano/Desktop/images/18082025/10/08/image_18082025_10_08_15_9732.jpg
/home/nano/Desktop/images/18082025/10/07/image_18082025_10_08_05_10674.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377710675","1377710677","1377710670","1377710673","1377710667","1377710663"],"photo_ids_order":["1377710663","1377710667","1377710670","1377710673","1377710675","1377710677"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/58c8ef10ebbb56afc158caf2fe7ef867.jpg","text":"TemporaryFile(/tmp/multipartBody1329354178900980030asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530944635,"filename":"image_18082025_10_08_15_9732.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b63e643d0fbceca353d7b31be979f937.jpg","text":"TemporaryFile(/tmp/multipartBody2656987861892390834asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530944635,"filename":"image_18082025_10_08_05_10674.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3d8e0f91dcab15fa7740fd0c2676789a.jpg","text":"TemporaryFile(/tmp/multipartBody3080496490983833855asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530944635,"filename":"image_18082025_10_08_34_9778.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d2392040ce5641d9570ece24ee31e096.jpg","text":"TemporaryFile(/tmp/multipartBody2272130193931072255asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530944635,"filename":"image_18082025_10_08_24_9648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3cb1bfa65da320ce69b6792f03c3a4d2.jpg","text":"TemporaryFile(/tmp/multipartBody6445545031964152842asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530944635,"filename":"image_18082025_10_08_45_10788.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c97f66021951373581ed4f87739f3aef.jpg","text":"TemporaryFile(/tmp/multipartBody1704124068434399034asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530944635,"filename":"image_18082025_10_08_55_9777.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377710670","file1":"1377710667","file0":"1377710663","file4":"1377710675","file5":"1377710677","file3":"1377710673"},"map_files_photo_id_array":[{"photo_id":"1377710677","filename":"file5"},{"photo_id":"1377710670","filename":"file2"},{"photo_id":"1377710675","filename":"file4"},{"photo_id":"1377710667","filename":"file1"},{"photo_id":"1377710663","filename":"file0"},{"photo_id":"1377710673","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377710675":["hashtag1","hashtag2"]},{"1377710677":["hashtag1","hashtag2"]},{"1377710670":["hashtag1","hashtag2"]},{"1377710673":["hashtag1","hashtag2"]},{"1377710667":["hashtag1","hashtag2"]},{"1377710663":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377710675, 1377710677, 1377710670, 1377710673, 1377710667, 1377710663)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.05290365219116 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:28:47.202542
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/28/image_18082025_17_28_44_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/17/28/image_18082025_17_28_35_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/17/28/image_18082025_17_28_25_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/17/28/image_18082025_17_28_14_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/17/27/image_18082025_17_28_05_10634.jpg', 2), ('/home/nano/Desktop/images/18082025/17/27/image_18082025_17_27_54_9608.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/28/image_18082025_17_28_44_9611.jpg', '/home/nano/Desktop/images/18082025/17/28/image_18082025_17_28_35_9609.jpg', '/home/nano/Desktop/images/18082025/17/28/image_18082025_17_28_25_10627.jpg', '/home/nano/Desktop/images/18082025/17/28/image_18082025_17_28_14_9641.jpg', '/home/nano/Desktop/images/18082025/17/27/image_18082025_17_28_05_10634.jpg', '/home/nano/Desktop/images/18082025/17/27/image_18082025_17_27_54_9608.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/28/image_18082025_17_28_44_9611.jpg
/home/nano/Desktop/images/18082025/17/28/image_18082025_17_28_35_9609.jpg
/home/nano/Desktop/images/18082025/17/28/image_18082025_17_28_25_10627.jpg
/home/nano/Desktop/images/18082025/17/28/image_18082025_17_28_14_9641.jpg
/home/nano/Desktop/images/18082025/17/27/image_18082025_17_28_05_10634.jpg
/home/nano/Desktop/images/18082025/17/27/image_18082025_17_27_54_9608.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377710693","1377710687","1377710689","1377710683","1377710688","1377710690"],"photo_ids_order":["1377710683","1377710687","1377710688","1377710689","1377710690","1377710693"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b4a5e976a071c087639e0ac27db92954.jpg","text":"TemporaryFile(/tmp/multipartBody6927574021157061004asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530988431,"filename":"image_18082025_17_27_54_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/792523f7dc2d8903980a114a39e2a033.jpg","text":"TemporaryFile(/tmp/multipartBody7517638709302175291asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530988431,"filename":"image_18082025_17_28_35_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/60d632c15594ec76e42197c6cead0e8b.jpg","text":"TemporaryFile(/tmp/multipartBody8006262646779190603asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530988431,"filename":"image_18082025_17_28_14_9641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dcb2366b9b084a24a5fac6c1b93597b6.jpg","text":"TemporaryFile(/tmp/multipartBody5834841510706921963asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530988431,"filename":"image_18082025_17_28_44_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a758bd4990e7b2283f96dec3b4029e0b.jpg","text":"TemporaryFile(/tmp/multipartBody6726554415691759459asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530988431,"filename":"image_18082025_17_28_25_10627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/91d160293280a6b55600f0908b9058bf.jpg","text":"TemporaryFile(/tmp/multipartBody8064070952762229822asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755530988431,"filename":"image_18082025_17_28_05_10634.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377710688","file1":"1377710687","file0":"1377710683","file4":"1377710690","file5":"1377710693","file3":"1377710689"},"map_files_photo_id_array":[{"photo_id":"1377710693","filename":"file5"},{"photo_id":"1377710688","filename":"file2"},{"photo_id":"1377710690","filename":"file4"},{"photo_id":"1377710687","filename":"file1"},{"photo_id":"1377710683","filename":"file0"},{"photo_id":"1377710689","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377710693":["hashtag1","hashtag2"]},{"1377710687":["hashtag1","hashtag2"]},{"1377710689":["hashtag1","hashtag2"]},{"1377710683":["hashtag1","hashtag2"]},{"1377710688":["hashtag1","hashtag2"]},{"1377710690":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377710693, 1377710687, 1377710689, 1377710683, 1377710688, 1377710690)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.47929620742798 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:29:32.360130
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/29/image_18082025_17_29_44_9720.jpg', 2), ('/home/nano/Desktop/images/18082025/17/29/image_18082025_17_29_34_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/17/29/image_18082025_17_29_25_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/17/29/image_18082025_17_29_14_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/17/28/image_18082025_17_29_04_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/17/28/image_18082025_17_28_55_10617.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/29/image_18082025_17_29_44_9720.jpg', '/home/nano/Desktop/images/18082025/17/29/image_18082025_17_29_34_9656.jpg', '/home/nano/Desktop/images/18082025/17/29/image_18082025_17_29_25_10631.jpg', '/home/nano/Desktop/images/18082025/17/29/image_18082025_17_29_14_9641.jpg', '/home/nano/Desktop/images/18082025/17/28/image_18082025_17_29_04_9620.jpg', '/home/nano/Desktop/images/18082025/17/28/image_18082025_17_28_55_10617.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/29/image_18082025_17_29_44_9720.jpg
/home/nano/Desktop/images/18082025/17/29/image_18082025_17_29_34_9656.jpg
/home/nano/Desktop/images/18082025/17/29/image_18082025_17_29_25_10631.jpg
/home/nano/Desktop/images/18082025/17/29/image_18082025_17_29_14_9641.jpg
/home/nano/Desktop/images/18082025/17/28/image_18082025_17_29_04_9620.jpg
/home/nano/Desktop/images/18082025/17/28/image_18082025_17_28_55_10617.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377710717","1377710702","1377710704","1377710716","1377710701","1377710700"],"photo_ids_order":["1377710700","1377710701","1377710702","1377710704","1377710716","1377710717"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/40c6bdcf4cd3c187f3d5206f6f2b84f0.jpg","text":"TemporaryFile(/tmp/multipartBody2206714156307294893asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531033732,"filename":"image_18082025_17_28_55_10617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a502f8f39b1b8c84e1d8366e476d3d3d.jpg","text":"TemporaryFile(/tmp/multipartBody8145423139828625622asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531033732,"filename":"image_18082025_17_29_25_10631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1aff850b4ef1afc955ffada5601e19d4.jpg","text":"TemporaryFile(/tmp/multipartBody2492100341257685506asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531033732,"filename":"image_18082025_17_29_14_9641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cb7c0a39d77df9efa89b12ba5b3d1b9b.jpg","text":"TemporaryFile(/tmp/multipartBody4413897850569017599asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531033732,"filename":"image_18082025_17_29_04_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5cb63f8063594c0e2f1e363afbf20193.jpg","text":"TemporaryFile(/tmp/multipartBody36270051302102624asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531033732,"filename":"image_18082025_17_29_34_9656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ca4aed49a7f120449bf7f5480e56c31a.jpg","text":"TemporaryFile(/tmp/multipartBody4007861224812395304asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531033732,"filename":"image_18082025_17_29_44_9720.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377710702","file1":"1377710701","file0":"1377710700","file4":"1377710716","file5":"1377710717","file3":"1377710704"},"map_files_photo_id_array":[{"photo_id":"1377710717","filename":"file5"},{"photo_id":"1377710702","filename":"file2"},{"photo_id":"1377710716","filename":"file4"},{"photo_id":"1377710701","filename":"file1"},{"photo_id":"1377710700","filename":"file0"},{"photo_id":"1377710704","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377710717":["hashtag1","hashtag2"]},{"1377710702":["hashtag1","hashtag2"]},{"1377710704":["hashtag1","hashtag2"]},{"1377710716":["hashtag1","hashtag2"]},{"1377710701":["hashtag1","hashtag2"]},{"1377710700":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377710717, 1377710702, 1377710704, 1377710716, 1377710701, 1377710700)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.03690195083618 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:30:17.573647
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/30/image_18082025_17_30_45_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/17/30/image_18082025_17_30_34_9598.jpg', 2), ('/home/nano/Desktop/images/18082025/17/30/image_18082025_17_30_25_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/17/30/image_18082025_17_30_15_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/17/29/image_18082025_17_30_04_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/17/29/image_18082025_17_29_55_10635.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/30/image_18082025_17_30_45_10623.jpg', '/home/nano/Desktop/images/18082025/17/30/image_18082025_17_30_34_9598.jpg', '/home/nano/Desktop/images/18082025/17/30/image_18082025_17_30_25_9652.jpg', '/home/nano/Desktop/images/18082025/17/30/image_18082025_17_30_15_10639.jpg', '/home/nano/Desktop/images/18082025/17/29/image_18082025_17_30_04_9644.jpg', '/home/nano/Desktop/images/18082025/17/29/image_18082025_17_29_55_10635.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/30/image_18082025_17_30_45_10623.jpg
/home/nano/Desktop/images/18082025/17/30/image_18082025_17_30_34_9598.jpg
/home/nano/Desktop/images/18082025/17/30/image_18082025_17_30_25_9652.jpg
/home/nano/Desktop/images/18082025/17/30/image_18082025_17_30_15_10639.jpg
/home/nano/Desktop/images/18082025/17/29/image_18082025_17_30_04_9644.jpg
/home/nano/Desktop/images/18082025/17/29/image_18082025_17_29_55_10635.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377710732","1377710729","1377710731","1377710725","1377710734","1377710727"],"photo_ids_order":["1377710725","1377710727","1377710729","1377710731","1377710732","1377710734"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/11440a77e2342410541f74c3d2ee1abe.jpg","text":"TemporaryFile(/tmp/multipartBody5044794140964908860asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531078984,"filename":"image_18082025_17_30_04_9644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ac396a780f58e5f140c55023d5138ba5.jpg","text":"TemporaryFile(/tmp/multipartBody4355796913362312147asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531078984,"filename":"image_18082025_17_30_25_9652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c0ce79243f418403727b58712cfef2e8.jpg","text":"TemporaryFile(/tmp/multipartBody5310977557513807646asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531078984,"filename":"image_18082025_17_30_15_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b9718495bb3ecd96f7b6113686b3ae05.jpg","text":"TemporaryFile(/tmp/multipartBody1076549470390461457asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531078984,"filename":"image_18082025_17_30_45_10623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/539121b87f2297ae62717d14be1d92a4.jpg","text":"TemporaryFile(/tmp/multipartBody211368929049716013asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531078984,"filename":"image_18082025_17_29_55_10635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1c106b96133925827720dde6df80b441.jpg","text":"TemporaryFile(/tmp/multipartBody1523125745180691083asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531078984,"filename":"image_18082025_17_30_34_9598.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377710729","file1":"1377710727","file0":"1377710725","file4":"1377710732","file5":"1377710734","file3":"1377710731"},"map_files_photo_id_array":[{"photo_id":"1377710734","filename":"file5"},{"photo_id":"1377710729","filename":"file2"},{"photo_id":"1377710732","filename":"file4"},{"photo_id":"1377710727","filename":"file1"},{"photo_id":"1377710725","filename":"file0"},{"photo_id":"1377710731","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377710732":["hashtag1","hashtag2"]},{"1377710729":["hashtag1","hashtag2"]},{"1377710731":["hashtag1","hashtag2"]},{"1377710725":["hashtag1","hashtag2"]},{"1377710734":["hashtag1","hashtag2"]},{"1377710727":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377710732, 1377710729, 1377710731, 1377710725, 1377710734, 1377710727)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.863054275512695 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:31:03.311412
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/07/image_18082025_10_07_54_9685.jpg', 2), ('/home/nano/Desktop/images/18082025/10/07/image_18082025_10_07_45_9817.jpg', 2), ('/home/nano/Desktop/images/18082025/10/07/image_18082025_10_07_35_10717.jpg', 2), ('/home/nano/Desktop/images/18082025/10/07/image_18082025_10_07_24_9775.jpg', 2), ('/home/nano/Desktop/images/18082025/10/07/image_18082025_10_07_14_9844.jpg', 2), ('/home/nano/Desktop/images/18082025/10/06/image_18082025_10_07_05_9802.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/07/image_18082025_10_07_54_9685.jpg', '/home/nano/Desktop/images/18082025/10/07/image_18082025_10_07_45_9817.jpg', '/home/nano/Desktop/images/18082025/10/07/image_18082025_10_07_35_10717.jpg', '/home/nano/Desktop/images/18082025/10/07/image_18082025_10_07_24_9775.jpg', '/home/nano/Desktop/images/18082025/10/07/image_18082025_10_07_14_9844.jpg', '/home/nano/Desktop/images/18082025/10/06/image_18082025_10_07_05_9802.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/07/image_18082025_10_07_54_9685.jpg
/home/nano/Desktop/images/18082025/10/07/image_18082025_10_07_45_9817.jpg
/home/nano/Desktop/images/18082025/10/07/image_18082025_10_07_35_10717.jpg
/home/nano/Desktop/images/18082025/10/07/image_18082025_10_07_24_9775.jpg
/home/nano/Desktop/images/18082025/10/07/image_18082025_10_07_14_9844.jpg
/home/nano/Desktop/images/18082025/10/06/image_18082025_10_07_05_9802.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377710738","1377710747","1377710773","1377710755","1377710770","1377710742"],"photo_ids_order":["1377710738","1377710742","1377710747","1377710755","1377710770","1377710773"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ca4601b1deb31d459802f9de34039945.jpg","text":"TemporaryFile(/tmp/multipartBody2786029123434384775asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531125020,"filename":"image_18082025_10_07_54_9685.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e1c3c7a5c588c0b49593ed55d3b98fc5.jpg","text":"TemporaryFile(/tmp/multipartBody568339360978551301asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531125020,"filename":"image_18082025_10_07_35_10717.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a38f2beaf86cd5e1c6419b1f32ba8345.jpg","text":"TemporaryFile(/tmp/multipartBody3401281090762139676asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531125020,"filename":"image_18082025_10_07_05_9802.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/870d874c6408677e62ee912fb6eef50d.jpg","text":"TemporaryFile(/tmp/multipartBody7305978649468264136asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531125020,"filename":"image_18082025_10_07_24_9775.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4366b91a7a6265fd9978bf3c573bcefd.jpg","text":"TemporaryFile(/tmp/multipartBody769783110846808878asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531125020,"filename":"image_18082025_10_07_14_9844.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f1989449d2c604e4e4cb0bcd30c1bd4f.jpg","text":"TemporaryFile(/tmp/multipartBody8634572435047594485asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531125020,"filename":"image_18082025_10_07_45_9817.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377710747","file1":"1377710742","file0":"1377710738","file4":"1377710770","file5":"1377710773","file3":"1377710755"},"map_files_photo_id_array":[{"photo_id":"1377710773","filename":"file5"},{"photo_id":"1377710747","filename":"file2"},{"photo_id":"1377710770","filename":"file4"},{"photo_id":"1377710742","filename":"file1"},{"photo_id":"1377710738","filename":"file0"},{"photo_id":"1377710755","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377710738":["hashtag1","hashtag2"]},{"1377710747":["hashtag1","hashtag2"]},{"1377710773":["hashtag1","hashtag2"]},{"1377710755":["hashtag1","hashtag2"]},{"1377710770":["hashtag1","hashtag2"]},{"1377710742":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377710738, 1377710747, 1377710773, 1377710755, 1377710770, 1377710742)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.18952703475952 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:31:47.627096
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/31/image_18082025_17_31_45_10616.jpg', 2), ('/home/nano/Desktop/images/18082025/17/31/image_18082025_17_31_34_9605.jpg', 2), ('/home/nano/Desktop/images/18082025/17/31/image_18082025_17_31_24_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/17/31/image_18082025_17_31_15_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/17/30/image_18082025_17_31_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/17/30/image_18082025_17_30_55_9623.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/31/image_18082025_17_31_45_10616.jpg', '/home/nano/Desktop/images/18082025/17/31/image_18082025_17_31_34_9605.jpg', '/home/nano/Desktop/images/18082025/17/31/image_18082025_17_31_24_9607.jpg', '/home/nano/Desktop/images/18082025/17/31/image_18082025_17_31_15_10666.jpg', '/home/nano/Desktop/images/18082025/17/30/image_18082025_17_31_04_9655.jpg', '/home/nano/Desktop/images/18082025/17/30/image_18082025_17_30_55_9623.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/31/image_18082025_17_31_45_10616.jpg
/home/nano/Desktop/images/18082025/17/31/image_18082025_17_31_34_9605.jpg
/home/nano/Desktop/images/18082025/17/31/image_18082025_17_31_24_9607.jpg
/home/nano/Desktop/images/18082025/17/31/image_18082025_17_31_15_10666.jpg
/home/nano/Desktop/images/18082025/17/30/image_18082025_17_31_04_9655.jpg
/home/nano/Desktop/images/18082025/17/30/image_18082025_17_30_55_9623.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377710843","1377710837","1377710846","1377710840","1377710834","1377710847"],"photo_ids_order":["1377710834","1377710837","1377710840","1377710843","1377710846","1377710847"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/07e6192445fe87cedfb75cb8455943b2.jpg","text":"TemporaryFile(/tmp/multipartBody992029214221200217asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531168962,"filename":"image_18082025_17_31_15_10666.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/02cd8737687509f318fcb358bd9fddf7.jpg","text":"TemporaryFile(/tmp/multipartBody6149850817156334767asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531168962,"filename":"image_18082025_17_31_34_9605.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b0e6ea2fa6e5331247d7cb01363b0e09.jpg","text":"TemporaryFile(/tmp/multipartBody5059462492313995322asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531168962,"filename":"image_18082025_17_31_04_9655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1cfec12cf8fb10a5f897832b5ff79305.jpg","text":"TemporaryFile(/tmp/multipartBody6731066147486521447asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531168962,"filename":"image_18082025_17_31_24_9607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a19b3a996a83318da9be6825bc1d9dce.jpg","text":"TemporaryFile(/tmp/multipartBody8525008008515377641asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531168962,"filename":"image_18082025_17_31_45_10616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d5104eefead6cdcdac41e82b7e73b6a6.jpg","text":"TemporaryFile(/tmp/multipartBody2137963362088883385asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531168962,"filename":"image_18082025_17_30_55_9623.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377710840","file1":"1377710837","file0":"1377710834","file4":"1377710846","file5":"1377710847","file3":"1377710843"},"map_files_photo_id_array":[{"photo_id":"1377710847","filename":"file5"},{"photo_id":"1377710840","filename":"file2"},{"photo_id":"1377710846","filename":"file4"},{"photo_id":"1377710837","filename":"file1"},{"photo_id":"1377710834","filename":"file0"},{"photo_id":"1377710843","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377710843":["hashtag1","hashtag2"]},{"1377710837":["hashtag1","hashtag2"]},{"1377710846":["hashtag1","hashtag2"]},{"1377710840":["hashtag1","hashtag2"]},{"1377710834":["hashtag1","hashtag2"]},{"1377710847":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377710843, 1377710837, 1377710846, 1377710840, 1377710834, 1377710847)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.15584421157837 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:32:32.714680
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/32/image_18082025_17_32_44_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/17/32/image_18082025_17_32_35_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/17/32/image_18082025_17_32_24_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/17/32/image_18082025_17_32_15_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/17/31/image_18082025_17_32_05_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/17/31/image_18082025_17_31_54_9598.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/32/image_18082025_17_32_44_9607.jpg', '/home/nano/Desktop/images/18082025/17/32/image_18082025_17_32_35_10618.jpg', '/home/nano/Desktop/images/18082025/17/32/image_18082025_17_32_24_9606.jpg', '/home/nano/Desktop/images/18082025/17/32/image_18082025_17_32_15_9630.jpg', '/home/nano/Desktop/images/18082025/17/31/image_18082025_17_32_05_10625.jpg', '/home/nano/Desktop/images/18082025/17/31/image_18082025_17_31_54_9598.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/32/image_18082025_17_32_44_9607.jpg
/home/nano/Desktop/images/18082025/17/32/image_18082025_17_32_35_10618.jpg
/home/nano/Desktop/images/18082025/17/32/image_18082025_17_32_24_9606.jpg
/home/nano/Desktop/images/18082025/17/32/image_18082025_17_32_15_9630.jpg
/home/nano/Desktop/images/18082025/17/31/image_18082025_17_32_05_10625.jpg
/home/nano/Desktop/images/18082025/17/31/image_18082025_17_31_54_9598.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377710867","1377710863","1377710865","1377710859","1377710853","1377710856"],"photo_ids_order":["1377710853","1377710856","1377710859","1377710863","1377710865","1377710867"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/56ec3fd25bf9bd96792624ce92c7c836.jpg","text":"TemporaryFile(/tmp/multipartBody6149083615403412458asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531214170,"filename":"image_18082025_17_31_54_9598.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c998d5b3abc0049a29d70bd0ee6da345.jpg","text":"TemporaryFile(/tmp/multipartBody3183600963753943627asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531214170,"filename":"image_18082025_17_32_15_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d569dc709a0b325af40e64182eb7997f.jpg","text":"TemporaryFile(/tmp/multipartBody6297694370966931874asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531214170,"filename":"image_18082025_17_32_05_10625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ef1c5bb2d2e5cd98d6b10d1145ec4eeb.jpg","text":"TemporaryFile(/tmp/multipartBody5011872189501328547asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531214170,"filename":"image_18082025_17_32_24_9606.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a11e1c76fd5cc734f8c4e938cc7c0f39.jpg","text":"TemporaryFile(/tmp/multipartBody1225005875404861119asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531214170,"filename":"image_18082025_17_32_44_9607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/aec58f0dbde4eb4b1030f761777ae4cd.jpg","text":"TemporaryFile(/tmp/multipartBody2874572136372051966asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531214170,"filename":"image_18082025_17_32_35_10618.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377710859","file1":"1377710856","file0":"1377710853","file4":"1377710865","file5":"1377710867","file3":"1377710863"},"map_files_photo_id_array":[{"photo_id":"1377710867","filename":"file5"},{"photo_id":"1377710859","filename":"file2"},{"photo_id":"1377710865","filename":"file4"},{"photo_id":"1377710856","filename":"file1"},{"photo_id":"1377710853","filename":"file0"},{"photo_id":"1377710863","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377710867":["hashtag1","hashtag2"]},{"1377710863":["hashtag1","hashtag2"]},{"1377710865":["hashtag1","hashtag2"]},{"1377710859":["hashtag1","hashtag2"]},{"1377710853":["hashtag1","hashtag2"]},{"1377710856":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377710867, 1377710863, 1377710865, 1377710859, 1377710853, 1377710856)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.071409702301025 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:33:16.841230
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/33/image_18082025_17_33_44_9591.jpg', 2), ('/home/nano/Desktop/images/18082025/17/33/image_18082025_17_33_35_9796.jpg', 2), ('/home/nano/Desktop/images/18082025/17/33/image_18082025_17_33_25_10595.jpg', 2), ('/home/nano/Desktop/images/18082025/17/33/image_18082025_17_33_14_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/17/32/image_18082025_17_33_05_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/17/32/image_18082025_17_32_55_10656.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/33/image_18082025_17_33_44_9591.jpg', '/home/nano/Desktop/images/18082025/17/33/image_18082025_17_33_35_9796.jpg', '/home/nano/Desktop/images/18082025/17/33/image_18082025_17_33_25_10595.jpg', '/home/nano/Desktop/images/18082025/17/33/image_18082025_17_33_14_9651.jpg', '/home/nano/Desktop/images/18082025/17/32/image_18082025_17_33_05_9641.jpg', '/home/nano/Desktop/images/18082025/17/32/image_18082025_17_32_55_10656.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/33/image_18082025_17_33_44_9591.jpg
/home/nano/Desktop/images/18082025/17/33/image_18082025_17_33_35_9796.jpg
/home/nano/Desktop/images/18082025/17/33/image_18082025_17_33_25_10595.jpg
/home/nano/Desktop/images/18082025/17/33/image_18082025_17_33_14_9651.jpg
/home/nano/Desktop/images/18082025/17/32/image_18082025_17_33_05_9641.jpg
/home/nano/Desktop/images/18082025/17/32/image_18082025_17_32_55_10656.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377710890","1377710878","1377710880","1377710874","1377710873","1377710876"],"photo_ids_order":["1377710873","1377710874","1377710876","1377710878","1377710880","1377710890"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1f20a2bca78e995039e539c69fc72550.jpg","text":"TemporaryFile(/tmp/multipartBody8356694713561820777asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531258149,"filename":"image_18082025_17_32_55_10656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e141c125aa1b6fd86e3d54e6feaac10e.jpg","text":"TemporaryFile(/tmp/multipartBody7023524685280212825asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531258149,"filename":"image_18082025_17_33_14_9651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d4dba570a9c400ac7eb2ec1304a31ac5.jpg","text":"TemporaryFile(/tmp/multipartBody7123895370213130065asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531258149,"filename":"image_18082025_17_33_05_9641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/725bdf052458de6a84238c775352c3bd.jpg","text":"TemporaryFile(/tmp/multipartBody2655679074429415999asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531258149,"filename":"image_18082025_17_33_35_9796.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/95bf6cb923e72414e5ffba583b9967b1.jpg","text":"TemporaryFile(/tmp/multipartBody8525079856727072524asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531258149,"filename":"image_18082025_17_33_44_9591.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/49173d1585a3015cf229fa5ee1b2f482.jpg","text":"TemporaryFile(/tmp/multipartBody5302821582665457724asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531258149,"filename":"image_18082025_17_33_25_10595.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377710876","file1":"1377710874","file0":"1377710873","file4":"1377710880","file5":"1377710890","file3":"1377710878"},"map_files_photo_id_array":[{"photo_id":"1377710890","filename":"file5"},{"photo_id":"1377710876","filename":"file2"},{"photo_id":"1377710880","filename":"file4"},{"photo_id":"1377710874","filename":"file1"},{"photo_id":"1377710873","filename":"file0"},{"photo_id":"1377710878","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377710890":["hashtag1","hashtag2"]},{"1377710878":["hashtag1","hashtag2"]},{"1377710880":["hashtag1","hashtag2"]},{"1377710874":["hashtag1","hashtag2"]},{"1377710873":["hashtag1","hashtag2"]},{"1377710876":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377710890, 1377710878, 1377710880, 1377710874, 1377710873, 1377710876)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.10273098945618 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:34:02.733976
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/06/image_18082025_10_06_55_9772.jpg', 2), ('/home/nano/Desktop/images/18082025/10/06/image_18082025_10_06_45_10695.jpg', 2), ('/home/nano/Desktop/images/18082025/10/06/image_18082025_10_06_34_9886.jpg', 2), ('/home/nano/Desktop/images/18082025/10/06/image_18082025_10_06_24_9858.jpg', 2), ('/home/nano/Desktop/images/18082025/10/06/image_18082025_10_06_14_9914.jpg', 2), ('/home/nano/Desktop/images/18082025/10/05/image_18082025_10_06_05_9726.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/06/image_18082025_10_06_55_9772.jpg', '/home/nano/Desktop/images/18082025/10/06/image_18082025_10_06_45_10695.jpg', '/home/nano/Desktop/images/18082025/10/06/image_18082025_10_06_34_9886.jpg', '/home/nano/Desktop/images/18082025/10/06/image_18082025_10_06_24_9858.jpg', '/home/nano/Desktop/images/18082025/10/06/image_18082025_10_06_14_9914.jpg', '/home/nano/Desktop/images/18082025/10/05/image_18082025_10_06_05_9726.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/06/image_18082025_10_06_55_9772.jpg
/home/nano/Desktop/images/18082025/10/06/image_18082025_10_06_45_10695.jpg
/home/nano/Desktop/images/18082025/10/06/image_18082025_10_06_34_9886.jpg
/home/nano/Desktop/images/18082025/10/06/image_18082025_10_06_24_9858.jpg
/home/nano/Desktop/images/18082025/10/06/image_18082025_10_06_14_9914.jpg
/home/nano/Desktop/images/18082025/10/05/image_18082025_10_06_05_9726.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377710924","1377710918","1377710921","1377710929","1377710923","1377710926"],"photo_ids_order":["1377710918","1377710921","1377710923","1377710924","1377710926","1377710929"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2eb107e42c5a7348f26ade66848f393c.jpg","text":"TemporaryFile(/tmp/multipartBody6145758814137329880asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531304419,"filename":"image_18082025_10_06_24_9858.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f458203408a6673f51608414c943a077.jpg","text":"TemporaryFile(/tmp/multipartBody6609071644805449604asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531304419,"filename":"image_18082025_10_06_55_9772.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/092654f2b2f4aaff5f764d61ab6d5e27.jpg","text":"TemporaryFile(/tmp/multipartBody5171492755803637786asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531304419,"filename":"image_18082025_10_06_45_10695.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e018bf014e5c79cf9d0a7e7052d6d108.jpg","text":"TemporaryFile(/tmp/multipartBody1479199629814965022asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531304419,"filename":"image_18082025_10_06_05_9726.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b82ecef39c2fb25a221edd7e69637a69.jpg","text":"TemporaryFile(/tmp/multipartBody7224236672993184026asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531304419,"filename":"image_18082025_10_06_34_9886.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/64cae5d565e29225bfceea1f35a566ab.jpg","text":"TemporaryFile(/tmp/multipartBody1966407424111537560asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531304419,"filename":"image_18082025_10_06_14_9914.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377710923","file1":"1377710921","file0":"1377710918","file4":"1377710926","file5":"1377710929","file3":"1377710924"},"map_files_photo_id_array":[{"photo_id":"1377710929","filename":"file5"},{"photo_id":"1377710923","filename":"file2"},{"photo_id":"1377710926","filename":"file4"},{"photo_id":"1377710921","filename":"file1"},{"photo_id":"1377710918","filename":"file0"},{"photo_id":"1377710924","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377710924":["hashtag1","hashtag2"]},{"1377710918":["hashtag1","hashtag2"]},{"1377710921":["hashtag1","hashtag2"]},{"1377710929":["hashtag1","hashtag2"]},{"1377710923":["hashtag1","hashtag2"]},{"1377710926":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377710924, 1377710918, 1377710921, 1377710929, 1377710923, 1377710926)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.365965127944946 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:34:46.879002
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/34/image_18082025_17_34_45_9693.jpg', 2), ('/home/nano/Desktop/images/18082025/17/34/image_18082025_17_34_35_10702.jpg', 2), ('/home/nano/Desktop/images/18082025/17/34/image_18082025_17_34_24_9815.jpg', 2), ('/home/nano/Desktop/images/18082025/17/34/image_18082025_17_34_14_9743.jpg', 2), ('/home/nano/Desktop/images/18082025/17/33/image_18082025_17_34_05_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/17/33/image_18082025_17_33_55_10627.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/34/image_18082025_17_34_45_9693.jpg', '/home/nano/Desktop/images/18082025/17/34/image_18082025_17_34_35_10702.jpg', '/home/nano/Desktop/images/18082025/17/34/image_18082025_17_34_24_9815.jpg', '/home/nano/Desktop/images/18082025/17/34/image_18082025_17_34_14_9743.jpg', '/home/nano/Desktop/images/18082025/17/33/image_18082025_17_34_05_9629.jpg', '/home/nano/Desktop/images/18082025/17/33/image_18082025_17_33_55_10627.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/34/image_18082025_17_34_45_9693.jpg
/home/nano/Desktop/images/18082025/17/34/image_18082025_17_34_35_10702.jpg
/home/nano/Desktop/images/18082025/17/34/image_18082025_17_34_24_9815.jpg
/home/nano/Desktop/images/18082025/17/34/image_18082025_17_34_14_9743.jpg
/home/nano/Desktop/images/18082025/17/33/image_18082025_17_34_05_9629.jpg
/home/nano/Desktop/images/18082025/17/33/image_18082025_17_33_55_10627.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.531801700592041 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:35:02.843368
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/34/image_18082025_17_34_45_9693.jpg', 2), ('/home/nano/Desktop/images/18082025/17/34/image_18082025_17_34_35_10702.jpg', 2), ('/home/nano/Desktop/images/18082025/17/34/image_18082025_17_34_24_9815.jpg', 2), ('/home/nano/Desktop/images/18082025/17/34/image_18082025_17_34_14_9743.jpg', 2), ('/home/nano/Desktop/images/18082025/17/33/image_18082025_17_34_05_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/17/33/image_18082025_17_33_55_10627.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/34/image_18082025_17_34_45_9693.jpg', '/home/nano/Desktop/images/18082025/17/34/image_18082025_17_34_35_10702.jpg', '/home/nano/Desktop/images/18082025/17/34/image_18082025_17_34_24_9815.jpg', '/home/nano/Desktop/images/18082025/17/34/image_18082025_17_34_14_9743.jpg', '/home/nano/Desktop/images/18082025/17/33/image_18082025_17_34_05_9629.jpg', '/home/nano/Desktop/images/18082025/17/33/image_18082025_17_33_55_10627.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/34/image_18082025_17_34_45_9693.jpg
/home/nano/Desktop/images/18082025/17/34/image_18082025_17_34_35_10702.jpg
/home/nano/Desktop/images/18082025/17/34/image_18082025_17_34_24_9815.jpg
/home/nano/Desktop/images/18082025/17/34/image_18082025_17_34_14_9743.jpg
/home/nano/Desktop/images/18082025/17/33/image_18082025_17_34_05_9629.jpg
/home/nano/Desktop/images/18082025/17/33/image_18082025_17_33_55_10627.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377710948","1377710950","1377710944","1377710975","1377710969","1377710960"],"photo_ids_order":["1377710944","1377710948","1377710950","1377710960","1377710969","1377710975"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a59804a964c07d733b10d19b914fb907.jpg","text":"TemporaryFile(/tmp/multipartBody8442172952820434386asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531364257,"filename":"image_18082025_17_34_35_10702.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4c61ae056db8e279258c87fd951b5069.jpg","text":"TemporaryFile(/tmp/multipartBody196110701437741270asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531364257,"filename":"image_18082025_17_34_24_9815.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/272441ee53373d08d35cd8788d70129e.jpg","text":"TemporaryFile(/tmp/multipartBody6158320022260684771asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531364257,"filename":"image_18082025_17_34_45_9693.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d8c1ca8f5f697482af43787150efdec7.jpg","text":"TemporaryFile(/tmp/multipartBody7779633373058377041asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531364257,"filename":"image_18082025_17_33_55_10627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/46b81d28a76f486d75490aa4fdd1aef1.jpg","text":"TemporaryFile(/tmp/multipartBody6781616016104644496asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531364257,"filename":"image_18082025_17_34_05_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4d0d22e09dec87249f5262136d54e5dc.jpg","text":"TemporaryFile(/tmp/multipartBody6326239474111785738asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531364257,"filename":"image_18082025_17_34_14_9743.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377710950","file1":"1377710948","file0":"1377710944","file4":"1377710969","file5":"1377710975","file3":"1377710960"},"map_files_photo_id_array":[{"photo_id":"1377710975","filename":"file5"},{"photo_id":"1377710950","filename":"file2"},{"photo_id":"1377710969","filename":"file4"},{"photo_id":"1377710948","filename":"file1"},{"photo_id":"1377710944","filename":"file0"},{"photo_id":"1377710960","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377710948":["hashtag1","hashtag2"]},{"1377710950":["hashtag1","hashtag2"]},{"1377710944":["hashtag1","hashtag2"]},{"1377710975":["hashtag1","hashtag2"]},{"1377710969":["hashtag1","hashtag2"]},{"1377710960":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377710948, 1377710950, 1377710944, 1377710975, 1377710969, 1377710960)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.89073371887207 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:35:47.002061
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/35/image_18082025_17_35_45_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/17/35/image_18082025_17_35_34_9782.jpg', 2), ('/home/nano/Desktop/images/18082025/17/35/image_18082025_17_35_24_9753.jpg', 2), ('/home/nano/Desktop/images/18082025/17/35/image_18082025_17_35_15_9781.jpg', 2), ('/home/nano/Desktop/images/18082025/17/34/image_18082025_17_35_05_10779.jpg', 2), ('/home/nano/Desktop/images/18082025/17/34/image_18082025_17_34_54_9595.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/35/image_18082025_17_35_45_10638.jpg', '/home/nano/Desktop/images/18082025/17/35/image_18082025_17_35_34_9782.jpg', '/home/nano/Desktop/images/18082025/17/35/image_18082025_17_35_24_9753.jpg', '/home/nano/Desktop/images/18082025/17/35/image_18082025_17_35_15_9781.jpg', '/home/nano/Desktop/images/18082025/17/34/image_18082025_17_35_05_10779.jpg', '/home/nano/Desktop/images/18082025/17/34/image_18082025_17_34_54_9595.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/35/image_18082025_17_35_45_10638.jpg
/home/nano/Desktop/images/18082025/17/35/image_18082025_17_35_34_9782.jpg
/home/nano/Desktop/images/18082025/17/35/image_18082025_17_35_24_9753.jpg
/home/nano/Desktop/images/18082025/17/35/image_18082025_17_35_15_9781.jpg
/home/nano/Desktop/images/18082025/17/34/image_18082025_17_35_05_10779.jpg
/home/nano/Desktop/images/18082025/17/34/image_18082025_17_34_54_9595.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377710986","1377710989","1377710994","1377710991","1377710990","1377710987"],"photo_ids_order":["1377710986","1377710987","1377710989","1377710990","1377710991","1377710994"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a748d2c181e83df5f159046613bad326.jpg","text":"TemporaryFile(/tmp/multipartBody3246983941444721702asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531408825,"filename":"image_18082025_17_35_45_10638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5b9d8693234cc86fc6b33f07a37be341.jpg","text":"TemporaryFile(/tmp/multipartBody1359766600654880078asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531408825,"filename":"image_18082025_17_35_24_9753.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/17ef58d4c072a2323ef1a5f4747ca955.jpg","text":"TemporaryFile(/tmp/multipartBody3532469586048603066asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531408825,"filename":"image_18082025_17_34_54_9595.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/abac8b6ddcc6d879433fa499df19b87d.jpg","text":"TemporaryFile(/tmp/multipartBody6199993852647970025asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531408825,"filename":"image_18082025_17_35_05_10779.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1c0187d8748cf2eaab480a993c1a2cef.jpg","text":"TemporaryFile(/tmp/multipartBody1692677242919345954asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531408825,"filename":"image_18082025_17_35_15_9781.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b0e6847fafe871dec3adf152001b6652.jpg","text":"TemporaryFile(/tmp/multipartBody7952145396821286266asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531408825,"filename":"image_18082025_17_35_34_9782.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377710989","file1":"1377710987","file0":"1377710986","file4":"1377710991","file5":"1377710994","file3":"1377710990"},"map_files_photo_id_array":[{"photo_id":"1377710994","filename":"file5"},{"photo_id":"1377710989","filename":"file2"},{"photo_id":"1377710991","filename":"file4"},{"photo_id":"1377710987","filename":"file1"},{"photo_id":"1377710986","filename":"file0"},{"photo_id":"1377710990","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377710986":["hashtag1","hashtag2"]},{"1377710989":["hashtag1","hashtag2"]},{"1377710994":["hashtag1","hashtag2"]},{"1377710991":["hashtag1","hashtag2"]},{"1377710990":["hashtag1","hashtag2"]},{"1377710987":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377710986, 1377710989, 1377710994, 1377710991, 1377710990, 1377710987)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.274633169174194 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:36:32.125785
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/36/image_18082025_17_36_45_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/17/36/image_18082025_17_36_34_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/17/36/image_18082025_17_36_25_9693.jpg', 2), ('/home/nano/Desktop/images/18082025/17/36/image_18082025_17_36_15_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/17/35/image_18082025_17_36_04_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/17/35/image_18082025_17_35_55_9716.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/36/image_18082025_17_36_45_10640.jpg', '/home/nano/Desktop/images/18082025/17/36/image_18082025_17_36_34_9637.jpg', '/home/nano/Desktop/images/18082025/17/36/image_18082025_17_36_25_9693.jpg', '/home/nano/Desktop/images/18082025/17/36/image_18082025_17_36_15_10646.jpg', '/home/nano/Desktop/images/18082025/17/35/image_18082025_17_36_04_9629.jpg', '/home/nano/Desktop/images/18082025/17/35/image_18082025_17_35_55_9716.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/36/image_18082025_17_36_45_10640.jpg
/home/nano/Desktop/images/18082025/17/36/image_18082025_17_36_34_9637.jpg
/home/nano/Desktop/images/18082025/17/36/image_18082025_17_36_25_9693.jpg
/home/nano/Desktop/images/18082025/17/36/image_18082025_17_36_15_10646.jpg
/home/nano/Desktop/images/18082025/17/35/image_18082025_17_36_04_9629.jpg
/home/nano/Desktop/images/18082025/17/35/image_18082025_17_35_55_9716.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377711064","1377711046","1377711061","1377711057","1377711066","1377711068"],"photo_ids_order":["1377711046","1377711057","1377711061","1377711064","1377711066","1377711068"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f60639696dceba80d2b9f62444fc0120.jpg","text":"TemporaryFile(/tmp/multipartBody4836492649009644280asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531453633,"filename":"image_18082025_17_36_15_10646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5ab4d3b7225313e4bf379d2112ca22f7.jpg","text":"TemporaryFile(/tmp/multipartBody1398473863392224489asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531453633,"filename":"image_18082025_17_36_45_10640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6618d328df9acc2f922191f560956a21.jpg","text":"TemporaryFile(/tmp/multipartBody5645136661676857718asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531453633,"filename":"image_18082025_17_36_25_9693.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/02b5966dd83053f1c72289a79ff08749.jpg","text":"TemporaryFile(/tmp/multipartBody6935742906615414932asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531453633,"filename":"image_18082025_17_36_34_9637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4aab678d6db42f2dc46bc760c5e74e0b.jpg","text":"TemporaryFile(/tmp/multipartBody7705170112209710198asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531453633,"filename":"image_18082025_17_36_04_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/69acdc3098ebc151fb453ce7b1279cb8.jpg","text":"TemporaryFile(/tmp/multipartBody384691896219233750asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531453633,"filename":"image_18082025_17_35_55_9716.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377711061","file1":"1377711057","file0":"1377711046","file4":"1377711066","file5":"1377711068","file3":"1377711064"},"map_files_photo_id_array":[{"photo_id":"1377711068","filename":"file5"},{"photo_id":"1377711061","filename":"file2"},{"photo_id":"1377711066","filename":"file4"},{"photo_id":"1377711057","filename":"file1"},{"photo_id":"1377711046","filename":"file0"},{"photo_id":"1377711064","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377711064":["hashtag1","hashtag2"]},{"1377711046":["hashtag1","hashtag2"]},{"1377711061":["hashtag1","hashtag2"]},{"1377711057":["hashtag1","hashtag2"]},{"1377711066":["hashtag1","hashtag2"]},{"1377711068":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377711064, 1377711046, 1377711061, 1377711057, 1377711066, 1377711068)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.78818368911743 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:37:17.211195
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/37/image_18082025_17_37_45_9602.jpg', 2), ('/home/nano/Desktop/images/18082025/17/37/image_18082025_17_37_35_10612.jpg', 2), ('/home/nano/Desktop/images/18082025/17/37/image_18082025_17_37_24_9604.jpg', 2), ('/home/nano/Desktop/images/18082025/17/37/image_18082025_17_37_15_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/17/36/image_18082025_17_37_04_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/17/36/image_18082025_17_36_54_9640.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/37/image_18082025_17_37_45_9602.jpg', '/home/nano/Desktop/images/18082025/17/37/image_18082025_17_37_35_10612.jpg', '/home/nano/Desktop/images/18082025/17/37/image_18082025_17_37_24_9604.jpg', '/home/nano/Desktop/images/18082025/17/37/image_18082025_17_37_15_10645.jpg', '/home/nano/Desktop/images/18082025/17/36/image_18082025_17_37_04_9614.jpg', '/home/nano/Desktop/images/18082025/17/36/image_18082025_17_36_54_9640.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/37/image_18082025_17_37_45_9602.jpg
/home/nano/Desktop/images/18082025/17/37/image_18082025_17_37_35_10612.jpg
/home/nano/Desktop/images/18082025/17/37/image_18082025_17_37_24_9604.jpg
/home/nano/Desktop/images/18082025/17/37/image_18082025_17_37_15_10645.jpg
/home/nano/Desktop/images/18082025/17/36/image_18082025_17_37_04_9614.jpg
/home/nano/Desktop/images/18082025/17/36/image_18082025_17_36_54_9640.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377711085","1377711076","1377711087","1377711081","1377711078","1377711083"],"photo_ids_order":["1377711076","1377711078","1377711081","1377711083","1377711085","1377711087"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/354d4f7f2f7df7c0692f835b0aa1b1cf.jpg","text":"TemporaryFile(/tmp/multipartBody1281720981263453440asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531498485,"filename":"image_18082025_17_37_04_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/50364e1daf9d47f4dda819708119034c.jpg","text":"TemporaryFile(/tmp/multipartBody1537267794395144968asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531498485,"filename":"image_18082025_17_37_45_9602.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d1f7d251ada1ab121e2364caa4f6eb41.jpg","text":"TemporaryFile(/tmp/multipartBody916019776427095127asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531498485,"filename":"image_18082025_17_36_54_9640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/087b3a5f206ece807c36c67af5fcfe83.jpg","text":"TemporaryFile(/tmp/multipartBody4105011198669507490asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531498485,"filename":"image_18082025_17_37_24_9604.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/acea7e2b6e7e0775f633ac7d7423b19e.jpg","text":"TemporaryFile(/tmp/multipartBody7148084306972316400asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531498485,"filename":"image_18082025_17_37_35_10612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0dba5b06e53ddf38e1929dab6c0c6d25.jpg","text":"TemporaryFile(/tmp/multipartBody8419834243020185415asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531498485,"filename":"image_18082025_17_37_15_10645.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377711081","file1":"1377711078","file0":"1377711076","file4":"1377711085","file5":"1377711087","file3":"1377711083"},"map_files_photo_id_array":[{"photo_id":"1377711087","filename":"file5"},{"photo_id":"1377711081","filename":"file2"},{"photo_id":"1377711085","filename":"file4"},{"photo_id":"1377711078","filename":"file1"},{"photo_id":"1377711076","filename":"file0"},{"photo_id":"1377711083","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377711085":["hashtag1","hashtag2"]},{"1377711076":["hashtag1","hashtag2"]},{"1377711087":["hashtag1","hashtag2"]},{"1377711081":["hashtag1","hashtag2"]},{"1377711078":["hashtag1","hashtag2"]},{"1377711083":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377711085, 1377711076, 1377711087, 1377711081, 1377711078, 1377711083)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.81556701660156 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:38:02.843800
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/05/image_18082025_10_05_55_10724.jpg', 2), ('/home/nano/Desktop/images/18082025/10/05/image_18082025_10_05_44_9693.jpg', 2), ('/home/nano/Desktop/images/18082025/10/05/image_18082025_10_05_34_9676.jpg', 2), ('/home/nano/Desktop/images/18082025/10/05/image_18082025_10_05_25_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/10/05/image_18082025_10_05_14_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/10/04/image_18082025_10_05_04_9632.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/05/image_18082025_10_05_55_10724.jpg', '/home/nano/Desktop/images/18082025/10/05/image_18082025_10_05_44_9693.jpg', '/home/nano/Desktop/images/18082025/10/05/image_18082025_10_05_34_9676.jpg', '/home/nano/Desktop/images/18082025/10/05/image_18082025_10_05_25_10649.jpg', '/home/nano/Desktop/images/18082025/10/05/image_18082025_10_05_14_9632.jpg', '/home/nano/Desktop/images/18082025/10/04/image_18082025_10_05_04_9632.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/05/image_18082025_10_05_55_10724.jpg
/home/nano/Desktop/images/18082025/10/05/image_18082025_10_05_44_9693.jpg
/home/nano/Desktop/images/18082025/10/05/image_18082025_10_05_34_9676.jpg
/home/nano/Desktop/images/18082025/10/05/image_18082025_10_05_25_10649.jpg
/home/nano/Desktop/images/18082025/10/05/image_18082025_10_05_14_9632.jpg
/home/nano/Desktop/images/18082025/10/04/image_18082025_10_05_04_9632.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.6290128231048584 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:38:17.361688
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/38/image_18082025_17_38_44_9601.jpg', 2), ('/home/nano/Desktop/images/18082025/17/38/image_18082025_17_38_35_9603.jpg', 2), ('/home/nano/Desktop/images/18082025/17/38/image_18082025_17_38_25_10611.jpg', 2), ('/home/nano/Desktop/images/18082025/17/38/image_18082025_17_38_14_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/17/37/image_18082025_17_38_05_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/17/37/image_18082025_17_37_54_9610.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/38/image_18082025_17_38_44_9601.jpg', '/home/nano/Desktop/images/18082025/17/38/image_18082025_17_38_35_9603.jpg', '/home/nano/Desktop/images/18082025/17/38/image_18082025_17_38_25_10611.jpg', '/home/nano/Desktop/images/18082025/17/38/image_18082025_17_38_14_9620.jpg', '/home/nano/Desktop/images/18082025/17/37/image_18082025_17_38_05_10628.jpg', '/home/nano/Desktop/images/18082025/17/37/image_18082025_17_37_54_9610.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/38/image_18082025_17_38_44_9601.jpg
/home/nano/Desktop/images/18082025/17/38/image_18082025_17_38_35_9603.jpg
/home/nano/Desktop/images/18082025/17/38/image_18082025_17_38_25_10611.jpg
/home/nano/Desktop/images/18082025/17/38/image_18082025_17_38_14_9620.jpg
/home/nano/Desktop/images/18082025/17/37/image_18082025_17_38_05_10628.jpg
/home/nano/Desktop/images/18082025/17/37/image_18082025_17_37_54_9610.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377711142","1377711136","1377711139","1377711141","1377711144","1377711143"],"photo_ids_order":["1377711136","1377711139","1377711141","1377711142","1377711143","1377711144"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c2ce518a43eaea5a66d27b756816ed1e.jpg","text":"TemporaryFile(/tmp/multipartBody8058962624563942217asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531558434,"filename":"image_18082025_17_38_14_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9f90415e1a23a8253a0cfc969a71da87.jpg","text":"TemporaryFile(/tmp/multipartBody1231225028383294951asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531558434,"filename":"image_18082025_17_38_44_9601.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4527c5372218893dc6d286856af31bf8.jpg","text":"TemporaryFile(/tmp/multipartBody1508291464910546655asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531558434,"filename":"image_18082025_17_38_35_9603.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bf828434a1d5aef195657c718a4c386e.jpg","text":"TemporaryFile(/tmp/multipartBody8341425314899691385asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531558434,"filename":"image_18082025_17_38_25_10611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7e8f72e8a1443a6024092ef09c26fe62.jpg","text":"TemporaryFile(/tmp/multipartBody5014289822636802862asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531558434,"filename":"image_18082025_17_37_54_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0f47bfde0c5dbad8f578148dccfc438f.jpg","text":"TemporaryFile(/tmp/multipartBody9129219893391294899asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531558434,"filename":"image_18082025_17_38_05_10628.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377711141","file1":"1377711139","file0":"1377711136","file4":"1377711143","file5":"1377711144","file3":"1377711142"},"map_files_photo_id_array":[{"photo_id":"1377711144","filename":"file5"},{"photo_id":"1377711141","filename":"file2"},{"photo_id":"1377711143","filename":"file4"},{"photo_id":"1377711139","filename":"file1"},{"photo_id":"1377711136","filename":"file0"},{"photo_id":"1377711142","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377711142":["hashtag1","hashtag2"]},{"1377711136":["hashtag1","hashtag2"]},{"1377711139":["hashtag1","hashtag2"]},{"1377711141":["hashtag1","hashtag2"]},{"1377711144":["hashtag1","hashtag2"]},{"1377711143":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377711142, 1377711136, 1377711139, 1377711141, 1377711144, 1377711143)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.17833685874939 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:39:03.401439
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/05/image_18082025_10_05_55_10724.jpg', 2), ('/home/nano/Desktop/images/18082025/10/05/image_18082025_10_05_44_9693.jpg', 2), ('/home/nano/Desktop/images/18082025/10/05/image_18082025_10_05_34_9676.jpg', 2), ('/home/nano/Desktop/images/18082025/10/05/image_18082025_10_05_25_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/10/05/image_18082025_10_05_14_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/10/04/image_18082025_10_05_04_9632.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/05/image_18082025_10_05_55_10724.jpg', '/home/nano/Desktop/images/18082025/10/05/image_18082025_10_05_44_9693.jpg', '/home/nano/Desktop/images/18082025/10/05/image_18082025_10_05_34_9676.jpg', '/home/nano/Desktop/images/18082025/10/05/image_18082025_10_05_25_10649.jpg', '/home/nano/Desktop/images/18082025/10/05/image_18082025_10_05_14_9632.jpg', '/home/nano/Desktop/images/18082025/10/04/image_18082025_10_05_04_9632.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/05/image_18082025_10_05_55_10724.jpg
/home/nano/Desktop/images/18082025/10/05/image_18082025_10_05_44_9693.jpg
/home/nano/Desktop/images/18082025/10/05/image_18082025_10_05_34_9676.jpg
/home/nano/Desktop/images/18082025/10/05/image_18082025_10_05_25_10649.jpg
/home/nano/Desktop/images/18082025/10/05/image_18082025_10_05_14_9632.jpg
/home/nano/Desktop/images/18082025/10/04/image_18082025_10_05_04_9632.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377711160","1377711157","1377711156","1377711152","1377711155","1377711158"],"photo_ids_order":["1377711152","1377711155","1377711156","1377711157","1377711158","1377711160"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b8e5e61faa6528ed4ba3b6b36bd8fe7e.jpg","text":"TemporaryFile(/tmp/multipartBody1466147038133222268asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531605112,"filename":"image_18082025_10_05_04_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/74863054e36bb13607809e3d9782fade.jpg","text":"TemporaryFile(/tmp/multipartBody7846562137015359761asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531605112,"filename":"image_18082025_10_05_25_10649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d56f14497fef18c08618ce1abb91d804.jpg","text":"TemporaryFile(/tmp/multipartBody7956983481141023281asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531605112,"filename":"image_18082025_10_05_34_9676.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fc8d63392435874cc22912a483132de8.jpg","text":"TemporaryFile(/tmp/multipartBody571997328403991052asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531605112,"filename":"image_18082025_10_05_55_10724.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6af1b06ed0f19b1a062358b749f18161.jpg","text":"TemporaryFile(/tmp/multipartBody3434813380346638555asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531605112,"filename":"image_18082025_10_05_44_9693.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/88687b2cb38f512b6d9ddc13f6428920.jpg","text":"TemporaryFile(/tmp/multipartBody8401083039979768642asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531605112,"filename":"image_18082025_10_05_14_9632.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377711156","file1":"1377711155","file0":"1377711152","file4":"1377711158","file5":"1377711160","file3":"1377711157"},"map_files_photo_id_array":[{"photo_id":"1377711160","filename":"file5"},{"photo_id":"1377711156","filename":"file2"},{"photo_id":"1377711158","filename":"file4"},{"photo_id":"1377711155","filename":"file1"},{"photo_id":"1377711152","filename":"file0"},{"photo_id":"1377711157","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377711160":["hashtag1","hashtag2"]},{"1377711157":["hashtag1","hashtag2"]},{"1377711156":["hashtag1","hashtag2"]},{"1377711152":["hashtag1","hashtag2"]},{"1377711155":["hashtag1","hashtag2"]},{"1377711158":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377711160, 1377711157, 1377711156, 1377711152, 1377711155, 1377711158)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.949267148971558 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:39:47.461009
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/39/image_18082025_17_39_45_10610.jpg', 2), ('/home/nano/Desktop/images/18082025/17/39/image_18082025_17_39_34_9605.jpg', 2), ('/home/nano/Desktop/images/18082025/17/39/image_18082025_17_39_25_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/17/39/image_18082025_17_39_14_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/17/38/image_18082025_17_39_04_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/17/38/image_18082025_17_38_55_10616.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/39/image_18082025_17_39_45_10610.jpg', '/home/nano/Desktop/images/18082025/17/39/image_18082025_17_39_34_9605.jpg', '/home/nano/Desktop/images/18082025/17/39/image_18082025_17_39_25_10625.jpg', '/home/nano/Desktop/images/18082025/17/39/image_18082025_17_39_14_9626.jpg', '/home/nano/Desktop/images/18082025/17/38/image_18082025_17_39_04_9636.jpg', '/home/nano/Desktop/images/18082025/17/38/image_18082025_17_38_55_10616.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/39/image_18082025_17_39_45_10610.jpg
/home/nano/Desktop/images/18082025/17/39/image_18082025_17_39_34_9605.jpg
/home/nano/Desktop/images/18082025/17/39/image_18082025_17_39_25_10625.jpg
/home/nano/Desktop/images/18082025/17/39/image_18082025_17_39_14_9626.jpg
/home/nano/Desktop/images/18082025/17/38/image_18082025_17_39_04_9636.jpg
/home/nano/Desktop/images/18082025/17/38/image_18082025_17_38_55_10616.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377711203","1377711196","1377711195","1377711198","1377711197","1377711201"],"photo_ids_order":["1377711195","1377711196","1377711197","1377711198","1377711201","1377711203"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/64498a437f05f467de380775b3ef0b74.jpg","text":"TemporaryFile(/tmp/multipartBody4807830423118754356asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531648906,"filename":"image_18082025_17_38_55_10616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/608f2cd2e9ab74eaab5091066eb98bfd.jpg","text":"TemporaryFile(/tmp/multipartBody1772427905491825608asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531648906,"filename":"image_18082025_17_39_34_9605.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/80b106bd192b42d009a18c2a81dfcd8b.jpg","text":"TemporaryFile(/tmp/multipartBody1938558506431091849asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531648906,"filename":"image_18082025_17_39_45_10610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2ceeaf30261f33dffd62acf6b8f9bac0.jpg","text":"TemporaryFile(/tmp/multipartBody3510473637509185252asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531648906,"filename":"image_18082025_17_39_14_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2937cfc79493aaed86deae7f145367f3.jpg","text":"TemporaryFile(/tmp/multipartBody1226597596139655154asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531648906,"filename":"image_18082025_17_39_25_10625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a9eb3724ff9cd12492c6ec279066a728.jpg","text":"TemporaryFile(/tmp/multipartBody3339596475924991327asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531648906,"filename":"image_18082025_17_39_04_9636.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377711197","file1":"1377711196","file0":"1377711195","file4":"1377711201","file5":"1377711203","file3":"1377711198"},"map_files_photo_id_array":[{"photo_id":"1377711203","filename":"file5"},{"photo_id":"1377711197","filename":"file2"},{"photo_id":"1377711201","filename":"file4"},{"photo_id":"1377711196","filename":"file1"},{"photo_id":"1377711195","filename":"file0"},{"photo_id":"1377711198","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377711203":["hashtag1","hashtag2"]},{"1377711196":["hashtag1","hashtag2"]},{"1377711195":["hashtag1","hashtag2"]},{"1377711198":["hashtag1","hashtag2"]},{"1377711197":["hashtag1","hashtag2"]},{"1377711201":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377711203, 1377711196, 1377711195, 1377711198, 1377711197, 1377711201)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.391634464263916 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:40:32.577687
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/40/image_18082025_17_40_45_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/17/40/image_18082025_17_40_35_10613.jpg', 2), ('/home/nano/Desktop/images/18082025/17/40/image_18082025_17_40_24_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/17/40/image_18082025_17_40_15_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/17/39/image_18082025_17_40_04_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/17/39/image_18082025_17_39_55_9599.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/40/image_18082025_17_40_45_9622.jpg', '/home/nano/Desktop/images/18082025/17/40/image_18082025_17_40_35_10613.jpg', '/home/nano/Desktop/images/18082025/17/40/image_18082025_17_40_24_9620.jpg', '/home/nano/Desktop/images/18082025/17/40/image_18082025_17_40_15_10635.jpg', '/home/nano/Desktop/images/18082025/17/39/image_18082025_17_40_04_9616.jpg', '/home/nano/Desktop/images/18082025/17/39/image_18082025_17_39_55_9599.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/40/image_18082025_17_40_45_9622.jpg
/home/nano/Desktop/images/18082025/17/40/image_18082025_17_40_35_10613.jpg
/home/nano/Desktop/images/18082025/17/40/image_18082025_17_40_24_9620.jpg
/home/nano/Desktop/images/18082025/17/40/image_18082025_17_40_15_10635.jpg
/home/nano/Desktop/images/18082025/17/39/image_18082025_17_40_04_9616.jpg
/home/nano/Desktop/images/18082025/17/39/image_18082025_17_39_55_9599.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377711209","1377711217","1377711211","1377711210","1377711213","1377711215"],"photo_ids_order":["1377711209","1377711210","1377711211","1377711213","1377711215","1377711217"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c718c64cb121b09fc0abcc9bf1232033.jpg","text":"TemporaryFile(/tmp/multipartBody2134055112679460637asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531693855,"filename":"image_18082025_17_40_45_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b3abd7b4403910af612a7378169bb615.jpg","text":"TemporaryFile(/tmp/multipartBody8581281253323628403asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531693855,"filename":"image_18082025_17_39_55_9599.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b7db73d1c664dd340222cec4c264cbba.jpg","text":"TemporaryFile(/tmp/multipartBody7856880605153389878asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531693855,"filename":"image_18082025_17_40_24_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/558419566c196462d75e1511ff76fbae.jpg","text":"TemporaryFile(/tmp/multipartBody2519455823009774700asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531693855,"filename":"image_18082025_17_40_35_10613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ea0af2fc9dbb584cfec98350dab534ac.jpg","text":"TemporaryFile(/tmp/multipartBody4785937627435199667asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531693855,"filename":"image_18082025_17_40_15_10635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e003ef89f841a9c182079831e12808d6.jpg","text":"TemporaryFile(/tmp/multipartBody2986597626361741383asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531693855,"filename":"image_18082025_17_40_04_9616.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377711211","file1":"1377711210","file0":"1377711209","file4":"1377711215","file5":"1377711217","file3":"1377711213"},"map_files_photo_id_array":[{"photo_id":"1377711217","filename":"file5"},{"photo_id":"1377711211","filename":"file2"},{"photo_id":"1377711215","filename":"file4"},{"photo_id":"1377711210","filename":"file1"},{"photo_id":"1377711209","filename":"file0"},{"photo_id":"1377711213","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377711209":["hashtag1","hashtag2"]},{"1377711217":["hashtag1","hashtag2"]},{"1377711211":["hashtag1","hashtag2"]},{"1377711210":["hashtag1","hashtag2"]},{"1377711213":["hashtag1","hashtag2"]},{"1377711215":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377711209, 1377711217, 1377711211, 1377711210, 1377711213, 1377711215)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.679468631744385 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:41:17.721256
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/41/image_18082025_17_41_44_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/17/41/image_18082025_17_41_35_10610.jpg', 2), ('/home/nano/Desktop/images/18082025/17/41/image_18082025_17_41_24_9599.jpg', 2), ('/home/nano/Desktop/images/18082025/17/41/image_18082025_17_41_14_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/17/40/image_18082025_17_41_05_10604.jpg', 2), ('/home/nano/Desktop/images/18082025/17/40/image_18082025_17_40_54_9600.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/41/image_18082025_17_41_44_9608.jpg', '/home/nano/Desktop/images/18082025/17/41/image_18082025_17_41_35_10610.jpg', '/home/nano/Desktop/images/18082025/17/41/image_18082025_17_41_24_9599.jpg', '/home/nano/Desktop/images/18082025/17/41/image_18082025_17_41_14_9623.jpg', '/home/nano/Desktop/images/18082025/17/40/image_18082025_17_41_05_10604.jpg', '/home/nano/Desktop/images/18082025/17/40/image_18082025_17_40_54_9600.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/41/image_18082025_17_41_44_9608.jpg
/home/nano/Desktop/images/18082025/17/41/image_18082025_17_41_35_10610.jpg
/home/nano/Desktop/images/18082025/17/41/image_18082025_17_41_24_9599.jpg
/home/nano/Desktop/images/18082025/17/41/image_18082025_17_41_14_9623.jpg
/home/nano/Desktop/images/18082025/17/40/image_18082025_17_41_05_10604.jpg
/home/nano/Desktop/images/18082025/17/40/image_18082025_17_40_54_9600.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377711227","1377711235","1377711270","1377711243","1377711225","1377711260"],"photo_ids_order":["1377711225","1377711227","1377711235","1377711243","1377711260","1377711270"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fef0ec541418027e97fa66a47dfd4c03.jpg","text":"TemporaryFile(/tmp/multipartBody5755361800595582285asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531738905,"filename":"image_18082025_17_41_35_10610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/800435e49afca2e6e82fcd4a295efe78.jpg","text":"TemporaryFile(/tmp/multipartBody591237985304475921asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531738905,"filename":"image_18082025_17_41_24_9599.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b4c49d92f6ee1f531d2c8f1b48f55354.jpg","text":"TemporaryFile(/tmp/multipartBody217763817879425452asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531738905,"filename":"image_18082025_17_40_54_9600.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/33f2026ab07e0f4f0d838ce6b6cff6d4.jpg","text":"TemporaryFile(/tmp/multipartBody7767397235626379980asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531738905,"filename":"image_18082025_17_41_14_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1bdd8ea15a697337f4042c418bfbdbe4.jpg","text":"TemporaryFile(/tmp/multipartBody7600553787591660410asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531738905,"filename":"image_18082025_17_41_44_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7207fe1ae43b302d514d6e738c68eeda.jpg","text":"TemporaryFile(/tmp/multipartBody2295806036704314982asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531738905,"filename":"image_18082025_17_41_05_10604.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377711235","file1":"1377711227","file0":"1377711225","file4":"1377711260","file5":"1377711270","file3":"1377711243"},"map_files_photo_id_array":[{"photo_id":"1377711270","filename":"file5"},{"photo_id":"1377711235","filename":"file2"},{"photo_id":"1377711260","filename":"file4"},{"photo_id":"1377711227","filename":"file1"},{"photo_id":"1377711225","filename":"file0"},{"photo_id":"1377711243","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377711227":["hashtag1","hashtag2"]},{"1377711235":["hashtag1","hashtag2"]},{"1377711270":["hashtag1","hashtag2"]},{"1377711243":["hashtag1","hashtag2"]},{"1377711225":["hashtag1","hashtag2"]},{"1377711260":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377711227, 1377711235, 1377711270, 1377711243, 1377711225, 1377711260)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.02088665962219 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:42:02.465459
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/42/image_18082025_17_42_34_9604.jpg', 2), ('/home/nano/Desktop/images/18082025/10/04/image_18082025_10_04_55_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/10/04/image_18082025_10_04_44_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/10/04/image_18082025_10_04_35_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/10/04/image_18082025_10_04_25_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/10/04/image_18082025_10_04_14_9636.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/42/image_18082025_17_42_34_9604.jpg', '/home/nano/Desktop/images/18082025/10/04/image_18082025_10_04_55_10636.jpg', '/home/nano/Desktop/images/18082025/10/04/image_18082025_10_04_44_9612.jpg', '/home/nano/Desktop/images/18082025/10/04/image_18082025_10_04_35_9621.jpg', '/home/nano/Desktop/images/18082025/10/04/image_18082025_10_04_25_10653.jpg', '/home/nano/Desktop/images/18082025/10/04/image_18082025_10_04_14_9636.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/42/image_18082025_17_42_34_9604.jpg
/home/nano/Desktop/images/18082025/10/04/image_18082025_10_04_55_10636.jpg
/home/nano/Desktop/images/18082025/10/04/image_18082025_10_04_44_9612.jpg
/home/nano/Desktop/images/18082025/10/04/image_18082025_10_04_35_9621.jpg
/home/nano/Desktop/images/18082025/10/04/image_18082025_10_04_25_10653.jpg
/home/nano/Desktop/images/18082025/10/04/image_18082025_10_04_14_9636.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377711292","1377711285","1377711288","1377711282","1377711279","1377711290"],"photo_ids_order":["1377711279","1377711282","1377711285","1377711288","1377711290","1377711292"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b7730096827ff45cd0b0cb5b2d8d6eb6.jpg","text":"TemporaryFile(/tmp/multipartBody16540279686631206asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531783713,"filename":"image_18082025_10_04_14_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/caed60a5ac682a9c62d1cda4640f86d2.jpg","text":"TemporaryFile(/tmp/multipartBody972768505394498646asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531783713,"filename":"image_18082025_10_04_44_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0f0e80d97a2c2de823711850fc8d614f.jpg","text":"TemporaryFile(/tmp/multipartBody3012481531636281748asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531783713,"filename":"image_18082025_10_04_35_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b8cfd28e35b96023c51ea857392f9e9f.jpg","text":"TemporaryFile(/tmp/multipartBody5231353476878040736asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531783713,"filename":"image_18082025_10_04_55_10636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/48409bc6f12c957c3106ac921666b18a.jpg","text":"TemporaryFile(/tmp/multipartBody7899662816520950012asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531783713,"filename":"image_18082025_17_42_34_9604.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7573ac3e4182eb42a95025077a6edb67.jpg","text":"TemporaryFile(/tmp/multipartBody2113132835509645235asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531783713,"filename":"image_18082025_10_04_25_10653.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377711285","file1":"1377711282","file0":"1377711279","file4":"1377711290","file5":"1377711292","file3":"1377711288"},"map_files_photo_id_array":[{"photo_id":"1377711292","filename":"file5"},{"photo_id":"1377711285","filename":"file2"},{"photo_id":"1377711290","filename":"file4"},{"photo_id":"1377711282","filename":"file1"},{"photo_id":"1377711279","filename":"file0"},{"photo_id":"1377711288","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377711292":["hashtag1","hashtag2"]},{"1377711285":["hashtag1","hashtag2"]},{"1377711288":["hashtag1","hashtag2"]},{"1377711282":["hashtag1","hashtag2"]},{"1377711279":["hashtag1","hashtag2"]},{"1377711290":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377711292, 1377711285, 1377711288, 1377711282, 1377711279, 1377711290)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.080299377441406 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:42:46.900888
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/42/image_18082025_17_42_45_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/17/42/image_18082025_17_42_25_10614.jpg', 2), ('/home/nano/Desktop/images/18082025/17/42/image_18082025_17_42_14_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/17/41/image_18082025_17_42_04_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/17/41/image_18082025_17_41_55_10608.jpg', 2), ('/home/nano/Desktop/images/18082025/10/03/image_18082025_10_04_05_9640.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/42/image_18082025_17_42_45_10624.jpg', '/home/nano/Desktop/images/18082025/17/42/image_18082025_17_42_25_10614.jpg', '/home/nano/Desktop/images/18082025/17/42/image_18082025_17_42_14_9628.jpg', '/home/nano/Desktop/images/18082025/17/41/image_18082025_17_42_04_9610.jpg', '/home/nano/Desktop/images/18082025/17/41/image_18082025_17_41_55_10608.jpg', '/home/nano/Desktop/images/18082025/10/03/image_18082025_10_04_05_9640.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/42/image_18082025_17_42_45_10624.jpg
/home/nano/Desktop/images/18082025/17/42/image_18082025_17_42_25_10614.jpg
/home/nano/Desktop/images/18082025/17/42/image_18082025_17_42_14_9628.jpg
/home/nano/Desktop/images/18082025/17/41/image_18082025_17_42_04_9610.jpg
/home/nano/Desktop/images/18082025/17/41/image_18082025_17_41_55_10608.jpg
/home/nano/Desktop/images/18082025/10/03/image_18082025_10_04_05_9640.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377711298","1377711301","1377711303","1377711306","1377711296","1377711300"],"photo_ids_order":["1377711296","1377711298","1377711300","1377711301","1377711303","1377711306"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ab1dade32aea8c29289827307dd5a373.jpg","text":"TemporaryFile(/tmp/multipartBody6364025107632816604asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531828436,"filename":"image_18082025_17_42_25_10614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/92955810e7eef5378e9d66fa71e4defa.jpg","text":"TemporaryFile(/tmp/multipartBody5771169549779058762asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531828436,"filename":"image_18082025_17_42_04_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/85188e55635c2a87375e93a14d835e65.jpg","text":"TemporaryFile(/tmp/multipartBody7606349532341812965asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531828436,"filename":"image_18082025_17_41_55_10608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/77cce9616728c2b9918118b91a54afbd.jpg","text":"TemporaryFile(/tmp/multipartBody22140725423771586asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531828436,"filename":"image_18082025_10_04_05_9640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8e6bd1208bcb09798e6692c51f27719e.jpg","text":"TemporaryFile(/tmp/multipartBody4726158879146713793asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531828436,"filename":"image_18082025_17_42_45_10624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e37fe3441f83ede42c41c1cad6de0257.jpg","text":"TemporaryFile(/tmp/multipartBody5250613706752356780asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531828436,"filename":"image_18082025_17_42_14_9628.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377711300","file1":"1377711298","file0":"1377711296","file4":"1377711303","file5":"1377711306","file3":"1377711301"},"map_files_photo_id_array":[{"photo_id":"1377711306","filename":"file5"},{"photo_id":"1377711300","filename":"file2"},{"photo_id":"1377711303","filename":"file4"},{"photo_id":"1377711298","filename":"file1"},{"photo_id":"1377711296","filename":"file0"},{"photo_id":"1377711301","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377711298":["hashtag1","hashtag2"]},{"1377711301":["hashtag1","hashtag2"]},{"1377711303":["hashtag1","hashtag2"]},{"1377711306":["hashtag1","hashtag2"]},{"1377711296":["hashtag1","hashtag2"]},{"1377711300":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377711298, 1377711301, 1377711303, 1377711306, 1377711296, 1377711300)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.592180013656616 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:43:32.008013
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/43/image_18082025_17_43_45_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/17/43/image_18082025_17_43_34_9599.jpg', 2), ('/home/nano/Desktop/images/18082025/17/43/image_18082025_17_43_25_9709.jpg', 2), ('/home/nano/Desktop/images/18082025/17/43/image_18082025_17_43_15_10676.jpg', 2), ('/home/nano/Desktop/images/18082025/17/42/image_18082025_17_43_04_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/17/42/image_18082025_17_42_55_9621.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/43/image_18082025_17_43_45_10673.jpg', '/home/nano/Desktop/images/18082025/17/43/image_18082025_17_43_34_9599.jpg', '/home/nano/Desktop/images/18082025/17/43/image_18082025_17_43_25_9709.jpg', '/home/nano/Desktop/images/18082025/17/43/image_18082025_17_43_15_10676.jpg', '/home/nano/Desktop/images/18082025/17/42/image_18082025_17_43_04_9634.jpg', '/home/nano/Desktop/images/18082025/17/42/image_18082025_17_42_55_9621.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/43/image_18082025_17_43_45_10673.jpg
/home/nano/Desktop/images/18082025/17/43/image_18082025_17_43_34_9599.jpg
/home/nano/Desktop/images/18082025/17/43/image_18082025_17_43_25_9709.jpg
/home/nano/Desktop/images/18082025/17/43/image_18082025_17_43_15_10676.jpg
/home/nano/Desktop/images/18082025/17/42/image_18082025_17_43_04_9634.jpg
/home/nano/Desktop/images/18082025/17/42/image_18082025_17_42_55_9621.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377711326","1377711349","1377711342","1377711336","1377711318","1377711315"],"photo_ids_order":["1377711315","1377711318","1377711326","1377711336","1377711342","1377711349"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/572a675c1c02dd7c3b0a7580ccdf1561.jpg","text":"TemporaryFile(/tmp/multipartBody5586397094618769226asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531873449,"filename":"image_18082025_17_43_25_9709.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4a7936dc262028589a76ff95d09beb56.jpg","text":"TemporaryFile(/tmp/multipartBody4341403859092556324asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531873449,"filename":"image_18082025_17_42_55_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/867c093beff2b70248daad1428ef2857.jpg","text":"TemporaryFile(/tmp/multipartBody2087251996282549228asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531873449,"filename":"image_18082025_17_43_04_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/aee010222547d87a92d026f4ff2412e8.jpg","text":"TemporaryFile(/tmp/multipartBody1278351598839013717asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531873449,"filename":"image_18082025_17_43_15_10676.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/76211752642d4e4075dc2101e7932f85.jpg","text":"TemporaryFile(/tmp/multipartBody1941441705863510378asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531873449,"filename":"image_18082025_17_43_34_9599.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a1ad7d376c88b55865fcdb0906f44f83.jpg","text":"TemporaryFile(/tmp/multipartBody485129087143645140asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531873449,"filename":"image_18082025_17_43_45_10673.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377711326","file1":"1377711318","file0":"1377711315","file4":"1377711342","file5":"1377711349","file3":"1377711336"},"map_files_photo_id_array":[{"photo_id":"1377711349","filename":"file5"},{"photo_id":"1377711326","filename":"file2"},{"photo_id":"1377711342","filename":"file4"},{"photo_id":"1377711318","filename":"file1"},{"photo_id":"1377711315","filename":"file0"},{"photo_id":"1377711336","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377711326":["hashtag1","hashtag2"]},{"1377711349":["hashtag1","hashtag2"]},{"1377711342":["hashtag1","hashtag2"]},{"1377711336":["hashtag1","hashtag2"]},{"1377711318":["hashtag1","hashtag2"]},{"1377711315":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377711326, 1377711349, 1377711342, 1377711336, 1377711318, 1377711315)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.1291823387146 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:44:17.088357
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/44/image_18082025_17_44_45_10689.jpg', 2), ('/home/nano/Desktop/images/18082025/17/44/image_18082025_17_44_34_9682.jpg', 2), ('/home/nano/Desktop/images/18082025/17/44/image_18082025_17_44_25_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/17/44/image_18082025_17_44_15_10773.jpg', 2), ('/home/nano/Desktop/images/18082025/17/43/image_18082025_17_44_04_9677.jpg', 2), ('/home/nano/Desktop/images/18082025/17/43/image_18082025_17_43_55_9616.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/44/image_18082025_17_44_45_10689.jpg', '/home/nano/Desktop/images/18082025/17/44/image_18082025_17_44_34_9682.jpg', '/home/nano/Desktop/images/18082025/17/44/image_18082025_17_44_25_9632.jpg', '/home/nano/Desktop/images/18082025/17/44/image_18082025_17_44_15_10773.jpg', '/home/nano/Desktop/images/18082025/17/43/image_18082025_17_44_04_9677.jpg', '/home/nano/Desktop/images/18082025/17/43/image_18082025_17_43_55_9616.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/44/image_18082025_17_44_45_10689.jpg
/home/nano/Desktop/images/18082025/17/44/image_18082025_17_44_34_9682.jpg
/home/nano/Desktop/images/18082025/17/44/image_18082025_17_44_25_9632.jpg
/home/nano/Desktop/images/18082025/17/44/image_18082025_17_44_15_10773.jpg
/home/nano/Desktop/images/18082025/17/43/image_18082025_17_44_04_9677.jpg
/home/nano/Desktop/images/18082025/17/43/image_18082025_17_43_55_9616.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377711361","1377711358","1377711360","1377711363","1377711362","1377711356"],"photo_ids_order":["1377711356","1377711358","1377711360","1377711361","1377711362","1377711363"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a1fb0ccfb7efb62f0e98c9af1859cb66.jpg","text":"TemporaryFile(/tmp/multipartBody2091663850846220615asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531918734,"filename":"image_18082025_17_44_15_10773.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2181c1f540f9e95718f692eba82a40dd.jpg","text":"TemporaryFile(/tmp/multipartBody6963238631058785981asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531918734,"filename":"image_18082025_17_44_34_9682.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5d16c1b780f5046ea0519dee466ca1cd.jpg","text":"TemporaryFile(/tmp/multipartBody8452417207235078796asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531918734,"filename":"image_18082025_17_44_25_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/918320a28e14835d4afe17b48f67680a.jpg","text":"TemporaryFile(/tmp/multipartBody5973131632336365382asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531918734,"filename":"image_18082025_17_43_55_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9e2e7d2b5e7580bd6107f631608eee15.jpg","text":"TemporaryFile(/tmp/multipartBody2189001244074070237asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531918734,"filename":"image_18082025_17_44_04_9677.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/70c793e6567a7d92082eb92b0bb0a4b4.jpg","text":"TemporaryFile(/tmp/multipartBody1405180152208350386asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531918734,"filename":"image_18082025_17_44_45_10689.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377711360","file1":"1377711358","file0":"1377711356","file4":"1377711362","file5":"1377711363","file3":"1377711361"},"map_files_photo_id_array":[{"photo_id":"1377711363","filename":"file5"},{"photo_id":"1377711360","filename":"file2"},{"photo_id":"1377711362","filename":"file4"},{"photo_id":"1377711358","filename":"file1"},{"photo_id":"1377711356","filename":"file0"},{"photo_id":"1377711361","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377711361":["hashtag1","hashtag2"]},{"1377711358":["hashtag1","hashtag2"]},{"1377711360":["hashtag1","hashtag2"]},{"1377711363":["hashtag1","hashtag2"]},{"1377711362":["hashtag1","hashtag2"]},{"1377711356":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377711361, 1377711358, 1377711360, 1377711363, 1377711362, 1377711356)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.835062980651855 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:45:02.950085
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/03/image_18082025_10_03_55_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/10/03/image_18082025_10_03_44_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/10/03/image_18082025_10_03_35_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/10/03/image_18082025_10_03_24_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/10/03/image_18082025_10_03_15_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/10/02/image_18082025_10_03_05_10629.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/03/image_18082025_10_03_55_10628.jpg', '/home/nano/Desktop/images/18082025/10/03/image_18082025_10_03_44_9608.jpg', '/home/nano/Desktop/images/18082025/10/03/image_18082025_10_03_35_10623.jpg', '/home/nano/Desktop/images/18082025/10/03/image_18082025_10_03_24_9617.jpg', '/home/nano/Desktop/images/18082025/10/03/image_18082025_10_03_15_9635.jpg', '/home/nano/Desktop/images/18082025/10/02/image_18082025_10_03_05_10629.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/03/image_18082025_10_03_55_10628.jpg
/home/nano/Desktop/images/18082025/10/03/image_18082025_10_03_44_9608.jpg
/home/nano/Desktop/images/18082025/10/03/image_18082025_10_03_35_10623.jpg
/home/nano/Desktop/images/18082025/10/03/image_18082025_10_03_24_9617.jpg
/home/nano/Desktop/images/18082025/10/03/image_18082025_10_03_15_9635.jpg
/home/nano/Desktop/images/18082025/10/02/image_18082025_10_03_05_10629.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377711388","1377711373","1377711385","1377711370","1377711378","1377711386"],"photo_ids_order":["1377711370","1377711373","1377711378","1377711385","1377711386","1377711388"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f5c5c854e5f8bc4154f2b3bf94c54d57.jpg","text":"TemporaryFile(/tmp/multipartBody4834821954900734132asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531964249,"filename":"image_18082025_10_03_05_10629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b493b230d214b747a7b790408957f9f0.jpg","text":"TemporaryFile(/tmp/multipartBody1373968064918566345asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531964249,"filename":"image_18082025_10_03_44_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/955b0a608b02bcf429603f6e27b09215.jpg","text":"TemporaryFile(/tmp/multipartBody2899581523815732405asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531964249,"filename":"image_18082025_10_03_24_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/78d927d4fc62beee428b7249b06594a5.jpg","text":"TemporaryFile(/tmp/multipartBody8934219689821703304asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531964249,"filename":"image_18082025_10_03_55_10628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a9641e7045213a5a4cd74e4e8e9c9044.jpg","text":"TemporaryFile(/tmp/multipartBody1947275450284068284asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531964249,"filename":"image_18082025_10_03_35_10623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dc03b1ab7372d47ed27c8108486b11a6.jpg","text":"TemporaryFile(/tmp/multipartBody1221329798483528469asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755531964249,"filename":"image_18082025_10_03_15_9635.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377711378","file1":"1377711373","file0":"1377711370","file4":"1377711386","file5":"1377711388","file3":"1377711385"},"map_files_photo_id_array":[{"photo_id":"1377711388","filename":"file5"},{"photo_id":"1377711378","filename":"file2"},{"photo_id":"1377711386","filename":"file4"},{"photo_id":"1377711373","filename":"file1"},{"photo_id":"1377711370","filename":"file0"},{"photo_id":"1377711385","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377711388":["hashtag1","hashtag2"]},{"1377711373":["hashtag1","hashtag2"]},{"1377711385":["hashtag1","hashtag2"]},{"1377711370":["hashtag1","hashtag2"]},{"1377711378":["hashtag1","hashtag2"]},{"1377711386":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377711388, 1377711373, 1377711385, 1377711370, 1377711378, 1377711386)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.585248947143555 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:45:47.254750
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/45/image_18082025_17_45_44_9732.jpg', 2), ('/home/nano/Desktop/images/18082025/17/45/image_18082025_17_45_34_9727.jpg', 2), ('/home/nano/Desktop/images/18082025/17/45/image_18082025_17_45_25_9728.jpg', 2), ('/home/nano/Desktop/images/18082025/17/45/image_18082025_17_45_15_10743.jpg', 2), ('/home/nano/Desktop/images/18082025/17/44/image_18082025_17_45_04_9604.jpg', 2), ('/home/nano/Desktop/images/18082025/17/44/image_18082025_17_44_55_9713.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/45/image_18082025_17_45_44_9732.jpg', '/home/nano/Desktop/images/18082025/17/45/image_18082025_17_45_34_9727.jpg', '/home/nano/Desktop/images/18082025/17/45/image_18082025_17_45_25_9728.jpg', '/home/nano/Desktop/images/18082025/17/45/image_18082025_17_45_15_10743.jpg', '/home/nano/Desktop/images/18082025/17/44/image_18082025_17_45_04_9604.jpg', '/home/nano/Desktop/images/18082025/17/44/image_18082025_17_44_55_9713.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/45/image_18082025_17_45_44_9732.jpg
/home/nano/Desktop/images/18082025/17/45/image_18082025_17_45_34_9727.jpg
/home/nano/Desktop/images/18082025/17/45/image_18082025_17_45_25_9728.jpg
/home/nano/Desktop/images/18082025/17/45/image_18082025_17_45_15_10743.jpg
/home/nano/Desktop/images/18082025/17/44/image_18082025_17_45_04_9604.jpg
/home/nano/Desktop/images/18082025/17/44/image_18082025_17_44_55_9713.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377711401","1377711400","1377711399","1377711403","1377711405","1377711398"],"photo_ids_order":["1377711398","1377711399","1377711400","1377711401","1377711403","1377711405"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fc20c44f86f8dfd37e1d3c0dd04e6054.jpg","text":"TemporaryFile(/tmp/multipartBody556540463438374146asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532008951,"filename":"image_18082025_17_45_15_10743.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c1a7f6b2734e2b3e38e670fee0a6c8c9.jpg","text":"TemporaryFile(/tmp/multipartBody1542640001138077763asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532008951,"filename":"image_18082025_17_45_25_9728.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fcebad3cc90767b346bbb1a99dfb9991.jpg","text":"TemporaryFile(/tmp/multipartBody8416815603566992288asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532008951,"filename":"image_18082025_17_45_34_9727.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/76af690b538e2c97bcef8ea2f477c5b4.jpg","text":"TemporaryFile(/tmp/multipartBody3872858377247720854asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532008951,"filename":"image_18082025_17_45_04_9604.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d7ebbb0e0db49ad28156f5a38afbe0a8.jpg","text":"TemporaryFile(/tmp/multipartBody6871250535630297454asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532008951,"filename":"image_18082025_17_44_55_9713.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7ec0e1b1687ec3ba419715e635d046d1.jpg","text":"TemporaryFile(/tmp/multipartBody1664899820555210313asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532008951,"filename":"image_18082025_17_45_44_9732.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377711400","file1":"1377711399","file0":"1377711398","file4":"1377711403","file5":"1377711405","file3":"1377711401"},"map_files_photo_id_array":[{"photo_id":"1377711405","filename":"file5"},{"photo_id":"1377711400","filename":"file2"},{"photo_id":"1377711403","filename":"file4"},{"photo_id":"1377711399","filename":"file1"},{"photo_id":"1377711398","filename":"file0"},{"photo_id":"1377711401","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377711401":["hashtag1","hashtag2"]},{"1377711400":["hashtag1","hashtag2"]},{"1377711399":["hashtag1","hashtag2"]},{"1377711403":["hashtag1","hashtag2"]},{"1377711405":["hashtag1","hashtag2"]},{"1377711398":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377711401, 1377711400, 1377711399, 1377711403, 1377711405, 1377711398)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.895185232162476 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:46:32.381710
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/46/image_18082025_17_46_44_9673.jpg', 2), ('/home/nano/Desktop/images/18082025/17/46/image_18082025_17_46_35_10612.jpg', 2), ('/home/nano/Desktop/images/18082025/17/46/image_18082025_17_46_24_9733.jpg', 2), ('/home/nano/Desktop/images/18082025/17/46/image_18082025_17_46_14_9674.jpg', 2), ('/home/nano/Desktop/images/18082025/17/45/image_18082025_17_46_05_9703.jpg', 2), ('/home/nano/Desktop/images/18082025/17/45/image_18082025_17_45_55_10737.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/46/image_18082025_17_46_44_9673.jpg', '/home/nano/Desktop/images/18082025/17/46/image_18082025_17_46_35_10612.jpg', '/home/nano/Desktop/images/18082025/17/46/image_18082025_17_46_24_9733.jpg', '/home/nano/Desktop/images/18082025/17/46/image_18082025_17_46_14_9674.jpg', '/home/nano/Desktop/images/18082025/17/45/image_18082025_17_46_05_9703.jpg', '/home/nano/Desktop/images/18082025/17/45/image_18082025_17_45_55_10737.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/46/image_18082025_17_46_44_9673.jpg
/home/nano/Desktop/images/18082025/17/46/image_18082025_17_46_35_10612.jpg
/home/nano/Desktop/images/18082025/17/46/image_18082025_17_46_24_9733.jpg
/home/nano/Desktop/images/18082025/17/46/image_18082025_17_46_14_9674.jpg
/home/nano/Desktop/images/18082025/17/45/image_18082025_17_46_05_9703.jpg
/home/nano/Desktop/images/18082025/17/45/image_18082025_17_45_55_10737.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377711442","1377711436","1377711435","1377711444","1377711438","1377711446"],"photo_ids_order":["1377711435","1377711436","1377711438","1377711442","1377711444","1377711446"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7b3d16a40a09ffa52aa774ae8b58ca71.jpg","text":"TemporaryFile(/tmp/multipartBody2763365237080414088asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532053838,"filename":"image_18082025_17_46_14_9674.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d3d31b725060429cc99d0d281d86f386.jpg","text":"TemporaryFile(/tmp/multipartBody3079636063964491766asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532053838,"filename":"image_18082025_17_46_35_10612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/df19d5846755430f3bed7276a638def0.jpg","text":"TemporaryFile(/tmp/multipartBody7236306737110290960asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532053838,"filename":"image_18082025_17_46_44_9673.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/604fc5be1ecca88581a1ecd0c8c80914.jpg","text":"TemporaryFile(/tmp/multipartBody1076393406401068892asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532053838,"filename":"image_18082025_17_46_05_9703.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/878c114bc90a485561257cc9b1d13061.jpg","text":"TemporaryFile(/tmp/multipartBody3709585169498291781asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532053838,"filename":"image_18082025_17_46_24_9733.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0cc224ca9ad3aada9b5bcc48f1e485a0.jpg","text":"TemporaryFile(/tmp/multipartBody9050219968298950430asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532053838,"filename":"image_18082025_17_45_55_10737.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377711438","file1":"1377711436","file0":"1377711435","file4":"1377711444","file5":"1377711446","file3":"1377711442"},"map_files_photo_id_array":[{"photo_id":"1377711446","filename":"file5"},{"photo_id":"1377711438","filename":"file2"},{"photo_id":"1377711444","filename":"file4"},{"photo_id":"1377711436","filename":"file1"},{"photo_id":"1377711435","filename":"file0"},{"photo_id":"1377711442","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377711442":["hashtag1","hashtag2"]},{"1377711436":["hashtag1","hashtag2"]},{"1377711435":["hashtag1","hashtag2"]},{"1377711444":["hashtag1","hashtag2"]},{"1377711438":["hashtag1","hashtag2"]},{"1377711446":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377711442, 1377711436, 1377711435, 1377711444, 1377711438, 1377711446)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.14837455749512 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:47:17.520183
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/47/image_18082025_17_47_44_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/17/47/image_18082025_17_47_35_9698.jpg', 2), ('/home/nano/Desktop/images/18082025/17/47/image_18082025_17_47_25_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/17/47/image_18082025_17_47_14_9709.jpg', 2), ('/home/nano/Desktop/images/18082025/17/46/image_18082025_17_47_05_9719.jpg', 2), ('/home/nano/Desktop/images/18082025/17/46/image_18082025_17_46_55_10619.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/47/image_18082025_17_47_44_9646.jpg', '/home/nano/Desktop/images/18082025/17/47/image_18082025_17_47_35_9698.jpg', '/home/nano/Desktop/images/18082025/17/47/image_18082025_17_47_25_10624.jpg', '/home/nano/Desktop/images/18082025/17/47/image_18082025_17_47_14_9709.jpg', '/home/nano/Desktop/images/18082025/17/46/image_18082025_17_47_05_9719.jpg', '/home/nano/Desktop/images/18082025/17/46/image_18082025_17_46_55_10619.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/47/image_18082025_17_47_44_9646.jpg
/home/nano/Desktop/images/18082025/17/47/image_18082025_17_47_35_9698.jpg
/home/nano/Desktop/images/18082025/17/47/image_18082025_17_47_25_10624.jpg
/home/nano/Desktop/images/18082025/17/47/image_18082025_17_47_14_9709.jpg
/home/nano/Desktop/images/18082025/17/46/image_18082025_17_47_05_9719.jpg
/home/nano/Desktop/images/18082025/17/46/image_18082025_17_46_55_10619.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377711469","1377711457","1377711464","1377711458","1377711467","1377711461"],"photo_ids_order":["1377711457","1377711458","1377711461","1377711464","1377711467","1377711469"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/77daaa9e798d9aebb5c5d19b0e23b249.jpg","text":"TemporaryFile(/tmp/multipartBody7525648480884696840asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532098892,"filename":"image_18082025_17_46_55_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2afab8504fe24c210ade518172c4121c.jpg","text":"TemporaryFile(/tmp/multipartBody2475964195192618937asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532098892,"filename":"image_18082025_17_47_44_9646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2e26f92f42dd6f074d7088045ead9fe8.jpg","text":"TemporaryFile(/tmp/multipartBody6283447414310425905asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532098892,"filename":"image_18082025_17_47_14_9709.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/66fd4dc35582f012d8a8f82da403676b.jpg","text":"TemporaryFile(/tmp/multipartBody1258272030374405848asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532098892,"filename":"image_18082025_17_47_35_9698.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5504fdce4f5ab606564f4ce51c839f59.jpg","text":"TemporaryFile(/tmp/multipartBody1932402600681269995asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532098892,"filename":"image_18082025_17_47_05_9719.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6eb14ad0f01154df88bf025d83252f7b.jpg","text":"TemporaryFile(/tmp/multipartBody7244828617291711855asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532098892,"filename":"image_18082025_17_47_25_10624.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377711461","file1":"1377711458","file0":"1377711457","file4":"1377711467","file5":"1377711469","file3":"1377711464"},"map_files_photo_id_array":[{"photo_id":"1377711469","filename":"file5"},{"photo_id":"1377711461","filename":"file2"},{"photo_id":"1377711467","filename":"file4"},{"photo_id":"1377711458","filename":"file1"},{"photo_id":"1377711457","filename":"file0"},{"photo_id":"1377711464","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377711469":["hashtag1","hashtag2"]},{"1377711457":["hashtag1","hashtag2"]},{"1377711464":["hashtag1","hashtag2"]},{"1377711458":["hashtag1","hashtag2"]},{"1377711467":["hashtag1","hashtag2"]},{"1377711461":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377711469, 1377711457, 1377711464, 1377711458, 1377711467, 1377711461)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.874363660812378 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:48:03.147300
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/02/image_18082025_10_02_54_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/10/02/image_18082025_10_02_45_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/10/02/image_18082025_10_02_35_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/10/02/image_18082025_10_02_24_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/10/02/image_18082025_10_02_15_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/10/01/image_18082025_10_02_04_9652.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/02/image_18082025_10_02_54_9616.jpg', '/home/nano/Desktop/images/18082025/10/02/image_18082025_10_02_45_9617.jpg', '/home/nano/Desktop/images/18082025/10/02/image_18082025_10_02_35_10624.jpg', '/home/nano/Desktop/images/18082025/10/02/image_18082025_10_02_24_9616.jpg', '/home/nano/Desktop/images/18082025/10/02/image_18082025_10_02_15_10667.jpg', '/home/nano/Desktop/images/18082025/10/01/image_18082025_10_02_04_9652.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/02/image_18082025_10_02_54_9616.jpg
/home/nano/Desktop/images/18082025/10/02/image_18082025_10_02_45_9617.jpg
/home/nano/Desktop/images/18082025/10/02/image_18082025_10_02_35_10624.jpg
/home/nano/Desktop/images/18082025/10/02/image_18082025_10_02_24_9616.jpg
/home/nano/Desktop/images/18082025/10/02/image_18082025_10_02_15_10667.jpg
/home/nano/Desktop/images/18082025/10/01/image_18082025_10_02_04_9652.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377711481","1377711478","1377711483","1377711474","1377711476","1377711479"],"photo_ids_order":["1377711474","1377711476","1377711478","1377711479","1377711481","1377711483"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/53369e25f1dacbd4a803875aaf6bf1d4.jpg","text":"TemporaryFile(/tmp/multipartBody994374204238530612asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532144489,"filename":"image_18082025_10_02_15_10667.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2ca856147f5022868a13976b77c7e01c.jpg","text":"TemporaryFile(/tmp/multipartBody8858894284121847824asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532144489,"filename":"image_18082025_10_02_35_10624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b2f08d6b3759cf87c8c3004418cbdb1b.jpg","text":"TemporaryFile(/tmp/multipartBody4499237279560247062asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532144489,"filename":"image_18082025_10_02_04_9652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/551c2194817646cc329dc4f3b27be4b4.jpg","text":"TemporaryFile(/tmp/multipartBody368054213965505009asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532144489,"filename":"image_18082025_10_02_54_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5225331dd19559fc4c3c45ce3021f398.jpg","text":"TemporaryFile(/tmp/multipartBody5322711929971871958asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532144489,"filename":"image_18082025_10_02_45_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0baf39fdc85578ac7ac6e9502da7c5bb.jpg","text":"TemporaryFile(/tmp/multipartBody7327805589401791789asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532144489,"filename":"image_18082025_10_02_24_9616.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377711478","file1":"1377711476","file0":"1377711474","file4":"1377711481","file5":"1377711483","file3":"1377711479"},"map_files_photo_id_array":[{"photo_id":"1377711483","filename":"file5"},{"photo_id":"1377711478","filename":"file2"},{"photo_id":"1377711481","filename":"file4"},{"photo_id":"1377711476","filename":"file1"},{"photo_id":"1377711474","filename":"file0"},{"photo_id":"1377711479","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377711481":["hashtag1","hashtag2"]},{"1377711478":["hashtag1","hashtag2"]},{"1377711483":["hashtag1","hashtag2"]},{"1377711474":["hashtag1","hashtag2"]},{"1377711476":["hashtag1","hashtag2"]},{"1377711479":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377711481, 1377711478, 1377711483, 1377711474, 1377711476, 1377711479)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.388932943344116 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:48:47.653542
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/48/image_18082025_17_48_44_9750.jpg', 2), ('/home/nano/Desktop/images/18082025/17/48/image_18082025_17_48_35_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/17/48/image_18082025_17_48_25_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/17/48/image_18082025_17_48_14_9681.jpg', 2), ('/home/nano/Desktop/images/18082025/17/47/image_18082025_17_48_05_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/17/47/image_18082025_17_47_55_10655.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/48/image_18082025_17_48_44_9750.jpg', '/home/nano/Desktop/images/18082025/17/48/image_18082025_17_48_35_9624.jpg', '/home/nano/Desktop/images/18082025/17/48/image_18082025_17_48_25_10651.jpg', '/home/nano/Desktop/images/18082025/17/48/image_18082025_17_48_14_9681.jpg', '/home/nano/Desktop/images/18082025/17/47/image_18082025_17_48_05_9644.jpg', '/home/nano/Desktop/images/18082025/17/47/image_18082025_17_47_55_10655.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/48/image_18082025_17_48_44_9750.jpg
/home/nano/Desktop/images/18082025/17/48/image_18082025_17_48_35_9624.jpg
/home/nano/Desktop/images/18082025/17/48/image_18082025_17_48_25_10651.jpg
/home/nano/Desktop/images/18082025/17/48/image_18082025_17_48_14_9681.jpg
/home/nano/Desktop/images/18082025/17/47/image_18082025_17_48_05_9644.jpg
/home/nano/Desktop/images/18082025/17/47/image_18082025_17_47_55_10655.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377711493","1377711487","1377711496","1377711498","1377711489","1377711491"],"photo_ids_order":["1377711487","1377711489","1377711491","1377711493","1377711496","1377711498"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0de9322b4552c6eca85280005580b4c2.jpg","text":"TemporaryFile(/tmp/multipartBody1915943417700659088asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532189117,"filename":"image_18082025_17_48_14_9681.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0d8e779df96aeff638b3dbf91e2bebcb.jpg","text":"TemporaryFile(/tmp/multipartBody2639814573342508791asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532189117,"filename":"image_18082025_17_48_44_9750.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5c474965a11ce0e98863995852fbb973.jpg","text":"TemporaryFile(/tmp/multipartBody2897144187384826909asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532189117,"filename":"image_18082025_17_48_05_9644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c043da4e609f0e01f5047b6c4f6171b1.jpg","text":"TemporaryFile(/tmp/multipartBody8574119467940974515asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532189117,"filename":"image_18082025_17_47_55_10655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0822be8d44516fccd3443e3984f6a4a7.jpg","text":"TemporaryFile(/tmp/multipartBody7025813115222105039asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532189117,"filename":"image_18082025_17_48_35_9624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a56ddd12ab46fcb1706fcc277ea9084d.jpg","text":"TemporaryFile(/tmp/multipartBody1217518363109266037asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532189117,"filename":"image_18082025_17_48_25_10651.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377711491","file1":"1377711489","file0":"1377711487","file4":"1377711496","file5":"1377711498","file3":"1377711493"},"map_files_photo_id_array":[{"photo_id":"1377711498","filename":"file5"},{"photo_id":"1377711491","filename":"file2"},{"photo_id":"1377711496","filename":"file4"},{"photo_id":"1377711489","filename":"file1"},{"photo_id":"1377711487","filename":"file0"},{"photo_id":"1377711493","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377711493":["hashtag1","hashtag2"]},{"1377711487":["hashtag1","hashtag2"]},{"1377711496":["hashtag1","hashtag2"]},{"1377711498":["hashtag1","hashtag2"]},{"1377711489":["hashtag1","hashtag2"]},{"1377711491":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377711493, 1377711487, 1377711496, 1377711498, 1377711489, 1377711491)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.57536053657532 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:49:31.788729
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/49/image_18082025_17_49_44_9691.jpg', 2), ('/home/nano/Desktop/images/18082025/17/49/image_18082025_17_49_35_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/17/49/image_18082025_17_49_24_9719.jpg', 2), ('/home/nano/Desktop/images/18082025/17/48/image_18082025_17_49_05_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/17/48/image_18082025_17_48_55_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/10/01/image_18082025_10_01_54_9622.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/49/image_18082025_17_49_44_9691.jpg', '/home/nano/Desktop/images/18082025/17/49/image_18082025_17_49_35_10640.jpg', '/home/nano/Desktop/images/18082025/17/49/image_18082025_17_49_24_9719.jpg', '/home/nano/Desktop/images/18082025/17/48/image_18082025_17_49_05_9654.jpg', '/home/nano/Desktop/images/18082025/17/48/image_18082025_17_48_55_10635.jpg', '/home/nano/Desktop/images/18082025/10/01/image_18082025_10_01_54_9622.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/49/image_18082025_17_49_44_9691.jpg
/home/nano/Desktop/images/18082025/17/49/image_18082025_17_49_35_10640.jpg
/home/nano/Desktop/images/18082025/17/49/image_18082025_17_49_24_9719.jpg
/home/nano/Desktop/images/18082025/17/48/image_18082025_17_49_05_9654.jpg
/home/nano/Desktop/images/18082025/17/48/image_18082025_17_48_55_10635.jpg
/home/nano/Desktop/images/18082025/10/01/image_18082025_10_01_54_9622.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377711505","1377711508","1377711510","1377711513","1377711507","1377711512"],"photo_ids_order":["1377711505","1377711507","1377711508","1377711510","1377711512","1377711513"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3077396229d6ed7e517870a97df6cd97.jpg","text":"TemporaryFile(/tmp/multipartBody4690608427329745659asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532233342,"filename":"image_18082025_17_49_44_9691.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7e7ab9e13c75f03e70c406bacc91609b.jpg","text":"TemporaryFile(/tmp/multipartBody7096658559250904896asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532233342,"filename":"image_18082025_17_49_24_9719.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4018ac4a9309f32fefdd540323205e86.jpg","text":"TemporaryFile(/tmp/multipartBody68455970878443340asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532233342,"filename":"image_18082025_17_49_05_9654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d159d46e5d9194253c18d7ed2cbb5602.jpg","text":"TemporaryFile(/tmp/multipartBody6039932393542430765asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532233342,"filename":"image_18082025_10_01_54_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d13dce27afbc42318635b1b09a450785.jpg","text":"TemporaryFile(/tmp/multipartBody7861255436535418689asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532233342,"filename":"image_18082025_17_49_35_10640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b30c00b38ae60f8d99fd879474950514.jpg","text":"TemporaryFile(/tmp/multipartBody998067043957674837asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532233342,"filename":"image_18082025_17_48_55_10635.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377711508","file1":"1377711507","file0":"1377711505","file4":"1377711512","file5":"1377711513","file3":"1377711510"},"map_files_photo_id_array":[{"photo_id":"1377711513","filename":"file5"},{"photo_id":"1377711508","filename":"file2"},{"photo_id":"1377711512","filename":"file4"},{"photo_id":"1377711507","filename":"file1"},{"photo_id":"1377711505","filename":"file0"},{"photo_id":"1377711510","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377711505":["hashtag1","hashtag2"]},{"1377711508":["hashtag1","hashtag2"]},{"1377711510":["hashtag1","hashtag2"]},{"1377711513":["hashtag1","hashtag2"]},{"1377711507":["hashtag1","hashtag2"]},{"1377711512":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377711505, 1377711508, 1377711510, 1377711513, 1377711507, 1377711512)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.984769821166992 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:50:16.878581
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/50/image_18082025_17_50_45_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/17/50/image_18082025_17_50_35_10727.jpg', 2), ('/home/nano/Desktop/images/18082025/17/50/image_18082025_17_50_24_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/17/50/image_18082025_17_50_15_9766.jpg', 2), ('/home/nano/Desktop/images/18082025/17/49/image_18082025_17_50_05_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/17/49/image_18082025_17_49_54_9663.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/50/image_18082025_17_50_45_9629.jpg', '/home/nano/Desktop/images/18082025/17/50/image_18082025_17_50_35_10727.jpg', '/home/nano/Desktop/images/18082025/17/50/image_18082025_17_50_24_9663.jpg', '/home/nano/Desktop/images/18082025/17/50/image_18082025_17_50_15_9766.jpg', '/home/nano/Desktop/images/18082025/17/49/image_18082025_17_50_05_10648.jpg', '/home/nano/Desktop/images/18082025/17/49/image_18082025_17_49_54_9663.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/50/image_18082025_17_50_45_9629.jpg
/home/nano/Desktop/images/18082025/17/50/image_18082025_17_50_35_10727.jpg
/home/nano/Desktop/images/18082025/17/50/image_18082025_17_50_24_9663.jpg
/home/nano/Desktop/images/18082025/17/50/image_18082025_17_50_15_9766.jpg
/home/nano/Desktop/images/18082025/17/49/image_18082025_17_50_05_10648.jpg
/home/nano/Desktop/images/18082025/17/49/image_18082025_17_49_54_9663.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377711532","1377711534","1377711528","1377711525","1377711530","1377711533"],"photo_ids_order":["1377711525","1377711528","1377711530","1377711532","1377711533","1377711534"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/500528ca749f5fd646323ed886985ad5.jpg","text":"TemporaryFile(/tmp/multipartBody9171801474016897854asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532278423,"filename":"image_18082025_17_50_15_9766.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/56c6293966423b3257489d6ce1ca4c46.jpg","text":"TemporaryFile(/tmp/multipartBody709795894778237801asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532278423,"filename":"image_18082025_17_49_54_9663.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2b12a5ecd706347f054f78f032f31eef.jpg","text":"TemporaryFile(/tmp/multipartBody5265620662702354893asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532278423,"filename":"image_18082025_17_50_35_10727.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/27af27853d7147e673242f65ea7b38b1.jpg","text":"TemporaryFile(/tmp/multipartBody5167329484386229587asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532278423,"filename":"image_18082025_17_50_45_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8ceca23be3da57b4ddeeba47b0c3aba1.jpg","text":"TemporaryFile(/tmp/multipartBody4768343105618432795asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532278423,"filename":"image_18082025_17_50_24_9663.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/edd78b91e6448dae35edc34f5ea92058.jpg","text":"TemporaryFile(/tmp/multipartBody309166344106997392asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532278423,"filename":"image_18082025_17_50_05_10648.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377711530","file1":"1377711528","file0":"1377711525","file4":"1377711533","file5":"1377711534","file3":"1377711532"},"map_files_photo_id_array":[{"photo_id":"1377711534","filename":"file5"},{"photo_id":"1377711530","filename":"file2"},{"photo_id":"1377711533","filename":"file4"},{"photo_id":"1377711528","filename":"file1"},{"photo_id":"1377711525","filename":"file0"},{"photo_id":"1377711532","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377711532":["hashtag1","hashtag2"]},{"1377711534":["hashtag1","hashtag2"]},{"1377711528":["hashtag1","hashtag2"]},{"1377711525":["hashtag1","hashtag2"]},{"1377711530":["hashtag1","hashtag2"]},{"1377711533":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377711532, 1377711534, 1377711528, 1377711525, 1377711530, 1377711533)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.426337480545044 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:51:02.684823
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/51/image_18082025_17_51_44_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/10/01/image_18082025_10_01_45_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/10/01/image_18082025_10_01_34_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/10/01/image_18082025_10_01_25_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/10/01/image_18082025_10_01_15_10664.jpg', 2), ('/home/nano/Desktop/images/18082025/10/00/image_18082025_10_01_04_9637.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/51/image_18082025_17_51_44_9617.jpg', '/home/nano/Desktop/images/18082025/10/01/image_18082025_10_01_45_10631.jpg', '/home/nano/Desktop/images/18082025/10/01/image_18082025_10_01_34_9633.jpg', '/home/nano/Desktop/images/18082025/10/01/image_18082025_10_01_25_9623.jpg', '/home/nano/Desktop/images/18082025/10/01/image_18082025_10_01_15_10664.jpg', '/home/nano/Desktop/images/18082025/10/00/image_18082025_10_01_04_9637.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/51/image_18082025_17_51_44_9617.jpg
/home/nano/Desktop/images/18082025/10/01/image_18082025_10_01_45_10631.jpg
/home/nano/Desktop/images/18082025/10/01/image_18082025_10_01_34_9633.jpg
/home/nano/Desktop/images/18082025/10/01/image_18082025_10_01_25_9623.jpg
/home/nano/Desktop/images/18082025/10/01/image_18082025_10_01_15_10664.jpg
/home/nano/Desktop/images/18082025/10/00/image_18082025_10_01_04_9637.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377711553","1377711556","1377711541","1377711550","1377711547","1377711545"],"photo_ids_order":["1377711541","1377711545","1377711547","1377711550","1377711553","1377711556"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/96fa74873d8e299f2f2b030705bf2b65.jpg","text":"TemporaryFile(/tmp/multipartBody8781480622615985789asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532324009,"filename":"image_18082025_10_01_15_10664.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c798e2735509efaf589eb47861e2ce2f.jpg","text":"TemporaryFile(/tmp/multipartBody6395596418493980876asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532324009,"filename":"image_18082025_10_01_04_9637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c01794d5b9e0faa8c65760129942c99b.jpg","text":"TemporaryFile(/tmp/multipartBody7716962063589612575asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532324009,"filename":"image_18082025_17_51_44_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/de26e0cb91b679e4363cfb305a0b8c79.jpg","text":"TemporaryFile(/tmp/multipartBody4440110190822180448asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532324009,"filename":"image_18082025_10_01_25_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3efeb8dde469ddf839bd78a880fd4d94.jpg","text":"TemporaryFile(/tmp/multipartBody8441756529078771595asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532324009,"filename":"image_18082025_10_01_34_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c357f91487cfd6a33df04817352fd769.jpg","text":"TemporaryFile(/tmp/multipartBody4284949577276548783asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532324009,"filename":"image_18082025_10_01_45_10631.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377711547","file1":"1377711545","file0":"1377711541","file4":"1377711553","file5":"1377711556","file3":"1377711550"},"map_files_photo_id_array":[{"photo_id":"1377711556","filename":"file5"},{"photo_id":"1377711547","filename":"file2"},{"photo_id":"1377711553","filename":"file4"},{"photo_id":"1377711545","filename":"file1"},{"photo_id":"1377711541","filename":"file0"},{"photo_id":"1377711550","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377711553":["hashtag1","hashtag2"]},{"1377711556":["hashtag1","hashtag2"]},{"1377711541":["hashtag1","hashtag2"]},{"1377711550":["hashtag1","hashtag2"]},{"1377711547":["hashtag1","hashtag2"]},{"1377711545":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377711553, 1377711556, 1377711541, 1377711550, 1377711547, 1377711545)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.56278347969055 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:51:47.023590
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/51/image_18082025_17_51_35_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/17/51/image_18082025_17_51_24_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/17/51/image_18082025_17_51_15_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/17/50/image_18082025_17_51_05_10675.jpg', 2), ('/home/nano/Desktop/images/18082025/17/50/image_18082025_17_50_54_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/10/00/image_18082025_10_00_55_10620.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/51/image_18082025_17_51_35_10639.jpg', '/home/nano/Desktop/images/18082025/17/51/image_18082025_17_51_24_9644.jpg', '/home/nano/Desktop/images/18082025/17/51/image_18082025_17_51_15_9647.jpg', '/home/nano/Desktop/images/18082025/17/50/image_18082025_17_51_05_10675.jpg', '/home/nano/Desktop/images/18082025/17/50/image_18082025_17_50_54_9644.jpg', '/home/nano/Desktop/images/18082025/10/00/image_18082025_10_00_55_10620.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/51/image_18082025_17_51_35_10639.jpg
/home/nano/Desktop/images/18082025/17/51/image_18082025_17_51_24_9644.jpg
/home/nano/Desktop/images/18082025/17/51/image_18082025_17_51_15_9647.jpg
/home/nano/Desktop/images/18082025/17/50/image_18082025_17_51_05_10675.jpg
/home/nano/Desktop/images/18082025/17/50/image_18082025_17_50_54_9644.jpg
/home/nano/Desktop/images/18082025/10/00/image_18082025_10_00_55_10620.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377711568","1377711565","1377711567","1377711569","1377711572","1377711566"],"photo_ids_order":["1377711565","1377711566","1377711567","1377711568","1377711569","1377711572"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9fc7ed376f4d2f647e6bfd3acddefbad.jpg","text":"TemporaryFile(/tmp/multipartBody4259325248300645594asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532368425,"filename":"image_18082025_17_51_05_10675.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b61e790efc86da207e28fe0d9abb8fb0.jpg","text":"TemporaryFile(/tmp/multipartBody4175138409225240726asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532368425,"filename":"image_18082025_17_51_35_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2c1f3ac4e30b4c150b96f51dcc68400b.jpg","text":"TemporaryFile(/tmp/multipartBody1104719572331093699asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532368425,"filename":"image_18082025_17_51_15_9647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/81a6f582cdabb6b170237fa480ee267f.jpg","text":"TemporaryFile(/tmp/multipartBody4086463631587113522asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532368425,"filename":"image_18082025_17_50_54_9644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d6d5e2cb3ae6e143d6a3ada9e97a180d.jpg","text":"TemporaryFile(/tmp/multipartBody3166001696017215385asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532368425,"filename":"image_18082025_10_00_55_10620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7aa6006bc02965380861e7fd344879be.jpg","text":"TemporaryFile(/tmp/multipartBody3211142787520519363asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532368425,"filename":"image_18082025_17_51_24_9644.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377711567","file1":"1377711566","file0":"1377711565","file4":"1377711569","file5":"1377711572","file3":"1377711568"},"map_files_photo_id_array":[{"photo_id":"1377711572","filename":"file5"},{"photo_id":"1377711567","filename":"file2"},{"photo_id":"1377711569","filename":"file4"},{"photo_id":"1377711566","filename":"file1"},{"photo_id":"1377711565","filename":"file0"},{"photo_id":"1377711568","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377711568":["hashtag1","hashtag2"]},{"1377711565":["hashtag1","hashtag2"]},{"1377711567":["hashtag1","hashtag2"]},{"1377711569":["hashtag1","hashtag2"]},{"1377711572":["hashtag1","hashtag2"]},{"1377711566":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377711568, 1377711565, 1377711567, 1377711569, 1377711572, 1377711566)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.805651903152466 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:52:32.164793
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/52/image_18082025_17_52_44_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/17/52/image_18082025_17_52_35_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/17/52/image_18082025_17_52_25_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/17/52/image_18082025_17_52_14_9695.jpg', 2), ('/home/nano/Desktop/images/18082025/17/51/image_18082025_17_52_05_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/17/51/image_18082025_17_51_55_10623.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/52/image_18082025_17_52_44_9613.jpg', '/home/nano/Desktop/images/18082025/17/52/image_18082025_17_52_35_9631.jpg', '/home/nano/Desktop/images/18082025/17/52/image_18082025_17_52_25_10624.jpg', '/home/nano/Desktop/images/18082025/17/52/image_18082025_17_52_14_9695.jpg', '/home/nano/Desktop/images/18082025/17/51/image_18082025_17_52_05_9622.jpg', '/home/nano/Desktop/images/18082025/17/51/image_18082025_17_51_55_10623.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/52/image_18082025_17_52_44_9613.jpg
/home/nano/Desktop/images/18082025/17/52/image_18082025_17_52_35_9631.jpg
/home/nano/Desktop/images/18082025/17/52/image_18082025_17_52_25_10624.jpg
/home/nano/Desktop/images/18082025/17/52/image_18082025_17_52_14_9695.jpg
/home/nano/Desktop/images/18082025/17/51/image_18082025_17_52_05_9622.jpg
/home/nano/Desktop/images/18082025/17/51/image_18082025_17_51_55_10623.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377711580","1377711582","1377711579","1377711587","1377711584","1377711578"],"photo_ids_order":["1377711578","1377711579","1377711580","1377711582","1377711584","1377711587"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0555981296f74e1767edacdbe58f398f.jpg","text":"TemporaryFile(/tmp/multipartBody8166354908627045422asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532413425,"filename":"image_18082025_17_52_25_10624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b975752a955250d35e0afb8bdaee8d73.jpg","text":"TemporaryFile(/tmp/multipartBody6893190634419960524asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532413425,"filename":"image_18082025_17_52_14_9695.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8700e01021020c8c725ea4c191b1c33f.jpg","text":"TemporaryFile(/tmp/multipartBody3084323189526267009asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532413425,"filename":"image_18082025_17_52_35_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a9991887801fb8a061f3438291260453.jpg","text":"TemporaryFile(/tmp/multipartBody3615033011084517313asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532413425,"filename":"image_18082025_17_51_55_10623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bf38a9e08b0c2ba32429fa69b1086523.jpg","text":"TemporaryFile(/tmp/multipartBody3557521560354348005asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532413425,"filename":"image_18082025_17_52_05_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0f9f61bd2af8242ef72beeb77df6da0e.jpg","text":"TemporaryFile(/tmp/multipartBody250707498583636896asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532413425,"filename":"image_18082025_17_52_44_9613.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377711580","file1":"1377711579","file0":"1377711578","file4":"1377711584","file5":"1377711587","file3":"1377711582"},"map_files_photo_id_array":[{"photo_id":"1377711587","filename":"file5"},{"photo_id":"1377711580","filename":"file2"},{"photo_id":"1377711584","filename":"file4"},{"photo_id":"1377711579","filename":"file1"},{"photo_id":"1377711578","filename":"file0"},{"photo_id":"1377711582","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377711580":["hashtag1","hashtag2"]},{"1377711582":["hashtag1","hashtag2"]},{"1377711579":["hashtag1","hashtag2"]},{"1377711587":["hashtag1","hashtag2"]},{"1377711584":["hashtag1","hashtag2"]},{"1377711578":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377711580, 1377711582, 1377711579, 1377711587, 1377711584, 1377711578)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.8591091632843 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:53:17.244530
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/53/image_18082025_17_53_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/17/53/image_18082025_17_53_34_9598.jpg', 2), ('/home/nano/Desktop/images/18082025/17/53/image_18082025_17_53_25_10677.jpg', 2), ('/home/nano/Desktop/images/18082025/17/53/image_18082025_17_53_14_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/17/52/image_18082025_17_53_05_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/17/52/image_18082025_17_52_55_10629.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/53/image_18082025_17_53_44_9640.jpg', '/home/nano/Desktop/images/18082025/17/53/image_18082025_17_53_34_9598.jpg', '/home/nano/Desktop/images/18082025/17/53/image_18082025_17_53_25_10677.jpg', '/home/nano/Desktop/images/18082025/17/53/image_18082025_17_53_14_9654.jpg', '/home/nano/Desktop/images/18082025/17/52/image_18082025_17_53_05_9640.jpg', '/home/nano/Desktop/images/18082025/17/52/image_18082025_17_52_55_10629.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/53/image_18082025_17_53_44_9640.jpg
/home/nano/Desktop/images/18082025/17/53/image_18082025_17_53_34_9598.jpg
/home/nano/Desktop/images/18082025/17/53/image_18082025_17_53_25_10677.jpg
/home/nano/Desktop/images/18082025/17/53/image_18082025_17_53_14_9654.jpg
/home/nano/Desktop/images/18082025/17/52/image_18082025_17_53_05_9640.jpg
/home/nano/Desktop/images/18082025/17/52/image_18082025_17_52_55_10629.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377711607","1377711601","1377711609","1377711600","1377711603","1377711605"],"photo_ids_order":["1377711600","1377711601","1377711603","1377711605","1377711607","1377711609"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7cefe2f5f5afb43fbffb149e6bd90469.jpg","text":"TemporaryFile(/tmp/multipartBody2637684199563145097asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532458763,"filename":"image_18082025_17_53_05_9640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0b2c4c730c786d91e2865d83c8589bcd.jpg","text":"TemporaryFile(/tmp/multipartBody9070836788091974475asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532458763,"filename":"image_18082025_17_53_34_9598.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f84f844985f7f62af8834608a377492a.jpg","text":"TemporaryFile(/tmp/multipartBody2949133783577384070asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532458763,"filename":"image_18082025_17_52_55_10629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6078578524533ef7160c90b8084be24d.jpg","text":"TemporaryFile(/tmp/multipartBody3996800693820599420asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532458763,"filename":"image_18082025_17_53_44_9640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/04af82b1731f1915b8c6d590d1aa003a.jpg","text":"TemporaryFile(/tmp/multipartBody7046066508318343593asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532458763,"filename":"image_18082025_17_53_25_10677.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7507bb3cbde429495c0445edc0c7e31e.jpg","text":"TemporaryFile(/tmp/multipartBody3320384951309716541asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532458763,"filename":"image_18082025_17_53_14_9654.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377711603","file1":"1377711601","file0":"1377711600","file4":"1377711607","file5":"1377711609","file3":"1377711605"},"map_files_photo_id_array":[{"photo_id":"1377711609","filename":"file5"},{"photo_id":"1377711603","filename":"file2"},{"photo_id":"1377711607","filename":"file4"},{"photo_id":"1377711601","filename":"file1"},{"photo_id":"1377711600","filename":"file0"},{"photo_id":"1377711605","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377711607":["hashtag1","hashtag2"]},{"1377711601":["hashtag1","hashtag2"]},{"1377711609":["hashtag1","hashtag2"]},{"1377711600":["hashtag1","hashtag2"]},{"1377711603":["hashtag1","hashtag2"]},{"1377711605":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377711607, 1377711601, 1377711609, 1377711600, 1377711603, 1377711605)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.731339931488037 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:54:03.292139
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/10/00/image_18082025_10_00_44_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/10/00/image_18082025_10_00_34_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/10/00/image_18082025_10_00_25_10662.jpg', 2), ('/home/nano/Desktop/images/18082025/10/00/image_18082025_10_00_14_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/09/59/image_18082025_10_00_04_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/09/59/image_18082025_09_59_55_10646.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/10/00/image_18082025_10_00_44_9620.jpg', '/home/nano/Desktop/images/18082025/10/00/image_18082025_10_00_34_9625.jpg', '/home/nano/Desktop/images/18082025/10/00/image_18082025_10_00_25_10662.jpg', '/home/nano/Desktop/images/18082025/10/00/image_18082025_10_00_14_9657.jpg', '/home/nano/Desktop/images/18082025/09/59/image_18082025_10_00_04_9648.jpg', '/home/nano/Desktop/images/18082025/09/59/image_18082025_09_59_55_10646.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/10/00/image_18082025_10_00_44_9620.jpg
/home/nano/Desktop/images/18082025/10/00/image_18082025_10_00_34_9625.jpg
/home/nano/Desktop/images/18082025/10/00/image_18082025_10_00_25_10662.jpg
/home/nano/Desktop/images/18082025/10/00/image_18082025_10_00_14_9657.jpg
/home/nano/Desktop/images/18082025/09/59/image_18082025_10_00_04_9648.jpg
/home/nano/Desktop/images/18082025/09/59/image_18082025_09_59_55_10646.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377711622","1377711616","1377711619","1377711613","1377711627","1377711624"],"photo_ids_order":["1377711613","1377711616","1377711619","1377711622","1377711624","1377711627"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3b442178e19418e433c29a48ad2c199f.jpg","text":"TemporaryFile(/tmp/multipartBody1556410454351327106asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532504462,"filename":"image_18082025_10_00_14_9657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b99f9e4500a981068a4abf8d0e3b930a.jpg","text":"TemporaryFile(/tmp/multipartBody3553538256111473070asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532504462,"filename":"image_18082025_10_00_34_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e59a844e295771f974cede5d07c52d81.jpg","text":"TemporaryFile(/tmp/multipartBody138562345910263540asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532504462,"filename":"image_18082025_10_00_25_10662.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2af4a886faa582a7983d08da8ecc24b2.jpg","text":"TemporaryFile(/tmp/multipartBody8438039270433236179asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532504462,"filename":"image_18082025_10_00_44_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0e45890e69719a9ed67e1137fb84e97a.jpg","text":"TemporaryFile(/tmp/multipartBody8943341540069689688asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532504462,"filename":"image_18082025_09_59_55_10646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ca69d18fcec39a7e2eab59f30ff8e0ec.jpg","text":"TemporaryFile(/tmp/multipartBody226758716108577928asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532504462,"filename":"image_18082025_10_00_04_9648.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377711619","file1":"1377711616","file0":"1377711613","file4":"1377711624","file5":"1377711627","file3":"1377711622"},"map_files_photo_id_array":[{"photo_id":"1377711627","filename":"file5"},{"photo_id":"1377711619","filename":"file2"},{"photo_id":"1377711624","filename":"file4"},{"photo_id":"1377711616","filename":"file1"},{"photo_id":"1377711613","filename":"file0"},{"photo_id":"1377711622","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377711622":["hashtag1","hashtag2"]},{"1377711616":["hashtag1","hashtag2"]},{"1377711619":["hashtag1","hashtag2"]},{"1377711613":["hashtag1","hashtag2"]},{"1377711627":["hashtag1","hashtag2"]},{"1377711624":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377711622, 1377711616, 1377711619, 1377711613, 1377711627, 1377711624)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.53428554534912 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:54:47.378508
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/54/image_18082025_17_54_45_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/17/54/image_18082025_17_54_34_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/17/54/image_18082025_17_54_25_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/17/54/image_18082025_17_54_14_9676.jpg', 2), ('/home/nano/Desktop/images/18082025/17/53/image_18082025_17_54_04_9685.jpg', 2), ('/home/nano/Desktop/images/18082025/17/53/image_18082025_17_53_55_10638.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/54/image_18082025_17_54_45_10635.jpg', '/home/nano/Desktop/images/18082025/17/54/image_18082025_17_54_34_9608.jpg', '/home/nano/Desktop/images/18082025/17/54/image_18082025_17_54_25_10658.jpg', '/home/nano/Desktop/images/18082025/17/54/image_18082025_17_54_14_9676.jpg', '/home/nano/Desktop/images/18082025/17/53/image_18082025_17_54_04_9685.jpg', '/home/nano/Desktop/images/18082025/17/53/image_18082025_17_53_55_10638.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/54/image_18082025_17_54_45_10635.jpg
/home/nano/Desktop/images/18082025/17/54/image_18082025_17_54_34_9608.jpg
/home/nano/Desktop/images/18082025/17/54/image_18082025_17_54_25_10658.jpg
/home/nano/Desktop/images/18082025/17/54/image_18082025_17_54_14_9676.jpg
/home/nano/Desktop/images/18082025/17/53/image_18082025_17_54_04_9685.jpg
/home/nano/Desktop/images/18082025/17/53/image_18082025_17_53_55_10638.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377711643","1377711637","1377711645","1377711639","1377711641","1377711647"],"photo_ids_order":["1377711637","1377711639","1377711641","1377711643","1377711645","1377711647"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f2694aab6bcbf1e4282d6233377dc50f.jpg","text":"TemporaryFile(/tmp/multipartBody4454112027353025454asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532548929,"filename":"image_18082025_17_54_14_9676.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/eadaff30ab42b3bc4aecca960291d506.jpg","text":"TemporaryFile(/tmp/multipartBody5111589459748885001asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532548929,"filename":"image_18082025_17_54_45_10635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4dea35d6f4fb200f06695510e4208976.jpg","text":"TemporaryFile(/tmp/multipartBody6143954430020815095asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532548929,"filename":"image_18082025_17_54_04_9685.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7265608413b50b7ad4933ba46dbec39b.jpg","text":"TemporaryFile(/tmp/multipartBody7118223101587034088asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532548929,"filename":"image_18082025_17_54_34_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b42afd00cedb13ee7ba27f583f0ace33.jpg","text":"TemporaryFile(/tmp/multipartBody1886715307642952335asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532548929,"filename":"image_18082025_17_54_25_10658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9fbf6f8ecd0f8cc1084d188ba0e936b6.jpg","text":"TemporaryFile(/tmp/multipartBody8521832589818802344asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532548929,"filename":"image_18082025_17_53_55_10638.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377711641","file1":"1377711639","file0":"1377711637","file4":"1377711645","file5":"1377711647","file3":"1377711643"},"map_files_photo_id_array":[{"photo_id":"1377711647","filename":"file5"},{"photo_id":"1377711641","filename":"file2"},{"photo_id":"1377711645","filename":"file4"},{"photo_id":"1377711639","filename":"file1"},{"photo_id":"1377711637","filename":"file0"},{"photo_id":"1377711643","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377711643":["hashtag1","hashtag2"]},{"1377711637":["hashtag1","hashtag2"]},{"1377711645":["hashtag1","hashtag2"]},{"1377711639":["hashtag1","hashtag2"]},{"1377711641":["hashtag1","hashtag2"]},{"1377711647":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377711643, 1377711637, 1377711645, 1377711639, 1377711641, 1377711647)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.44759249687195 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:55:32.508858
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/55/image_18082025_17_55_45_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/17/55/image_18082025_17_55_34_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/17/55/image_18082025_17_55_25_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/17/55/image_18082025_17_55_15_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/17/54/image_18082025_17_55_04_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/17/54/image_18082025_17_54_55_9642.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/55/image_18082025_17_55_45_10653.jpg', '/home/nano/Desktop/images/18082025/17/55/image_18082025_17_55_34_9610.jpg', '/home/nano/Desktop/images/18082025/17/55/image_18082025_17_55_25_9644.jpg', '/home/nano/Desktop/images/18082025/17/55/image_18082025_17_55_15_10651.jpg', '/home/nano/Desktop/images/18082025/17/54/image_18082025_17_55_04_9628.jpg', '/home/nano/Desktop/images/18082025/17/54/image_18082025_17_54_55_9642.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/55/image_18082025_17_55_45_10653.jpg
/home/nano/Desktop/images/18082025/17/55/image_18082025_17_55_34_9610.jpg
/home/nano/Desktop/images/18082025/17/55/image_18082025_17_55_25_9644.jpg
/home/nano/Desktop/images/18082025/17/55/image_18082025_17_55_15_10651.jpg
/home/nano/Desktop/images/18082025/17/54/image_18082025_17_55_04_9628.jpg
/home/nano/Desktop/images/18082025/17/54/image_18082025_17_54_55_9642.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377711652","1377711658","1377711660","1377711654","1377711656","1377711659"],"photo_ids_order":["1377711652","1377711654","1377711656","1377711658","1377711659","1377711660"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/82bd67181edabea8a8d59cc393b8f855.jpg","text":"TemporaryFile(/tmp/multipartBody6636340828839129503asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532593936,"filename":"image_18082025_17_55_45_10653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6291109ea78189f2af573ecfc7c60ea1.jpg","text":"TemporaryFile(/tmp/multipartBody1562324746465399800asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532593936,"filename":"image_18082025_17_55_15_10651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/487f16192232d7782c7d39a2ef0cc519.jpg","text":"TemporaryFile(/tmp/multipartBody5654595992448982457asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532593936,"filename":"image_18082025_17_54_55_9642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a1a8b52124bedceb1be56aed9eebde83.jpg","text":"TemporaryFile(/tmp/multipartBody3945775538617001100asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532593936,"filename":"image_18082025_17_55_34_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b8f456ad548ad4bee3a6e3d091e2b773.jpg","text":"TemporaryFile(/tmp/multipartBody7296780180358360531asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532593936,"filename":"image_18082025_17_55_25_9644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c21d968a480da04f1554b20817fe0f80.jpg","text":"TemporaryFile(/tmp/multipartBody2901090960036116140asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532593936,"filename":"image_18082025_17_55_04_9628.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377711656","file1":"1377711654","file0":"1377711652","file4":"1377711659","file5":"1377711660","file3":"1377711658"},"map_files_photo_id_array":[{"photo_id":"1377711660","filename":"file5"},{"photo_id":"1377711656","filename":"file2"},{"photo_id":"1377711659","filename":"file4"},{"photo_id":"1377711654","filename":"file1"},{"photo_id":"1377711652","filename":"file0"},{"photo_id":"1377711658","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377711652":["hashtag1","hashtag2"]},{"1377711658":["hashtag1","hashtag2"]},{"1377711660":["hashtag1","hashtag2"]},{"1377711654":["hashtag1","hashtag2"]},{"1377711656":["hashtag1","hashtag2"]},{"1377711659":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377711652, 1377711658, 1377711660, 1377711654, 1377711656, 1377711659)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.78323149681091 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:56:17.643126
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/56/image_18082025_17_56_45_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/17/56/image_18082025_17_56_35_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/17/56/image_18082025_17_56_24_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/17/56/image_18082025_17_56_15_10617.jpg', 2), ('/home/nano/Desktop/images/18082025/17/55/image_18082025_17_56_04_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/17/55/image_18082025_17_55_54_9635.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/56/image_18082025_17_56_45_9620.jpg', '/home/nano/Desktop/images/18082025/17/56/image_18082025_17_56_35_10629.jpg', '/home/nano/Desktop/images/18082025/17/56/image_18082025_17_56_24_9648.jpg', '/home/nano/Desktop/images/18082025/17/56/image_18082025_17_56_15_10617.jpg', '/home/nano/Desktop/images/18082025/17/55/image_18082025_17_56_04_9615.jpg', '/home/nano/Desktop/images/18082025/17/55/image_18082025_17_55_54_9635.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/56/image_18082025_17_56_45_9620.jpg
/home/nano/Desktop/images/18082025/17/56/image_18082025_17_56_35_10629.jpg
/home/nano/Desktop/images/18082025/17/56/image_18082025_17_56_24_9648.jpg
/home/nano/Desktop/images/18082025/17/56/image_18082025_17_56_15_10617.jpg
/home/nano/Desktop/images/18082025/17/55/image_18082025_17_56_04_9615.jpg
/home/nano/Desktop/images/18082025/17/55/image_18082025_17_55_54_9635.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377711685","1377711679","1377711684","1377711672","1377711666","1377711683"],"photo_ids_order":["1377711666","1377711672","1377711679","1377711683","1377711684","1377711685"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c2733c390f82eb33176cb8fc75cd04d0.jpg","text":"TemporaryFile(/tmp/multipartBody3799784647577394047asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532638866,"filename":"image_18082025_17_55_54_9635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bd30eee2f18953a871d4cb00afb7fe2c.jpg","text":"TemporaryFile(/tmp/multipartBody387506823794734434asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532638866,"filename":"image_18082025_17_56_24_9648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/21a3dd0d705d9854813f3b4aa686152e.jpg","text":"TemporaryFile(/tmp/multipartBody335726853380968581asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532638866,"filename":"image_18082025_17_56_04_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8c44627806e99a699d5507b2ab6dd8fa.jpg","text":"TemporaryFile(/tmp/multipartBody8370869668363571992asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532638866,"filename":"image_18082025_17_56_35_10629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2425af4a2a7e64d61c4f0882db2e80cb.jpg","text":"TemporaryFile(/tmp/multipartBody4937022338952653995asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532638866,"filename":"image_18082025_17_56_45_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f0e9c48519d36a9800a981d888ee1ab7.jpg","text":"TemporaryFile(/tmp/multipartBody8927554409692955330asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532638866,"filename":"image_18082025_17_56_15_10617.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377711679","file1":"1377711672","file0":"1377711666","file4":"1377711684","file5":"1377711685","file3":"1377711683"},"map_files_photo_id_array":[{"photo_id":"1377711685","filename":"file5"},{"photo_id":"1377711679","filename":"file2"},{"photo_id":"1377711684","filename":"file4"},{"photo_id":"1377711672","filename":"file1"},{"photo_id":"1377711666","filename":"file0"},{"photo_id":"1377711683","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377711685":["hashtag1","hashtag2"]},{"1377711679":["hashtag1","hashtag2"]},{"1377711684":["hashtag1","hashtag2"]},{"1377711672":["hashtag1","hashtag2"]},{"1377711666":["hashtag1","hashtag2"]},{"1377711683":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377711685, 1377711679, 1377711684, 1377711672, 1377711666, 1377711683)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.355815887451172 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:57:02.411628
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/59/image_18082025_09_59_44_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/09/59/image_18082025_09_59_35_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/09/59/image_18082025_09_59_25_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/09/59/image_18082025_09_59_14_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/09/58/image_18082025_09_59_05_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/09/58/image_18082025_09_58_54_9606.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/59/image_18082025_09_59_44_9608.jpg', '/home/nano/Desktop/images/18082025/09/59/image_18082025_09_59_35_9606.jpg', '/home/nano/Desktop/images/18082025/09/59/image_18082025_09_59_25_10618.jpg', '/home/nano/Desktop/images/18082025/09/59/image_18082025_09_59_14_9636.jpg', '/home/nano/Desktop/images/18082025/09/58/image_18082025_09_59_05_10630.jpg', '/home/nano/Desktop/images/18082025/09/58/image_18082025_09_58_54_9606.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/59/image_18082025_09_59_44_9608.jpg
/home/nano/Desktop/images/18082025/09/59/image_18082025_09_59_35_9606.jpg
/home/nano/Desktop/images/18082025/09/59/image_18082025_09_59_25_10618.jpg
/home/nano/Desktop/images/18082025/09/59/image_18082025_09_59_14_9636.jpg
/home/nano/Desktop/images/18082025/09/58/image_18082025_09_59_05_10630.jpg
/home/nano/Desktop/images/18082025/09/58/image_18082025_09_58_54_9606.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377711697","1377711701","1377711703","1377711693","1377711700","1377711702"],"photo_ids_order":["1377711693","1377711697","1377711700","1377711701","1377711702","1377711703"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/824213827076097aaecae8cdd05be759.jpg","text":"TemporaryFile(/tmp/multipartBody897920723783441331asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532683649,"filename":"image_18082025_09_59_35_9606.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7b7cda3bdda002913e92acab675b9bd1.jpg","text":"TemporaryFile(/tmp/multipartBody2666120583211070236asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532683649,"filename":"image_18082025_09_59_14_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e65982ec2bdc8d80fc53359064c22f46.jpg","text":"TemporaryFile(/tmp/multipartBody6220998483462817665asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532683649,"filename":"image_18082025_09_58_54_9606.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c06393054fdaff7912743d3156a516de.jpg","text":"TemporaryFile(/tmp/multipartBody6578835156993392085asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532683649,"filename":"image_18082025_09_59_44_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9bbfb9bfe44984321cbdf9f3b534719c.jpg","text":"TemporaryFile(/tmp/multipartBody6973996909757879470asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532683649,"filename":"image_18082025_09_59_25_10618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/59f03f2fc41bcf7ea78690da59cad78e.jpg","text":"TemporaryFile(/tmp/multipartBody2658190066583327289asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532683649,"filename":"image_18082025_09_59_05_10630.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377711700","file1":"1377711697","file0":"1377711693","file4":"1377711702","file5":"1377711703","file3":"1377711701"},"map_files_photo_id_array":[{"photo_id":"1377711703","filename":"file5"},{"photo_id":"1377711700","filename":"file2"},{"photo_id":"1377711702","filename":"file4"},{"photo_id":"1377711697","filename":"file1"},{"photo_id":"1377711693","filename":"file0"},{"photo_id":"1377711701","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377711697":["hashtag1","hashtag2"]},{"1377711701":["hashtag1","hashtag2"]},{"1377711703":["hashtag1","hashtag2"]},{"1377711693":["hashtag1","hashtag2"]},{"1377711700":["hashtag1","hashtag2"]},{"1377711702":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377711697, 1377711701, 1377711703, 1377711693, 1377711700, 1377711702)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.299107551574707 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:57:46.765401
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/57/image_18082025_17_57_44_9604.jpg', 2), ('/home/nano/Desktop/images/18082025/17/57/image_18082025_17_57_35_10617.jpg', 2), ('/home/nano/Desktop/images/18082025/17/57/image_18082025_17_57_24_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/17/57/image_18082025_17_57_15_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/17/56/image_18082025_17_57_05_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/17/56/image_18082025_17_56_54_9622.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/57/image_18082025_17_57_44_9604.jpg', '/home/nano/Desktop/images/18082025/17/57/image_18082025_17_57_35_10617.jpg', '/home/nano/Desktop/images/18082025/17/57/image_18082025_17_57_24_9656.jpg', '/home/nano/Desktop/images/18082025/17/57/image_18082025_17_57_15_9664.jpg', '/home/nano/Desktop/images/18082025/17/56/image_18082025_17_57_05_10637.jpg', '/home/nano/Desktop/images/18082025/17/56/image_18082025_17_56_54_9622.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/57/image_18082025_17_57_44_9604.jpg
/home/nano/Desktop/images/18082025/17/57/image_18082025_17_57_35_10617.jpg
/home/nano/Desktop/images/18082025/17/57/image_18082025_17_57_24_9656.jpg
/home/nano/Desktop/images/18082025/17/57/image_18082025_17_57_15_9664.jpg
/home/nano/Desktop/images/18082025/17/56/image_18082025_17_57_05_10637.jpg
/home/nano/Desktop/images/18082025/17/56/image_18082025_17_56_54_9622.jpg
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:59:02.997810
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/57/image_18082025_17_57_44_9604.jpg', 2), ('/home/nano/Desktop/images/18082025/17/57/image_18082025_17_57_35_10617.jpg', 2), ('/home/nano/Desktop/images/18082025/17/57/image_18082025_17_57_24_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/17/57/image_18082025_17_57_15_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/17/56/image_18082025_17_57_05_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/17/56/image_18082025_17_56_54_9622.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/57/image_18082025_17_57_44_9604.jpg', '/home/nano/Desktop/images/18082025/17/57/image_18082025_17_57_35_10617.jpg', '/home/nano/Desktop/images/18082025/17/57/image_18082025_17_57_24_9656.jpg', '/home/nano/Desktop/images/18082025/17/57/image_18082025_17_57_15_9664.jpg', '/home/nano/Desktop/images/18082025/17/56/image_18082025_17_57_05_10637.jpg', '/home/nano/Desktop/images/18082025/17/56/image_18082025_17_56_54_9622.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/57/image_18082025_17_57_44_9604.jpg
/home/nano/Desktop/images/18082025/17/57/image_18082025_17_57_35_10617.jpg
/home/nano/Desktop/images/18082025/17/57/image_18082025_17_57_24_9656.jpg
/home/nano/Desktop/images/18082025/17/57/image_18082025_17_57_15_9664.jpg
/home/nano/Desktop/images/18082025/17/56/image_18082025_17_57_05_10637.jpg
/home/nano/Desktop/images/18082025/17/56/image_18082025_17_56_54_9622.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377711734","1377711730","1377711724","1377711727","1377711732","1377711722"],"photo_ids_order":["1377711722","1377711724","1377711727","1377711730","1377711732","1377711734"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/39d59d54dc8fa748125af77909d3fa91.jpg","text":"TemporaryFile(/tmp/multipartBody6858472885063300707asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532804146,"filename":"image_18082025_17_56_54_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2a11b8bc66caea206dfe78591d0c764f.jpg","text":"TemporaryFile(/tmp/multipartBody460845240477445438asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532804146,"filename":"image_18082025_17_57_15_9664.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ddd0eceb94120a5cc86006a4299fb592.jpg","text":"TemporaryFile(/tmp/multipartBody1047625298232185699asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532804146,"filename":"image_18082025_17_57_35_10617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6f70faa637b8d8e7a77ae076c1c0e0b8.jpg","text":"TemporaryFile(/tmp/multipartBody468777386777159260asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532804146,"filename":"image_18082025_17_57_24_9656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/873e61b78f524aa4da1df38eb24c69ad.jpg","text":"TemporaryFile(/tmp/multipartBody9169112702018494861asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532804146,"filename":"image_18082025_17_57_05_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0e49b7e02e6885b2b9d3917228e11ccc.jpg","text":"TemporaryFile(/tmp/multipartBody8527293535351462778asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532804146,"filename":"image_18082025_17_57_44_9604.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377711727","file1":"1377711724","file0":"1377711722","file4":"1377711732","file5":"1377711734","file3":"1377711730"},"map_files_photo_id_array":[{"photo_id":"1377711734","filename":"file5"},{"photo_id":"1377711727","filename":"file2"},{"photo_id":"1377711732","filename":"file4"},{"photo_id":"1377711724","filename":"file1"},{"photo_id":"1377711722","filename":"file0"},{"photo_id":"1377711730","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377711734":["hashtag1","hashtag2"]},{"1377711730":["hashtag1","hashtag2"]},{"1377711724":["hashtag1","hashtag2"]},{"1377711727":["hashtag1","hashtag2"]},{"1377711732":["hashtag1","hashtag2"]},{"1377711722":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377711734, 1377711730, 1377711724, 1377711727, 1377711732, 1377711722)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.64434838294983 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 17:59:46.891172
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/59/image_18082025_17_59_45_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/17/59/image_18082025_17_59_34_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/17/59/image_18082025_17_59_25_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/17/59/image_18082025_17_59_15_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/17/58/image_18082025_17_59_04_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/17/58/image_18082025_17_58_55_10632.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/59/image_18082025_17_59_45_10635.jpg', '/home/nano/Desktop/images/18082025/17/59/image_18082025_17_59_34_9625.jpg', '/home/nano/Desktop/images/18082025/17/59/image_18082025_17_59_25_9611.jpg', '/home/nano/Desktop/images/18082025/17/59/image_18082025_17_59_15_10630.jpg', '/home/nano/Desktop/images/18082025/17/58/image_18082025_17_59_04_9632.jpg', '/home/nano/Desktop/images/18082025/17/58/image_18082025_17_58_55_10632.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/59/image_18082025_17_59_45_10635.jpg
/home/nano/Desktop/images/18082025/17/59/image_18082025_17_59_34_9625.jpg
/home/nano/Desktop/images/18082025/17/59/image_18082025_17_59_25_9611.jpg
/home/nano/Desktop/images/18082025/17/59/image_18082025_17_59_15_10630.jpg
/home/nano/Desktop/images/18082025/17/58/image_18082025_17_59_04_9632.jpg
/home/nano/Desktop/images/18082025/17/58/image_18082025_17_58_55_10632.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377711754","1377711762","1377711756","1377711747","1377711758","1377711752"],"photo_ids_order":["1377711747","1377711752","1377711754","1377711756","1377711758","1377711762"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/27f308717c68646fe63c95148a0e8e77.jpg","text":"TemporaryFile(/tmp/multipartBody1488893618496217260asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532848265,"filename":"image_18082025_17_59_25_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9dfb15e13fe99c2433ba5fa838c3aea7.jpg","text":"TemporaryFile(/tmp/multipartBody6443994839344773808asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532848265,"filename":"image_18082025_17_58_55_10632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9acbd1a33a2639dc6ec4caada6a46b9f.jpg","text":"TemporaryFile(/tmp/multipartBody5220414352468394602asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532848265,"filename":"image_18082025_17_59_15_10630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3ce75c636104e756a464cb22397b4538.jpg","text":"TemporaryFile(/tmp/multipartBody6514179720852118019asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532848265,"filename":"image_18082025_17_59_45_10635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1b2e88c70818c90211a6262fe16f3078.jpg","text":"TemporaryFile(/tmp/multipartBody1804594812483520489asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532848265,"filename":"image_18082025_17_59_04_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/efb44695603d027136ceed72aa21d4ac.jpg","text":"TemporaryFile(/tmp/multipartBody5615476166237168426asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532848265,"filename":"image_18082025_17_59_34_9625.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377711754","file1":"1377711752","file0":"1377711747","file4":"1377711758","file5":"1377711762","file3":"1377711756"},"map_files_photo_id_array":[{"photo_id":"1377711762","filename":"file5"},{"photo_id":"1377711754","filename":"file2"},{"photo_id":"1377711758","filename":"file4"},{"photo_id":"1377711752","filename":"file1"},{"photo_id":"1377711747","filename":"file0"},{"photo_id":"1377711756","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377711754":["hashtag1","hashtag2"]},{"1377711762":["hashtag1","hashtag2"]},{"1377711756":["hashtag1","hashtag2"]},{"1377711747":["hashtag1","hashtag2"]},{"1377711758":["hashtag1","hashtag2"]},{"1377711752":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377711754, 1377711762, 1377711756, 1377711747, 1377711758, 1377711752)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.258331060409546 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:00:32.009301
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/00/image_18082025_18_00_54_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/18/00/image_18082025_18_00_35_10619.jpg', 2), ('/home/nano/Desktop/images/18082025/18/00/image_18082025_18_00_24_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/18/00/image_18082025_18_00_15_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/17/59/image_18082025_18_00_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/17/59/image_18082025_17_59_55_9612.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/00/image_18082025_18_00_54_9616.jpg', '/home/nano/Desktop/images/18082025/18/00/image_18082025_18_00_35_10619.jpg', '/home/nano/Desktop/images/18082025/18/00/image_18082025_18_00_24_9621.jpg', '/home/nano/Desktop/images/18082025/18/00/image_18082025_18_00_15_10658.jpg', '/home/nano/Desktop/images/18082025/17/59/image_18082025_18_00_04_9651.jpg', '/home/nano/Desktop/images/18082025/17/59/image_18082025_17_59_55_9612.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/00/image_18082025_18_00_54_9616.jpg
/home/nano/Desktop/images/18082025/18/00/image_18082025_18_00_35_10619.jpg
/home/nano/Desktop/images/18082025/18/00/image_18082025_18_00_24_9621.jpg
/home/nano/Desktop/images/18082025/18/00/image_18082025_18_00_15_10658.jpg
/home/nano/Desktop/images/18082025/17/59/image_18082025_18_00_04_9651.jpg
/home/nano/Desktop/images/18082025/17/59/image_18082025_17_59_55_9612.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377711778","1377711772","1377711775","1377711780","1377711782","1377711770"],"photo_ids_order":["1377711770","1377711772","1377711775","1377711778","1377711780","1377711782"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/338847911474cc89d31f384d639808dc.jpg","text":"TemporaryFile(/tmp/multipartBody7344612558751910777asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532893403,"filename":"image_18082025_18_00_15_10658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b7cee7c46d3ba63d7f1ced270e6962ca.jpg","text":"TemporaryFile(/tmp/multipartBody6899081478437461377asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532893403,"filename":"image_18082025_18_00_35_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ec5e33e9e5487583584a9aa32d248a77.jpg","text":"TemporaryFile(/tmp/multipartBody8914985319353225370asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532893403,"filename":"image_18082025_18_00_24_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/30db9965cc902b5f55cb4968e0c18fd5.jpg","text":"TemporaryFile(/tmp/multipartBody5247434282861513379asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532893403,"filename":"image_18082025_18_00_04_9651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/328813983b0540d590235d9618c51032.jpg","text":"TemporaryFile(/tmp/multipartBody6946503879894398849asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532893403,"filename":"image_18082025_17_59_55_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/08918d559c5d5417b210d59a8ae1ceae.jpg","text":"TemporaryFile(/tmp/multipartBody4335791769283418450asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532893403,"filename":"image_18082025_18_00_54_9616.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377711775","file1":"1377711772","file0":"1377711770","file4":"1377711780","file5":"1377711782","file3":"1377711778"},"map_files_photo_id_array":[{"photo_id":"1377711782","filename":"file5"},{"photo_id":"1377711775","filename":"file2"},{"photo_id":"1377711780","filename":"file4"},{"photo_id":"1377711772","filename":"file1"},{"photo_id":"1377711770","filename":"file0"},{"photo_id":"1377711778","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377711778":["hashtag1","hashtag2"]},{"1377711772":["hashtag1","hashtag2"]},{"1377711775":["hashtag1","hashtag2"]},{"1377711780":["hashtag1","hashtag2"]},{"1377711782":["hashtag1","hashtag2"]},{"1377711770":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377711778, 1377711772, 1377711775, 1377711780, 1377711782, 1377711770)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.036515474319458 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:01:17.074772
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/01/image_18082025_18_01_44_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/18/01/image_18082025_18_01_35_10615.jpg', 2), ('/home/nano/Desktop/images/18082025/18/01/image_18082025_18_01_24_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/18/01/image_18082025_18_01_15_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/18/00/image_18082025_18_01_05_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/18/00/image_18082025_18_00_45_9647.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/01/image_18082025_18_01_44_9606.jpg', '/home/nano/Desktop/images/18082025/18/01/image_18082025_18_01_35_10615.jpg', '/home/nano/Desktop/images/18082025/18/01/image_18082025_18_01_24_9615.jpg', '/home/nano/Desktop/images/18082025/18/01/image_18082025_18_01_15_9634.jpg', '/home/nano/Desktop/images/18082025/18/00/image_18082025_18_01_05_10653.jpg', '/home/nano/Desktop/images/18082025/18/00/image_18082025_18_00_45_9647.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/01/image_18082025_18_01_44_9606.jpg
/home/nano/Desktop/images/18082025/18/01/image_18082025_18_01_35_10615.jpg
/home/nano/Desktop/images/18082025/18/01/image_18082025_18_01_24_9615.jpg
/home/nano/Desktop/images/18082025/18/01/image_18082025_18_01_15_9634.jpg
/home/nano/Desktop/images/18082025/18/00/image_18082025_18_01_05_10653.jpg
/home/nano/Desktop/images/18082025/18/00/image_18082025_18_00_45_9647.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377711809","1377711817","1377711805","1377711807","1377711801","1377711797"],"photo_ids_order":["1377711797","1377711801","1377711805","1377711807","1377711809","1377711817"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bc5c4013f0c48d02efbf2bfb2e830dfb.jpg","text":"TemporaryFile(/tmp/multipartBody7497234409840308275asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532938318,"filename":"image_18082025_18_01_05_10653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/745a2fea24b46987d534b0093fd5d1d8.jpg","text":"TemporaryFile(/tmp/multipartBody8213296964431921821asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532938318,"filename":"image_18082025_18_00_45_9647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cc981782dd733b2460b726b890976221.jpg","text":"TemporaryFile(/tmp/multipartBody2289263936527849728asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532938318,"filename":"image_18082025_18_01_24_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/128d92006d9d5347f64e3d67f9374c2b.jpg","text":"TemporaryFile(/tmp/multipartBody1431729337602139966asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532938318,"filename":"image_18082025_18_01_15_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c974e569478e86e2668a7dc8d14f2ca0.jpg","text":"TemporaryFile(/tmp/multipartBody5106561235569012919asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532938318,"filename":"image_18082025_18_01_35_10615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f6e254d9a0209eca7e90417a87c95a0a.jpg","text":"TemporaryFile(/tmp/multipartBody6605630908483764846asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532938318,"filename":"image_18082025_18_01_44_9606.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377711805","file1":"1377711801","file0":"1377711797","file4":"1377711809","file5":"1377711817","file3":"1377711807"},"map_files_photo_id_array":[{"photo_id":"1377711817","filename":"file5"},{"photo_id":"1377711805","filename":"file2"},{"photo_id":"1377711809","filename":"file4"},{"photo_id":"1377711801","filename":"file1"},{"photo_id":"1377711797","filename":"file0"},{"photo_id":"1377711807","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377711809":["hashtag1","hashtag2"]},{"1377711817":["hashtag1","hashtag2"]},{"1377711805":["hashtag1","hashtag2"]},{"1377711807":["hashtag1","hashtag2"]},{"1377711801":["hashtag1","hashtag2"]},{"1377711797":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377711809, 1377711817, 1377711805, 1377711807, 1377711801, 1377711797)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.322176456451416 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:02:02.856266
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/17/58/image_18082025_17_58_44_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/17/58/image_18082025_17_58_35_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/17/58/image_18082025_17_58_25_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/17/58/image_18082025_17_58_14_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/17/57/image_18082025_17_58_05_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/17/57/image_18082025_17_57_55_10622.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/17/58/image_18082025_17_58_44_9610.jpg', '/home/nano/Desktop/images/18082025/17/58/image_18082025_17_58_35_9608.jpg', '/home/nano/Desktop/images/18082025/17/58/image_18082025_17_58_25_10628.jpg', '/home/nano/Desktop/images/18082025/17/58/image_18082025_17_58_14_9639.jpg', '/home/nano/Desktop/images/18082025/17/57/image_18082025_17_58_05_9633.jpg', '/home/nano/Desktop/images/18082025/17/57/image_18082025_17_57_55_10622.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/17/58/image_18082025_17_58_44_9610.jpg
/home/nano/Desktop/images/18082025/17/58/image_18082025_17_58_35_9608.jpg
/home/nano/Desktop/images/18082025/17/58/image_18082025_17_58_25_10628.jpg
/home/nano/Desktop/images/18082025/17/58/image_18082025_17_58_14_9639.jpg
/home/nano/Desktop/images/18082025/17/57/image_18082025_17_58_05_9633.jpg
/home/nano/Desktop/images/18082025/17/57/image_18082025_17_57_55_10622.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377711838","1377711840","1377711842","1377711836","1377711845","1377711839"],"photo_ids_order":["1377711836","1377711838","1377711839","1377711840","1377711842","1377711845"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9d265465070ac685d3b8a256b9c74113.jpg","text":"TemporaryFile(/tmp/multipartBody949906580125752196asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532983905,"filename":"image_18082025_17_58_35_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/920606bcefbe0183049707499fbba560.jpg","text":"TemporaryFile(/tmp/multipartBody6649166682607085932asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532983905,"filename":"image_18082025_17_58_14_9639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8d38576ffa909cb1f3867d8784d71d05.jpg","text":"TemporaryFile(/tmp/multipartBody5485223633087822432asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532983905,"filename":"image_18082025_17_58_05_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ef2ea2c484b20d542dc561d1ff3303f9.jpg","text":"TemporaryFile(/tmp/multipartBody4245665207148182119asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532983905,"filename":"image_18082025_17_58_44_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/46388a5037e7af9ad31a8748c69ed9e4.jpg","text":"TemporaryFile(/tmp/multipartBody2951028453640006654asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532983905,"filename":"image_18082025_17_57_55_10622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b6d8a4d95daab47f86ed50fb830f58ef.jpg","text":"TemporaryFile(/tmp/multipartBody7527730447893950572asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755532983905,"filename":"image_18082025_17_58_25_10628.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377711839","file1":"1377711838","file0":"1377711836","file4":"1377711842","file5":"1377711845","file3":"1377711840"},"map_files_photo_id_array":[{"photo_id":"1377711845","filename":"file5"},{"photo_id":"1377711839","filename":"file2"},{"photo_id":"1377711842","filename":"file4"},{"photo_id":"1377711838","filename":"file1"},{"photo_id":"1377711836","filename":"file0"},{"photo_id":"1377711840","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377711838":["hashtag1","hashtag2"]},{"1377711840":["hashtag1","hashtag2"]},{"1377711842":["hashtag1","hashtag2"]},{"1377711836":["hashtag1","hashtag2"]},{"1377711845":["hashtag1","hashtag2"]},{"1377711839":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377711838, 1377711840, 1377711842, 1377711836, 1377711845, 1377711839)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.973289966583252 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:02:47.182766
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/02/image_18082025_18_02_44_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/18/02/image_18082025_18_02_35_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/18/02/image_18082025_18_02_25_10657.jpg', 2), ('/home/nano/Desktop/images/18082025/18/02/image_18082025_18_02_14_9672.jpg', 2), ('/home/nano/Desktop/images/18082025/18/01/image_18082025_18_02_05_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/18/01/image_18082025_18_01_54_9633.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/02/image_18082025_18_02_44_9617.jpg', '/home/nano/Desktop/images/18082025/18/02/image_18082025_18_02_35_9607.jpg', '/home/nano/Desktop/images/18082025/18/02/image_18082025_18_02_25_10657.jpg', '/home/nano/Desktop/images/18082025/18/02/image_18082025_18_02_14_9672.jpg', '/home/nano/Desktop/images/18082025/18/01/image_18082025_18_02_05_10642.jpg', '/home/nano/Desktop/images/18082025/18/01/image_18082025_18_01_54_9633.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/02/image_18082025_18_02_44_9617.jpg
/home/nano/Desktop/images/18082025/18/02/image_18082025_18_02_35_9607.jpg
/home/nano/Desktop/images/18082025/18/02/image_18082025_18_02_25_10657.jpg
/home/nano/Desktop/images/18082025/18/02/image_18082025_18_02_14_9672.jpg
/home/nano/Desktop/images/18082025/18/01/image_18082025_18_02_05_10642.jpg
/home/nano/Desktop/images/18082025/18/01/image_18082025_18_01_54_9633.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377711853","1377711856","1377711861","1377711855","1377711854","1377711857"],"photo_ids_order":["1377711853","1377711854","1377711855","1377711856","1377711857","1377711861"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b4979751c349784b088190ecc5280491.jpg","text":"TemporaryFile(/tmp/multipartBody5792923479011086685asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533028546,"filename":"image_18082025_18_02_44_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/738fc98db01c5db815a42c28c375880f.jpg","text":"TemporaryFile(/tmp/multipartBody805800158896480753asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533028546,"filename":"image_18082025_18_02_14_9672.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/886f361358e17a35ccda3616727e4198.jpg","text":"TemporaryFile(/tmp/multipartBody6092870887836874966asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533028546,"filename":"image_18082025_18_01_54_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/299de636a8d935df1b6ee2033a3a50c1.jpg","text":"TemporaryFile(/tmp/multipartBody1136332322188153814asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533028546,"filename":"image_18082025_18_02_25_10657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bc54204d2179959e0cc1889f801c4a62.jpg","text":"TemporaryFile(/tmp/multipartBody7600825795385703566asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533028546,"filename":"image_18082025_18_02_35_9607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b7be653d757cc023f7d4f2047f8d61f1.jpg","text":"TemporaryFile(/tmp/multipartBody7647075244133971618asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533028546,"filename":"image_18082025_18_02_05_10642.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377711855","file1":"1377711854","file0":"1377711853","file4":"1377711857","file5":"1377711861","file3":"1377711856"},"map_files_photo_id_array":[{"photo_id":"1377711861","filename":"file5"},{"photo_id":"1377711855","filename":"file2"},{"photo_id":"1377711857","filename":"file4"},{"photo_id":"1377711854","filename":"file1"},{"photo_id":"1377711853","filename":"file0"},{"photo_id":"1377711856","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377711853":["hashtag1","hashtag2"]},{"1377711856":["hashtag1","hashtag2"]},{"1377711861":["hashtag1","hashtag2"]},{"1377711855":["hashtag1","hashtag2"]},{"1377711854":["hashtag1","hashtag2"]},{"1377711857":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377711853, 1377711856, 1377711861, 1377711855, 1377711854, 1377711857)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.144098043441772 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:03:32.288349
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/03/image_18082025_18_03_45_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/18/03/image_18082025_18_03_34_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/18/03/image_18082025_18_03_25_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/18/03/image_18082025_18_03_14_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/18/02/image_18082025_18_03_05_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/18/02/image_18082025_18_02_55_10631.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/03/image_18082025_18_03_45_10623.jpg', '/home/nano/Desktop/images/18082025/18/03/image_18082025_18_03_34_9614.jpg', '/home/nano/Desktop/images/18082025/18/03/image_18082025_18_03_25_10631.jpg', '/home/nano/Desktop/images/18082025/18/03/image_18082025_18_03_14_9639.jpg', '/home/nano/Desktop/images/18082025/18/02/image_18082025_18_03_05_9611.jpg', '/home/nano/Desktop/images/18082025/18/02/image_18082025_18_02_55_10631.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/03/image_18082025_18_03_45_10623.jpg
/home/nano/Desktop/images/18082025/18/03/image_18082025_18_03_34_9614.jpg
/home/nano/Desktop/images/18082025/18/03/image_18082025_18_03_25_10631.jpg
/home/nano/Desktop/images/18082025/18/03/image_18082025_18_03_14_9639.jpg
/home/nano/Desktop/images/18082025/18/02/image_18082025_18_03_05_9611.jpg
/home/nano/Desktop/images/18082025/18/02/image_18082025_18_02_55_10631.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377711883","1377711871","1377711891","1377711894","1377711872","1377711896"],"photo_ids_order":["1377711871","1377711872","1377711883","1377711891","1377711894","1377711896"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/eaa1bd8ce49fe0aabe0d193cc946b4d5.jpg","text":"TemporaryFile(/tmp/multipartBody5073358145060852111asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533073636,"filename":"image_18082025_18_03_25_10631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8ccc23b52bb7b5b66df93cc4e88b527a.jpg","text":"TemporaryFile(/tmp/multipartBody6384967644156663asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533073636,"filename":"image_18082025_18_03_45_10623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/31b011d59dc07cf036e08d5ae0d70064.jpg","text":"TemporaryFile(/tmp/multipartBody2216763637067123377asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533073636,"filename":"image_18082025_18_03_14_9639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b03fb2bc9e4353078fd37c3f189489e8.jpg","text":"TemporaryFile(/tmp/multipartBody2137270744977210476asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533073636,"filename":"image_18082025_18_03_05_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1ff1fd2f5483f71dee0d0a11565a19a8.jpg","text":"TemporaryFile(/tmp/multipartBody2070606756792024607asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533073636,"filename":"image_18082025_18_03_34_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/336ab76abcfc0d770100b0092a1e82e8.jpg","text":"TemporaryFile(/tmp/multipartBody269030054304876558asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533073636,"filename":"image_18082025_18_02_55_10631.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377711883","file1":"1377711872","file0":"1377711871","file4":"1377711894","file5":"1377711896","file3":"1377711891"},"map_files_photo_id_array":[{"photo_id":"1377711896","filename":"file5"},{"photo_id":"1377711883","filename":"file2"},{"photo_id":"1377711894","filename":"file4"},{"photo_id":"1377711872","filename":"file1"},{"photo_id":"1377711871","filename":"file0"},{"photo_id":"1377711891","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377711883":["hashtag1","hashtag2"]},{"1377711871":["hashtag1","hashtag2"]},{"1377711891":["hashtag1","hashtag2"]},{"1377711894":["hashtag1","hashtag2"]},{"1377711872":["hashtag1","hashtag2"]},{"1377711896":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377711883, 1377711871, 1377711891, 1377711894, 1377711872, 1377711896)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.09378480911255 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:04:17.410288
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/04/image_18082025_18_04_45_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/18/04/image_18082025_18_04_34_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/18/04/image_18082025_18_04_25_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/18/04/image_18082025_18_04_15_10664.jpg', 2), ('/home/nano/Desktop/images/18082025/18/03/image_18082025_18_04_04_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/18/03/image_18082025_18_03_55_9624.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/04/image_18082025_18_04_45_10629.jpg', '/home/nano/Desktop/images/18082025/18/04/image_18082025_18_04_34_9633.jpg', '/home/nano/Desktop/images/18082025/18/04/image_18082025_18_04_25_9615.jpg', '/home/nano/Desktop/images/18082025/18/04/image_18082025_18_04_15_10664.jpg', '/home/nano/Desktop/images/18082025/18/03/image_18082025_18_04_04_9643.jpg', '/home/nano/Desktop/images/18082025/18/03/image_18082025_18_03_55_9624.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/04/image_18082025_18_04_45_10629.jpg
/home/nano/Desktop/images/18082025/18/04/image_18082025_18_04_34_9633.jpg
/home/nano/Desktop/images/18082025/18/04/image_18082025_18_04_25_9615.jpg
/home/nano/Desktop/images/18082025/18/04/image_18082025_18_04_15_10664.jpg
/home/nano/Desktop/images/18082025/18/03/image_18082025_18_04_04_9643.jpg
/home/nano/Desktop/images/18082025/18/03/image_18082025_18_03_55_9624.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377711911","1377711908","1377711913","1377711906","1377711915","1377711917"],"photo_ids_order":["1377711906","1377711908","1377711911","1377711913","1377711915","1377711917"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2e16ba9de9d5089aaa26ab50c4fb2fe4.jpg","text":"TemporaryFile(/tmp/multipartBody8289566675187528303asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533118591,"filename":"image_18082025_18_04_25_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6b0e67f42f6adca513d1ba182d67ce86.jpg","text":"TemporaryFile(/tmp/multipartBody2156418338086929007asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533118591,"filename":"image_18082025_18_04_34_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/163837c972a84ca650e916cb5f4270b5.jpg","text":"TemporaryFile(/tmp/multipartBody381193749707591530asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533118591,"filename":"image_18082025_18_04_15_10664.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0a1842dcfe5acb58143ff0dd3ddd4575.jpg","text":"TemporaryFile(/tmp/multipartBody750366720359040391asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533118591,"filename":"image_18082025_18_04_45_10629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/57270686dafd42909f1b8e9c02e84cb5.jpg","text":"TemporaryFile(/tmp/multipartBody7954712441196894620asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533118591,"filename":"image_18082025_18_04_04_9643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ba38db54529320a70dc8ea8fb7e06dd7.jpg","text":"TemporaryFile(/tmp/multipartBody3763996569244136745asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533118591,"filename":"image_18082025_18_03_55_9624.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377711911","file1":"1377711908","file0":"1377711906","file4":"1377711915","file5":"1377711917","file3":"1377711913"},"map_files_photo_id_array":[{"photo_id":"1377711917","filename":"file5"},{"photo_id":"1377711911","filename":"file2"},{"photo_id":"1377711915","filename":"file4"},{"photo_id":"1377711908","filename":"file1"},{"photo_id":"1377711906","filename":"file0"},{"photo_id":"1377711913","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377711911":["hashtag1","hashtag2"]},{"1377711908":["hashtag1","hashtag2"]},{"1377711913":["hashtag1","hashtag2"]},{"1377711906":["hashtag1","hashtag2"]},{"1377711915":["hashtag1","hashtag2"]},{"1377711917":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377711911, 1377711908, 1377711913, 1377711906, 1377711915, 1377711917)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.187228441238403 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:05:03.129362
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/58/image_18082025_09_58_44_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/58/image_18082025_09_58_35_10622.jpg', 2), ('/home/nano/Desktop/images/18082025/09/58/image_18082025_09_58_24_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/09/58/image_18082025_09_58_15_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/09/57/image_18082025_09_58_05_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/09/57/image_18082025_09_57_54_9609.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/58/image_18082025_09_58_44_9616.jpg', '/home/nano/Desktop/images/18082025/09/58/image_18082025_09_58_35_10622.jpg', '/home/nano/Desktop/images/18082025/09/58/image_18082025_09_58_24_9607.jpg', '/home/nano/Desktop/images/18082025/09/58/image_18082025_09_58_15_9642.jpg', '/home/nano/Desktop/images/18082025/09/57/image_18082025_09_58_05_10625.jpg', '/home/nano/Desktop/images/18082025/09/57/image_18082025_09_57_54_9609.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/58/image_18082025_09_58_44_9616.jpg
/home/nano/Desktop/images/18082025/09/58/image_18082025_09_58_35_10622.jpg
/home/nano/Desktop/images/18082025/09/58/image_18082025_09_58_24_9607.jpg
/home/nano/Desktop/images/18082025/09/58/image_18082025_09_58_15_9642.jpg
/home/nano/Desktop/images/18082025/09/57/image_18082025_09_58_05_10625.jpg
/home/nano/Desktop/images/18082025/09/57/image_18082025_09_57_54_9609.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377711942","1377711936","1377711939","1377711930","1377711933","1377711927"],"photo_ids_order":["1377711927","1377711930","1377711933","1377711936","1377711939","1377711942"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a93cc3b1217f4bd62a189c8da1538ea8.jpg","text":"TemporaryFile(/tmp/multipartBody6182608098463307216asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533164453,"filename":"image_18082025_09_57_54_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d82be1ef51859e420a811a50f57b7b23.jpg","text":"TemporaryFile(/tmp/multipartBody4344843202990296552asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533164453,"filename":"image_18082025_09_58_15_9642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/acf8e167dea85f3bb55ddb47cb7c9a5f.jpg","text":"TemporaryFile(/tmp/multipartBody8097896956661014365asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533164453,"filename":"image_18082025_09_58_05_10625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/26a155cfc5cb8dfecc0d88bb58f5aeba.jpg","text":"TemporaryFile(/tmp/multipartBody8267313585599768933asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533164453,"filename":"image_18082025_09_58_35_10622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ea45ccfa777453c523f3cc58328c3c4d.jpg","text":"TemporaryFile(/tmp/multipartBody2075182979880443443asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533164453,"filename":"image_18082025_09_58_24_9607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0f2c73c09da6511e7f317b02dd4781a2.jpg","text":"TemporaryFile(/tmp/multipartBody4362732827366644490asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533164453,"filename":"image_18082025_09_58_44_9616.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377711933","file1":"1377711930","file0":"1377711927","file4":"1377711939","file5":"1377711942","file3":"1377711936"},"map_files_photo_id_array":[{"photo_id":"1377711942","filename":"file5"},{"photo_id":"1377711933","filename":"file2"},{"photo_id":"1377711939","filename":"file4"},{"photo_id":"1377711930","filename":"file1"},{"photo_id":"1377711927","filename":"file0"},{"photo_id":"1377711936","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377711942":["hashtag1","hashtag2"]},{"1377711936":["hashtag1","hashtag2"]},{"1377711939":["hashtag1","hashtag2"]},{"1377711930":["hashtag1","hashtag2"]},{"1377711933":["hashtag1","hashtag2"]},{"1377711927":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377711942, 1377711936, 1377711939, 1377711930, 1377711933, 1377711927)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.24074673652649 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:05:47.498856
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/05/image_18082025_18_05_45_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/18/05/image_18082025_18_05_35_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/18/05/image_18082025_18_05_24_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/18/05/image_18082025_18_05_15_10662.jpg', 2), ('/home/nano/Desktop/images/18082025/18/04/image_18082025_18_05_04_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/18/04/image_18082025_18_04_54_9613.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/05/image_18082025_18_05_45_9613.jpg', '/home/nano/Desktop/images/18082025/18/05/image_18082025_18_05_35_10618.jpg', '/home/nano/Desktop/images/18082025/18/05/image_18082025_18_05_24_9620.jpg', '/home/nano/Desktop/images/18082025/18/05/image_18082025_18_05_15_10662.jpg', '/home/nano/Desktop/images/18082025/18/04/image_18082025_18_05_04_9641.jpg', '/home/nano/Desktop/images/18082025/18/04/image_18082025_18_04_54_9613.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/05/image_18082025_18_05_45_9613.jpg
/home/nano/Desktop/images/18082025/18/05/image_18082025_18_05_35_10618.jpg
/home/nano/Desktop/images/18082025/18/05/image_18082025_18_05_24_9620.jpg
/home/nano/Desktop/images/18082025/18/05/image_18082025_18_05_15_10662.jpg
/home/nano/Desktop/images/18082025/18/04/image_18082025_18_05_04_9641.jpg
/home/nano/Desktop/images/18082025/18/04/image_18082025_18_04_54_9613.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377711976","1377711979","1377711973","1377711990","1377711987","1377711983"],"photo_ids_order":["1377711973","1377711976","1377711979","1377711983","1377711987","1377711990"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/15e752fd84d5f7135d7c71dde8e5ddd8.jpg","text":"TemporaryFile(/tmp/multipartBody4218248133210229821asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533208887,"filename":"image_18082025_18_05_35_10618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a054e59435c143ec700f7cca6e6abb88.jpg","text":"TemporaryFile(/tmp/multipartBody2429312751007709542asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533208887,"filename":"image_18082025_18_05_24_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2a6b8cda6d3a1a72ef931c8bb43acae2.jpg","text":"TemporaryFile(/tmp/multipartBody8415945648819325153asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533208887,"filename":"image_18082025_18_05_45_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/feef2c65b63dfa0f69b5fc0fee50c759.jpg","text":"TemporaryFile(/tmp/multipartBody125770268272531327asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533208887,"filename":"image_18082025_18_04_54_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/018fe88ad7ddad5476fd24891312f42c.jpg","text":"TemporaryFile(/tmp/multipartBody2348549860550699806asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533208887,"filename":"image_18082025_18_05_04_9641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/701ec50f90fdb00930473b6d1d820f1c.jpg","text":"TemporaryFile(/tmp/multipartBody9148957830720522497asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533208887,"filename":"image_18082025_18_05_15_10662.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377711979","file1":"1377711976","file0":"1377711973","file4":"1377711987","file5":"1377711990","file3":"1377711983"},"map_files_photo_id_array":[{"photo_id":"1377711990","filename":"file5"},{"photo_id":"1377711979","filename":"file2"},{"photo_id":"1377711987","filename":"file4"},{"photo_id":"1377711976","filename":"file1"},{"photo_id":"1377711973","filename":"file0"},{"photo_id":"1377711983","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377711976":["hashtag1","hashtag2"]},{"1377711979":["hashtag1","hashtag2"]},{"1377711973":["hashtag1","hashtag2"]},{"1377711990":["hashtag1","hashtag2"]},{"1377711987":["hashtag1","hashtag2"]},{"1377711983":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377711976, 1377711979, 1377711973, 1377711990, 1377711987, 1377711983)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.37243461608887 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:06:32.638759
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/06/image_18082025_18_06_44_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/18/06/image_18082025_18_06_35_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/18/06/image_18082025_18_06_24_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/18/06/image_18082025_18_06_14_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/18/05/image_18082025_18_06_05_10633.jpg', 2), ('/home/nano/Desktop/images/18082025/18/05/image_18082025_18_05_54_9614.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/06/image_18082025_18_06_44_9627.jpg', '/home/nano/Desktop/images/18082025/18/06/image_18082025_18_06_35_10630.jpg', '/home/nano/Desktop/images/18082025/18/06/image_18082025_18_06_24_9642.jpg', '/home/nano/Desktop/images/18082025/18/06/image_18082025_18_06_14_9633.jpg', '/home/nano/Desktop/images/18082025/18/05/image_18082025_18_06_05_10633.jpg', '/home/nano/Desktop/images/18082025/18/05/image_18082025_18_05_54_9614.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/06/image_18082025_18_06_44_9627.jpg
/home/nano/Desktop/images/18082025/18/06/image_18082025_18_06_35_10630.jpg
/home/nano/Desktop/images/18082025/18/06/image_18082025_18_06_24_9642.jpg
/home/nano/Desktop/images/18082025/18/06/image_18082025_18_06_14_9633.jpg
/home/nano/Desktop/images/18082025/18/05/image_18082025_18_06_05_10633.jpg
/home/nano/Desktop/images/18082025/18/05/image_18082025_18_05_54_9614.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377712009","1377712000","1377712011","1377712002","1377712004","1377712007"],"photo_ids_order":["1377712000","1377712002","1377712004","1377712007","1377712009","1377712011"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/aa81715a805acf728ed6ae8923c3379c.jpg","text":"TemporaryFile(/tmp/multipartBody8283964986369974238asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533254063,"filename":"image_18082025_18_06_05_10633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0eda151d7c4b8de4b5a75895cc18bbff.jpg","text":"TemporaryFile(/tmp/multipartBody1277303401399956210asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533254063,"filename":"image_18082025_18_06_44_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/711ebbbd317252b81537a0d3b579d4b5.jpg","text":"TemporaryFile(/tmp/multipartBody331334233498422098asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533254063,"filename":"image_18082025_18_05_54_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/47b8f068e8fe70eed637ba9efb9644a6.jpg","text":"TemporaryFile(/tmp/multipartBody1015198938462948577asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533254063,"filename":"image_18082025_18_06_35_10630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a2ffa48c7f5177b2e0a7b36fd72b188d.jpg","text":"TemporaryFile(/tmp/multipartBody4946981516603550436asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533254063,"filename":"image_18082025_18_06_24_9642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3307b6b7e8c546de36d0021f7b367f51.jpg","text":"TemporaryFile(/tmp/multipartBody4206231415391098130asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533254063,"filename":"image_18082025_18_06_14_9633.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377712004","file1":"1377712002","file0":"1377712000","file4":"1377712009","file5":"1377712011","file3":"1377712007"},"map_files_photo_id_array":[{"photo_id":"1377712011","filename":"file5"},{"photo_id":"1377712004","filename":"file2"},{"photo_id":"1377712009","filename":"file4"},{"photo_id":"1377712002","filename":"file1"},{"photo_id":"1377712000","filename":"file0"},{"photo_id":"1377712007","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377712009":["hashtag1","hashtag2"]},{"1377712000":["hashtag1","hashtag2"]},{"1377712011":["hashtag1","hashtag2"]},{"1377712002":["hashtag1","hashtag2"]},{"1377712004":["hashtag1","hashtag2"]},{"1377712007":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377712009, 1377712000, 1377712011, 1377712002, 1377712004, 1377712007)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.000741004943848 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:07:17.676892
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/07/image_18082025_18_07_44_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/18/07/image_18082025_18_07_35_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/18/07/image_18082025_18_07_25_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/18/07/image_18082025_18_07_14_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/18/06/image_18082025_18_07_05_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/18/06/image_18082025_18_06_55_10633.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/07/image_18082025_18_07_44_9615.jpg', '/home/nano/Desktop/images/18082025/18/07/image_18082025_18_07_35_9640.jpg', '/home/nano/Desktop/images/18082025/18/07/image_18082025_18_07_25_10640.jpg', '/home/nano/Desktop/images/18082025/18/07/image_18082025_18_07_14_9647.jpg', '/home/nano/Desktop/images/18082025/18/06/image_18082025_18_07_05_9630.jpg', '/home/nano/Desktop/images/18082025/18/06/image_18082025_18_06_55_10633.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/07/image_18082025_18_07_44_9615.jpg
/home/nano/Desktop/images/18082025/18/07/image_18082025_18_07_35_9640.jpg
/home/nano/Desktop/images/18082025/18/07/image_18082025_18_07_25_10640.jpg
/home/nano/Desktop/images/18082025/18/07/image_18082025_18_07_14_9647.jpg
/home/nano/Desktop/images/18082025/18/06/image_18082025_18_07_05_9630.jpg
/home/nano/Desktop/images/18082025/18/06/image_18082025_18_06_55_10633.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377712030","1377712033","1377712027","1377712022","1377712025","1377712019"],"photo_ids_order":["1377712019","1377712022","1377712025","1377712027","1377712030","1377712033"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/36d2a5665bb27685ce71b96855ba67a7.jpg","text":"TemporaryFile(/tmp/multipartBody2292282334349168295asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533298901,"filename":"image_18082025_18_07_05_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d19ecc02b40b677585a5a8f1b60f068e.jpg","text":"TemporaryFile(/tmp/multipartBody4110071807942803870asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533298901,"filename":"image_18082025_18_06_55_10633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/60e78e10f02a0bd3277258c5f35b59bc.jpg","text":"TemporaryFile(/tmp/multipartBody4009744839823321233asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533298901,"filename":"image_18082025_18_07_14_9647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c71e356209ba8191d7cbcff028aaac6e.jpg","text":"TemporaryFile(/tmp/multipartBody7470429481741522054asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533298901,"filename":"image_18082025_18_07_35_9640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/75c79a9a05a3b951ff2499d70665c88c.jpg","text":"TemporaryFile(/tmp/multipartBody4432806749923264846asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533298901,"filename":"image_18082025_18_07_25_10640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8da096076d0dfd3790c5570cddafae6c.jpg","text":"TemporaryFile(/tmp/multipartBody91563694758957128asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533298901,"filename":"image_18082025_18_07_44_9615.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377712025","file1":"1377712022","file0":"1377712019","file4":"1377712030","file5":"1377712033","file3":"1377712027"},"map_files_photo_id_array":[{"photo_id":"1377712033","filename":"file5"},{"photo_id":"1377712025","filename":"file2"},{"photo_id":"1377712030","filename":"file4"},{"photo_id":"1377712022","filename":"file1"},{"photo_id":"1377712019","filename":"file0"},{"photo_id":"1377712027","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377712030":["hashtag1","hashtag2"]},{"1377712033":["hashtag1","hashtag2"]},{"1377712027":["hashtag1","hashtag2"]},{"1377712022":["hashtag1","hashtag2"]},{"1377712025":["hashtag1","hashtag2"]},{"1377712019":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377712030, 1377712033, 1377712027, 1377712022, 1377712025, 1377712019)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.054291009902954 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:08:02.415220
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/57/image_18082025_09_57_45_10620.jpg', 2), ('/home/nano/Desktop/images/18082025/09/57/image_18082025_09_57_34_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/57/image_18082025_09_57_25_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/09/57/image_18082025_09_57_15_10662.jpg', 2), ('/home/nano/Desktop/images/18082025/09/56/image_18082025_09_57_04_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/09/56/image_18082025_09_56_55_9626.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/57/image_18082025_09_57_45_10620.jpg', '/home/nano/Desktop/images/18082025/09/57/image_18082025_09_57_34_9616.jpg', '/home/nano/Desktop/images/18082025/09/57/image_18082025_09_57_25_9607.jpg', '/home/nano/Desktop/images/18082025/09/57/image_18082025_09_57_15_10662.jpg', '/home/nano/Desktop/images/18082025/09/56/image_18082025_09_57_04_9623.jpg', '/home/nano/Desktop/images/18082025/09/56/image_18082025_09_56_55_9626.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/57/image_18082025_09_57_45_10620.jpg
/home/nano/Desktop/images/18082025/09/57/image_18082025_09_57_34_9616.jpg
/home/nano/Desktop/images/18082025/09/57/image_18082025_09_57_25_9607.jpg
/home/nano/Desktop/images/18082025/09/57/image_18082025_09_57_15_10662.jpg
/home/nano/Desktop/images/18082025/09/56/image_18082025_09_57_04_9623.jpg
/home/nano/Desktop/images/18082025/09/56/image_18082025_09_56_55_9626.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.055570363998413 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:08:16.786933
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/08/image_18082025_18_08_45_10616.jpg', 2), ('/home/nano/Desktop/images/18082025/18/08/image_18082025_18_08_34_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/18/08/image_18082025_18_08_25_10620.jpg', 2), ('/home/nano/Desktop/images/18082025/18/08/image_18082025_18_08_14_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/18/07/image_18082025_18_08_04_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/18/07/image_18082025_18_07_55_10624.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/08/image_18082025_18_08_45_10616.jpg', '/home/nano/Desktop/images/18082025/18/08/image_18082025_18_08_34_9615.jpg', '/home/nano/Desktop/images/18082025/18/08/image_18082025_18_08_25_10620.jpg', '/home/nano/Desktop/images/18082025/18/08/image_18082025_18_08_14_9622.jpg', '/home/nano/Desktop/images/18082025/18/07/image_18082025_18_08_04_9623.jpg', '/home/nano/Desktop/images/18082025/18/07/image_18082025_18_07_55_10624.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/08/image_18082025_18_08_45_10616.jpg
/home/nano/Desktop/images/18082025/18/08/image_18082025_18_08_34_9615.jpg
/home/nano/Desktop/images/18082025/18/08/image_18082025_18_08_25_10620.jpg
/home/nano/Desktop/images/18082025/18/08/image_18082025_18_08_14_9622.jpg
/home/nano/Desktop/images/18082025/18/07/image_18082025_18_08_04_9623.jpg
/home/nano/Desktop/images/18082025/18/07/image_18082025_18_07_55_10624.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377712054","1377712062","1377712056","1377712059","1377712050","1377712061"],"photo_ids_order":["1377712050","1377712054","1377712056","1377712059","1377712061","1377712062"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4d8afa3c022e07f560b5ce5f4aefdef7.jpg","text":"TemporaryFile(/tmp/multipartBody794330351081385950asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533357901,"filename":"image_18082025_18_08_34_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b61acf1febaaf0ad00dc9d6211fef92a.jpg","text":"TemporaryFile(/tmp/multipartBody1988169436723724027asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533357901,"filename":"image_18082025_18_07_55_10624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0fc4f47162ceaa1053891ff9ae4d0639.jpg","text":"TemporaryFile(/tmp/multipartBody592278029810664354asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533357901,"filename":"image_18082025_18_08_25_10620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/48b961ec2bc00fcbaa9509ec27c58afa.jpg","text":"TemporaryFile(/tmp/multipartBody3572080301750593377asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533357901,"filename":"image_18082025_18_08_14_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cf32c525bc948763a5baec146962bc3d.jpg","text":"TemporaryFile(/tmp/multipartBody7391417903037427284asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533357901,"filename":"image_18082025_18_08_45_10616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8037ff9202feae797297e17712a74276.jpg","text":"TemporaryFile(/tmp/multipartBody8267654762032983158asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533357901,"filename":"image_18082025_18_08_04_9623.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377712056","file1":"1377712054","file0":"1377712050","file4":"1377712061","file5":"1377712062","file3":"1377712059"},"map_files_photo_id_array":[{"photo_id":"1377712062","filename":"file5"},{"photo_id":"1377712056","filename":"file2"},{"photo_id":"1377712061","filename":"file4"},{"photo_id":"1377712054","filename":"file1"},{"photo_id":"1377712050","filename":"file0"},{"photo_id":"1377712059","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377712054":["hashtag1","hashtag2"]},{"1377712062":["hashtag1","hashtag2"]},{"1377712056":["hashtag1","hashtag2"]},{"1377712059":["hashtag1","hashtag2"]},{"1377712050":["hashtag1","hashtag2"]},{"1377712061":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377712054, 1377712062, 1377712056, 1377712059, 1377712050, 1377712061)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.8024001121521 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:09:02.546536
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/57/image_18082025_09_57_45_10620.jpg', 2), ('/home/nano/Desktop/images/18082025/09/57/image_18082025_09_57_34_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/57/image_18082025_09_57_25_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/09/57/image_18082025_09_57_15_10662.jpg', 2), ('/home/nano/Desktop/images/18082025/09/56/image_18082025_09_57_04_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/09/56/image_18082025_09_56_55_9626.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/57/image_18082025_09_57_45_10620.jpg', '/home/nano/Desktop/images/18082025/09/57/image_18082025_09_57_34_9616.jpg', '/home/nano/Desktop/images/18082025/09/57/image_18082025_09_57_25_9607.jpg', '/home/nano/Desktop/images/18082025/09/57/image_18082025_09_57_15_10662.jpg', '/home/nano/Desktop/images/18082025/09/56/image_18082025_09_57_04_9623.jpg', '/home/nano/Desktop/images/18082025/09/56/image_18082025_09_56_55_9626.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/57/image_18082025_09_57_45_10620.jpg
/home/nano/Desktop/images/18082025/09/57/image_18082025_09_57_34_9616.jpg
/home/nano/Desktop/images/18082025/09/57/image_18082025_09_57_25_9607.jpg
/home/nano/Desktop/images/18082025/09/57/image_18082025_09_57_15_10662.jpg
/home/nano/Desktop/images/18082025/09/56/image_18082025_09_57_04_9623.jpg
/home/nano/Desktop/images/18082025/09/56/image_18082025_09_56_55_9626.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377712090","1377712084","1377712078","1377712086","1377712088","1377712081"],"photo_ids_order":["1377712078","1377712081","1377712084","1377712086","1377712088","1377712090"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4541db0e572af462e61442132dc5a605.jpg","text":"TemporaryFile(/tmp/multipartBody8901037623272701888asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533403810,"filename":"image_18082025_09_56_55_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/19e269f60ba06a565cf5609a07d7b5ff.jpg","text":"TemporaryFile(/tmp/multipartBody2529119691953769913asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533403810,"filename":"image_18082025_09_57_25_9607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cd7416ffb0202d433863094eca10f909.jpg","text":"TemporaryFile(/tmp/multipartBody1534935924213816817asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533403810,"filename":"image_18082025_09_57_45_10620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ebaa48b16bf05477e9c7d35433b86fa1.jpg","text":"TemporaryFile(/tmp/multipartBody684646064696934229asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533403810,"filename":"image_18082025_09_57_15_10662.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/17efadaf7436c4067995cdfe00cb3371.jpg","text":"TemporaryFile(/tmp/multipartBody5875619026200317216asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533403810,"filename":"image_18082025_09_57_04_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/895bf53c56fe54eee4a739463880a08c.jpg","text":"TemporaryFile(/tmp/multipartBody8938921784647330344asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533403810,"filename":"image_18082025_09_57_34_9616.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377712084","file1":"1377712081","file0":"1377712078","file4":"1377712088","file5":"1377712090","file3":"1377712086"},"map_files_photo_id_array":[{"photo_id":"1377712090","filename":"file5"},{"photo_id":"1377712084","filename":"file2"},{"photo_id":"1377712088","filename":"file4"},{"photo_id":"1377712081","filename":"file1"},{"photo_id":"1377712078","filename":"file0"},{"photo_id":"1377712086","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377712090":["hashtag1","hashtag2"]},{"1377712084":["hashtag1","hashtag2"]},{"1377712078":["hashtag1","hashtag2"]},{"1377712086":["hashtag1","hashtag2"]},{"1377712088":["hashtag1","hashtag2"]},{"1377712081":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377712090, 1377712084, 1377712078, 1377712086, 1377712088, 1377712081)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.163553714752197 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:09:46.894367
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/09/image_18082025_18_09_45_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/18/09/image_18082025_18_09_35_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/18/09/image_18082025_18_09_24_9603.jpg', 2), ('/home/nano/Desktop/images/18082025/18/09/image_18082025_18_09_15_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/18/08/image_18082025_18_09_04_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/18/08/image_18082025_18_08_55_9600.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/09/image_18082025_18_09_45_9623.jpg', '/home/nano/Desktop/images/18082025/18/09/image_18082025_18_09_35_10629.jpg', '/home/nano/Desktop/images/18082025/18/09/image_18082025_18_09_24_9603.jpg', '/home/nano/Desktop/images/18082025/18/09/image_18082025_18_09_15_10648.jpg', '/home/nano/Desktop/images/18082025/18/08/image_18082025_18_09_04_9626.jpg', '/home/nano/Desktop/images/18082025/18/08/image_18082025_18_08_55_9600.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/09/image_18082025_18_09_45_9623.jpg
/home/nano/Desktop/images/18082025/18/09/image_18082025_18_09_35_10629.jpg
/home/nano/Desktop/images/18082025/18/09/image_18082025_18_09_24_9603.jpg
/home/nano/Desktop/images/18082025/18/09/image_18082025_18_09_15_10648.jpg
/home/nano/Desktop/images/18082025/18/08/image_18082025_18_09_04_9626.jpg
/home/nano/Desktop/images/18082025/18/08/image_18082025_18_08_55_9600.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377712138","1377712129","1377712134","1377712131","1377712125","1377712127"],"photo_ids_order":["1377712125","1377712127","1377712129","1377712131","1377712134","1377712138"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d45ab0aa9c68d8ac051dd95042801eb9.jpg","text":"TemporaryFile(/tmp/multipartBody2470103869284147974asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533448319,"filename":"image_18082025_18_08_55_9600.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/23bc45dc2a9addec5c29aed380686eec.jpg","text":"TemporaryFile(/tmp/multipartBody542985079377704022asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533448319,"filename":"image_18082025_18_09_24_9603.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2d328fce12b7021439866443407b094c.jpg","text":"TemporaryFile(/tmp/multipartBody5714964700253300810asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533448319,"filename":"image_18082025_18_09_04_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d9f41f8b745099621137251af498befd.jpg","text":"TemporaryFile(/tmp/multipartBody4470849124592219403asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533448319,"filename":"image_18082025_18_09_15_10648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4ffef568b461b6212e1bc8eb1b1de7df.jpg","text":"TemporaryFile(/tmp/multipartBody1082809770002405313asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533448319,"filename":"image_18082025_18_09_45_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6ab45aea5dcdef809afa666a1ba8136a.jpg","text":"TemporaryFile(/tmp/multipartBody780437003410314464asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533448319,"filename":"image_18082025_18_09_35_10629.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377712129","file1":"1377712127","file0":"1377712125","file4":"1377712134","file5":"1377712138","file3":"1377712131"},"map_files_photo_id_array":[{"photo_id":"1377712138","filename":"file5"},{"photo_id":"1377712129","filename":"file2"},{"photo_id":"1377712134","filename":"file4"},{"photo_id":"1377712127","filename":"file1"},{"photo_id":"1377712125","filename":"file0"},{"photo_id":"1377712131","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377712138":["hashtag1","hashtag2"]},{"1377712129":["hashtag1","hashtag2"]},{"1377712134":["hashtag1","hashtag2"]},{"1377712131":["hashtag1","hashtag2"]},{"1377712125":["hashtag1","hashtag2"]},{"1377712127":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377712138, 1377712129, 1377712134, 1377712131, 1377712125, 1377712127)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.50940251350403 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:10:32.021970
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/10/image_18082025_18_10_44_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/18/10/image_18082025_18_10_35_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/18/10/image_18082025_18_10_24_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/18/10/image_18082025_18_10_15_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/18/09/image_18082025_18_10_05_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/18/09/image_18082025_18_09_54_9619.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/10/image_18082025_18_10_44_9649.jpg', '/home/nano/Desktop/images/18082025/18/10/image_18082025_18_10_35_10629.jpg', '/home/nano/Desktop/images/18082025/18/10/image_18082025_18_10_24_9626.jpg', '/home/nano/Desktop/images/18082025/18/10/image_18082025_18_10_15_9645.jpg', '/home/nano/Desktop/images/18082025/18/09/image_18082025_18_10_05_10656.jpg', '/home/nano/Desktop/images/18082025/18/09/image_18082025_18_09_54_9619.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/10/image_18082025_18_10_44_9649.jpg
/home/nano/Desktop/images/18082025/18/10/image_18082025_18_10_35_10629.jpg
/home/nano/Desktop/images/18082025/18/10/image_18082025_18_10_24_9626.jpg
/home/nano/Desktop/images/18082025/18/10/image_18082025_18_10_15_9645.jpg
/home/nano/Desktop/images/18082025/18/09/image_18082025_18_10_05_10656.jpg
/home/nano/Desktop/images/18082025/18/09/image_18082025_18_09_54_9619.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377712150","1377712152","1377712155","1377712158","1377712160","1377712148"],"photo_ids_order":["1377712148","1377712150","1377712152","1377712155","1377712158","1377712160"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4db18c0b67a6b413df4bde86261d4208.jpg","text":"TemporaryFile(/tmp/multipartBody3440964137165721432asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533493371,"filename":"image_18082025_18_10_35_10629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f4e1282b41b353d849f1197396ffd88d.jpg","text":"TemporaryFile(/tmp/multipartBody1853213681426347518asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533493371,"filename":"image_18082025_18_10_24_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6c934dc62221a1c5b936cd2b8bd9b437.jpg","text":"TemporaryFile(/tmp/multipartBody407521504082526898asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533493371,"filename":"image_18082025_18_10_15_9645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/895222ec54477bd029d2d510918c62ca.jpg","text":"TemporaryFile(/tmp/multipartBody6276319812902768969asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533493371,"filename":"image_18082025_18_10_05_10656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ead0598dde0230ac2fc80c66b1099a71.jpg","text":"TemporaryFile(/tmp/multipartBody4130262595291009098asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533493371,"filename":"image_18082025_18_09_54_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/004ce6d8d00b6a169c883b2aff1b1012.jpg","text":"TemporaryFile(/tmp/multipartBody1764221369328926492asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533493371,"filename":"image_18082025_18_10_44_9649.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377712152","file1":"1377712150","file0":"1377712148","file4":"1377712158","file5":"1377712160","file3":"1377712155"},"map_files_photo_id_array":[{"photo_id":"1377712160","filename":"file5"},{"photo_id":"1377712152","filename":"file2"},{"photo_id":"1377712158","filename":"file4"},{"photo_id":"1377712150","filename":"file1"},{"photo_id":"1377712148","filename":"file0"},{"photo_id":"1377712155","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377712150":["hashtag1","hashtag2"]},{"1377712152":["hashtag1","hashtag2"]},{"1377712155":["hashtag1","hashtag2"]},{"1377712158":["hashtag1","hashtag2"]},{"1377712160":["hashtag1","hashtag2"]},{"1377712148":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377712150, 1377712152, 1377712155, 1377712158, 1377712160, 1377712148)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.552542209625244 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:11:17.109469
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/11/image_18082025_18_11_44_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/18/11/image_18082025_18_11_35_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/18/11/image_18082025_18_11_25_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/18/11/image_18082025_18_11_14_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/18/10/image_18082025_18_11_05_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/18/10/image_18082025_18_10_54_9614.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/11/image_18082025_18_11_44_9610.jpg', '/home/nano/Desktop/images/18082025/18/11/image_18082025_18_11_35_9612.jpg', '/home/nano/Desktop/images/18082025/18/11/image_18082025_18_11_25_10640.jpg', '/home/nano/Desktop/images/18082025/18/11/image_18082025_18_11_14_9632.jpg', '/home/nano/Desktop/images/18082025/18/10/image_18082025_18_11_05_10655.jpg', '/home/nano/Desktop/images/18082025/18/10/image_18082025_18_10_54_9614.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/11/image_18082025_18_11_44_9610.jpg
/home/nano/Desktop/images/18082025/18/11/image_18082025_18_11_35_9612.jpg
/home/nano/Desktop/images/18082025/18/11/image_18082025_18_11_25_10640.jpg
/home/nano/Desktop/images/18082025/18/11/image_18082025_18_11_14_9632.jpg
/home/nano/Desktop/images/18082025/18/10/image_18082025_18_11_05_10655.jpg
/home/nano/Desktop/images/18082025/18/10/image_18082025_18_10_54_9614.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377712171","1377712179","1377712176","1377712178","1377712169","1377712174"],"photo_ids_order":["1377712169","1377712171","1377712174","1377712176","1377712178","1377712179"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e74d02d1097d1ce0519a2dfd954aeb21.jpg","text":"TemporaryFile(/tmp/multipartBody4390095916588388161asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533538269,"filename":"image_18082025_18_11_35_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/760684fbd6afd7d669ebf39ff1e6b082.jpg","text":"TemporaryFile(/tmp/multipartBody3242091059166662540asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533538269,"filename":"image_18082025_18_10_54_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/50de8135191d043aa7e78584f7620e0c.jpg","text":"TemporaryFile(/tmp/multipartBody4555184299315541254asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533538269,"filename":"image_18082025_18_11_14_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5e862e9aeae453e9c32dbabc38edf4ef.jpg","text":"TemporaryFile(/tmp/multipartBody8029939553463457084asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533538269,"filename":"image_18082025_18_11_05_10655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/85060834909fbcd5817c1c42898a2802.jpg","text":"TemporaryFile(/tmp/multipartBody215452838425728405asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533538269,"filename":"image_18082025_18_11_44_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4414a37f0ce6228783e4b1b51f964e72.jpg","text":"TemporaryFile(/tmp/multipartBody5045613370913285857asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533538269,"filename":"image_18082025_18_11_25_10640.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377712174","file1":"1377712171","file0":"1377712169","file4":"1377712178","file5":"1377712179","file3":"1377712176"},"map_files_photo_id_array":[{"photo_id":"1377712179","filename":"file5"},{"photo_id":"1377712174","filename":"file2"},{"photo_id":"1377712178","filename":"file4"},{"photo_id":"1377712171","filename":"file1"},{"photo_id":"1377712169","filename":"file0"},{"photo_id":"1377712176","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377712171":["hashtag1","hashtag2"]},{"1377712179":["hashtag1","hashtag2"]},{"1377712176":["hashtag1","hashtag2"]},{"1377712178":["hashtag1","hashtag2"]},{"1377712169":["hashtag1","hashtag2"]},{"1377712174":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377712171, 1377712179, 1377712176, 1377712178, 1377712169, 1377712174)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.004410982131958 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:12:02.637465
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/56/image_18082025_09_56_45_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/09/56/image_18082025_09_56_34_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/09/56/image_18082025_09_56_25_10616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/56/image_18082025_09_56_14_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/09/55/image_18082025_09_56_04_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/09/55/image_18082025_09_55_55_10619.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/56/image_18082025_09_56_45_10637.jpg', '/home/nano/Desktop/images/18082025/09/56/image_18082025_09_56_34_9634.jpg', '/home/nano/Desktop/images/18082025/09/56/image_18082025_09_56_25_10616.jpg', '/home/nano/Desktop/images/18082025/09/56/image_18082025_09_56_14_9641.jpg', '/home/nano/Desktop/images/18082025/09/55/image_18082025_09_56_04_9626.jpg', '/home/nano/Desktop/images/18082025/09/55/image_18082025_09_55_55_10619.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/56/image_18082025_09_56_45_10637.jpg
/home/nano/Desktop/images/18082025/09/56/image_18082025_09_56_34_9634.jpg
/home/nano/Desktop/images/18082025/09/56/image_18082025_09_56_25_10616.jpg
/home/nano/Desktop/images/18082025/09/56/image_18082025_09_56_14_9641.jpg
/home/nano/Desktop/images/18082025/09/55/image_18082025_09_56_04_9626.jpg
/home/nano/Desktop/images/18082025/09/55/image_18082025_09_55_55_10619.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377712207","1377712203","1377712199","1377712187","1377712195","1377712189"],"photo_ids_order":["1377712187","1377712189","1377712195","1377712199","1377712203","1377712207"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6d7ed4e015b2fed6a9870841a4384b3a.jpg","text":"TemporaryFile(/tmp/multipartBody8296967685348195693asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533583687,"filename":"image_18082025_09_55_55_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6ade362b59e347075b5392fad1df3741.jpg","text":"TemporaryFile(/tmp/multipartBody7465363358008441907asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533583687,"filename":"image_18082025_09_56_04_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cb71b9146d81d5987c20c64b844fcedf.jpg","text":"TemporaryFile(/tmp/multipartBody2319584214575469217asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533583687,"filename":"image_18082025_09_56_14_9641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/37c73e1cfd45340933a0a5b187333fc6.jpg","text":"TemporaryFile(/tmp/multipartBody5744628002922218455asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533583687,"filename":"image_18082025_09_56_45_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fbb2da59639a6ff53586f5240de13bad.jpg","text":"TemporaryFile(/tmp/multipartBody7605784510939831301asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533583687,"filename":"image_18082025_09_56_25_10616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5ca567f6389163d9d81300061947f8ea.jpg","text":"TemporaryFile(/tmp/multipartBody6983972610476936116asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533583687,"filename":"image_18082025_09_56_34_9634.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377712195","file1":"1377712189","file0":"1377712187","file4":"1377712203","file5":"1377712207","file3":"1377712199"},"map_files_photo_id_array":[{"photo_id":"1377712207","filename":"file5"},{"photo_id":"1377712195","filename":"file2"},{"photo_id":"1377712203","filename":"file4"},{"photo_id":"1377712189","filename":"file1"},{"photo_id":"1377712187","filename":"file0"},{"photo_id":"1377712199","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377712207":["hashtag1","hashtag2"]},{"1377712203":["hashtag1","hashtag2"]},{"1377712199":["hashtag1","hashtag2"]},{"1377712187":["hashtag1","hashtag2"]},{"1377712195":["hashtag1","hashtag2"]},{"1377712189":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377712207, 1377712203, 1377712199, 1377712187, 1377712195, 1377712189)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.86944341659546 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:12:47.183870
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/12/image_18082025_18_12_45_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/18/12/image_18082025_18_12_34_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/18/12/image_18082025_18_12_25_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/18/12/image_18082025_18_12_14_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/18/11/image_18082025_18_12_05_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/18/11/image_18082025_18_11_55_10623.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/12/image_18082025_18_12_45_10621.jpg', '/home/nano/Desktop/images/18082025/18/12/image_18082025_18_12_34_9628.jpg', '/home/nano/Desktop/images/18082025/18/12/image_18082025_18_12_25_10639.jpg', '/home/nano/Desktop/images/18082025/18/12/image_18082025_18_12_14_9667.jpg', '/home/nano/Desktop/images/18082025/18/11/image_18082025_18_12_05_9614.jpg', '/home/nano/Desktop/images/18082025/18/11/image_18082025_18_11_55_10623.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/12/image_18082025_18_12_45_10621.jpg
/home/nano/Desktop/images/18082025/18/12/image_18082025_18_12_34_9628.jpg
/home/nano/Desktop/images/18082025/18/12/image_18082025_18_12_25_10639.jpg
/home/nano/Desktop/images/18082025/18/12/image_18082025_18_12_14_9667.jpg
/home/nano/Desktop/images/18082025/18/11/image_18082025_18_12_05_9614.jpg
/home/nano/Desktop/images/18082025/18/11/image_18082025_18_11_55_10623.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377712222","1377712219","1377712228","1377712221","1377712224","1377712217"],"photo_ids_order":["1377712217","1377712219","1377712221","1377712222","1377712224","1377712228"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8ddd5fa1390175f90e6516cccdd1aab4.jpg","text":"TemporaryFile(/tmp/multipartBody8831068458635725710asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533628567,"filename":"image_18082025_18_12_14_9667.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ae0d6f19644560fe09707de925654382.jpg","text":"TemporaryFile(/tmp/multipartBody2008468249572810789asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533628567,"filename":"image_18082025_18_12_34_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3ed6f95d35f0c58afc9a9de6058d9011.jpg","text":"TemporaryFile(/tmp/multipartBody5104405353451859177asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533628567,"filename":"image_18082025_18_11_55_10623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5d946a3de59313c707432d742db5db56.jpg","text":"TemporaryFile(/tmp/multipartBody3105652470060615461asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533628567,"filename":"image_18082025_18_12_25_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ac5b10a87b1a6b15b6115c058f27a379.jpg","text":"TemporaryFile(/tmp/multipartBody1975333737263857331asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533628567,"filename":"image_18082025_18_12_05_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3d775c10c2cfba35e39c39371a99ce8a.jpg","text":"TemporaryFile(/tmp/multipartBody4654321081072099018asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533628567,"filename":"image_18082025_18_12_45_10621.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377712221","file1":"1377712219","file0":"1377712217","file4":"1377712224","file5":"1377712228","file3":"1377712222"},"map_files_photo_id_array":[{"photo_id":"1377712228","filename":"file5"},{"photo_id":"1377712221","filename":"file2"},{"photo_id":"1377712224","filename":"file4"},{"photo_id":"1377712219","filename":"file1"},{"photo_id":"1377712217","filename":"file0"},{"photo_id":"1377712222","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377712222":["hashtag1","hashtag2"]},{"1377712219":["hashtag1","hashtag2"]},{"1377712228":["hashtag1","hashtag2"]},{"1377712221":["hashtag1","hashtag2"]},{"1377712224":["hashtag1","hashtag2"]},{"1377712217":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377712222, 1377712219, 1377712228, 1377712221, 1377712224, 1377712217)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.19623947143555 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:13:32.294247
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/13/image_18082025_18_13_45_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/18/13/image_18082025_18_13_34_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/18/13/image_18082025_18_13_25_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/18/13/image_18082025_18_13_15_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/18/12/image_18082025_18_13_04_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/18/12/image_18082025_18_12_55_9629.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/13/image_18082025_18_13_45_10652.jpg', '/home/nano/Desktop/images/18082025/18/13/image_18082025_18_13_34_9609.jpg', '/home/nano/Desktop/images/18082025/18/13/image_18082025_18_13_25_9630.jpg', '/home/nano/Desktop/images/18082025/18/13/image_18082025_18_13_15_10652.jpg', '/home/nano/Desktop/images/18082025/18/12/image_18082025_18_13_04_9631.jpg', '/home/nano/Desktop/images/18082025/18/12/image_18082025_18_12_55_9629.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/13/image_18082025_18_13_45_10652.jpg
/home/nano/Desktop/images/18082025/18/13/image_18082025_18_13_34_9609.jpg
/home/nano/Desktop/images/18082025/18/13/image_18082025_18_13_25_9630.jpg
/home/nano/Desktop/images/18082025/18/13/image_18082025_18_13_15_10652.jpg
/home/nano/Desktop/images/18082025/18/12/image_18082025_18_13_04_9631.jpg
/home/nano/Desktop/images/18082025/18/12/image_18082025_18_12_55_9629.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377712251","1377712248","1377712245","1377712250","1377712244","1377712241"],"photo_ids_order":["1377712241","1377712244","1377712245","1377712248","1377712250","1377712251"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bdd0d490f4ef101c0fccade49f9efec7.jpg","text":"TemporaryFile(/tmp/multipartBody6734056128500851978asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533673713,"filename":"image_18082025_18_12_55_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/013b08cf5c62167ff2f0cfb3aa6207ff.jpg","text":"TemporaryFile(/tmp/multipartBody8975936520853528571asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533673713,"filename":"image_18082025_18_13_15_10652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2f738362f5b5e931e9593de27050c6cb.jpg","text":"TemporaryFile(/tmp/multipartBody677834324898099403asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533673713,"filename":"image_18082025_18_13_25_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/303fde87e325b79331c0badc666df4b5.jpg","text":"TemporaryFile(/tmp/multipartBody3087423249292593646asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533673713,"filename":"image_18082025_18_13_04_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/030ad255d2a5d38790b29f0dd23249c9.jpg","text":"TemporaryFile(/tmp/multipartBody3954686237784012172asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533673713,"filename":"image_18082025_18_13_34_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f6ff4a4df11dd7e58443a98b2fd2baed.jpg","text":"TemporaryFile(/tmp/multipartBody4160652575835318897asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533673713,"filename":"image_18082025_18_13_45_10652.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377712245","file1":"1377712244","file0":"1377712241","file4":"1377712250","file5":"1377712251","file3":"1377712248"},"map_files_photo_id_array":[{"photo_id":"1377712251","filename":"file5"},{"photo_id":"1377712245","filename":"file2"},{"photo_id":"1377712250","filename":"file4"},{"photo_id":"1377712244","filename":"file1"},{"photo_id":"1377712241","filename":"file0"},{"photo_id":"1377712248","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377712251":["hashtag1","hashtag2"]},{"1377712248":["hashtag1","hashtag2"]},{"1377712245":["hashtag1","hashtag2"]},{"1377712250":["hashtag1","hashtag2"]},{"1377712244":["hashtag1","hashtag2"]},{"1377712241":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377712251, 1377712248, 1377712245, 1377712250, 1377712244, 1377712241)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.89988875389099 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:14:17.384001
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/14/image_18082025_18_14_45_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/18/14/image_18082025_18_14_35_10616.jpg', 2), ('/home/nano/Desktop/images/18082025/18/14/image_18082025_18_14_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/18/14/image_18082025_18_14_15_10674.jpg', 2), ('/home/nano/Desktop/images/18082025/18/13/image_18082025_18_14_04_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/18/13/image_18082025_18_13_54_9627.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/14/image_18082025_18_14_45_9636.jpg', '/home/nano/Desktop/images/18082025/18/14/image_18082025_18_14_35_10616.jpg', '/home/nano/Desktop/images/18082025/18/14/image_18082025_18_14_24_9639.jpg', '/home/nano/Desktop/images/18082025/18/14/image_18082025_18_14_15_10674.jpg', '/home/nano/Desktop/images/18082025/18/13/image_18082025_18_14_04_9644.jpg', '/home/nano/Desktop/images/18082025/18/13/image_18082025_18_13_54_9627.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/14/image_18082025_18_14_45_9636.jpg
/home/nano/Desktop/images/18082025/18/14/image_18082025_18_14_35_10616.jpg
/home/nano/Desktop/images/18082025/18/14/image_18082025_18_14_24_9639.jpg
/home/nano/Desktop/images/18082025/18/14/image_18082025_18_14_15_10674.jpg
/home/nano/Desktop/images/18082025/18/13/image_18082025_18_14_04_9644.jpg
/home/nano/Desktop/images/18082025/18/13/image_18082025_18_13_54_9627.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377712261","1377712264","1377712272","1377712266","1377712269","1377712271"],"photo_ids_order":["1377712261","1377712264","1377712266","1377712269","1377712271","1377712272"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4a721045df3bfec59864ff11c42577dc.jpg","text":"TemporaryFile(/tmp/multipartBody6360161974193287021asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533718690,"filename":"image_18082025_18_14_45_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e6728eaf47bb68e0fa49f4d09ba78e3a.jpg","text":"TemporaryFile(/tmp/multipartBody1133896685137409671asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533718690,"filename":"image_18082025_18_14_35_10616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/302b2043509819f947c2cbad6a6a77fc.jpg","text":"TemporaryFile(/tmp/multipartBody8595235466956732633asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533718690,"filename":"image_18082025_18_13_54_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/95baa3e039abed2df8e503ae0a85b7c3.jpg","text":"TemporaryFile(/tmp/multipartBody9146234852231180707asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533718690,"filename":"image_18082025_18_14_24_9639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1c88df34a2b3419e1fdb03cda5f5f0f3.jpg","text":"TemporaryFile(/tmp/multipartBody367896737661888535asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533718690,"filename":"image_18082025_18_14_15_10674.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/80afdf6564b99661186667d119560807.jpg","text":"TemporaryFile(/tmp/multipartBody268845694655349930asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533718690,"filename":"image_18082025_18_14_04_9644.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377712266","file1":"1377712264","file0":"1377712261","file4":"1377712271","file5":"1377712272","file3":"1377712269"},"map_files_photo_id_array":[{"photo_id":"1377712272","filename":"file5"},{"photo_id":"1377712266","filename":"file2"},{"photo_id":"1377712271","filename":"file4"},{"photo_id":"1377712264","filename":"file1"},{"photo_id":"1377712261","filename":"file0"},{"photo_id":"1377712269","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377712261":["hashtag1","hashtag2"]},{"1377712264":["hashtag1","hashtag2"]},{"1377712272":["hashtag1","hashtag2"]},{"1377712266":["hashtag1","hashtag2"]},{"1377712269":["hashtag1","hashtag2"]},{"1377712271":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377712261, 1377712264, 1377712272, 1377712266, 1377712269, 1377712271)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.529255151748657 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:15:03.244580
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/55/image_18082025_09_55_44_9604.jpg', 2), ('/home/nano/Desktop/images/18082025/09/55/image_18082025_09_55_35_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/09/55/image_18082025_09_55_25_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/09/55/image_18082025_09_55_14_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/09/54/image_18082025_09_55_05_10619.jpg', 2), ('/home/nano/Desktop/images/18082025/09/54/image_18082025_09_54_54_9606.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/55/image_18082025_09_55_44_9604.jpg', '/home/nano/Desktop/images/18082025/09/55/image_18082025_09_55_35_9613.jpg', '/home/nano/Desktop/images/18082025/09/55/image_18082025_09_55_25_10621.jpg', '/home/nano/Desktop/images/18082025/09/55/image_18082025_09_55_14_9638.jpg', '/home/nano/Desktop/images/18082025/09/54/image_18082025_09_55_05_10619.jpg', '/home/nano/Desktop/images/18082025/09/54/image_18082025_09_54_54_9606.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/55/image_18082025_09_55_44_9604.jpg
/home/nano/Desktop/images/18082025/09/55/image_18082025_09_55_35_9613.jpg
/home/nano/Desktop/images/18082025/09/55/image_18082025_09_55_25_10621.jpg
/home/nano/Desktop/images/18082025/09/55/image_18082025_09_55_14_9638.jpg
/home/nano/Desktop/images/18082025/09/54/image_18082025_09_55_05_10619.jpg
/home/nano/Desktop/images/18082025/09/54/image_18082025_09_54_54_9606.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377712278","1377712281","1377712292","1377712283","1377712285","1377712288"],"photo_ids_order":["1377712278","1377712281","1377712283","1377712285","1377712288","1377712292"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8a17eb41814d3aeb8746463af3b28113.jpg","text":"TemporaryFile(/tmp/multipartBody8170123020504402225asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533764682,"filename":"image_18082025_09_55_44_9604.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9bbd7d4e03a808596ef026f4f6c62929.jpg","text":"TemporaryFile(/tmp/multipartBody2918354070982859942asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533764682,"filename":"image_18082025_09_55_35_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d08fac43eeabb277d238856584c619e6.jpg","text":"TemporaryFile(/tmp/multipartBody1821491893713335374asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533764682,"filename":"image_18082025_09_54_54_9606.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/96ae8bba69b1e1768d5db0fc92c6af83.jpg","text":"TemporaryFile(/tmp/multipartBody477053166108008491asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533764682,"filename":"image_18082025_09_55_25_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/849e5782d097592a5547a80c5fe8ef84.jpg","text":"TemporaryFile(/tmp/multipartBody4957874832692266877asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533764682,"filename":"image_18082025_09_55_14_9638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e5b281bb29be10f93533fb6cdc6d4b06.jpg","text":"TemporaryFile(/tmp/multipartBody8619868055913249471asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533764682,"filename":"image_18082025_09_55_05_10619.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377712283","file1":"1377712281","file0":"1377712278","file4":"1377712288","file5":"1377712292","file3":"1377712285"},"map_files_photo_id_array":[{"photo_id":"1377712292","filename":"file5"},{"photo_id":"1377712283","filename":"file2"},{"photo_id":"1377712288","filename":"file4"},{"photo_id":"1377712281","filename":"file1"},{"photo_id":"1377712278","filename":"file0"},{"photo_id":"1377712285","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377712278":["hashtag1","hashtag2"]},{"1377712281":["hashtag1","hashtag2"]},{"1377712292":["hashtag1","hashtag2"]},{"1377712283":["hashtag1","hashtag2"]},{"1377712285":["hashtag1","hashtag2"]},{"1377712288":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377712278, 1377712281, 1377712292, 1377712283, 1377712285, 1377712288)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.757080793380737 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:15:47.519628
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/15/image_18082025_18_15_45_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/18/15/image_18082025_18_15_35_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/18/15/image_18082025_18_15_24_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/18/15/image_18082025_18_15_15_9690.jpg', 2), ('/home/nano/Desktop/images/18082025/18/14/image_18082025_18_15_05_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/18/14/image_18082025_18_14_54_9612.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/15/image_18082025_18_15_45_9608.jpg', '/home/nano/Desktop/images/18082025/18/15/image_18082025_18_15_35_10637.jpg', '/home/nano/Desktop/images/18082025/18/15/image_18082025_18_15_24_9628.jpg', '/home/nano/Desktop/images/18082025/18/15/image_18082025_18_15_15_9690.jpg', '/home/nano/Desktop/images/18082025/18/14/image_18082025_18_15_05_10647.jpg', '/home/nano/Desktop/images/18082025/18/14/image_18082025_18_14_54_9612.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/15/image_18082025_18_15_45_9608.jpg
/home/nano/Desktop/images/18082025/18/15/image_18082025_18_15_35_10637.jpg
/home/nano/Desktop/images/18082025/18/15/image_18082025_18_15_24_9628.jpg
/home/nano/Desktop/images/18082025/18/15/image_18082025_18_15_15_9690.jpg
/home/nano/Desktop/images/18082025/18/14/image_18082025_18_15_05_10647.jpg
/home/nano/Desktop/images/18082025/18/14/image_18082025_18_14_54_9612.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377712317","1377712311","1377712305","1377712313","1377712307","1377712322"],"photo_ids_order":["1377712305","1377712307","1377712311","1377712313","1377712317","1377712322"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8a4e11618e8647eea7dbb2330bbbdbc2.jpg","text":"TemporaryFile(/tmp/multipartBody3421510913820212324asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533808917,"filename":"image_18082025_18_15_05_10647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/179fc16b556f8937d0a8e7bf5f3d2863.jpg","text":"TemporaryFile(/tmp/multipartBody9136508128862825935asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533808917,"filename":"image_18082025_18_15_24_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b5438946ba805521daf23bf81551964c.jpg","text":"TemporaryFile(/tmp/multipartBody4526744811659194543asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533808917,"filename":"image_18082025_18_15_45_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ec2a279f9808a1659f9ad7d169eeee8b.jpg","text":"TemporaryFile(/tmp/multipartBody4793189625629075460asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533808917,"filename":"image_18082025_18_15_15_9690.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ecface28036a98b517994e7dd7471383.jpg","text":"TemporaryFile(/tmp/multipartBody5970915495459636703asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533808917,"filename":"image_18082025_18_15_35_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b44080ee233f66bc51c628ef38835283.jpg","text":"TemporaryFile(/tmp/multipartBody5112738005515486064asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533808917,"filename":"image_18082025_18_14_54_9612.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377712311","file1":"1377712307","file0":"1377712305","file4":"1377712317","file5":"1377712322","file3":"1377712313"},"map_files_photo_id_array":[{"photo_id":"1377712322","filename":"file5"},{"photo_id":"1377712311","filename":"file2"},{"photo_id":"1377712317","filename":"file4"},{"photo_id":"1377712307","filename":"file1"},{"photo_id":"1377712305","filename":"file0"},{"photo_id":"1377712313","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377712317":["hashtag1","hashtag2"]},{"1377712311":["hashtag1","hashtag2"]},{"1377712305":["hashtag1","hashtag2"]},{"1377712313":["hashtag1","hashtag2"]},{"1377712307":["hashtag1","hashtag2"]},{"1377712322":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377712317, 1377712311, 1377712305, 1377712313, 1377712307, 1377712322)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.616254806518555 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:16:32.607774
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/16/image_18082025_18_16_44_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/18/16/image_18082025_18_16_35_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/18/16/image_18082025_18_16_24_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/18/16/image_18082025_18_16_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/18/15/image_18082025_18_16_05_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/18/15/image_18082025_18_15_54_9621.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/16/image_18082025_18_16_44_9607.jpg', '/home/nano/Desktop/images/18082025/18/16/image_18082025_18_16_35_10621.jpg', '/home/nano/Desktop/images/18082025/18/16/image_18082025_18_16_24_9621.jpg', '/home/nano/Desktop/images/18082025/18/16/image_18082025_18_16_14_9663.jpg', '/home/nano/Desktop/images/18082025/18/15/image_18082025_18_16_05_10630.jpg', '/home/nano/Desktop/images/18082025/18/15/image_18082025_18_15_54_9621.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/16/image_18082025_18_16_44_9607.jpg
/home/nano/Desktop/images/18082025/18/16/image_18082025_18_16_35_10621.jpg
/home/nano/Desktop/images/18082025/18/16/image_18082025_18_16_24_9621.jpg
/home/nano/Desktop/images/18082025/18/16/image_18082025_18_16_14_9663.jpg
/home/nano/Desktop/images/18082025/18/15/image_18082025_18_16_05_10630.jpg
/home/nano/Desktop/images/18082025/18/15/image_18082025_18_15_54_9621.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377712350","1377712347","1377712343","1377712337","1377712340","1377712334"],"photo_ids_order":["1377712334","1377712337","1377712340","1377712343","1377712347","1377712350"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a53c9619b2035c3f8ce51d385daa22f7.jpg","text":"TemporaryFile(/tmp/multipartBody6357943927008036779asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533853716,"filename":"image_18082025_18_15_54_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c558db3dca60ec15b4150ba6bff03618.jpg","text":"TemporaryFile(/tmp/multipartBody3950389432483567814asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533853716,"filename":"image_18082025_18_16_05_10630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a38c25e74fcbe11d3540b52bdaaf4b25.jpg","text":"TemporaryFile(/tmp/multipartBody745331400920293814asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533853716,"filename":"image_18082025_18_16_14_9663.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ee3e0ad457ed8012282246fd5be0ae74.jpg","text":"TemporaryFile(/tmp/multipartBody2081521330436946873asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533853716,"filename":"image_18082025_18_16_35_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1adacaeb92037f4e42e5aa02eb7d3004.jpg","text":"TemporaryFile(/tmp/multipartBody5222354115793773080asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533853716,"filename":"image_18082025_18_16_24_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/437e2aac080656b3e5008db3c07e0bbe.jpg","text":"TemporaryFile(/tmp/multipartBody4540217466113768565asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533853716,"filename":"image_18082025_18_16_44_9607.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377712340","file1":"1377712337","file0":"1377712334","file4":"1377712347","file5":"1377712350","file3":"1377712343"},"map_files_photo_id_array":[{"photo_id":"1377712350","filename":"file5"},{"photo_id":"1377712340","filename":"file2"},{"photo_id":"1377712347","filename":"file4"},{"photo_id":"1377712337","filename":"file1"},{"photo_id":"1377712334","filename":"file0"},{"photo_id":"1377712343","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377712350":["hashtag1","hashtag2"]},{"1377712347":["hashtag1","hashtag2"]},{"1377712343":["hashtag1","hashtag2"]},{"1377712337":["hashtag1","hashtag2"]},{"1377712340":["hashtag1","hashtag2"]},{"1377712334":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377712350, 1377712347, 1377712343, 1377712337, 1377712340, 1377712334)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.32279682159424 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:17:17.711321
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/17/image_18082025_18_17_44_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/18/17/image_18082025_18_17_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/18/17/image_18082025_18_17_25_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/18/17/image_18082025_18_17_14_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/18/16/image_18082025_18_17_05_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/18/16/image_18082025_18_16_55_10635.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/17/image_18082025_18_17_44_9621.jpg', '/home/nano/Desktop/images/18082025/18/17/image_18082025_18_17_34_9642.jpg', '/home/nano/Desktop/images/18082025/18/17/image_18082025_18_17_25_10644.jpg', '/home/nano/Desktop/images/18082025/18/17/image_18082025_18_17_14_9629.jpg', '/home/nano/Desktop/images/18082025/18/16/image_18082025_18_17_05_9618.jpg', '/home/nano/Desktop/images/18082025/18/16/image_18082025_18_16_55_10635.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/17/image_18082025_18_17_44_9621.jpg
/home/nano/Desktop/images/18082025/18/17/image_18082025_18_17_34_9642.jpg
/home/nano/Desktop/images/18082025/18/17/image_18082025_18_17_25_10644.jpg
/home/nano/Desktop/images/18082025/18/17/image_18082025_18_17_14_9629.jpg
/home/nano/Desktop/images/18082025/18/16/image_18082025_18_17_05_9618.jpg
/home/nano/Desktop/images/18082025/18/16/image_18082025_18_16_55_10635.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377712369","1377712377","1377712373","1377712382","1377712364","1377712367"],"photo_ids_order":["1377712364","1377712367","1377712369","1377712373","1377712377","1377712382"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7c7685284551b1c6fefec4be45c88607.jpg","text":"TemporaryFile(/tmp/multipartBody5492708493328843161asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533898830,"filename":"image_18082025_18_17_25_10644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fc7d12bfc6ed1e9a80919852f6b3780b.jpg","text":"TemporaryFile(/tmp/multipartBody1921351877925409881asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533898830,"filename":"image_18082025_18_17_05_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c3e22fceb43f7899d590ed788448e752.jpg","text":"TemporaryFile(/tmp/multipartBody5429190509425326036asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533898830,"filename":"image_18082025_18_17_14_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f156fa641774fd06d7229cd0b2ace850.jpg","text":"TemporaryFile(/tmp/multipartBody2688040559225027946asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533898830,"filename":"image_18082025_18_16_55_10635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/626f1303a0a99182e4c34932d2bfb1e7.jpg","text":"TemporaryFile(/tmp/multipartBody6732163978910886000asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533898830,"filename":"image_18082025_18_17_44_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bb03be4113f33a939b69e49117954569.jpg","text":"TemporaryFile(/tmp/multipartBody2829075315255902479asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533898830,"filename":"image_18082025_18_17_34_9642.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377712369","file1":"1377712367","file0":"1377712364","file4":"1377712377","file5":"1377712382","file3":"1377712373"},"map_files_photo_id_array":[{"photo_id":"1377712382","filename":"file5"},{"photo_id":"1377712369","filename":"file2"},{"photo_id":"1377712377","filename":"file4"},{"photo_id":"1377712367","filename":"file1"},{"photo_id":"1377712364","filename":"file0"},{"photo_id":"1377712373","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377712369":["hashtag1","hashtag2"]},{"1377712377":["hashtag1","hashtag2"]},{"1377712373":["hashtag1","hashtag2"]},{"1377712382":["hashtag1","hashtag2"]},{"1377712364":["hashtag1","hashtag2"]},{"1377712367":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377712369, 1377712377, 1377712373, 1377712382, 1377712364, 1377712367)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.62677192687988 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:18:02.370444
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/54/image_18082025_09_54_45_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/09/54/image_18082025_09_54_35_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/09/54/image_18082025_09_54_24_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/09/54/image_18082025_09_54_15_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/09/53/image_18082025_09_54_05_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/09/53/image_18082025_09_53_54_9605.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/54/image_18082025_09_54_45_9610.jpg', '/home/nano/Desktop/images/18082025/09/54/image_18082025_09_54_35_10618.jpg', '/home/nano/Desktop/images/18082025/09/54/image_18082025_09_54_24_9613.jpg', '/home/nano/Desktop/images/18082025/09/54/image_18082025_09_54_15_9633.jpg', '/home/nano/Desktop/images/18082025/09/53/image_18082025_09_54_05_10630.jpg', '/home/nano/Desktop/images/18082025/09/53/image_18082025_09_53_54_9605.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/54/image_18082025_09_54_45_9610.jpg
/home/nano/Desktop/images/18082025/09/54/image_18082025_09_54_35_10618.jpg
/home/nano/Desktop/images/18082025/09/54/image_18082025_09_54_24_9613.jpg
/home/nano/Desktop/images/18082025/09/54/image_18082025_09_54_15_9633.jpg
/home/nano/Desktop/images/18082025/09/53/image_18082025_09_54_05_10630.jpg
/home/nano/Desktop/images/18082025/09/53/image_18082025_09_53_54_9605.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377712396","1377712402","1377712392","1377712406","1377712400","1377712390"],"photo_ids_order":["1377712390","1377712392","1377712396","1377712400","1377712402","1377712406"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4d785603a06e136e7da0b52f97e4719f.jpg","text":"TemporaryFile(/tmp/multipartBody10865741136464677asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533943709,"filename":"image_18082025_09_54_24_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d555b4ae00fb20de652af1b3f36a94d7.jpg","text":"TemporaryFile(/tmp/multipartBody5801776140776504739asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533943709,"filename":"image_18082025_09_54_05_10630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/15d6a3e42b043e4f70b173e3acd0d732.jpg","text":"TemporaryFile(/tmp/multipartBody8941073529896972990asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533943709,"filename":"image_18082025_09_54_35_10618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/70add87b6b5678b89700e135c7deb54e.jpg","text":"TemporaryFile(/tmp/multipartBody7414666764370523819asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533943709,"filename":"image_18082025_09_53_54_9605.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7558451311e41efebe25a74d552bda07.jpg","text":"TemporaryFile(/tmp/multipartBody8669211904676543563asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533943709,"filename":"image_18082025_09_54_15_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/baad13fbed43616846cee6f82acbdecf.jpg","text":"TemporaryFile(/tmp/multipartBody8420072285414328068asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533943709,"filename":"image_18082025_09_54_45_9610.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377712396","file1":"1377712392","file0":"1377712390","file4":"1377712402","file5":"1377712406","file3":"1377712400"},"map_files_photo_id_array":[{"photo_id":"1377712406","filename":"file5"},{"photo_id":"1377712396","filename":"file2"},{"photo_id":"1377712402","filename":"file4"},{"photo_id":"1377712392","filename":"file1"},{"photo_id":"1377712390","filename":"file0"},{"photo_id":"1377712400","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377712396":["hashtag1","hashtag2"]},{"1377712402":["hashtag1","hashtag2"]},{"1377712392":["hashtag1","hashtag2"]},{"1377712406":["hashtag1","hashtag2"]},{"1377712400":["hashtag1","hashtag2"]},{"1377712390":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377712396, 1377712402, 1377712392, 1377712406, 1377712400, 1377712390)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.71134614944458 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:18:46.886433
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/18/image_18082025_18_18_45_10633.jpg', 2), ('/home/nano/Desktop/images/18082025/18/18/image_18082025_18_18_34_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/18/18/image_18082025_18_18_25_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/18/18/image_18082025_18_18_15_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/18/17/image_18082025_18_18_04_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/18/17/image_18082025_18_17_55_10633.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/18/image_18082025_18_18_45_10633.jpg', '/home/nano/Desktop/images/18082025/18/18/image_18082025_18_18_34_9629.jpg', '/home/nano/Desktop/images/18082025/18/18/image_18082025_18_18_25_9639.jpg', '/home/nano/Desktop/images/18082025/18/18/image_18082025_18_18_15_10653.jpg', '/home/nano/Desktop/images/18082025/18/17/image_18082025_18_18_04_9636.jpg', '/home/nano/Desktop/images/18082025/18/17/image_18082025_18_17_55_10633.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/18/image_18082025_18_18_45_10633.jpg
/home/nano/Desktop/images/18082025/18/18/image_18082025_18_18_34_9629.jpg
/home/nano/Desktop/images/18082025/18/18/image_18082025_18_18_25_9639.jpg
/home/nano/Desktop/images/18082025/18/18/image_18082025_18_18_15_10653.jpg
/home/nano/Desktop/images/18082025/18/17/image_18082025_18_18_04_9636.jpg
/home/nano/Desktop/images/18082025/18/17/image_18082025_18_17_55_10633.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377712417","1377712411","1377712422","1377712412","1377712415","1377712409"],"photo_ids_order":["1377712409","1377712411","1377712412","1377712415","1377712417","1377712422"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d2f7903c293437c1209f0117fa623b31.jpg","text":"TemporaryFile(/tmp/multipartBody7106189676985047253asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533988336,"filename":"image_18082025_18_18_04_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c282428245e2f8c56213230c0c87589f.jpg","text":"TemporaryFile(/tmp/multipartBody6468679250724203494asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533988336,"filename":"image_18082025_18_18_34_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2550e7cfb77f2a61c6082a4faa4ae7e7.jpg","text":"TemporaryFile(/tmp/multipartBody6201638185331705172asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533988336,"filename":"image_18082025_18_17_55_10633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f68c3ff3d30afd93b622e7c587d2a22f.jpg","text":"TemporaryFile(/tmp/multipartBody2018612297883802063asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533988336,"filename":"image_18082025_18_18_25_9639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9eb74bfb5012a33eb3f6414a79c259ad.jpg","text":"TemporaryFile(/tmp/multipartBody140882297180957151asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533988336,"filename":"image_18082025_18_18_15_10653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a6c47ea9202b86ffbb32cc5b263efb01.jpg","text":"TemporaryFile(/tmp/multipartBody5583922345358258089asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755533988336,"filename":"image_18082025_18_18_45_10633.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377712412","file1":"1377712411","file0":"1377712409","file4":"1377712417","file5":"1377712422","file3":"1377712415"},"map_files_photo_id_array":[{"photo_id":"1377712422","filename":"file5"},{"photo_id":"1377712412","filename":"file2"},{"photo_id":"1377712417","filename":"file4"},{"photo_id":"1377712411","filename":"file1"},{"photo_id":"1377712409","filename":"file0"},{"photo_id":"1377712415","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377712417":["hashtag1","hashtag2"]},{"1377712411":["hashtag1","hashtag2"]},{"1377712422":["hashtag1","hashtag2"]},{"1377712412":["hashtag1","hashtag2"]},{"1377712415":["hashtag1","hashtag2"]},{"1377712409":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377712417, 1377712411, 1377712422, 1377712412, 1377712415, 1377712409)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.47676420211792 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:19:31.985897
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/19/image_18082025_18_19_45_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/18/19/image_18082025_18_19_34_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/18/19/image_18082025_18_19_25_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/18/19/image_18082025_18_19_15_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/18/18/image_18082025_18_19_04_9723.jpg', 2), ('/home/nano/Desktop/images/18082025/18/18/image_18082025_18_18_55_9614.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/19/image_18082025_18_19_45_10624.jpg', '/home/nano/Desktop/images/18082025/18/19/image_18082025_18_19_34_9631.jpg', '/home/nano/Desktop/images/18082025/18/19/image_18082025_18_19_25_9636.jpg', '/home/nano/Desktop/images/18082025/18/19/image_18082025_18_19_15_10651.jpg', '/home/nano/Desktop/images/18082025/18/18/image_18082025_18_19_04_9723.jpg', '/home/nano/Desktop/images/18082025/18/18/image_18082025_18_18_55_9614.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/19/image_18082025_18_19_45_10624.jpg
/home/nano/Desktop/images/18082025/18/19/image_18082025_18_19_34_9631.jpg
/home/nano/Desktop/images/18082025/18/19/image_18082025_18_19_25_9636.jpg
/home/nano/Desktop/images/18082025/18/19/image_18082025_18_19_15_10651.jpg
/home/nano/Desktop/images/18082025/18/18/image_18082025_18_19_04_9723.jpg
/home/nano/Desktop/images/18082025/18/18/image_18082025_18_18_55_9614.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377712435","1377712450","1377712438","1377712431","1377712454","1377712433"],"photo_ids_order":["1377712431","1377712433","1377712435","1377712438","1377712450","1377712454"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/79df5f31dcdb7afc67c5603c6951eff0.jpg","text":"TemporaryFile(/tmp/multipartBody4713964663489545223asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534033233,"filename":"image_18082025_18_19_25_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/84edfda1ba010cca54d4bf9227c000dd.jpg","text":"TemporaryFile(/tmp/multipartBody6506119049702332238asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534033233,"filename":"image_18082025_18_19_04_9723.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/aa99d96e8da2fe1fb24650b02f7f333f.jpg","text":"TemporaryFile(/tmp/multipartBody6730305276971372468asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534033233,"filename":"image_18082025_18_19_15_10651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4951610f6450824293f63675508893ee.jpg","text":"TemporaryFile(/tmp/multipartBody8274352647485384174asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534033233,"filename":"image_18082025_18_19_45_10624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c7685381f6399695cd8e8e1bd9b76f8e.jpg","text":"TemporaryFile(/tmp/multipartBody5892211093538064925asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534033233,"filename":"image_18082025_18_18_55_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ecd7465bba98d063e15a93766c9e4dd7.jpg","text":"TemporaryFile(/tmp/multipartBody7387095494797919314asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534033233,"filename":"image_18082025_18_19_34_9631.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377712435","file1":"1377712433","file0":"1377712431","file4":"1377712450","file5":"1377712454","file3":"1377712438"},"map_files_photo_id_array":[{"photo_id":"1377712454","filename":"file5"},{"photo_id":"1377712435","filename":"file2"},{"photo_id":"1377712450","filename":"file4"},{"photo_id":"1377712433","filename":"file1"},{"photo_id":"1377712431","filename":"file0"},{"photo_id":"1377712438","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377712435":["hashtag1","hashtag2"]},{"1377712450":["hashtag1","hashtag2"]},{"1377712438":["hashtag1","hashtag2"]},{"1377712431":["hashtag1","hashtag2"]},{"1377712454":["hashtag1","hashtag2"]},{"1377712433":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377712435, 1377712450, 1377712438, 1377712431, 1377712454, 1377712433)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.19923186302185 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:20:17.098188
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/20/image_18082025_18_20_45_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/18/20/image_18082025_18_20_35_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/18/20/image_18082025_18_20_24_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/18/20/image_18082025_18_20_15_10634.jpg', 2), ('/home/nano/Desktop/images/18082025/18/19/image_18082025_18_20_04_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/18/19/image_18082025_18_19_54_9630.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/20/image_18082025_18_20_45_9622.jpg', '/home/nano/Desktop/images/18082025/18/20/image_18082025_18_20_35_10651.jpg', '/home/nano/Desktop/images/18082025/18/20/image_18082025_18_20_24_9623.jpg', '/home/nano/Desktop/images/18082025/18/20/image_18082025_18_20_15_10634.jpg', '/home/nano/Desktop/images/18082025/18/19/image_18082025_18_20_04_9643.jpg', '/home/nano/Desktop/images/18082025/18/19/image_18082025_18_19_54_9630.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/20/image_18082025_18_20_45_9622.jpg
/home/nano/Desktop/images/18082025/18/20/image_18082025_18_20_35_10651.jpg
/home/nano/Desktop/images/18082025/18/20/image_18082025_18_20_24_9623.jpg
/home/nano/Desktop/images/18082025/18/20/image_18082025_18_20_15_10634.jpg
/home/nano/Desktop/images/18082025/18/19/image_18082025_18_20_04_9643.jpg
/home/nano/Desktop/images/18082025/18/19/image_18082025_18_19_54_9630.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377712467","1377712472","1377712481","1377712475","1377712478","1377712465"],"photo_ids_order":["1377712465","1377712467","1377712472","1377712475","1377712478","1377712481"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/625bb48e3177223367744a156f851d43.jpg","text":"TemporaryFile(/tmp/multipartBody7347600022204599304asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534078433,"filename":"image_18082025_18_20_35_10651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a989d56a7459f1ed304b76b664cb23c6.jpg","text":"TemporaryFile(/tmp/multipartBody4716301963285332495asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534078433,"filename":"image_18082025_18_20_24_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d70fd9b23ae8fbce30366a0f03b8c699.jpg","text":"TemporaryFile(/tmp/multipartBody7514392646754978878asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534078433,"filename":"image_18082025_18_19_54_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e5f3bd6f53bbde27bbf96a426a308b87.jpg","text":"TemporaryFile(/tmp/multipartBody2946102670393331805asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534078433,"filename":"image_18082025_18_20_15_10634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f263355e31f51053ce133e2b66788fc8.jpg","text":"TemporaryFile(/tmp/multipartBody8537432136152533429asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534078433,"filename":"image_18082025_18_20_04_9643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0c826b597b69e958ded612f22c18c4bb.jpg","text":"TemporaryFile(/tmp/multipartBody5626731725452681739asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534078433,"filename":"image_18082025_18_20_45_9622.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377712472","file1":"1377712467","file0":"1377712465","file4":"1377712478","file5":"1377712481","file3":"1377712475"},"map_files_photo_id_array":[{"photo_id":"1377712481","filename":"file5"},{"photo_id":"1377712472","filename":"file2"},{"photo_id":"1377712478","filename":"file4"},{"photo_id":"1377712467","filename":"file1"},{"photo_id":"1377712465","filename":"file0"},{"photo_id":"1377712475","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377712467":["hashtag1","hashtag2"]},{"1377712472":["hashtag1","hashtag2"]},{"1377712481":["hashtag1","hashtag2"]},{"1377712475":["hashtag1","hashtag2"]},{"1377712478":["hashtag1","hashtag2"]},{"1377712465":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377712467, 1377712472, 1377712481, 1377712475, 1377712478, 1377712465)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.809929847717285 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:21:02.959096
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/53/image_18082025_09_53_45_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/09/53/image_18082025_09_53_34_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/09/53/image_18082025_09_53_25_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/09/53/image_18082025_09_53_15_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/09/52/image_18082025_09_53_04_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/09/52/image_18082025_09_52_55_10627.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/53/image_18082025_09_53_45_10618.jpg', '/home/nano/Desktop/images/18082025/09/53/image_18082025_09_53_34_9610.jpg', '/home/nano/Desktop/images/18082025/09/53/image_18082025_09_53_25_9612.jpg', '/home/nano/Desktop/images/18082025/09/53/image_18082025_09_53_15_10652.jpg', '/home/nano/Desktop/images/18082025/09/52/image_18082025_09_53_04_9620.jpg', '/home/nano/Desktop/images/18082025/09/52/image_18082025_09_52_55_10627.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/53/image_18082025_09_53_45_10618.jpg
/home/nano/Desktop/images/18082025/09/53/image_18082025_09_53_34_9610.jpg
/home/nano/Desktop/images/18082025/09/53/image_18082025_09_53_25_9612.jpg
/home/nano/Desktop/images/18082025/09/53/image_18082025_09_53_15_10652.jpg
/home/nano/Desktop/images/18082025/09/52/image_18082025_09_53_04_9620.jpg
/home/nano/Desktop/images/18082025/09/52/image_18082025_09_52_55_10627.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377712494","1377712490","1377712505","1377712498","1377712502","1377712486"],"photo_ids_order":["1377712486","1377712490","1377712494","1377712498","1377712502","1377712505"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/37d3be0d555ec55e05c4ac4cb367feea.jpg","text":"TemporaryFile(/tmp/multipartBody4178231728593245232asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534124198,"filename":"image_18082025_09_53_25_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/de81a6c56bb1353552fa3b11f5ef6553.jpg","text":"TemporaryFile(/tmp/multipartBody7239347010995060437asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534124198,"filename":"image_18082025_09_53_34_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/497f2b835c9f3de077125f1cdd7499aa.jpg","text":"TemporaryFile(/tmp/multipartBody4083948103041928495asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534124198,"filename":"image_18082025_09_52_55_10627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2675d081b2b4d648be10708b66a19e91.jpg","text":"TemporaryFile(/tmp/multipartBody2588063923280244045asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534124198,"filename":"image_18082025_09_53_15_10652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ce942a7582e74c6be806a4d14c758ba6.jpg","text":"TemporaryFile(/tmp/multipartBody1969519983174659843asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534124198,"filename":"image_18082025_09_53_04_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cf9f34b26d3724d18f8b771a31acbb75.jpg","text":"TemporaryFile(/tmp/multipartBody8599606633677167845asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534124198,"filename":"image_18082025_09_53_45_10618.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377712494","file1":"1377712490","file0":"1377712486","file4":"1377712502","file5":"1377712505","file3":"1377712498"},"map_files_photo_id_array":[{"photo_id":"1377712505","filename":"file5"},{"photo_id":"1377712494","filename":"file2"},{"photo_id":"1377712502","filename":"file4"},{"photo_id":"1377712490","filename":"file1"},{"photo_id":"1377712486","filename":"file0"},{"photo_id":"1377712498","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377712494":["hashtag1","hashtag2"]},{"1377712490":["hashtag1","hashtag2"]},{"1377712505":["hashtag1","hashtag2"]},{"1377712498":["hashtag1","hashtag2"]},{"1377712502":["hashtag1","hashtag2"]},{"1377712486":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377712494, 1377712490, 1377712505, 1377712498, 1377712502, 1377712486)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.27349829673767 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:21:47.184035
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/21/image_18082025_18_21_44_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/18/21/image_18082025_18_21_35_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/18/21/image_18082025_18_21_24_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/18/21/image_18082025_18_21_14_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/18/20/image_18082025_18_21_05_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/18/20/image_18082025_18_20_54_9623.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/21/image_18082025_18_21_44_9633.jpg', '/home/nano/Desktop/images/18082025/18/21/image_18082025_18_21_35_10656.jpg', '/home/nano/Desktop/images/18082025/18/21/image_18082025_18_21_24_9627.jpg', '/home/nano/Desktop/images/18082025/18/21/image_18082025_18_21_14_9645.jpg', '/home/nano/Desktop/images/18082025/18/20/image_18082025_18_21_05_10624.jpg', '/home/nano/Desktop/images/18082025/18/20/image_18082025_18_20_54_9623.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/21/image_18082025_18_21_44_9633.jpg
/home/nano/Desktop/images/18082025/18/21/image_18082025_18_21_35_10656.jpg
/home/nano/Desktop/images/18082025/18/21/image_18082025_18_21_24_9627.jpg
/home/nano/Desktop/images/18082025/18/21/image_18082025_18_21_14_9645.jpg
/home/nano/Desktop/images/18082025/18/20/image_18082025_18_21_05_10624.jpg
/home/nano/Desktop/images/18082025/18/20/image_18082025_18_20_54_9623.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377712519","1377712521","1377712523","1377712517","1377712526","1377712514"],"photo_ids_order":["1377712514","1377712517","1377712519","1377712521","1377712523","1377712526"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d6932f5301409497af35d73860b4892c.jpg","text":"TemporaryFile(/tmp/multipartBody109494287070019447asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534168761,"filename":"image_18082025_18_21_24_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7bb75d48d418774445cff2808b651a20.jpg","text":"TemporaryFile(/tmp/multipartBody5900080820057644256asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534168761,"filename":"image_18082025_18_21_14_9645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d518e6f184e5c1384164cd1ef173a22a.jpg","text":"TemporaryFile(/tmp/multipartBody3287217429997099776asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534168761,"filename":"image_18082025_18_21_05_10624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d4c0b1f554c835d7aea7b540d3fc5fcf.jpg","text":"TemporaryFile(/tmp/multipartBody4770562364157658610asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534168761,"filename":"image_18082025_18_21_35_10656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4b2f22a87284f1effea1b0cf7dc6c661.jpg","text":"TemporaryFile(/tmp/multipartBody7525096584786807452asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534168761,"filename":"image_18082025_18_20_54_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/336ed7339e4e81070ece760d25e7d62b.jpg","text":"TemporaryFile(/tmp/multipartBody2477810146197672285asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534168761,"filename":"image_18082025_18_21_44_9633.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377712519","file1":"1377712517","file0":"1377712514","file4":"1377712523","file5":"1377712526","file3":"1377712521"},"map_files_photo_id_array":[{"photo_id":"1377712526","filename":"file5"},{"photo_id":"1377712519","filename":"file2"},{"photo_id":"1377712523","filename":"file4"},{"photo_id":"1377712517","filename":"file1"},{"photo_id":"1377712514","filename":"file0"},{"photo_id":"1377712521","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377712519":["hashtag1","hashtag2"]},{"1377712521":["hashtag1","hashtag2"]},{"1377712523":["hashtag1","hashtag2"]},{"1377712517":["hashtag1","hashtag2"]},{"1377712526":["hashtag1","hashtag2"]},{"1377712514":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377712519, 1377712521, 1377712523, 1377712517, 1377712526, 1377712514)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.29788875579834 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:22:32.299916
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/22/image_18082025_18_22_44_9604.jpg', 2), ('/home/nano/Desktop/images/18082025/18/22/image_18082025_18_22_35_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/18/22/image_18082025_18_22_25_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/18/22/image_18082025_18_22_14_9682.jpg', 2), ('/home/nano/Desktop/images/18082025/18/21/image_18082025_18_22_05_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/18/21/image_18082025_18_21_55_10644.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/22/image_18082025_18_22_44_9604.jpg', '/home/nano/Desktop/images/18082025/18/22/image_18082025_18_22_35_9619.jpg', '/home/nano/Desktop/images/18082025/18/22/image_18082025_18_22_25_10647.jpg', '/home/nano/Desktop/images/18082025/18/22/image_18082025_18_22_14_9682.jpg', '/home/nano/Desktop/images/18082025/18/21/image_18082025_18_22_05_9614.jpg', '/home/nano/Desktop/images/18082025/18/21/image_18082025_18_21_55_10644.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/22/image_18082025_18_22_44_9604.jpg
/home/nano/Desktop/images/18082025/18/22/image_18082025_18_22_35_9619.jpg
/home/nano/Desktop/images/18082025/18/22/image_18082025_18_22_25_10647.jpg
/home/nano/Desktop/images/18082025/18/22/image_18082025_18_22_14_9682.jpg
/home/nano/Desktop/images/18082025/18/21/image_18082025_18_22_05_9614.jpg
/home/nano/Desktop/images/18082025/18/21/image_18082025_18_21_55_10644.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377712542","1377712545","1377712539","1377712548","1377712541","1377712550"],"photo_ids_order":["1377712539","1377712541","1377712542","1377712545","1377712548","1377712550"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/479016df4ce5613232ea05a57bfa9ca5.jpg","text":"TemporaryFile(/tmp/multipartBody959315802757517212asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534213601,"filename":"image_18082025_18_22_25_10647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e3dd5401366f80a558b8f3b741442f1f.jpg","text":"TemporaryFile(/tmp/multipartBody168113330406745744asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534213601,"filename":"image_18082025_18_22_14_9682.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/78930d8b2205dabecb9ef518a3385ec6.jpg","text":"TemporaryFile(/tmp/multipartBody5559841343091665924asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534213601,"filename":"image_18082025_18_22_44_9604.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1818ccf515bdda246e56fa6dd4248f4f.jpg","text":"TemporaryFile(/tmp/multipartBody7678732897309578798asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534213601,"filename":"image_18082025_18_22_05_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ba5e7908fa8650de08ced111d6491490.jpg","text":"TemporaryFile(/tmp/multipartBody1751384219729078787asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534213601,"filename":"image_18082025_18_22_35_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/67db039d8cce24ee74cd62240946e4c0.jpg","text":"TemporaryFile(/tmp/multipartBody6497788265133941582asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534213601,"filename":"image_18082025_18_21_55_10644.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377712542","file1":"1377712541","file0":"1377712539","file4":"1377712548","file5":"1377712550","file3":"1377712545"},"map_files_photo_id_array":[{"photo_id":"1377712550","filename":"file5"},{"photo_id":"1377712542","filename":"file2"},{"photo_id":"1377712548","filename":"file4"},{"photo_id":"1377712541","filename":"file1"},{"photo_id":"1377712539","filename":"file0"},{"photo_id":"1377712545","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377712542":["hashtag1","hashtag2"]},{"1377712545":["hashtag1","hashtag2"]},{"1377712539":["hashtag1","hashtag2"]},{"1377712548":["hashtag1","hashtag2"]},{"1377712541":["hashtag1","hashtag2"]},{"1377712550":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377712542, 1377712545, 1377712539, 1377712548, 1377712541, 1377712550)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.830727100372314 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:23:17.369771
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/23/image_18082025_18_23_45_10619.jpg', 2), ('/home/nano/Desktop/images/18082025/18/23/image_18082025_18_23_34_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/18/23/image_18082025_18_23_25_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/18/23/image_18082025_18_23_14_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/18/22/image_18082025_18_23_04_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/18/22/image_18082025_18_22_55_10623.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/23/image_18082025_18_23_45_10619.jpg', '/home/nano/Desktop/images/18082025/18/23/image_18082025_18_23_34_9606.jpg', '/home/nano/Desktop/images/18082025/18/23/image_18082025_18_23_25_10635.jpg', '/home/nano/Desktop/images/18082025/18/23/image_18082025_18_23_14_9647.jpg', '/home/nano/Desktop/images/18082025/18/22/image_18082025_18_23_04_9621.jpg', '/home/nano/Desktop/images/18082025/18/22/image_18082025_18_22_55_10623.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/23/image_18082025_18_23_45_10619.jpg
/home/nano/Desktop/images/18082025/18/23/image_18082025_18_23_34_9606.jpg
/home/nano/Desktop/images/18082025/18/23/image_18082025_18_23_25_10635.jpg
/home/nano/Desktop/images/18082025/18/23/image_18082025_18_23_14_9647.jpg
/home/nano/Desktop/images/18082025/18/22/image_18082025_18_23_04_9621.jpg
/home/nano/Desktop/images/18082025/18/22/image_18082025_18_22_55_10623.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377712575","1377712569","1377712566","1377712571","1377712574","1377712577"],"photo_ids_order":["1377712566","1377712569","1377712571","1377712574","1377712575","1377712577"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ed5263320ea4707c77bacd28c9c6a3f6.jpg","text":"TemporaryFile(/tmp/multipartBody5490857501967958442asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534258543,"filename":"image_18082025_18_23_04_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0f690f17a121a479572a7c13f5798f1d.jpg","text":"TemporaryFile(/tmp/multipartBody3296389186599254911asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534258543,"filename":"image_18082025_18_23_34_9606.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ce1067bdaee75ebb81e7529ce1567353.jpg","text":"TemporaryFile(/tmp/multipartBody3899136069377908854asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534258543,"filename":"image_18082025_18_23_45_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/65a3856d7e39f7e88f4e7dd6e36fbfec.jpg","text":"TemporaryFile(/tmp/multipartBody2439568196869243246asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534258543,"filename":"image_18082025_18_23_25_10635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/36c5bec6022c73ba440312e3335c0b16.jpg","text":"TemporaryFile(/tmp/multipartBody9089877297784028903asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534258543,"filename":"image_18082025_18_23_14_9647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b83cc4943fadb71086c48557b28d65fb.jpg","text":"TemporaryFile(/tmp/multipartBody2485087202924094980asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534258543,"filename":"image_18082025_18_22_55_10623.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377712571","file1":"1377712569","file0":"1377712566","file4":"1377712575","file5":"1377712577","file3":"1377712574"},"map_files_photo_id_array":[{"photo_id":"1377712577","filename":"file5"},{"photo_id":"1377712571","filename":"file2"},{"photo_id":"1377712575","filename":"file4"},{"photo_id":"1377712569","filename":"file1"},{"photo_id":"1377712566","filename":"file0"},{"photo_id":"1377712574","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377712575":["hashtag1","hashtag2"]},{"1377712569":["hashtag1","hashtag2"]},{"1377712566":["hashtag1","hashtag2"]},{"1377712571":["hashtag1","hashtag2"]},{"1377712574":["hashtag1","hashtag2"]},{"1377712577":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377712575, 1377712569, 1377712566, 1377712571, 1377712574, 1377712577)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.07066059112549 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:24:03.694375
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/52/image_18082025_09_52_44_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/52/image_18082025_09_52_34_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/09/52/image_18082025_09_52_25_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/09/52/image_18082025_09_52_14_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/09/51/image_18082025_09_52_05_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/09/51/image_18082025_09_51_55_10624.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/52/image_18082025_09_52_44_9616.jpg', '/home/nano/Desktop/images/18082025/09/52/image_18082025_09_52_34_9613.jpg', '/home/nano/Desktop/images/18082025/09/52/image_18082025_09_52_25_10626.jpg', '/home/nano/Desktop/images/18082025/09/52/image_18082025_09_52_14_9650.jpg', '/home/nano/Desktop/images/18082025/09/51/image_18082025_09_52_05_9618.jpg', '/home/nano/Desktop/images/18082025/09/51/image_18082025_09_51_55_10624.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/52/image_18082025_09_52_44_9616.jpg
/home/nano/Desktop/images/18082025/09/52/image_18082025_09_52_34_9613.jpg
/home/nano/Desktop/images/18082025/09/52/image_18082025_09_52_25_10626.jpg
/home/nano/Desktop/images/18082025/09/52/image_18082025_09_52_14_9650.jpg
/home/nano/Desktop/images/18082025/09/51/image_18082025_09_52_05_9618.jpg
/home/nano/Desktop/images/18082025/09/51/image_18082025_09_51_55_10624.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377712609","1377712605","1377712598","1377712602","1377712595","1377712591"],"photo_ids_order":["1377712591","1377712595","1377712598","1377712602","1377712605","1377712609"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/57ef3a672328cca13ecee8863b06dd90.jpg","text":"TemporaryFile(/tmp/multipartBody2086029003482439341asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534305100,"filename":"image_18082025_09_51_55_10624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f62e9559ae4d0722345b8157d9809e38.jpg","text":"TemporaryFile(/tmp/multipartBody3787391955468413836asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534305100,"filename":"image_18082025_09_52_05_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e20a171dd0b31b5b1d6c7cfab7fce0c4.jpg","text":"TemporaryFile(/tmp/multipartBody6967183090266128587asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534305100,"filename":"image_18082025_09_52_25_10626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d86fb0f8abb1818673fae96704618d42.jpg","text":"TemporaryFile(/tmp/multipartBody3626248469521676114asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534305100,"filename":"image_18082025_09_52_14_9650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9cc0daba9c29815b32aa80ae5dcc09ba.jpg","text":"TemporaryFile(/tmp/multipartBody1178406886556134334asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534305100,"filename":"image_18082025_09_52_34_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f99130c42f8dd309662730ad7b57ce48.jpg","text":"TemporaryFile(/tmp/multipartBody1744992396498032367asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534305100,"filename":"image_18082025_09_52_44_9616.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377712598","file1":"1377712595","file0":"1377712591","file4":"1377712605","file5":"1377712609","file3":"1377712602"},"map_files_photo_id_array":[{"photo_id":"1377712609","filename":"file5"},{"photo_id":"1377712598","filename":"file2"},{"photo_id":"1377712605","filename":"file4"},{"photo_id":"1377712595","filename":"file1"},{"photo_id":"1377712591","filename":"file0"},{"photo_id":"1377712602","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377712609":["hashtag1","hashtag2"]},{"1377712605":["hashtag1","hashtag2"]},{"1377712598":["hashtag1","hashtag2"]},{"1377712602":["hashtag1","hashtag2"]},{"1377712595":["hashtag1","hashtag2"]},{"1377712591":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377712609, 1377712605, 1377712598, 1377712602, 1377712595, 1377712591)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.491283178329468 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:24:47.471535
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/24/image_18082025_18_24_45_10620.jpg', 2), ('/home/nano/Desktop/images/18082025/18/24/image_18082025_18_24_34_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/18/24/image_18082025_18_24_24_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/18/24/image_18082025_18_24_15_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/18/23/image_18082025_18_24_04_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/18/23/image_18082025_18_23_55_9608.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/24/image_18082025_18_24_45_10620.jpg', '/home/nano/Desktop/images/18082025/18/24/image_18082025_18_24_34_9607.jpg', '/home/nano/Desktop/images/18082025/18/24/image_18082025_18_24_24_9618.jpg', '/home/nano/Desktop/images/18082025/18/24/image_18082025_18_24_15_10658.jpg', '/home/nano/Desktop/images/18082025/18/23/image_18082025_18_24_04_9606.jpg', '/home/nano/Desktop/images/18082025/18/23/image_18082025_18_23_55_9608.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/24/image_18082025_18_24_45_10620.jpg
/home/nano/Desktop/images/18082025/18/24/image_18082025_18_24_34_9607.jpg
/home/nano/Desktop/images/18082025/18/24/image_18082025_18_24_24_9618.jpg
/home/nano/Desktop/images/18082025/18/24/image_18082025_18_24_15_10658.jpg
/home/nano/Desktop/images/18082025/18/23/image_18082025_18_24_04_9606.jpg
/home/nano/Desktop/images/18082025/18/23/image_18082025_18_23_55_9608.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377712621","1377712624","1377712618","1377712617","1377712616","1377712619"],"photo_ids_order":["1377712616","1377712617","1377712618","1377712619","1377712621","1377712624"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a11199809ff9533e801de5bbef605d4b.jpg","text":"TemporaryFile(/tmp/multipartBody5555034530052614485asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534348837,"filename":"image_18082025_18_24_04_9606.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4ea028ec958ba45940af3014029ee80d.jpg","text":"TemporaryFile(/tmp/multipartBody1248598682513125664asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534348837,"filename":"image_18082025_18_23_55_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/837a079e38bfdd3cbe437718d6d5b028.jpg","text":"TemporaryFile(/tmp/multipartBody6954114980948027349asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534348837,"filename":"image_18082025_18_24_24_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a072ca5acb849dc103b77a6d1b74dcfe.jpg","text":"TemporaryFile(/tmp/multipartBody955867742747803308asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534348837,"filename":"image_18082025_18_24_34_9607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8ef0ea7740ac7108f7b3b74d65427bf9.jpg","text":"TemporaryFile(/tmp/multipartBody1319046092147966981asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534348837,"filename":"image_18082025_18_24_45_10620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5b0bc1383880f8a2f160b2ab6e279f6e.jpg","text":"TemporaryFile(/tmp/multipartBody6924142372485949053asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534348837,"filename":"image_18082025_18_24_15_10658.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377712618","file1":"1377712617","file0":"1377712616","file4":"1377712621","file5":"1377712624","file3":"1377712619"},"map_files_photo_id_array":[{"photo_id":"1377712624","filename":"file5"},{"photo_id":"1377712618","filename":"file2"},{"photo_id":"1377712621","filename":"file4"},{"photo_id":"1377712617","filename":"file1"},{"photo_id":"1377712616","filename":"file0"},{"photo_id":"1377712619","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377712621":["hashtag1","hashtag2"]},{"1377712624":["hashtag1","hashtag2"]},{"1377712618":["hashtag1","hashtag2"]},{"1377712617":["hashtag1","hashtag2"]},{"1377712616":["hashtag1","hashtag2"]},{"1377712619":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377712621, 1377712624, 1377712618, 1377712617, 1377712616, 1377712619)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.83616280555725 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:25:32.594516
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/25/image_18082025_18_25_44_9604.jpg', 2), ('/home/nano/Desktop/images/18082025/18/25/image_18082025_18_25_35_10617.jpg', 2), ('/home/nano/Desktop/images/18082025/18/25/image_18082025_18_25_24_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/18/25/image_18082025_18_25_15_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/18/24/image_18082025_18_25_05_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/18/24/image_18082025_18_24_54_9612.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/25/image_18082025_18_25_44_9604.jpg', '/home/nano/Desktop/images/18082025/18/25/image_18082025_18_25_35_10617.jpg', '/home/nano/Desktop/images/18082025/18/25/image_18082025_18_25_24_9629.jpg', '/home/nano/Desktop/images/18082025/18/25/image_18082025_18_25_15_9645.jpg', '/home/nano/Desktop/images/18082025/18/24/image_18082025_18_25_05_10624.jpg', '/home/nano/Desktop/images/18082025/18/24/image_18082025_18_24_54_9612.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/25/image_18082025_18_25_44_9604.jpg
/home/nano/Desktop/images/18082025/18/25/image_18082025_18_25_35_10617.jpg
/home/nano/Desktop/images/18082025/18/25/image_18082025_18_25_24_9629.jpg
/home/nano/Desktop/images/18082025/18/25/image_18082025_18_25_15_9645.jpg
/home/nano/Desktop/images/18082025/18/24/image_18082025_18_25_05_10624.jpg
/home/nano/Desktop/images/18082025/18/24/image_18082025_18_24_54_9612.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377712645","1377712639","1377712642","1377712636","1377712635","1377712637"],"photo_ids_order":["1377712635","1377712636","1377712637","1377712639","1377712642","1377712645"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5ce80d65196a8f009a22468714338206.jpg","text":"TemporaryFile(/tmp/multipartBody5294177774624020894asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534394027,"filename":"image_18082025_18_24_54_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/38088c060b5a7953a6877e69da8bcaf4.jpg","text":"TemporaryFile(/tmp/multipartBody2238719955147237311asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534394027,"filename":"image_18082025_18_25_15_9645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e5c2347ae2c3ac0b552b968c8ba8f9cb.jpg","text":"TemporaryFile(/tmp/multipartBody6145722530845943587asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534394027,"filename":"image_18082025_18_25_05_10624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/14b94e721fd769fff0d61d039b5743ae.jpg","text":"TemporaryFile(/tmp/multipartBody5384756248868720428asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534394027,"filename":"image_18082025_18_25_35_10617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/61864d63c32e221206c78d879d33f066.jpg","text":"TemporaryFile(/tmp/multipartBody2116304937786559928asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534394027,"filename":"image_18082025_18_25_44_9604.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/59fa528e0ae914448ec571911422119b.jpg","text":"TemporaryFile(/tmp/multipartBody6546860427386355816asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534394027,"filename":"image_18082025_18_25_24_9629.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377712637","file1":"1377712636","file0":"1377712635","file4":"1377712642","file5":"1377712645","file3":"1377712639"},"map_files_photo_id_array":[{"photo_id":"1377712645","filename":"file5"},{"photo_id":"1377712637","filename":"file2"},{"photo_id":"1377712642","filename":"file4"},{"photo_id":"1377712636","filename":"file1"},{"photo_id":"1377712635","filename":"file0"},{"photo_id":"1377712639","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377712645":["hashtag1","hashtag2"]},{"1377712639":["hashtag1","hashtag2"]},{"1377712642":["hashtag1","hashtag2"]},{"1377712636":["hashtag1","hashtag2"]},{"1377712635":["hashtag1","hashtag2"]},{"1377712637":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377712645, 1377712639, 1377712642, 1377712636, 1377712635, 1377712637)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.392128467559814 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:26:17.674915
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/26/image_18082025_18_26_44_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/18/26/image_18082025_18_26_35_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/18/26/image_18082025_18_26_25_10664.jpg', 2), ('/home/nano/Desktop/images/18082025/18/26/image_18082025_18_26_14_9712.jpg', 2), ('/home/nano/Desktop/images/18082025/18/25/image_18082025_18_26_05_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/18/25/image_18082025_18_25_54_9635.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/26/image_18082025_18_26_44_9656.jpg', '/home/nano/Desktop/images/18082025/18/26/image_18082025_18_26_35_9618.jpg', '/home/nano/Desktop/images/18082025/18/26/image_18082025_18_26_25_10664.jpg', '/home/nano/Desktop/images/18082025/18/26/image_18082025_18_26_14_9712.jpg', '/home/nano/Desktop/images/18082025/18/25/image_18082025_18_26_05_10628.jpg', '/home/nano/Desktop/images/18082025/18/25/image_18082025_18_25_54_9635.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/26/image_18082025_18_26_44_9656.jpg
/home/nano/Desktop/images/18082025/18/26/image_18082025_18_26_35_9618.jpg
/home/nano/Desktop/images/18082025/18/26/image_18082025_18_26_25_10664.jpg
/home/nano/Desktop/images/18082025/18/26/image_18082025_18_26_14_9712.jpg
/home/nano/Desktop/images/18082025/18/25/image_18082025_18_26_05_10628.jpg
/home/nano/Desktop/images/18082025/18/25/image_18082025_18_25_54_9635.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377712666","1377712674","1377712671","1377712676","1377712661","1377712657"],"photo_ids_order":["1377712657","1377712661","1377712666","1377712671","1377712674","1377712676"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/773bfa5b0fffddd200dc1ceabbdf5d25.jpg","text":"TemporaryFile(/tmp/multipartBody1423211602167102998asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534439285,"filename":"image_18082025_18_26_25_10664.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/39162999ab92bd95ece2fe911f19d927.jpg","text":"TemporaryFile(/tmp/multipartBody5886868913408682928asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534439285,"filename":"image_18082025_18_26_05_10628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a79b2ce99a3228bb192514d0f28bd8c4.jpg","text":"TemporaryFile(/tmp/multipartBody3103917923200964487asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534439285,"filename":"image_18082025_18_26_14_9712.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/da1ed1159b349f811fd2b4e4d98ab025.jpg","text":"TemporaryFile(/tmp/multipartBody7759872944081912256asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534439285,"filename":"image_18082025_18_25_54_9635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bbf9ed42e4463b9de558341954ea5cb8.jpg","text":"TemporaryFile(/tmp/multipartBody4257089495479485171asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534439285,"filename":"image_18082025_18_26_35_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/15e2aa2d17c4708b857868928d4d37db.jpg","text":"TemporaryFile(/tmp/multipartBody5707103508058614995asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534439285,"filename":"image_18082025_18_26_44_9656.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377712666","file1":"1377712661","file0":"1377712657","file4":"1377712674","file5":"1377712676","file3":"1377712671"},"map_files_photo_id_array":[{"photo_id":"1377712676","filename":"file5"},{"photo_id":"1377712666","filename":"file2"},{"photo_id":"1377712674","filename":"file4"},{"photo_id":"1377712661","filename":"file1"},{"photo_id":"1377712657","filename":"file0"},{"photo_id":"1377712671","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377712666":["hashtag1","hashtag2"]},{"1377712674":["hashtag1","hashtag2"]},{"1377712671":["hashtag1","hashtag2"]},{"1377712676":["hashtag1","hashtag2"]},{"1377712661":["hashtag1","hashtag2"]},{"1377712657":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377712666, 1377712674, 1377712671, 1377712676, 1377712661, 1377712657)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.440184116363525 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:27:02.627542
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/51/image_18082025_09_51_44_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/09/51/image_18082025_09_51_35_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/09/51/image_18082025_09_51_24_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/09/51/image_18082025_09_51_14_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/50/image_18082025_09_51_05_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/09/50/image_18082025_09_50_54_9610.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/51/image_18082025_09_51_44_9615.jpg', '/home/nano/Desktop/images/18082025/09/51/image_18082025_09_51_35_10626.jpg', '/home/nano/Desktop/images/18082025/09/51/image_18082025_09_51_24_9614.jpg', '/home/nano/Desktop/images/18082025/09/51/image_18082025_09_51_14_9616.jpg', '/home/nano/Desktop/images/18082025/09/50/image_18082025_09_51_05_10639.jpg', '/home/nano/Desktop/images/18082025/09/50/image_18082025_09_50_54_9610.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/51/image_18082025_09_51_44_9615.jpg
/home/nano/Desktop/images/18082025/09/51/image_18082025_09_51_35_10626.jpg
/home/nano/Desktop/images/18082025/09/51/image_18082025_09_51_24_9614.jpg
/home/nano/Desktop/images/18082025/09/51/image_18082025_09_51_14_9616.jpg
/home/nano/Desktop/images/18082025/09/50/image_18082025_09_51_05_10639.jpg
/home/nano/Desktop/images/18082025/09/50/image_18082025_09_50_54_9610.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377712692","1377712686","1377712680","1377712683","1377712694","1377712690"],"photo_ids_order":["1377712680","1377712683","1377712686","1377712690","1377712692","1377712694"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5923589a3448f56b451b89260f0912b5.jpg","text":"TemporaryFile(/tmp/multipartBody445053702707035232asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534483776,"filename":"image_18082025_09_51_05_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4aba1192183c806bbd209c8efc6296f9.jpg","text":"TemporaryFile(/tmp/multipartBody3367711679983357471asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534483776,"filename":"image_18082025_09_51_24_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/88934a1f91be06fabdb199b571144b6f.jpg","text":"TemporaryFile(/tmp/multipartBody6526766267774244403asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534483776,"filename":"image_18082025_09_51_44_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/338f368547bd9f753afd0aaef900e0b9.jpg","text":"TemporaryFile(/tmp/multipartBody6784642761752007728asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534483776,"filename":"image_18082025_09_51_35_10626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f33d9a0edf11058c725b0c1bfd2abe21.jpg","text":"TemporaryFile(/tmp/multipartBody740724733161965173asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534483776,"filename":"image_18082025_09_50_54_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7359e107fa6c0261b02320dbe78ff15f.jpg","text":"TemporaryFile(/tmp/multipartBody1834903551277174784asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534483776,"filename":"image_18082025_09_51_14_9616.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377712686","file1":"1377712683","file0":"1377712680","file4":"1377712692","file5":"1377712694","file3":"1377712690"},"map_files_photo_id_array":[{"photo_id":"1377712694","filename":"file5"},{"photo_id":"1377712686","filename":"file2"},{"photo_id":"1377712692","filename":"file4"},{"photo_id":"1377712683","filename":"file1"},{"photo_id":"1377712680","filename":"file0"},{"photo_id":"1377712690","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377712692":["hashtag1","hashtag2"]},{"1377712686":["hashtag1","hashtag2"]},{"1377712680":["hashtag1","hashtag2"]},{"1377712683":["hashtag1","hashtag2"]},{"1377712694":["hashtag1","hashtag2"]},{"1377712690":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377712692, 1377712686, 1377712680, 1377712683, 1377712694, 1377712690)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.317710161209106 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:27:46.854656
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/27/image_18082025_18_27_44_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/18/27/image_18082025_18_27_35_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/18/27/image_18082025_18_27_25_10608.jpg', 2), ('/home/nano/Desktop/images/18082025/18/27/image_18082025_18_27_14_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/18/26/image_18082025_18_27_05_9684.jpg', 2), ('/home/nano/Desktop/images/18082025/18/26/image_18082025_18_26_55_10658.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/27/image_18082025_18_27_44_9655.jpg', '/home/nano/Desktop/images/18082025/18/27/image_18082025_18_27_35_9662.jpg', '/home/nano/Desktop/images/18082025/18/27/image_18082025_18_27_25_10608.jpg', '/home/nano/Desktop/images/18082025/18/27/image_18082025_18_27_14_9643.jpg', '/home/nano/Desktop/images/18082025/18/26/image_18082025_18_27_05_9684.jpg', '/home/nano/Desktop/images/18082025/18/26/image_18082025_18_26_55_10658.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/27/image_18082025_18_27_44_9655.jpg
/home/nano/Desktop/images/18082025/18/27/image_18082025_18_27_35_9662.jpg
/home/nano/Desktop/images/18082025/18/27/image_18082025_18_27_25_10608.jpg
/home/nano/Desktop/images/18082025/18/27/image_18082025_18_27_14_9643.jpg
/home/nano/Desktop/images/18082025/18/26/image_18082025_18_27_05_9684.jpg
/home/nano/Desktop/images/18082025/18/26/image_18082025_18_26_55_10658.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377712698","1377712701","1377712709","1377712703","1377712706","1377712699"],"photo_ids_order":["1377712698","1377712699","1377712701","1377712703","1377712706","1377712709"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/00000cdd2fd1eb1cbbbb58f1bf4a5bba.jpg","text":"TemporaryFile(/tmp/multipartBody4907011293433855978asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534528355,"filename":"image_18082025_18_27_44_9655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cef0a65cc5540f97792e6beec81492cd.jpg","text":"TemporaryFile(/tmp/multipartBody681853058106840607asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534528355,"filename":"image_18082025_18_27_25_10608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a984272de0210098e7f45afd2f1ed8e5.jpg","text":"TemporaryFile(/tmp/multipartBody8616402559297908533asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534528355,"filename":"image_18082025_18_26_55_10658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/61028e0a57639ab774a78f25ae344e87.jpg","text":"TemporaryFile(/tmp/multipartBody2857354588584243161asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534528355,"filename":"image_18082025_18_27_14_9643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dc3e6cb2e2265ff6005bcc81b5d2bd2e.jpg","text":"TemporaryFile(/tmp/multipartBody3049537250306998204asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534528355,"filename":"image_18082025_18_27_05_9684.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/70f58ce87bebc14157c297a2655d4636.jpg","text":"TemporaryFile(/tmp/multipartBody6155193319677781870asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534528355,"filename":"image_18082025_18_27_35_9662.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377712701","file1":"1377712699","file0":"1377712698","file4":"1377712706","file5":"1377712709","file3":"1377712703"},"map_files_photo_id_array":[{"photo_id":"1377712709","filename":"file5"},{"photo_id":"1377712701","filename":"file2"},{"photo_id":"1377712706","filename":"file4"},{"photo_id":"1377712699","filename":"file1"},{"photo_id":"1377712698","filename":"file0"},{"photo_id":"1377712703","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377712698":["hashtag1","hashtag2"]},{"1377712701":["hashtag1","hashtag2"]},{"1377712709":["hashtag1","hashtag2"]},{"1377712703":["hashtag1","hashtag2"]},{"1377712706":["hashtag1","hashtag2"]},{"1377712699":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377712698, 1377712701, 1377712709, 1377712703, 1377712706, 1377712699)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.62192964553833 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:28:31.957507
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/28/image_18082025_18_28_44_9709.jpg', 2), ('/home/nano/Desktop/images/18082025/18/28/image_18082025_18_28_35_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/18/28/image_18082025_18_28_25_10681.jpg', 2), ('/home/nano/Desktop/images/18082025/18/28/image_18082025_18_28_14_9676.jpg', 2), ('/home/nano/Desktop/images/18082025/18/27/image_18082025_18_28_05_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/18/27/image_18082025_18_27_55_10676.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/28/image_18082025_18_28_44_9709.jpg', '/home/nano/Desktop/images/18082025/18/28/image_18082025_18_28_35_9616.jpg', '/home/nano/Desktop/images/18082025/18/28/image_18082025_18_28_25_10681.jpg', '/home/nano/Desktop/images/18082025/18/28/image_18082025_18_28_14_9676.jpg', '/home/nano/Desktop/images/18082025/18/27/image_18082025_18_28_05_9646.jpg', '/home/nano/Desktop/images/18082025/18/27/image_18082025_18_27_55_10676.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/28/image_18082025_18_28_44_9709.jpg
/home/nano/Desktop/images/18082025/18/28/image_18082025_18_28_35_9616.jpg
/home/nano/Desktop/images/18082025/18/28/image_18082025_18_28_25_10681.jpg
/home/nano/Desktop/images/18082025/18/28/image_18082025_18_28_14_9676.jpg
/home/nano/Desktop/images/18082025/18/27/image_18082025_18_28_05_9646.jpg
/home/nano/Desktop/images/18082025/18/27/image_18082025_18_27_55_10676.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377712729","1377712722","1377712731","1377712725","1377712727","1377712730"],"photo_ids_order":["1377712722","1377712725","1377712727","1377712729","1377712730","1377712731"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2fce3871847d698ffc86ec6ac68e5fb2.jpg","text":"TemporaryFile(/tmp/multipartBody1325371436250444886asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534573403,"filename":"image_18082025_18_28_14_9676.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c8cd2b518596a94fe1648137453d266f.jpg","text":"TemporaryFile(/tmp/multipartBody1472203838811658969asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534573403,"filename":"image_18082025_18_28_44_9709.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/396a9885eab466969167fc26db35cf8c.jpg","text":"TemporaryFile(/tmp/multipartBody3702333558406364844asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534573403,"filename":"image_18082025_18_27_55_10676.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/af090a163234a23ee156b50d715ccdb9.jpg","text":"TemporaryFile(/tmp/multipartBody7851946021883493120asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534573403,"filename":"image_18082025_18_28_35_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2840dd381e5819ab88cc382ac2ea47cb.jpg","text":"TemporaryFile(/tmp/multipartBody101396962306217286asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534573403,"filename":"image_18082025_18_28_25_10681.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/284535f086e512488d44e4e807b8a936.jpg","text":"TemporaryFile(/tmp/multipartBody7636848631376095523asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534573403,"filename":"image_18082025_18_28_05_9646.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377712727","file1":"1377712725","file0":"1377712722","file4":"1377712730","file5":"1377712731","file3":"1377712729"},"map_files_photo_id_array":[{"photo_id":"1377712731","filename":"file5"},{"photo_id":"1377712727","filename":"file2"},{"photo_id":"1377712730","filename":"file4"},{"photo_id":"1377712725","filename":"file1"},{"photo_id":"1377712722","filename":"file0"},{"photo_id":"1377712729","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377712729":["hashtag1","hashtag2"]},{"1377712722":["hashtag1","hashtag2"]},{"1377712731":["hashtag1","hashtag2"]},{"1377712725":["hashtag1","hashtag2"]},{"1377712727":["hashtag1","hashtag2"]},{"1377712730":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377712729, 1377712722, 1377712731, 1377712725, 1377712727, 1377712730)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.14762568473816 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:29:17.135127
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/29/image_18082025_18_29_45_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/18/29/image_18082025_18_29_34_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/18/29/image_18082025_18_29_25_10634.jpg', 2), ('/home/nano/Desktop/images/18082025/18/29/image_18082025_18_29_14_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/18/28/image_18082025_18_29_05_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/18/28/image_18082025_18_28_55_10637.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/29/image_18082025_18_29_45_10647.jpg', '/home/nano/Desktop/images/18082025/18/29/image_18082025_18_29_34_9622.jpg', '/home/nano/Desktop/images/18082025/18/29/image_18082025_18_29_25_10634.jpg', '/home/nano/Desktop/images/18082025/18/29/image_18082025_18_29_14_9649.jpg', '/home/nano/Desktop/images/18082025/18/28/image_18082025_18_29_05_9608.jpg', '/home/nano/Desktop/images/18082025/18/28/image_18082025_18_28_55_10637.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/29/image_18082025_18_29_45_10647.jpg
/home/nano/Desktop/images/18082025/18/29/image_18082025_18_29_34_9622.jpg
/home/nano/Desktop/images/18082025/18/29/image_18082025_18_29_25_10634.jpg
/home/nano/Desktop/images/18082025/18/29/image_18082025_18_29_14_9649.jpg
/home/nano/Desktop/images/18082025/18/28/image_18082025_18_29_05_9608.jpg
/home/nano/Desktop/images/18082025/18/28/image_18082025_18_28_55_10637.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377712744","1377712747","1377712749","1377712740","1377712752","1377712751"],"photo_ids_order":["1377712740","1377712744","1377712747","1377712749","1377712751","1377712752"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1fa2a0a86433e1b7c71bf3f92d7cec2c.jpg","text":"TemporaryFile(/tmp/multipartBody5406990378551160446asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534618482,"filename":"image_18082025_18_29_34_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6cbd7f0a1ece71c67aaa8e378c274d1e.jpg","text":"TemporaryFile(/tmp/multipartBody498361331308336325asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534618482,"filename":"image_18082025_18_29_25_10634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6c328382d6e91623eadff83afddc7806.jpg","text":"TemporaryFile(/tmp/multipartBody4486848033674477798asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534618482,"filename":"image_18082025_18_29_14_9649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/161c3d382f29c7adb334b425312a8a6d.jpg","text":"TemporaryFile(/tmp/multipartBody8604900149450864432asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534618482,"filename":"image_18082025_18_29_45_10647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/603458ea996c8e455d48151e9cf26b1c.jpg","text":"TemporaryFile(/tmp/multipartBody6981060476101897501asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534618482,"filename":"image_18082025_18_28_55_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/decd88fbf97a118361f7cf3847cd1c92.jpg","text":"TemporaryFile(/tmp/multipartBody4793232338453791619asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534618482,"filename":"image_18082025_18_29_05_9608.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377712747","file1":"1377712744","file0":"1377712740","file4":"1377712751","file5":"1377712752","file3":"1377712749"},"map_files_photo_id_array":[{"photo_id":"1377712752","filename":"file5"},{"photo_id":"1377712747","filename":"file2"},{"photo_id":"1377712751","filename":"file4"},{"photo_id":"1377712744","filename":"file1"},{"photo_id":"1377712740","filename":"file0"},{"photo_id":"1377712749","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377712744":["hashtag1","hashtag2"]},{"1377712747":["hashtag1","hashtag2"]},{"1377712749":["hashtag1","hashtag2"]},{"1377712740":["hashtag1","hashtag2"]},{"1377712752":["hashtag1","hashtag2"]},{"1377712751":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377712744, 1377712747, 1377712749, 1377712740, 1377712752, 1377712751)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.567376375198364 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:30:02.671362
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/50/image_18082025_09_50_45_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/09/50/image_18082025_09_50_35_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/09/50/image_18082025_09_50_24_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/09/50/image_18082025_09_50_15_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/09/49/image_18082025_09_50_04_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/09/49/image_18082025_09_49_54_9603.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/50/image_18082025_09_50_45_9625.jpg', '/home/nano/Desktop/images/18082025/09/50/image_18082025_09_50_35_10618.jpg', '/home/nano/Desktop/images/18082025/09/50/image_18082025_09_50_24_9607.jpg', '/home/nano/Desktop/images/18082025/09/50/image_18082025_09_50_15_10659.jpg', '/home/nano/Desktop/images/18082025/09/49/image_18082025_09_50_04_9634.jpg', '/home/nano/Desktop/images/18082025/09/49/image_18082025_09_49_54_9603.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/50/image_18082025_09_50_45_9625.jpg
/home/nano/Desktop/images/18082025/09/50/image_18082025_09_50_35_10618.jpg
/home/nano/Desktop/images/18082025/09/50/image_18082025_09_50_24_9607.jpg
/home/nano/Desktop/images/18082025/09/50/image_18082025_09_50_15_10659.jpg
/home/nano/Desktop/images/18082025/09/49/image_18082025_09_50_04_9634.jpg
/home/nano/Desktop/images/18082025/09/49/image_18082025_09_49_54_9603.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377712770","1377712778","1377712787","1377712780","1377712774","1377712783"],"photo_ids_order":["1377712770","1377712774","1377712778","1377712780","1377712783","1377712787"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b4d9de13bb8172b20e2e0cf84ef9bd6c.jpg","text":"TemporaryFile(/tmp/multipartBody2696673065482244163asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534663998,"filename":"image_18082025_09_50_45_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fdc48b641a2239cf8facc4e217134fb0.jpg","text":"TemporaryFile(/tmp/multipartBody6375025919261471602asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534663998,"filename":"image_18082025_09_50_24_9607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/89b02757a117079b082940dd151dea44.jpg","text":"TemporaryFile(/tmp/multipartBody8668975641514472758asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534663998,"filename":"image_18082025_09_49_54_9603.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/217e51e6645a41bb33e12a1f9da6f02d.jpg","text":"TemporaryFile(/tmp/multipartBody9098558274757529040asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534663998,"filename":"image_18082025_09_50_15_10659.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fcfab923572422f3a8a4c72610498a6f.jpg","text":"TemporaryFile(/tmp/multipartBody9032158441628875348asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534663998,"filename":"image_18082025_09_50_35_10618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0bef5106cd324c9df3c21acf595b0481.jpg","text":"TemporaryFile(/tmp/multipartBody7686824121740095658asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534663998,"filename":"image_18082025_09_50_04_9634.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377712778","file1":"1377712774","file0":"1377712770","file4":"1377712783","file5":"1377712787","file3":"1377712780"},"map_files_photo_id_array":[{"photo_id":"1377712787","filename":"file5"},{"photo_id":"1377712778","filename":"file2"},{"photo_id":"1377712783","filename":"file4"},{"photo_id":"1377712774","filename":"file1"},{"photo_id":"1377712770","filename":"file0"},{"photo_id":"1377712780","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377712770":["hashtag1","hashtag2"]},{"1377712778":["hashtag1","hashtag2"]},{"1377712787":["hashtag1","hashtag2"]},{"1377712780":["hashtag1","hashtag2"]},{"1377712774":["hashtag1","hashtag2"]},{"1377712783":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377712770, 1377712778, 1377712787, 1377712780, 1377712774, 1377712783)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.160831689834595 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:30:47.172492
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/30/image_18082025_18_30_45_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/18/30/image_18082025_18_30_34_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/18/30/image_18082025_18_30_25_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/18/30/image_18082025_18_30_15_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/18/29/image_18082025_18_30_04_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/18/29/image_18082025_18_29_55_9704.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/30/image_18082025_18_30_45_10661.jpg', '/home/nano/Desktop/images/18082025/18/30/image_18082025_18_30_34_9658.jpg', '/home/nano/Desktop/images/18082025/18/30/image_18082025_18_30_25_9639.jpg', '/home/nano/Desktop/images/18082025/18/30/image_18082025_18_30_15_10659.jpg', '/home/nano/Desktop/images/18082025/18/29/image_18082025_18_30_04_9612.jpg', '/home/nano/Desktop/images/18082025/18/29/image_18082025_18_29_55_9704.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/30/image_18082025_18_30_45_10661.jpg
/home/nano/Desktop/images/18082025/18/30/image_18082025_18_30_34_9658.jpg
/home/nano/Desktop/images/18082025/18/30/image_18082025_18_30_25_9639.jpg
/home/nano/Desktop/images/18082025/18/30/image_18082025_18_30_15_10659.jpg
/home/nano/Desktop/images/18082025/18/29/image_18082025_18_30_04_9612.jpg
/home/nano/Desktop/images/18082025/18/29/image_18082025_18_29_55_9704.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377712797","1377712800","1377712799","1377712802","1377712805","1377712798"],"photo_ids_order":["1377712797","1377712798","1377712799","1377712800","1377712802","1377712805"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/eb440d24caba746fd4ea6b9ecce0b8c5.jpg","text":"TemporaryFile(/tmp/multipartBody1617135032496229028asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534708718,"filename":"image_18082025_18_30_45_10661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a497daa753baef3b3180fdd77696bfc7.jpg","text":"TemporaryFile(/tmp/multipartBody6793619280624246041asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534708718,"filename":"image_18082025_18_30_15_10659.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c02ca5ef6976dd73f170676685f8cb0b.jpg","text":"TemporaryFile(/tmp/multipartBody2148635598209046690asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534708718,"filename":"image_18082025_18_30_25_9639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ea9a0aaa8ece4b408ea659e99c42af77.jpg","text":"TemporaryFile(/tmp/multipartBody1508041649927237562asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534708718,"filename":"image_18082025_18_30_04_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/509112dbf7594a8301e8fbc43c814396.jpg","text":"TemporaryFile(/tmp/multipartBody4380511870469900173asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534708718,"filename":"image_18082025_18_29_55_9704.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2c7913a6aa4cc84f636d0276444f2f52.jpg","text":"TemporaryFile(/tmp/multipartBody3675268437283197965asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534708718,"filename":"image_18082025_18_30_34_9658.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377712799","file1":"1377712798","file0":"1377712797","file4":"1377712802","file5":"1377712805","file3":"1377712800"},"map_files_photo_id_array":[{"photo_id":"1377712805","filename":"file5"},{"photo_id":"1377712799","filename":"file2"},{"photo_id":"1377712802","filename":"file4"},{"photo_id":"1377712798","filename":"file1"},{"photo_id":"1377712797","filename":"file0"},{"photo_id":"1377712800","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377712797":["hashtag1","hashtag2"]},{"1377712800":["hashtag1","hashtag2"]},{"1377712799":["hashtag1","hashtag2"]},{"1377712802":["hashtag1","hashtag2"]},{"1377712805":["hashtag1","hashtag2"]},{"1377712798":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377712797, 1377712800, 1377712799, 1377712802, 1377712805, 1377712798)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.05865716934204 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:31:32.295275
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/31/image_18082025_18_31_45_10669.jpg', 2), ('/home/nano/Desktop/images/18082025/18/31/image_18082025_18_31_34_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/18/31/image_18082025_18_31_25_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/18/31/image_18082025_18_31_15_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/18/30/image_18082025_18_31_04_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/18/30/image_18082025_18_30_55_9640.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/31/image_18082025_18_31_45_10669.jpg', '/home/nano/Desktop/images/18082025/18/31/image_18082025_18_31_34_9657.jpg', '/home/nano/Desktop/images/18082025/18/31/image_18082025_18_31_25_9621.jpg', '/home/nano/Desktop/images/18082025/18/31/image_18082025_18_31_15_10648.jpg', '/home/nano/Desktop/images/18082025/18/30/image_18082025_18_31_04_9628.jpg', '/home/nano/Desktop/images/18082025/18/30/image_18082025_18_30_55_9640.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/31/image_18082025_18_31_45_10669.jpg
/home/nano/Desktop/images/18082025/18/31/image_18082025_18_31_34_9657.jpg
/home/nano/Desktop/images/18082025/18/31/image_18082025_18_31_25_9621.jpg
/home/nano/Desktop/images/18082025/18/31/image_18082025_18_31_15_10648.jpg
/home/nano/Desktop/images/18082025/18/30/image_18082025_18_31_04_9628.jpg
/home/nano/Desktop/images/18082025/18/30/image_18082025_18_30_55_9640.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377712831","1377712828","1377712833","1377712827","1377712826","1377712829"],"photo_ids_order":["1377712826","1377712827","1377712828","1377712829","1377712831","1377712833"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c08129e5a3bd10e0f260362d9d01cab5.jpg","text":"TemporaryFile(/tmp/multipartBody3745330745438111017asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534753862,"filename":"image_18082025_18_31_04_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/389f8e2bb7eb1917450dd6ed077e850a.jpg","text":"TemporaryFile(/tmp/multipartBody8061317397774031273asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534753862,"filename":"image_18082025_18_31_25_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3ab79fe980527a3e97bc7dd550ea64f9.jpg","text":"TemporaryFile(/tmp/multipartBody3573155499245800668asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534753862,"filename":"image_18082025_18_30_55_9640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1a7f868b2c5bcfb81bf5d67cac1ff07c.jpg","text":"TemporaryFile(/tmp/multipartBody3733325863644115239asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534753862,"filename":"image_18082025_18_31_34_9657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e82ccde458864583d4dc3bb1e09e7d21.jpg","text":"TemporaryFile(/tmp/multipartBody7439514865666080831asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534753862,"filename":"image_18082025_18_31_45_10669.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/00f66416da12061b5a06096aa3f7a416.jpg","text":"TemporaryFile(/tmp/multipartBody673775378407414370asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534753862,"filename":"image_18082025_18_31_15_10648.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377712828","file1":"1377712827","file0":"1377712826","file4":"1377712831","file5":"1377712833","file3":"1377712829"},"map_files_photo_id_array":[{"photo_id":"1377712833","filename":"file5"},{"photo_id":"1377712828","filename":"file2"},{"photo_id":"1377712831","filename":"file4"},{"photo_id":"1377712827","filename":"file1"},{"photo_id":"1377712826","filename":"file0"},{"photo_id":"1377712829","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377712831":["hashtag1","hashtag2"]},{"1377712828":["hashtag1","hashtag2"]},{"1377712833":["hashtag1","hashtag2"]},{"1377712827":["hashtag1","hashtag2"]},{"1377712826":["hashtag1","hashtag2"]},{"1377712829":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377712831, 1377712828, 1377712833, 1377712827, 1377712826, 1377712829)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.761086463928223 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:32:17.418045
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/32/image_18082025_18_32_45_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/18/32/image_18082025_18_32_35_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/18/32/image_18082025_18_32_24_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/18/32/image_18082025_18_32_15_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/18/31/image_18082025_18_32_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/18/31/image_18082025_18_31_54_9610.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/32/image_18082025_18_32_45_9640.jpg', '/home/nano/Desktop/images/18082025/18/32/image_18082025_18_32_35_10627.jpg', '/home/nano/Desktop/images/18082025/18/32/image_18082025_18_32_24_9612.jpg', '/home/nano/Desktop/images/18082025/18/32/image_18082025_18_32_15_10665.jpg', '/home/nano/Desktop/images/18082025/18/31/image_18082025_18_32_04_9651.jpg', '/home/nano/Desktop/images/18082025/18/31/image_18082025_18_31_54_9610.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/32/image_18082025_18_32_45_9640.jpg
/home/nano/Desktop/images/18082025/18/32/image_18082025_18_32_35_10627.jpg
/home/nano/Desktop/images/18082025/18/32/image_18082025_18_32_24_9612.jpg
/home/nano/Desktop/images/18082025/18/32/image_18082025_18_32_15_10665.jpg
/home/nano/Desktop/images/18082025/18/31/image_18082025_18_32_04_9651.jpg
/home/nano/Desktop/images/18082025/18/31/image_18082025_18_31_54_9610.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377712864","1377712860","1377712863","1377712851","1377712865","1377712856"],"photo_ids_order":["1377712851","1377712856","1377712860","1377712863","1377712864","1377712865"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c172de2c9d0f27ead1ff48a48cdc3215.jpg","text":"TemporaryFile(/tmp/multipartBody1156311925455725029asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534798923,"filename":"image_18082025_18_32_04_9651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/023f74142e2893697f6e2b509b0821d4.jpg","text":"TemporaryFile(/tmp/multipartBody6841307364710089612asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534798923,"filename":"image_18082025_18_32_24_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/43bb29de728b580b4c9c61611c31c9f5.jpg","text":"TemporaryFile(/tmp/multipartBody1239610460303535964asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534798923,"filename":"image_18082025_18_32_15_10665.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fb687ccd7cc23eb70d38c970985a7b7c.jpg","text":"TemporaryFile(/tmp/multipartBody4158015304811082603asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534798923,"filename":"image_18082025_18_32_45_9640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1e772b55e5d28e6f82409e7d17062264.jpg","text":"TemporaryFile(/tmp/multipartBody9125887158943150099asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534798923,"filename":"image_18082025_18_31_54_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3feca462cb0a0592fbef8d10978ae62d.jpg","text":"TemporaryFile(/tmp/multipartBody2626137761365973676asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534798923,"filename":"image_18082025_18_32_35_10627.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377712860","file1":"1377712856","file0":"1377712851","file4":"1377712864","file5":"1377712865","file3":"1377712863"},"map_files_photo_id_array":[{"photo_id":"1377712865","filename":"file5"},{"photo_id":"1377712860","filename":"file2"},{"photo_id":"1377712864","filename":"file4"},{"photo_id":"1377712856","filename":"file1"},{"photo_id":"1377712851","filename":"file0"},{"photo_id":"1377712863","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377712864":["hashtag1","hashtag2"]},{"1377712860":["hashtag1","hashtag2"]},{"1377712863":["hashtag1","hashtag2"]},{"1377712851":["hashtag1","hashtag2"]},{"1377712865":["hashtag1","hashtag2"]},{"1377712856":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377712864, 1377712860, 1377712863, 1377712851, 1377712865, 1377712856)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.807305335998535 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:33:03.193926
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/49/image_18082025_09_49_45_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/09/49/image_18082025_09_49_34_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/09/49/image_18082025_09_49_25_9605.jpg', 2), ('/home/nano/Desktop/images/18082025/09/49/image_18082025_09_49_15_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/09/48/image_18082025_09_49_04_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/09/48/image_18082025_09_48_55_10637.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/49/image_18082025_09_49_45_10618.jpg', '/home/nano/Desktop/images/18082025/09/49/image_18082025_09_49_34_9609.jpg', '/home/nano/Desktop/images/18082025/09/49/image_18082025_09_49_25_9605.jpg', '/home/nano/Desktop/images/18082025/09/49/image_18082025_09_49_15_10653.jpg', '/home/nano/Desktop/images/18082025/09/48/image_18082025_09_49_04_9610.jpg', '/home/nano/Desktop/images/18082025/09/48/image_18082025_09_48_55_10637.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/49/image_18082025_09_49_45_10618.jpg
/home/nano/Desktop/images/18082025/09/49/image_18082025_09_49_34_9609.jpg
/home/nano/Desktop/images/18082025/09/49/image_18082025_09_49_25_9605.jpg
/home/nano/Desktop/images/18082025/09/49/image_18082025_09_49_15_10653.jpg
/home/nano/Desktop/images/18082025/09/48/image_18082025_09_49_04_9610.jpg
/home/nano/Desktop/images/18082025/09/48/image_18082025_09_48_55_10637.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377712885","1377712878","1377712881","1377712875","1377712871","1377712876"],"photo_ids_order":["1377712871","1377712875","1377712876","1377712878","1377712881","1377712885"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/02e530c6e6a64024d068a46aa02ed08d.jpg","text":"TemporaryFile(/tmp/multipartBody1401885482414209542asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534844706,"filename":"image_18082025_09_48_55_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8b0fda1f15994243fcd080b3334887ab.jpg","text":"TemporaryFile(/tmp/multipartBody620599221140291383asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534844706,"filename":"image_18082025_09_49_15_10653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b4e27c13c71fe2aeab3f043df18f2f9a.jpg","text":"TemporaryFile(/tmp/multipartBody4093536666324698910asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534844706,"filename":"image_18082025_09_49_04_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/60b11c08583b6844008232cb489422e4.jpg","text":"TemporaryFile(/tmp/multipartBody7152647954548170259asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534844706,"filename":"image_18082025_09_49_34_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/079545192f1ba90be2f1cbcdf17be00b.jpg","text":"TemporaryFile(/tmp/multipartBody7991378419190768666asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534844706,"filename":"image_18082025_09_49_45_10618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/34f4ce1759965b8f01788a977a841590.jpg","text":"TemporaryFile(/tmp/multipartBody6152591813070078751asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534844706,"filename":"image_18082025_09_49_25_9605.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377712876","file1":"1377712875","file0":"1377712871","file4":"1377712881","file5":"1377712885","file3":"1377712878"},"map_files_photo_id_array":[{"photo_id":"1377712885","filename":"file5"},{"photo_id":"1377712876","filename":"file2"},{"photo_id":"1377712881","filename":"file4"},{"photo_id":"1377712875","filename":"file1"},{"photo_id":"1377712871","filename":"file0"},{"photo_id":"1377712878","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377712885":["hashtag1","hashtag2"]},{"1377712878":["hashtag1","hashtag2"]},{"1377712881":["hashtag1","hashtag2"]},{"1377712875":["hashtag1","hashtag2"]},{"1377712871":["hashtag1","hashtag2"]},{"1377712876":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377712885, 1377712878, 1377712881, 1377712875, 1377712871, 1377712876)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.452109575271606 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:33:47.490514
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/33/image_18082025_18_33_45_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/18/33/image_18082025_18_33_35_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/18/33/image_18082025_18_33_24_9684.jpg', 2), ('/home/nano/Desktop/images/18082025/18/33/image_18082025_18_33_15_9685.jpg', 2), ('/home/nano/Desktop/images/18082025/18/32/image_18082025_18_33_05_10683.jpg', 2), ('/home/nano/Desktop/images/18082025/18/32/image_18082025_18_32_54_9661.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/33/image_18082025_18_33_45_9607.jpg', '/home/nano/Desktop/images/18082025/18/33/image_18082025_18_33_35_10649.jpg', '/home/nano/Desktop/images/18082025/18/33/image_18082025_18_33_24_9684.jpg', '/home/nano/Desktop/images/18082025/18/33/image_18082025_18_33_15_9685.jpg', '/home/nano/Desktop/images/18082025/18/32/image_18082025_18_33_05_10683.jpg', '/home/nano/Desktop/images/18082025/18/32/image_18082025_18_32_54_9661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/33/image_18082025_18_33_45_9607.jpg
/home/nano/Desktop/images/18082025/18/33/image_18082025_18_33_35_10649.jpg
/home/nano/Desktop/images/18082025/18/33/image_18082025_18_33_24_9684.jpg
/home/nano/Desktop/images/18082025/18/33/image_18082025_18_33_15_9685.jpg
/home/nano/Desktop/images/18082025/18/32/image_18082025_18_33_05_10683.jpg
/home/nano/Desktop/images/18082025/18/32/image_18082025_18_32_54_9661.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377712896","1377712900","1377712895","1377712898","1377712904","1377712897"],"photo_ids_order":["1377712895","1377712896","1377712897","1377712898","1377712900","1377712904"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2c8b18e0a49fc556506e12992748755e.jpg","text":"TemporaryFile(/tmp/multipartBody4869272969176245961asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534889197,"filename":"image_18082025_18_33_35_10649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/24e4be504d25fec31fd4b30e56a18356.jpg","text":"TemporaryFile(/tmp/multipartBody2016719192178503589asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534889197,"filename":"image_18082025_18_33_05_10683.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/76624e1de0f8882c93538007b67124db.jpg","text":"TemporaryFile(/tmp/multipartBody6345997103234895221asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534889197,"filename":"image_18082025_18_33_45_9607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/35442ed1f37cd4c0822438b23a7c2133.jpg","text":"TemporaryFile(/tmp/multipartBody8377756624027521098asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534889197,"filename":"image_18082025_18_33_15_9685.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9864a90a0ff1ac51feef401905e387b6.jpg","text":"TemporaryFile(/tmp/multipartBody6477075799779575802asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534889197,"filename":"image_18082025_18_32_54_9661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e3f307833fc0a069c8344d13a0baa318.jpg","text":"TemporaryFile(/tmp/multipartBody4739079222030948865asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534889197,"filename":"image_18082025_18_33_24_9684.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377712897","file1":"1377712896","file0":"1377712895","file4":"1377712900","file5":"1377712904","file3":"1377712898"},"map_files_photo_id_array":[{"photo_id":"1377712904","filename":"file5"},{"photo_id":"1377712897","filename":"file2"},{"photo_id":"1377712900","filename":"file4"},{"photo_id":"1377712896","filename":"file1"},{"photo_id":"1377712895","filename":"file0"},{"photo_id":"1377712898","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377712896":["hashtag1","hashtag2"]},{"1377712900":["hashtag1","hashtag2"]},{"1377712895":["hashtag1","hashtag2"]},{"1377712898":["hashtag1","hashtag2"]},{"1377712904":["hashtag1","hashtag2"]},{"1377712897":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377712896, 1377712900, 1377712895, 1377712898, 1377712904, 1377712897)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.653568744659424 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:34:32.595717
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/34/image_18082025_18_34_45_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/18/34/image_18082025_18_34_35_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/18/34/image_18082025_18_34_24_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/18/34/image_18082025_18_34_15_9682.jpg', 2), ('/home/nano/Desktop/images/18082025/18/33/image_18082025_18_34_05_10741.jpg', 2), ('/home/nano/Desktop/images/18082025/18/33/image_18082025_18_33_54_9655.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/34/image_18082025_18_34_45_9625.jpg', '/home/nano/Desktop/images/18082025/18/34/image_18082025_18_34_35_10644.jpg', '/home/nano/Desktop/images/18082025/18/34/image_18082025_18_34_24_9634.jpg', '/home/nano/Desktop/images/18082025/18/34/image_18082025_18_34_15_9682.jpg', '/home/nano/Desktop/images/18082025/18/33/image_18082025_18_34_05_10741.jpg', '/home/nano/Desktop/images/18082025/18/33/image_18082025_18_33_54_9655.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/34/image_18082025_18_34_45_9625.jpg
/home/nano/Desktop/images/18082025/18/34/image_18082025_18_34_35_10644.jpg
/home/nano/Desktop/images/18082025/18/34/image_18082025_18_34_24_9634.jpg
/home/nano/Desktop/images/18082025/18/34/image_18082025_18_34_15_9682.jpg
/home/nano/Desktop/images/18082025/18/33/image_18082025_18_34_05_10741.jpg
/home/nano/Desktop/images/18082025/18/33/image_18082025_18_33_54_9655.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377712918","1377712921","1377712920","1377712923","1377712926","1377712928"],"photo_ids_order":["1377712918","1377712920","1377712921","1377712923","1377712926","1377712928"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8468d4c8362f73fc97fdd3dfb1f397c7.jpg","text":"TemporaryFile(/tmp/multipartBody2274788948486742306asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534933874,"filename":"image_18082025_18_34_45_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ef45db7aaf3074c1bfda5de2413448f2.jpg","text":"TemporaryFile(/tmp/multipartBody6249887445422368066asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534933874,"filename":"image_18082025_18_34_24_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/570d799db76569d622605a9b7f19d970.jpg","text":"TemporaryFile(/tmp/multipartBody8502222960385638612asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534933874,"filename":"image_18082025_18_34_35_10644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/82118813bfd3acaa44e603d90de4caec.jpg","text":"TemporaryFile(/tmp/multipartBody996422660166947954asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534933874,"filename":"image_18082025_18_34_15_9682.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/32e2c68f4f6f93328986b360d22e0943.jpg","text":"TemporaryFile(/tmp/multipartBody3569151391753141469asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534933874,"filename":"image_18082025_18_34_05_10741.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ee8b6bc76b100a0c2d819bd813692d9c.jpg","text":"TemporaryFile(/tmp/multipartBody2033526581297027133asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534933874,"filename":"image_18082025_18_33_54_9655.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377712921","file1":"1377712920","file0":"1377712918","file4":"1377712926","file5":"1377712928","file3":"1377712923"},"map_files_photo_id_array":[{"photo_id":"1377712928","filename":"file5"},{"photo_id":"1377712921","filename":"file2"},{"photo_id":"1377712926","filename":"file4"},{"photo_id":"1377712920","filename":"file1"},{"photo_id":"1377712918","filename":"file0"},{"photo_id":"1377712923","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377712918":["hashtag1","hashtag2"]},{"1377712921":["hashtag1","hashtag2"]},{"1377712920":["hashtag1","hashtag2"]},{"1377712923":["hashtag1","hashtag2"]},{"1377712926":["hashtag1","hashtag2"]},{"1377712928":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377712918, 1377712921, 1377712920, 1377712923, 1377712926, 1377712928)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.209773778915405 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:35:17.673770
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/35/image_18082025_18_35_44_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/18/35/image_18082025_18_35_35_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/18/35/image_18082025_18_35_24_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/18/35/image_18082025_18_35_15_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/18/34/image_18082025_18_35_05_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/18/34/image_18082025_18_34_54_9629.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/35/image_18082025_18_35_44_9618.jpg', '/home/nano/Desktop/images/18082025/18/35/image_18082025_18_35_35_10630.jpg', '/home/nano/Desktop/images/18082025/18/35/image_18082025_18_35_24_9636.jpg', '/home/nano/Desktop/images/18082025/18/35/image_18082025_18_35_15_9639.jpg', '/home/nano/Desktop/images/18082025/18/34/image_18082025_18_35_05_10647.jpg', '/home/nano/Desktop/images/18082025/18/34/image_18082025_18_34_54_9629.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/35/image_18082025_18_35_44_9618.jpg
/home/nano/Desktop/images/18082025/18/35/image_18082025_18_35_35_10630.jpg
/home/nano/Desktop/images/18082025/18/35/image_18082025_18_35_24_9636.jpg
/home/nano/Desktop/images/18082025/18/35/image_18082025_18_35_15_9639.jpg
/home/nano/Desktop/images/18082025/18/34/image_18082025_18_35_05_10647.jpg
/home/nano/Desktop/images/18082025/18/34/image_18082025_18_34_54_9629.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377712942","1377712951","1377712945","1377712948","1377712940","1377712954"],"photo_ids_order":["1377712940","1377712942","1377712945","1377712948","1377712951","1377712954"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d4eb7ddb04cfbb5fbbaa0c343d425367.jpg","text":"TemporaryFile(/tmp/multipartBody1714972768946852814asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534978869,"filename":"image_18082025_18_35_35_10630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a2518e8636074cd0ff69c5a80afd8629.jpg","text":"TemporaryFile(/tmp/multipartBody4772824767139269622asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534978869,"filename":"image_18082025_18_35_05_10647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/92b9dd4e9db37c5ae11d87aa32c72d8a.jpg","text":"TemporaryFile(/tmp/multipartBody6897934618825800663asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534978869,"filename":"image_18082025_18_35_24_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f55d0a81adee9301da148d406d941227.jpg","text":"TemporaryFile(/tmp/multipartBody5378771765657109034asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534978869,"filename":"image_18082025_18_35_15_9639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9f6a09b6457aacd2d695833d1332b3cc.jpg","text":"TemporaryFile(/tmp/multipartBody6553328658389201254asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534978869,"filename":"image_18082025_18_35_44_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3cb9653e6b8e1c32e42704b81df36c74.jpg","text":"TemporaryFile(/tmp/multipartBody5058239771027164282asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755534978869,"filename":"image_18082025_18_34_54_9629.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377712945","file1":"1377712942","file0":"1377712940","file4":"1377712951","file5":"1377712954","file3":"1377712948"},"map_files_photo_id_array":[{"photo_id":"1377712954","filename":"file5"},{"photo_id":"1377712945","filename":"file2"},{"photo_id":"1377712951","filename":"file4"},{"photo_id":"1377712942","filename":"file1"},{"photo_id":"1377712940","filename":"file0"},{"photo_id":"1377712948","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377712942":["hashtag1","hashtag2"]},{"1377712951":["hashtag1","hashtag2"]},{"1377712945":["hashtag1","hashtag2"]},{"1377712948":["hashtag1","hashtag2"]},{"1377712940":["hashtag1","hashtag2"]},{"1377712954":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377712942, 1377712951, 1377712945, 1377712948, 1377712940, 1377712954)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.390775203704834 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:36:02.155276
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/48/image_18082025_09_48_44_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/09/48/image_18082025_09_48_35_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/09/48/image_18082025_09_48_25_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/09/48/image_18082025_09_48_14_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/09/47/image_18082025_09_48_05_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/09/47/image_18082025_09_47_55_10621.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/48/image_18082025_09_48_44_9608.jpg', '/home/nano/Desktop/images/18082025/09/48/image_18082025_09_48_35_9610.jpg', '/home/nano/Desktop/images/18082025/09/48/image_18082025_09_48_25_10642.jpg', '/home/nano/Desktop/images/18082025/09/48/image_18082025_09_48_14_9626.jpg', '/home/nano/Desktop/images/18082025/09/47/image_18082025_09_48_05_9637.jpg', '/home/nano/Desktop/images/18082025/09/47/image_18082025_09_47_55_10621.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/48/image_18082025_09_48_44_9608.jpg
/home/nano/Desktop/images/18082025/09/48/image_18082025_09_48_35_9610.jpg
/home/nano/Desktop/images/18082025/09/48/image_18082025_09_48_25_10642.jpg
/home/nano/Desktop/images/18082025/09/48/image_18082025_09_48_14_9626.jpg
/home/nano/Desktop/images/18082025/09/47/image_18082025_09_48_05_9637.jpg
/home/nano/Desktop/images/18082025/09/47/image_18082025_09_47_55_10621.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377712966","1377712977","1377712980","1377712974","1377712970","1377712972"],"photo_ids_order":["1377712966","1377712970","1377712972","1377712974","1377712977","1377712980"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/91bd232cdbe67a2518307c020ea87d07.jpg","text":"TemporaryFile(/tmp/multipartBody7083332624242017120asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535023271,"filename":"image_18082025_09_48_44_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/44ee7e70b6e19a5bc1a8668e129c7638.jpg","text":"TemporaryFile(/tmp/multipartBody3569185251187909610asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535023271,"filename":"image_18082025_09_48_05_9637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6f8006188dc5ffc65cdd4f0d9ce34bc0.jpg","text":"TemporaryFile(/tmp/multipartBody9156726782483561460asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535023271,"filename":"image_18082025_09_47_55_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b027f59f46781493eacdb8b81d4a9912.jpg","text":"TemporaryFile(/tmp/multipartBody5702292154318837847asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535023271,"filename":"image_18082025_09_48_14_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/618d81a3934dde3c808a1047a8c74e73.jpg","text":"TemporaryFile(/tmp/multipartBody7392132414996000511asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535023271,"filename":"image_18082025_09_48_35_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0c713bce0425158aceecb49626a5c5d1.jpg","text":"TemporaryFile(/tmp/multipartBody1636618467359568830asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535023271,"filename":"image_18082025_09_48_25_10642.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377712972","file1":"1377712970","file0":"1377712966","file4":"1377712977","file5":"1377712980","file3":"1377712974"},"map_files_photo_id_array":[{"photo_id":"1377712980","filename":"file5"},{"photo_id":"1377712972","filename":"file2"},{"photo_id":"1377712977","filename":"file4"},{"photo_id":"1377712970","filename":"file1"},{"photo_id":"1377712966","filename":"file0"},{"photo_id":"1377712974","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377712966":["hashtag1","hashtag2"]},{"1377712977":["hashtag1","hashtag2"]},{"1377712980":["hashtag1","hashtag2"]},{"1377712974":["hashtag1","hashtag2"]},{"1377712970":["hashtag1","hashtag2"]},{"1377712972":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377712966, 1377712977, 1377712980, 1377712974, 1377712970, 1377712972)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.07394027709961 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:36:46.811373
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/36/image_18082025_18_36_44_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/18/36/image_18082025_18_36_35_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/18/36/image_18082025_18_36_25_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/18/36/image_18082025_18_36_14_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/18/35/image_18082025_18_36_05_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/18/35/image_18082025_18_35_55_10639.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/36/image_18082025_18_36_44_9639.jpg', '/home/nano/Desktop/images/18082025/18/36/image_18082025_18_36_35_9613.jpg', '/home/nano/Desktop/images/18082025/18/36/image_18082025_18_36_25_10630.jpg', '/home/nano/Desktop/images/18082025/18/36/image_18082025_18_36_14_9655.jpg', '/home/nano/Desktop/images/18082025/18/35/image_18082025_18_36_05_9633.jpg', '/home/nano/Desktop/images/18082025/18/35/image_18082025_18_35_55_10639.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/36/image_18082025_18_36_44_9639.jpg
/home/nano/Desktop/images/18082025/18/36/image_18082025_18_36_35_9613.jpg
/home/nano/Desktop/images/18082025/18/36/image_18082025_18_36_25_10630.jpg
/home/nano/Desktop/images/18082025/18/36/image_18082025_18_36_14_9655.jpg
/home/nano/Desktop/images/18082025/18/35/image_18082025_18_36_05_9633.jpg
/home/nano/Desktop/images/18082025/18/35/image_18082025_18_35_55_10639.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377712995","1377712998","1377712992","1377712994","1377712991","1377712993"],"photo_ids_order":["1377712991","1377712992","1377712993","1377712994","1377712995","1377712998"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f3b6f7f5db75a4d2112300ae0c05b581.jpg","text":"TemporaryFile(/tmp/multipartBody1312401308752028592asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535068017,"filename":"image_18082025_18_36_05_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/01994b6abe673e6e50b14befbb34c448.jpg","text":"TemporaryFile(/tmp/multipartBody614299051348246413asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535068017,"filename":"image_18082025_18_35_55_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/753242a9b60a3181d17e7a8e66769a49.jpg","text":"TemporaryFile(/tmp/multipartBody4209114801255523825asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535068017,"filename":"image_18082025_18_36_35_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/12fa7e99fa033316c19e9dafa9fb53dc.jpg","text":"TemporaryFile(/tmp/multipartBody3966245839797222226asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535068017,"filename":"image_18082025_18_36_14_9655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c5a55aa17d0cb84c9d2ceb378fb04248.jpg","text":"TemporaryFile(/tmp/multipartBody5515833497388656503asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535068017,"filename":"image_18082025_18_36_44_9639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b3e66d198e284f1f08244d1ae723e54a.jpg","text":"TemporaryFile(/tmp/multipartBody1744327496788961982asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535068017,"filename":"image_18082025_18_36_25_10630.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377712993","file1":"1377712992","file0":"1377712991","file4":"1377712995","file5":"1377712998","file3":"1377712994"},"map_files_photo_id_array":[{"photo_id":"1377712998","filename":"file5"},{"photo_id":"1377712993","filename":"file2"},{"photo_id":"1377712995","filename":"file4"},{"photo_id":"1377712992","filename":"file1"},{"photo_id":"1377712991","filename":"file0"},{"photo_id":"1377712994","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377712995":["hashtag1","hashtag2"]},{"1377712998":["hashtag1","hashtag2"]},{"1377712992":["hashtag1","hashtag2"]},{"1377712994":["hashtag1","hashtag2"]},{"1377712991":["hashtag1","hashtag2"]},{"1377712993":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377712995, 1377712998, 1377712992, 1377712994, 1377712991, 1377712993)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.457476139068604 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:37:31.939675
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/37/image_18082025_18_37_45_10677.jpg', 2), ('/home/nano/Desktop/images/18082025/18/37/image_18082025_18_37_34_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/18/37/image_18082025_18_37_25_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/18/37/image_18082025_18_37_14_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/18/36/image_18082025_18_37_04_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/18/36/image_18082025_18_36_55_10632.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/37/image_18082025_18_37_45_10677.jpg', '/home/nano/Desktop/images/18082025/18/37/image_18082025_18_37_34_9622.jpg', '/home/nano/Desktop/images/18082025/18/37/image_18082025_18_37_25_10629.jpg', '/home/nano/Desktop/images/18082025/18/37/image_18082025_18_37_14_9637.jpg', '/home/nano/Desktop/images/18082025/18/36/image_18082025_18_37_04_9610.jpg', '/home/nano/Desktop/images/18082025/18/36/image_18082025_18_36_55_10632.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/37/image_18082025_18_37_45_10677.jpg
/home/nano/Desktop/images/18082025/18/37/image_18082025_18_37_34_9622.jpg
/home/nano/Desktop/images/18082025/18/37/image_18082025_18_37_25_10629.jpg
/home/nano/Desktop/images/18082025/18/37/image_18082025_18_37_14_9637.jpg
/home/nano/Desktop/images/18082025/18/36/image_18082025_18_37_04_9610.jpg
/home/nano/Desktop/images/18082025/18/36/image_18082025_18_36_55_10632.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377713029","1377713020","1377713022","1377713025","1377713027","1377713023"],"photo_ids_order":["1377713020","1377713022","1377713023","1377713025","1377713027","1377713029"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b5ae474179cedf3d7dab9b678b8dc938.jpg","text":"TemporaryFile(/tmp/multipartBody5792642793029150016asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535113436,"filename":"image_18082025_18_36_55_10632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/548131c86d32c271c6bc50a41b4b4e41.jpg","text":"TemporaryFile(/tmp/multipartBody2151599334194519382asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535113436,"filename":"image_18082025_18_37_45_10677.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e88f6afd809637de89f0163252b729fd.jpg","text":"TemporaryFile(/tmp/multipartBody3784872436370308835asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535113436,"filename":"image_18082025_18_37_34_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2ca29f58300dc9bffb75aef98d6cab10.jpg","text":"TemporaryFile(/tmp/multipartBody4048152403603345177asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535113436,"filename":"image_18082025_18_37_14_9637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f35c928177a993b46f38c42ff2c7db87.jpg","text":"TemporaryFile(/tmp/multipartBody4357797714475365283asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535113436,"filename":"image_18082025_18_37_04_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0ada93ec7ac7b5596cd33545608c8217.jpg","text":"TemporaryFile(/tmp/multipartBody4863192399709066274asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535113436,"filename":"image_18082025_18_37_25_10629.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377713023","file1":"1377713022","file0":"1377713020","file4":"1377713027","file5":"1377713029","file3":"1377713025"},"map_files_photo_id_array":[{"photo_id":"1377713029","filename":"file5"},{"photo_id":"1377713023","filename":"file2"},{"photo_id":"1377713027","filename":"file4"},{"photo_id":"1377713022","filename":"file1"},{"photo_id":"1377713020","filename":"file0"},{"photo_id":"1377713025","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377713029":["hashtag1","hashtag2"]},{"1377713020":["hashtag1","hashtag2"]},{"1377713022":["hashtag1","hashtag2"]},{"1377713025":["hashtag1","hashtag2"]},{"1377713027":["hashtag1","hashtag2"]},{"1377713023":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377713029, 1377713020, 1377713022, 1377713025, 1377713027, 1377713023)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.09899687767029 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:38:17.051115
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/38/image_18082025_18_38_44_9736.jpg', 2), ('/home/nano/Desktop/images/18082025/18/38/image_18082025_18_38_34_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/18/38/image_18082025_18_38_25_9687.jpg', 2), ('/home/nano/Desktop/images/18082025/18/38/image_18082025_18_38_15_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/18/37/image_18082025_18_38_04_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/18/37/image_18082025_18_37_55_9633.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/38/image_18082025_18_38_44_9736.jpg', '/home/nano/Desktop/images/18082025/18/38/image_18082025_18_38_34_9663.jpg', '/home/nano/Desktop/images/18082025/18/38/image_18082025_18_38_25_9687.jpg', '/home/nano/Desktop/images/18082025/18/38/image_18082025_18_38_15_10668.jpg', '/home/nano/Desktop/images/18082025/18/37/image_18082025_18_38_04_9656.jpg', '/home/nano/Desktop/images/18082025/18/37/image_18082025_18_37_55_9633.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/38/image_18082025_18_38_44_9736.jpg
/home/nano/Desktop/images/18082025/18/38/image_18082025_18_38_34_9663.jpg
/home/nano/Desktop/images/18082025/18/38/image_18082025_18_38_25_9687.jpg
/home/nano/Desktop/images/18082025/18/38/image_18082025_18_38_15_10668.jpg
/home/nano/Desktop/images/18082025/18/37/image_18082025_18_38_04_9656.jpg
/home/nano/Desktop/images/18082025/18/37/image_18082025_18_37_55_9633.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377713046","1377713040","1377713042","1377713048","1377713044","1377713038"],"photo_ids_order":["1377713038","1377713040","1377713042","1377713044","1377713046","1377713048"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b6ef00e7beac3685da86643e43b70265.jpg","text":"TemporaryFile(/tmp/multipartBody1897195852834768048asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535158634,"filename":"image_18082025_18_38_04_9656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/44ea8bc126bf68b6caf43f02507677e3.jpg","text":"TemporaryFile(/tmp/multipartBody1530396269376922445asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535158634,"filename":"image_18082025_18_38_34_9663.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/045dae2b958521a7f8494bdd24a1b1c9.jpg","text":"TemporaryFile(/tmp/multipartBody2456465084538132178asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535158634,"filename":"image_18082025_18_38_25_9687.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3ecfbebde8b907093b9244b5429ba40f.jpg","text":"TemporaryFile(/tmp/multipartBody287270395097452050asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535158634,"filename":"image_18082025_18_37_55_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/69ca472578f2ed81740fe0a53ca74524.jpg","text":"TemporaryFile(/tmp/multipartBody2245023336438121360asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535158634,"filename":"image_18082025_18_38_15_10668.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3164a1063720aa123f8fd85f8f595824.jpg","text":"TemporaryFile(/tmp/multipartBody5990001755201118172asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535158634,"filename":"image_18082025_18_38_44_9736.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377713042","file1":"1377713040","file0":"1377713038","file4":"1377713046","file5":"1377713048","file3":"1377713044"},"map_files_photo_id_array":[{"photo_id":"1377713048","filename":"file5"},{"photo_id":"1377713042","filename":"file2"},{"photo_id":"1377713046","filename":"file4"},{"photo_id":"1377713040","filename":"file1"},{"photo_id":"1377713038","filename":"file0"},{"photo_id":"1377713044","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377713046":["hashtag1","hashtag2"]},{"1377713040":["hashtag1","hashtag2"]},{"1377713042":["hashtag1","hashtag2"]},{"1377713048":["hashtag1","hashtag2"]},{"1377713044":["hashtag1","hashtag2"]},{"1377713038":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377713046, 1377713040, 1377713042, 1377713048, 1377713044, 1377713038)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.88598608970642 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:39:03.084491
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/47/image_18082025_09_47_44_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/09/47/image_18082025_09_47_35_10619.jpg', 2), ('/home/nano/Desktop/images/18082025/09/47/image_18082025_09_47_24_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/09/47/image_18082025_09_47_15_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/09/46/image_18082025_09_47_05_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/09/46/image_18082025_09_46_54_9615.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/47/image_18082025_09_47_44_9608.jpg', '/home/nano/Desktop/images/18082025/09/47/image_18082025_09_47_35_10619.jpg', '/home/nano/Desktop/images/18082025/09/47/image_18082025_09_47_24_9613.jpg', '/home/nano/Desktop/images/18082025/09/47/image_18082025_09_47_15_9645.jpg', '/home/nano/Desktop/images/18082025/09/46/image_18082025_09_47_05_10636.jpg', '/home/nano/Desktop/images/18082025/09/46/image_18082025_09_46_54_9615.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/47/image_18082025_09_47_44_9608.jpg
/home/nano/Desktop/images/18082025/09/47/image_18082025_09_47_35_10619.jpg
/home/nano/Desktop/images/18082025/09/47/image_18082025_09_47_24_9613.jpg
/home/nano/Desktop/images/18082025/09/47/image_18082025_09_47_15_9645.jpg
/home/nano/Desktop/images/18082025/09/46/image_18082025_09_47_05_10636.jpg
/home/nano/Desktop/images/18082025/09/46/image_18082025_09_46_54_9615.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377713067","1377713052","1377713055","1377713063","1377713071","1377713059"],"photo_ids_order":["1377713052","1377713055","1377713059","1377713063","1377713067","1377713071"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2d6eb67509648d283e277f8773cd4b3d.jpg","text":"TemporaryFile(/tmp/multipartBody6607691060263320146asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535204689,"filename":"image_18082025_09_47_05_10636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b514e3cc769b314504f3d3b714dd213a.jpg","text":"TemporaryFile(/tmp/multipartBody5282855834493320274asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535204689,"filename":"image_18082025_09_47_44_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fa629efd05432e3c2fc31d4a02231593.jpg","text":"TemporaryFile(/tmp/multipartBody130533974339842494asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535204689,"filename":"image_18082025_09_47_35_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d01ba8025283cfcaea34610f8033486b.jpg","text":"TemporaryFile(/tmp/multipartBody4333963674233563726asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535204689,"filename":"image_18082025_09_47_15_9645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a88f1afc754cd630ba370262f2cc6d81.jpg","text":"TemporaryFile(/tmp/multipartBody1195207652825602689asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535204689,"filename":"image_18082025_09_46_54_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f726ab729dde6c0d97ece27930a10150.jpg","text":"TemporaryFile(/tmp/multipartBody7834698951650028737asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535204689,"filename":"image_18082025_09_47_24_9613.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377713059","file1":"1377713055","file0":"1377713052","file4":"1377713067","file5":"1377713071","file3":"1377713063"},"map_files_photo_id_array":[{"photo_id":"1377713071","filename":"file5"},{"photo_id":"1377713059","filename":"file2"},{"photo_id":"1377713067","filename":"file4"},{"photo_id":"1377713055","filename":"file1"},{"photo_id":"1377713052","filename":"file0"},{"photo_id":"1377713063","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377713067":["hashtag1","hashtag2"]},{"1377713052":["hashtag1","hashtag2"]},{"1377713055":["hashtag1","hashtag2"]},{"1377713063":["hashtag1","hashtag2"]},{"1377713071":["hashtag1","hashtag2"]},{"1377713059":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377713067, 1377713052, 1377713055, 1377713063, 1377713071, 1377713059)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.54000473022461 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:39:47.141689
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/39/image_18082025_18_39_45_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/18/39/image_18082025_18_39_35_10895.jpg', 2), ('/home/nano/Desktop/images/18082025/18/38/image_18082025_18_38_55_10617.jpg', 2), ('/home/nano/Desktop/images/18082025/09/46/image_18082025_09_46_45_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/09/46/image_18082025_09_46_35_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/09/46/image_18082025_09_46_24_9632.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/39/image_18082025_18_39_45_9619.jpg', '/home/nano/Desktop/images/18082025/18/39/image_18082025_18_39_35_10895.jpg', '/home/nano/Desktop/images/18082025/18/38/image_18082025_18_38_55_10617.jpg', '/home/nano/Desktop/images/18082025/09/46/image_18082025_09_46_45_9618.jpg', '/home/nano/Desktop/images/18082025/09/46/image_18082025_09_46_35_10637.jpg', '/home/nano/Desktop/images/18082025/09/46/image_18082025_09_46_24_9632.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/39/image_18082025_18_39_45_9619.jpg
/home/nano/Desktop/images/18082025/18/39/image_18082025_18_39_35_10895.jpg
/home/nano/Desktop/images/18082025/18/38/image_18082025_18_38_55_10617.jpg
/home/nano/Desktop/images/18082025/09/46/image_18082025_09_46_45_9618.jpg
/home/nano/Desktop/images/18082025/09/46/image_18082025_09_46_35_10637.jpg
/home/nano/Desktop/images/18082025/09/46/image_18082025_09_46_24_9632.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377713097","1377713091","1377713093","1377713099","1377713095","1377713089"],"photo_ids_order":["1377713089","1377713091","1377713093","1377713095","1377713097","1377713099"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dc51cbef4da02287eacb8f8fd13830e2.jpg","text":"TemporaryFile(/tmp/multipartBody2307832843567418428asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535248726,"filename":"image_18082025_09_46_35_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e3bb4d78519fa86d316c3bc29494541f.jpg","text":"TemporaryFile(/tmp/multipartBody5694808763457551671asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535248726,"filename":"image_18082025_18_39_35_10895.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4d9304e099e937a18d2be9551b309045.jpg","text":"TemporaryFile(/tmp/multipartBody1788145236772098491asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535248726,"filename":"image_18082025_18_38_55_10617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/571ecffa42a9dbabe7e2e2cda58fcbea.jpg","text":"TemporaryFile(/tmp/multipartBody6313826196400105394asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535248726,"filename":"image_18082025_09_46_24_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/aa44e387bd90d809c5645f34471f850f.jpg","text":"TemporaryFile(/tmp/multipartBody3887585681684839248asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535248726,"filename":"image_18082025_09_46_45_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0261dda1a5ba9fa20f2ca8ef0b75ca86.jpg","text":"TemporaryFile(/tmp/multipartBody2458693989234618193asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535248726,"filename":"image_18082025_18_39_45_9619.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377713093","file1":"1377713091","file0":"1377713089","file4":"1377713097","file5":"1377713099","file3":"1377713095"},"map_files_photo_id_array":[{"photo_id":"1377713099","filename":"file5"},{"photo_id":"1377713093","filename":"file2"},{"photo_id":"1377713097","filename":"file4"},{"photo_id":"1377713091","filename":"file1"},{"photo_id":"1377713089","filename":"file0"},{"photo_id":"1377713095","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377713097":["hashtag1","hashtag2"]},{"1377713091":["hashtag1","hashtag2"]},{"1377713093":["hashtag1","hashtag2"]},{"1377713099":["hashtag1","hashtag2"]},{"1377713095":["hashtag1","hashtag2"]},{"1377713089":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377713097, 1377713091, 1377713093, 1377713099, 1377713095, 1377713089)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.335623264312744 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:40:32.221498
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/40/image_18082025_18_40_44_9748.jpg', 2), ('/home/nano/Desktop/images/18082025/18/40/image_18082025_18_40_34_9733.jpg', 2), ('/home/nano/Desktop/images/18082025/18/40/image_18082025_18_40_25_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/18/40/image_18082025_18_40_15_10829.jpg', 2), ('/home/nano/Desktop/images/18082025/18/39/image_18082025_18_40_04_9801.jpg', 2), ('/home/nano/Desktop/images/18082025/18/39/image_18082025_18_39_54_9756.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/40/image_18082025_18_40_44_9748.jpg', '/home/nano/Desktop/images/18082025/18/40/image_18082025_18_40_34_9733.jpg', '/home/nano/Desktop/images/18082025/18/40/image_18082025_18_40_25_9661.jpg', '/home/nano/Desktop/images/18082025/18/40/image_18082025_18_40_15_10829.jpg', '/home/nano/Desktop/images/18082025/18/39/image_18082025_18_40_04_9801.jpg', '/home/nano/Desktop/images/18082025/18/39/image_18082025_18_39_54_9756.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/40/image_18082025_18_40_44_9748.jpg
/home/nano/Desktop/images/18082025/18/40/image_18082025_18_40_34_9733.jpg
/home/nano/Desktop/images/18082025/18/40/image_18082025_18_40_25_9661.jpg
/home/nano/Desktop/images/18082025/18/40/image_18082025_18_40_15_10829.jpg
/home/nano/Desktop/images/18082025/18/39/image_18082025_18_40_04_9801.jpg
/home/nano/Desktop/images/18082025/18/39/image_18082025_18_39_54_9756.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377713119","1377713112","1377713121","1377713115","1377713120","1377713117"],"photo_ids_order":["1377713112","1377713115","1377713117","1377713119","1377713120","1377713121"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d56cb1f34d9ffbd78dcf2e3b938709dd.jpg","text":"TemporaryFile(/tmp/multipartBody7519905356159961925asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535294543,"filename":"image_18082025_18_40_15_10829.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5fd71355170327721c77e19411b7b8bc.jpg","text":"TemporaryFile(/tmp/multipartBody4183401975566961717asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535294543,"filename":"image_18082025_18_40_44_9748.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/507c08d7732dcef8f45c99352242fc1a.jpg","text":"TemporaryFile(/tmp/multipartBody3589911824597085318asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535294543,"filename":"image_18082025_18_39_54_9756.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0b8695a3d362933d7f45b972fdd4a794.jpg","text":"TemporaryFile(/tmp/multipartBody4324294057161612910asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535294543,"filename":"image_18082025_18_40_34_9733.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b14c9aaeb61178c67b319d8b0e570f6d.jpg","text":"TemporaryFile(/tmp/multipartBody1845500909601826591asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535294543,"filename":"image_18082025_18_40_04_9801.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e39669dfa7516f031edc85b9573c096a.jpg","text":"TemporaryFile(/tmp/multipartBody3420185067093550314asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535294543,"filename":"image_18082025_18_40_25_9661.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377713117","file1":"1377713115","file0":"1377713112","file4":"1377713120","file5":"1377713121","file3":"1377713119"},"map_files_photo_id_array":[{"photo_id":"1377713121","filename":"file5"},{"photo_id":"1377713117","filename":"file2"},{"photo_id":"1377713120","filename":"file4"},{"photo_id":"1377713115","filename":"file1"},{"photo_id":"1377713112","filename":"file0"},{"photo_id":"1377713119","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377713119":["hashtag1","hashtag2"]},{"1377713112":["hashtag1","hashtag2"]},{"1377713121":["hashtag1","hashtag2"]},{"1377713115":["hashtag1","hashtag2"]},{"1377713120":["hashtag1","hashtag2"]},{"1377713117":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377713119, 1377713112, 1377713121, 1377713115, 1377713120, 1377713117)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.267364025115967 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:41:17.431280
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/41/image_18082025_18_41_45_9805.jpg', 2), ('/home/nano/Desktop/images/18082025/18/41/image_18082025_18_41_35_10790.jpg', 2), ('/home/nano/Desktop/images/18082025/18/41/image_18082025_18_41_24_9723.jpg', 2), ('/home/nano/Desktop/images/18082025/18/41/image_18082025_18_41_14_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/18/40/image_18082025_18_41_05_9769.jpg', 2), ('/home/nano/Desktop/images/18082025/18/40/image_18082025_18_40_55_10755.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/41/image_18082025_18_41_45_9805.jpg', '/home/nano/Desktop/images/18082025/18/41/image_18082025_18_41_35_10790.jpg', '/home/nano/Desktop/images/18082025/18/41/image_18082025_18_41_24_9723.jpg', '/home/nano/Desktop/images/18082025/18/41/image_18082025_18_41_14_9662.jpg', '/home/nano/Desktop/images/18082025/18/40/image_18082025_18_41_05_9769.jpg', '/home/nano/Desktop/images/18082025/18/40/image_18082025_18_40_55_10755.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/41/image_18082025_18_41_45_9805.jpg
/home/nano/Desktop/images/18082025/18/41/image_18082025_18_41_35_10790.jpg
/home/nano/Desktop/images/18082025/18/41/image_18082025_18_41_24_9723.jpg
/home/nano/Desktop/images/18082025/18/41/image_18082025_18_41_14_9662.jpg
/home/nano/Desktop/images/18082025/18/40/image_18082025_18_41_05_9769.jpg
/home/nano/Desktop/images/18082025/18/40/image_18082025_18_40_55_10755.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377713130","1377713136","1377713138","1377713132","1377713134","1377713137"],"photo_ids_order":["1377713130","1377713132","1377713134","1377713136","1377713137","1377713138"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/61a1cb1b673a44645e7e3f73c5d0498a.jpg","text":"TemporaryFile(/tmp/multipartBody561023113513017292asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535339320,"filename":"image_18082025_18_41_45_9805.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1a9e18d3dd269edeace512998932a61a.jpg","text":"TemporaryFile(/tmp/multipartBody4586844394333257167asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535339320,"filename":"image_18082025_18_41_14_9662.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ef8d814a2d2bbdfd4b974800e788a0e2.jpg","text":"TemporaryFile(/tmp/multipartBody6699130832582033270asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535339320,"filename":"image_18082025_18_40_55_10755.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f1406f5c029fc00b7ee24d0abd940638.jpg","text":"TemporaryFile(/tmp/multipartBody4541141702786658160asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535339320,"filename":"image_18082025_18_41_35_10790.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1868b974b39a63459733a4fdcb6ef805.jpg","text":"TemporaryFile(/tmp/multipartBody4728683935044676966asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535339320,"filename":"image_18082025_18_41_24_9723.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5140e4476a60502896eb75860b68c17e.jpg","text":"TemporaryFile(/tmp/multipartBody6334377008655600831asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535339320,"filename":"image_18082025_18_41_05_9769.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377713134","file1":"1377713132","file0":"1377713130","file4":"1377713137","file5":"1377713138","file3":"1377713136"},"map_files_photo_id_array":[{"photo_id":"1377713138","filename":"file5"},{"photo_id":"1377713134","filename":"file2"},{"photo_id":"1377713137","filename":"file4"},{"photo_id":"1377713132","filename":"file1"},{"photo_id":"1377713130","filename":"file0"},{"photo_id":"1377713136","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377713130":["hashtag1","hashtag2"]},{"1377713136":["hashtag1","hashtag2"]},{"1377713138":["hashtag1","hashtag2"]},{"1377713132":["hashtag1","hashtag2"]},{"1377713134":["hashtag1","hashtag2"]},{"1377713137":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377713130, 1377713136, 1377713138, 1377713132, 1377713134, 1377713137)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.307446479797363 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:42:03.012216
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/46/image_18082025_09_46_15_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/09/45/image_18082025_09_46_04_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/09/45/image_18082025_09_45_54_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/09/45/image_18082025_09_45_45_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/09/45/image_18082025_09_45_34_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/09/45/image_18082025_09_45_25_9610.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/46/image_18082025_09_46_15_10660.jpg', '/home/nano/Desktop/images/18082025/09/45/image_18082025_09_46_04_9615.jpg', '/home/nano/Desktop/images/18082025/09/45/image_18082025_09_45_54_9629.jpg', '/home/nano/Desktop/images/18082025/09/45/image_18082025_09_45_45_10621.jpg', '/home/nano/Desktop/images/18082025/09/45/image_18082025_09_45_34_9609.jpg', '/home/nano/Desktop/images/18082025/09/45/image_18082025_09_45_25_9610.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/46/image_18082025_09_46_15_10660.jpg
/home/nano/Desktop/images/18082025/09/45/image_18082025_09_46_04_9615.jpg
/home/nano/Desktop/images/18082025/09/45/image_18082025_09_45_54_9629.jpg
/home/nano/Desktop/images/18082025/09/45/image_18082025_09_45_45_10621.jpg
/home/nano/Desktop/images/18082025/09/45/image_18082025_09_45_34_9609.jpg
/home/nano/Desktop/images/18082025/09/45/image_18082025_09_45_25_9610.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377713152","1377713146","1377713161","1377713155","1377713149","1377713158"],"photo_ids_order":["1377713146","1377713149","1377713152","1377713155","1377713158","1377713161"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/eaea0af0b9dcb4fca1a3752ba020d00f.jpg","text":"TemporaryFile(/tmp/multipartBody5602980301569066555asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535384295,"filename":"image_18082025_09_45_54_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d895bdd0ad1a3ed3de3155dcd54008b7.jpg","text":"TemporaryFile(/tmp/multipartBody2393594638033632806asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535384295,"filename":"image_18082025_09_46_15_10660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/30c15e27263a36f9b54abff1dd082c49.jpg","text":"TemporaryFile(/tmp/multipartBody901712785538565118asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535384295,"filename":"image_18082025_09_45_25_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/73b232b52e84789461d53af6bfac7003.jpg","text":"TemporaryFile(/tmp/multipartBody4036439014199919128asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535384295,"filename":"image_18082025_09_45_45_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/65f90c74b547fda7ad364ce1e749e11f.jpg","text":"TemporaryFile(/tmp/multipartBody7269446670722226639asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535384295,"filename":"image_18082025_09_46_04_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b4e56334f81301c482eaed502c5f4f9e.jpg","text":"TemporaryFile(/tmp/multipartBody8587696914968829959asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535384295,"filename":"image_18082025_09_45_34_9609.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377713152","file1":"1377713149","file0":"1377713146","file4":"1377713158","file5":"1377713161","file3":"1377713155"},"map_files_photo_id_array":[{"photo_id":"1377713161","filename":"file5"},{"photo_id":"1377713152","filename":"file2"},{"photo_id":"1377713158","filename":"file4"},{"photo_id":"1377713149","filename":"file1"},{"photo_id":"1377713146","filename":"file0"},{"photo_id":"1377713155","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377713152":["hashtag1","hashtag2"]},{"1377713146":["hashtag1","hashtag2"]},{"1377713161":["hashtag1","hashtag2"]},{"1377713155":["hashtag1","hashtag2"]},{"1377713149":["hashtag1","hashtag2"]},{"1377713158":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377713152, 1377713146, 1377713161, 1377713155, 1377713149, 1377713158)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.13479042053223 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:42:47.512383
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/42/image_18082025_18_42_44_9693.jpg', 2), ('/home/nano/Desktop/images/18082025/18/42/image_18082025_18_42_35_9766.jpg', 2), ('/home/nano/Desktop/images/18082025/18/42/image_18082025_18_42_25_9790.jpg', 2), ('/home/nano/Desktop/images/18082025/18/42/image_18082025_18_42_15_10763.jpg', 2), ('/home/nano/Desktop/images/18082025/18/41/image_18082025_18_42_04_9679.jpg', 2), ('/home/nano/Desktop/images/18082025/18/41/image_18082025_18_41_55_9836.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/42/image_18082025_18_42_44_9693.jpg', '/home/nano/Desktop/images/18082025/18/42/image_18082025_18_42_35_9766.jpg', '/home/nano/Desktop/images/18082025/18/42/image_18082025_18_42_25_9790.jpg', '/home/nano/Desktop/images/18082025/18/42/image_18082025_18_42_15_10763.jpg', '/home/nano/Desktop/images/18082025/18/41/image_18082025_18_42_04_9679.jpg', '/home/nano/Desktop/images/18082025/18/41/image_18082025_18_41_55_9836.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/42/image_18082025_18_42_44_9693.jpg
/home/nano/Desktop/images/18082025/18/42/image_18082025_18_42_35_9766.jpg
/home/nano/Desktop/images/18082025/18/42/image_18082025_18_42_25_9790.jpg
/home/nano/Desktop/images/18082025/18/42/image_18082025_18_42_15_10763.jpg
/home/nano/Desktop/images/18082025/18/41/image_18082025_18_42_04_9679.jpg
/home/nano/Desktop/images/18082025/18/41/image_18082025_18_41_55_9836.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377713172","1377713169","1377713180","1377713170","1377713173","1377713176"],"photo_ids_order":["1377713169","1377713170","1377713172","1377713173","1377713176","1377713180"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7c70e0229eb89dc282f8094eb6feb7fd.jpg","text":"TemporaryFile(/tmp/multipartBody7211286752999995782asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535429088,"filename":"image_18082025_18_42_25_9790.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f8b365dbe428165c5c79ba14e2a409d1.jpg","text":"TemporaryFile(/tmp/multipartBody7230133740250588322asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535429088,"filename":"image_18082025_18_42_44_9693.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1d298e62d6f25f3d11380b8feae8aed1.jpg","text":"TemporaryFile(/tmp/multipartBody4722713234285855685asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535429088,"filename":"image_18082025_18_41_55_9836.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b806736f48b5e3e6a959b02c0228c2cc.jpg","text":"TemporaryFile(/tmp/multipartBody1413558771822324169asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535429088,"filename":"image_18082025_18_42_35_9766.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a1c14ab66f0578be27ef057c2f785a97.jpg","text":"TemporaryFile(/tmp/multipartBody2972884755106604571asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535429088,"filename":"image_18082025_18_42_15_10763.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9e4edcabbf02419abe83d57b6491e41f.jpg","text":"TemporaryFile(/tmp/multipartBody6491594947134854675asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535429088,"filename":"image_18082025_18_42_04_9679.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377713172","file1":"1377713170","file0":"1377713169","file4":"1377713176","file5":"1377713180","file3":"1377713173"},"map_files_photo_id_array":[{"photo_id":"1377713180","filename":"file5"},{"photo_id":"1377713172","filename":"file2"},{"photo_id":"1377713176","filename":"file4"},{"photo_id":"1377713170","filename":"file1"},{"photo_id":"1377713169","filename":"file0"},{"photo_id":"1377713173","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377713172":["hashtag1","hashtag2"]},{"1377713169":["hashtag1","hashtag2"]},{"1377713180":["hashtag1","hashtag2"]},{"1377713170":["hashtag1","hashtag2"]},{"1377713173":["hashtag1","hashtag2"]},{"1377713176":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377713172, 1377713169, 1377713180, 1377713170, 1377713173, 1377713176)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.300068855285645 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:43:32.631548
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/43/image_18082025_18_43_44_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/18/43/image_18082025_18_43_35_9805.jpg', 2), ('/home/nano/Desktop/images/18082025/18/43/image_18082025_18_43_25_10685.jpg', 2), ('/home/nano/Desktop/images/18082025/18/43/image_18082025_18_43_14_9693.jpg', 2), ('/home/nano/Desktop/images/18082025/18/42/image_18082025_18_43_05_9799.jpg', 2), ('/home/nano/Desktop/images/18082025/18/42/image_18082025_18_42_55_10640.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/43/image_18082025_18_43_44_9637.jpg', '/home/nano/Desktop/images/18082025/18/43/image_18082025_18_43_35_9805.jpg', '/home/nano/Desktop/images/18082025/18/43/image_18082025_18_43_25_10685.jpg', '/home/nano/Desktop/images/18082025/18/43/image_18082025_18_43_14_9693.jpg', '/home/nano/Desktop/images/18082025/18/42/image_18082025_18_43_05_9799.jpg', '/home/nano/Desktop/images/18082025/18/42/image_18082025_18_42_55_10640.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/43/image_18082025_18_43_44_9637.jpg
/home/nano/Desktop/images/18082025/18/43/image_18082025_18_43_35_9805.jpg
/home/nano/Desktop/images/18082025/18/43/image_18082025_18_43_25_10685.jpg
/home/nano/Desktop/images/18082025/18/43/image_18082025_18_43_14_9693.jpg
/home/nano/Desktop/images/18082025/18/42/image_18082025_18_43_05_9799.jpg
/home/nano/Desktop/images/18082025/18/42/image_18082025_18_42_55_10640.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377713193","1377713196","1377713200","1377713202","1377713195","1377713198"],"photo_ids_order":["1377713193","1377713195","1377713196","1377713198","1377713200","1377713202"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/015675dd04e360a9fe7650ce065f3cd4.jpg","text":"TemporaryFile(/tmp/multipartBody4033823983274073948asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535474691,"filename":"image_18082025_18_43_44_9637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/48f9ef5aaa2da520f8e0dd502c54d118.jpg","text":"TemporaryFile(/tmp/multipartBody4967724820021065713asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535474691,"filename":"image_18082025_18_43_25_10685.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/de19a898c8ed9e32c90c0eeb4193bda8.jpg","text":"TemporaryFile(/tmp/multipartBody5241603120329999307asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535474691,"filename":"image_18082025_18_43_05_9799.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6ae2d7dadbcb1cb4887159876dd2ad7c.jpg","text":"TemporaryFile(/tmp/multipartBody5840872714393765503asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535474691,"filename":"image_18082025_18_42_55_10640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c415dd929cee83b1cb7b7e0942963fb2.jpg","text":"TemporaryFile(/tmp/multipartBody1589143420942373541asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535474691,"filename":"image_18082025_18_43_35_9805.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e5283d5118e07b9c91f9278709c9c4cb.jpg","text":"TemporaryFile(/tmp/multipartBody1727418836321145911asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535474691,"filename":"image_18082025_18_43_14_9693.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377713196","file1":"1377713195","file0":"1377713193","file4":"1377713200","file5":"1377713202","file3":"1377713198"},"map_files_photo_id_array":[{"photo_id":"1377713202","filename":"file5"},{"photo_id":"1377713196","filename":"file2"},{"photo_id":"1377713200","filename":"file4"},{"photo_id":"1377713195","filename":"file1"},{"photo_id":"1377713193","filename":"file0"},{"photo_id":"1377713198","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377713193":["hashtag1","hashtag2"]},{"1377713196":["hashtag1","hashtag2"]},{"1377713200":["hashtag1","hashtag2"]},{"1377713202":["hashtag1","hashtag2"]},{"1377713195":["hashtag1","hashtag2"]},{"1377713198":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377713193, 1377713196, 1377713200, 1377713202, 1377713195, 1377713198)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.17405390739441 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:44:17.718852
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/44/image_18082025_18_44_45_9778.jpg', 2), ('/home/nano/Desktop/images/18082025/18/44/image_18082025_18_44_35_10719.jpg', 2), ('/home/nano/Desktop/images/18082025/18/44/image_18082025_18_44_24_9710.jpg', 2), ('/home/nano/Desktop/images/18082025/18/44/image_18082025_18_44_15_9718.jpg', 2), ('/home/nano/Desktop/images/18082025/18/43/image_18082025_18_44_05_10723.jpg', 2), ('/home/nano/Desktop/images/18082025/18/43/image_18082025_18_43_54_9667.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/44/image_18082025_18_44_45_9778.jpg', '/home/nano/Desktop/images/18082025/18/44/image_18082025_18_44_35_10719.jpg', '/home/nano/Desktop/images/18082025/18/44/image_18082025_18_44_24_9710.jpg', '/home/nano/Desktop/images/18082025/18/44/image_18082025_18_44_15_9718.jpg', '/home/nano/Desktop/images/18082025/18/43/image_18082025_18_44_05_10723.jpg', '/home/nano/Desktop/images/18082025/18/43/image_18082025_18_43_54_9667.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/44/image_18082025_18_44_45_9778.jpg
/home/nano/Desktop/images/18082025/18/44/image_18082025_18_44_35_10719.jpg
/home/nano/Desktop/images/18082025/18/44/image_18082025_18_44_24_9710.jpg
/home/nano/Desktop/images/18082025/18/44/image_18082025_18_44_15_9718.jpg
/home/nano/Desktop/images/18082025/18/43/image_18082025_18_44_05_10723.jpg
/home/nano/Desktop/images/18082025/18/43/image_18082025_18_43_54_9667.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377713224","1377713218","1377713220","1377713222","1377713213","1377713215"],"photo_ids_order":["1377713213","1377713215","1377713218","1377713220","1377713222","1377713224"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2d19ca33acd513f1b4d90e3c4a11b869.jpg","text":"TemporaryFile(/tmp/multipartBody3707045615042280908asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535519510,"filename":"image_18082025_18_43_54_9667.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f43227814c1157d1d71e39510208bebd.jpg","text":"TemporaryFile(/tmp/multipartBody4964274281053094511asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535519510,"filename":"image_18082025_18_44_24_9710.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/94614d29d56a86446fbbc0c4e31a2e84.jpg","text":"TemporaryFile(/tmp/multipartBody1443203970087017621asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535519510,"filename":"image_18082025_18_44_15_9718.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3ae4a8567bacc42eb583b71e0d38c5b2.jpg","text":"TemporaryFile(/tmp/multipartBody2656285162107797342asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535519510,"filename":"image_18082025_18_44_05_10723.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9ebd636fbf35feb7d6e97bd1f53c27d7.jpg","text":"TemporaryFile(/tmp/multipartBody7686043815206390155asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535519510,"filename":"image_18082025_18_44_45_9778.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/214d3952710159d9db10f4cdb3f05d73.jpg","text":"TemporaryFile(/tmp/multipartBody6422860819130605181asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535519510,"filename":"image_18082025_18_44_35_10719.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377713218","file1":"1377713215","file0":"1377713213","file4":"1377713222","file5":"1377713224","file3":"1377713220"},"map_files_photo_id_array":[{"photo_id":"1377713224","filename":"file5"},{"photo_id":"1377713218","filename":"file2"},{"photo_id":"1377713222","filename":"file4"},{"photo_id":"1377713215","filename":"file1"},{"photo_id":"1377713213","filename":"file0"},{"photo_id":"1377713220","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377713224":["hashtag1","hashtag2"]},{"1377713218":["hashtag1","hashtag2"]},{"1377713220":["hashtag1","hashtag2"]},{"1377713222":["hashtag1","hashtag2"]},{"1377713213":["hashtag1","hashtag2"]},{"1377713215":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377713224, 1377713218, 1377713220, 1377713222, 1377713213, 1377713215)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.225406408309937 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:45:02.682349
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/45/image_18082025_09_45_15_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/09/44/image_18082025_09_45_04_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/09/44/image_18082025_09_44_55_10620.jpg', 2), ('/home/nano/Desktop/images/18082025/09/44/image_18082025_09_44_44_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/09/44/image_18082025_09_44_35_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/09/44/image_18082025_09_44_25_10639.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/45/image_18082025_09_45_15_10638.jpg', '/home/nano/Desktop/images/18082025/09/44/image_18082025_09_45_04_9620.jpg', '/home/nano/Desktop/images/18082025/09/44/image_18082025_09_44_55_10620.jpg', '/home/nano/Desktop/images/18082025/09/44/image_18082025_09_44_44_9612.jpg', '/home/nano/Desktop/images/18082025/09/44/image_18082025_09_44_35_9634.jpg', '/home/nano/Desktop/images/18082025/09/44/image_18082025_09_44_25_10639.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/45/image_18082025_09_45_15_10638.jpg
/home/nano/Desktop/images/18082025/09/44/image_18082025_09_45_04_9620.jpg
/home/nano/Desktop/images/18082025/09/44/image_18082025_09_44_55_10620.jpg
/home/nano/Desktop/images/18082025/09/44/image_18082025_09_44_44_9612.jpg
/home/nano/Desktop/images/18082025/09/44/image_18082025_09_44_35_9634.jpg
/home/nano/Desktop/images/18082025/09/44/image_18082025_09_44_25_10639.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377713238","1377713246","1377713231","1377713234","1377713227","1377713242"],"photo_ids_order":["1377713227","1377713231","1377713234","1377713238","1377713242","1377713246"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/215df1a32d4959d54e3e52e1ab95f9d9.jpg","text":"TemporaryFile(/tmp/multipartBody6752135853884086823asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535563899,"filename":"image_18082025_09_44_44_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/668e5129d9f8f98e6dba2aa0dc569c68.jpg","text":"TemporaryFile(/tmp/multipartBody3450348333633854310asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535563899,"filename":"image_18082025_09_44_25_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3772f5db0ce65e2f0136f0ba46d42864.jpg","text":"TemporaryFile(/tmp/multipartBody2107875553341704930asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535563899,"filename":"image_18082025_09_45_04_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/19e633d8f398148270e19460e6958ef3.jpg","text":"TemporaryFile(/tmp/multipartBody3219489948996242419asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535563899,"filename":"image_18082025_09_44_55_10620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b14a2e2a354c919c31944a747908a5ee.jpg","text":"TemporaryFile(/tmp/multipartBody2606295553385406704asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535563899,"filename":"image_18082025_09_45_15_10638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0e7e6beec7a8a33cc232b4edec5e751b.jpg","text":"TemporaryFile(/tmp/multipartBody7039048822777393689asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535563899,"filename":"image_18082025_09_44_35_9634.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377713234","file1":"1377713231","file0":"1377713227","file4":"1377713242","file5":"1377713246","file3":"1377713238"},"map_files_photo_id_array":[{"photo_id":"1377713246","filename":"file5"},{"photo_id":"1377713234","filename":"file2"},{"photo_id":"1377713242","filename":"file4"},{"photo_id":"1377713231","filename":"file1"},{"photo_id":"1377713227","filename":"file0"},{"photo_id":"1377713238","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377713238":["hashtag1","hashtag2"]},{"1377713246":["hashtag1","hashtag2"]},{"1377713231":["hashtag1","hashtag2"]},{"1377713234":["hashtag1","hashtag2"]},{"1377713227":["hashtag1","hashtag2"]},{"1377713242":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377713238, 1377713246, 1377713231, 1377713234, 1377713227, 1377713242)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.341357946395874 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:45:46.881517
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/45/image_18082025_18_45_45_10657.jpg', 2), ('/home/nano/Desktop/images/18082025/18/45/image_18082025_18_45_34_9739.jpg', 2), ('/home/nano/Desktop/images/18082025/18/45/image_18082025_18_45_25_9710.jpg', 2), ('/home/nano/Desktop/images/18082025/18/45/image_18082025_18_45_15_10689.jpg', 2), ('/home/nano/Desktop/images/18082025/18/44/image_18082025_18_45_04_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/18/44/image_18082025_18_44_54_9682.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/45/image_18082025_18_45_45_10657.jpg', '/home/nano/Desktop/images/18082025/18/45/image_18082025_18_45_34_9739.jpg', '/home/nano/Desktop/images/18082025/18/45/image_18082025_18_45_25_9710.jpg', '/home/nano/Desktop/images/18082025/18/45/image_18082025_18_45_15_10689.jpg', '/home/nano/Desktop/images/18082025/18/44/image_18082025_18_45_04_9667.jpg', '/home/nano/Desktop/images/18082025/18/44/image_18082025_18_44_54_9682.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/45/image_18082025_18_45_45_10657.jpg
/home/nano/Desktop/images/18082025/18/45/image_18082025_18_45_34_9739.jpg
/home/nano/Desktop/images/18082025/18/45/image_18082025_18_45_25_9710.jpg
/home/nano/Desktop/images/18082025/18/45/image_18082025_18_45_15_10689.jpg
/home/nano/Desktop/images/18082025/18/44/image_18082025_18_45_04_9667.jpg
/home/nano/Desktop/images/18082025/18/44/image_18082025_18_44_54_9682.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377713259","1377713261","1377713255","1377713264","1377713254","1377713257"],"photo_ids_order":["1377713254","1377713255","1377713257","1377713259","1377713261","1377713264"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5a450478b428997b53e80f5bd862d9f2.jpg","text":"TemporaryFile(/tmp/multipartBody6671579494342500153asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535608346,"filename":"image_18082025_18_45_15_10689.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1224ef426be7fb5705b5937c93e3bc64.jpg","text":"TemporaryFile(/tmp/multipartBody7442518117408570287asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535608346,"filename":"image_18082025_18_45_04_9667.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e71132011c30befa660c34d02a074fc7.jpg","text":"TemporaryFile(/tmp/multipartBody7401742324653992273asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535608346,"filename":"image_18082025_18_45_34_9739.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6d1dbd90087290db8ee416a313f2b9a1.jpg","text":"TemporaryFile(/tmp/multipartBody7164495818433164169asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535608346,"filename":"image_18082025_18_44_54_9682.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5777117f789b3b96f0a40114eb89408e.jpg","text":"TemporaryFile(/tmp/multipartBody1652256866481086236asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535608346,"filename":"image_18082025_18_45_45_10657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4980edc54d638336455ef7f964946ff2.jpg","text":"TemporaryFile(/tmp/multipartBody8950414374378992934asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535608346,"filename":"image_18082025_18_45_25_9710.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377713257","file1":"1377713255","file0":"1377713254","file4":"1377713261","file5":"1377713264","file3":"1377713259"},"map_files_photo_id_array":[{"photo_id":"1377713264","filename":"file5"},{"photo_id":"1377713257","filename":"file2"},{"photo_id":"1377713261","filename":"file4"},{"photo_id":"1377713255","filename":"file1"},{"photo_id":"1377713254","filename":"file0"},{"photo_id":"1377713259","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377713259":["hashtag1","hashtag2"]},{"1377713261":["hashtag1","hashtag2"]},{"1377713255":["hashtag1","hashtag2"]},{"1377713264":["hashtag1","hashtag2"]},{"1377713254":["hashtag1","hashtag2"]},{"1377713257":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377713259, 1377713261, 1377713255, 1377713264, 1377713254, 1377713257)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.95786428451538 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:46:31.960665
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/46/image_18082025_18_46_45_10701.jpg', 2), ('/home/nano/Desktop/images/18082025/18/46/image_18082025_18_46_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/18/46/image_18082025_18_46_25_9732.jpg', 2), ('/home/nano/Desktop/images/18082025/18/46/image_18082025_18_46_15_10737.jpg', 2), ('/home/nano/Desktop/images/18082025/18/45/image_18082025_18_46_04_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/18/45/image_18082025_18_45_55_9609.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/46/image_18082025_18_46_45_10701.jpg', '/home/nano/Desktop/images/18082025/18/46/image_18082025_18_46_34_9638.jpg', '/home/nano/Desktop/images/18082025/18/46/image_18082025_18_46_25_9732.jpg', '/home/nano/Desktop/images/18082025/18/46/image_18082025_18_46_15_10737.jpg', '/home/nano/Desktop/images/18082025/18/45/image_18082025_18_46_04_9659.jpg', '/home/nano/Desktop/images/18082025/18/45/image_18082025_18_45_55_9609.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/46/image_18082025_18_46_45_10701.jpg
/home/nano/Desktop/images/18082025/18/46/image_18082025_18_46_34_9638.jpg
/home/nano/Desktop/images/18082025/18/46/image_18082025_18_46_25_9732.jpg
/home/nano/Desktop/images/18082025/18/46/image_18082025_18_46_15_10737.jpg
/home/nano/Desktop/images/18082025/18/45/image_18082025_18_46_04_9659.jpg
/home/nano/Desktop/images/18082025/18/45/image_18082025_18_45_55_9609.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377713289","1377713280","1377713283","1377713286","1377713278","1377713275"],"photo_ids_order":["1377713275","1377713278","1377713280","1377713283","1377713286","1377713289"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/aa4820663f72a5a55c39dd9ba38cc419.jpg","text":"TemporaryFile(/tmp/multipartBody8954870743469508526asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535653488,"filename":"image_18082025_18_45_55_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/30d99c3a852ca8267a4ae51517877686.jpg","text":"TemporaryFile(/tmp/multipartBody6906735429263541796asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535653488,"filename":"image_18082025_18_46_25_9732.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/375bcf0ac034e83affd4b8045c5e2f03.jpg","text":"TemporaryFile(/tmp/multipartBody999333288831192470asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535653488,"filename":"image_18082025_18_46_15_10737.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/33b5b6c5232bf29df686ae45a852b400.jpg","text":"TemporaryFile(/tmp/multipartBody6817515176813918896asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535653488,"filename":"image_18082025_18_46_04_9659.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cd2af721bf4536e70c62893df2c7b99c.jpg","text":"TemporaryFile(/tmp/multipartBody1888821401311753834asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535653488,"filename":"image_18082025_18_46_34_9638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7045de4f9f198af0d565fed90b62c26b.jpg","text":"TemporaryFile(/tmp/multipartBody1555300642991448963asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535653488,"filename":"image_18082025_18_46_45_10701.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377713280","file1":"1377713278","file0":"1377713275","file4":"1377713286","file5":"1377713289","file3":"1377713283"},"map_files_photo_id_array":[{"photo_id":"1377713289","filename":"file5"},{"photo_id":"1377713280","filename":"file2"},{"photo_id":"1377713286","filename":"file4"},{"photo_id":"1377713278","filename":"file1"},{"photo_id":"1377713275","filename":"file0"},{"photo_id":"1377713283","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377713289":["hashtag1","hashtag2"]},{"1377713280":["hashtag1","hashtag2"]},{"1377713283":["hashtag1","hashtag2"]},{"1377713286":["hashtag1","hashtag2"]},{"1377713278":["hashtag1","hashtag2"]},{"1377713275":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377713289, 1377713280, 1377713283, 1377713286, 1377713278, 1377713275)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.470734357833862 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:47:17.091221
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/47/image_18082025_18_47_45_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/18/47/image_18082025_18_47_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/18/47/image_18082025_18_47_25_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/18/47/image_18082025_18_47_15_10704.jpg', 2), ('/home/nano/Desktop/images/18082025/18/46/image_18082025_18_47_04_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/18/46/image_18082025_18_46_55_9610.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/47/image_18082025_18_47_45_10642.jpg', '/home/nano/Desktop/images/18082025/18/47/image_18082025_18_47_34_9640.jpg', '/home/nano/Desktop/images/18082025/18/47/image_18082025_18_47_25_9658.jpg', '/home/nano/Desktop/images/18082025/18/47/image_18082025_18_47_15_10704.jpg', '/home/nano/Desktop/images/18082025/18/46/image_18082025_18_47_04_9626.jpg', '/home/nano/Desktop/images/18082025/18/46/image_18082025_18_46_55_9610.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/47/image_18082025_18_47_45_10642.jpg
/home/nano/Desktop/images/18082025/18/47/image_18082025_18_47_34_9640.jpg
/home/nano/Desktop/images/18082025/18/47/image_18082025_18_47_25_9658.jpg
/home/nano/Desktop/images/18082025/18/47/image_18082025_18_47_15_10704.jpg
/home/nano/Desktop/images/18082025/18/46/image_18082025_18_47_04_9626.jpg
/home/nano/Desktop/images/18082025/18/46/image_18082025_18_46_55_9610.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377713298","1377713310","1377713304","1377713303","1377713300","1377713308"],"photo_ids_order":["1377713298","1377713300","1377713303","1377713304","1377713308","1377713310"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4cfa45fef9e7871177b5276a1898b682.jpg","text":"TemporaryFile(/tmp/multipartBody5882761128861430885asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535698361,"filename":"image_18082025_18_47_45_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6a1a38b11554233eb4c3b37e534cdd25.jpg","text":"TemporaryFile(/tmp/multipartBody7091991611494735531asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535698361,"filename":"image_18082025_18_46_55_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0cfe9cf8eca5aad6530a4561959817fc.jpg","text":"TemporaryFile(/tmp/multipartBody1036065550489125080asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535698361,"filename":"image_18082025_18_47_15_10704.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9d91f45f64352d45bf2b1f7159752bf6.jpg","text":"TemporaryFile(/tmp/multipartBody2295498899826854807asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535698361,"filename":"image_18082025_18_47_25_9658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9bc25c4a56ac81eb08b89b63a86c6d62.jpg","text":"TemporaryFile(/tmp/multipartBody565060849700209488asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535698361,"filename":"image_18082025_18_47_34_9640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8f0509ddf5c6de3c6d5cbfe9b445a295.jpg","text":"TemporaryFile(/tmp/multipartBody8820962817255683167asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535698361,"filename":"image_18082025_18_47_04_9626.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377713303","file1":"1377713300","file0":"1377713298","file4":"1377713308","file5":"1377713310","file3":"1377713304"},"map_files_photo_id_array":[{"photo_id":"1377713310","filename":"file5"},{"photo_id":"1377713303","filename":"file2"},{"photo_id":"1377713308","filename":"file4"},{"photo_id":"1377713300","filename":"file1"},{"photo_id":"1377713298","filename":"file0"},{"photo_id":"1377713304","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377713298":["hashtag1","hashtag2"]},{"1377713310":["hashtag1","hashtag2"]},{"1377713304":["hashtag1","hashtag2"]},{"1377713303":["hashtag1","hashtag2"]},{"1377713300":["hashtag1","hashtag2"]},{"1377713308":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377713298, 1377713310, 1377713304, 1377713303, 1377713300, 1377713308)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.662101984024048 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:48:02.694584
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/44/image_18082025_09_44_14_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/09/43/image_18082025_09_44_05_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/09/43/image_18082025_09_43_55_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/09/43/image_18082025_09_43_44_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/09/43/image_18082025_09_43_35_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/09/43/image_18082025_09_43_24_9608.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/44/image_18082025_09_44_14_9648.jpg', '/home/nano/Desktop/images/18082025/09/43/image_18082025_09_44_05_9610.jpg', '/home/nano/Desktop/images/18082025/09/43/image_18082025_09_43_55_10625.jpg', '/home/nano/Desktop/images/18082025/09/43/image_18082025_09_43_44_9611.jpg', '/home/nano/Desktop/images/18082025/09/43/image_18082025_09_43_35_10624.jpg', '/home/nano/Desktop/images/18082025/09/43/image_18082025_09_43_24_9608.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/44/image_18082025_09_44_14_9648.jpg
/home/nano/Desktop/images/18082025/09/43/image_18082025_09_44_05_9610.jpg
/home/nano/Desktop/images/18082025/09/43/image_18082025_09_43_55_10625.jpg
/home/nano/Desktop/images/18082025/09/43/image_18082025_09_43_44_9611.jpg
/home/nano/Desktop/images/18082025/09/43/image_18082025_09_43_35_10624.jpg
/home/nano/Desktop/images/18082025/09/43/image_18082025_09_43_24_9608.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377713338","1377713331","1377713334","1377713336","1377713327","1377713341"],"photo_ids_order":["1377713327","1377713331","1377713334","1377713336","1377713338","1377713341"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/737b8f15d4dba8e9a7fda67e9b13f0e1.jpg","text":"TemporaryFile(/tmp/multipartBody4120529636662675983asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535743892,"filename":"image_18082025_09_43_35_10624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/98711882fdb1f98b404fb2ca6b8adc08.jpg","text":"TemporaryFile(/tmp/multipartBody6137625077649108240asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535743892,"filename":"image_18082025_09_44_05_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/74ad0274bddded2172b5b5c55a401051.jpg","text":"TemporaryFile(/tmp/multipartBody3505315677722436302asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535743892,"filename":"image_18082025_09_43_55_10625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5d8edbc024f03f8761d027ef3a3adad6.jpg","text":"TemporaryFile(/tmp/multipartBody3497721888141333702asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535743892,"filename":"image_18082025_09_43_44_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a2236c6fce25047ae92b188348947897.jpg","text":"TemporaryFile(/tmp/multipartBody185562780402938280asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535743892,"filename":"image_18082025_09_44_14_9648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/25f1954da1ff7426416cb72ecc441567.jpg","text":"TemporaryFile(/tmp/multipartBody583879020184457641asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535743892,"filename":"image_18082025_09_43_24_9608.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377713334","file1":"1377713331","file0":"1377713327","file4":"1377713338","file5":"1377713341","file3":"1377713336"},"map_files_photo_id_array":[{"photo_id":"1377713341","filename":"file5"},{"photo_id":"1377713334","filename":"file2"},{"photo_id":"1377713338","filename":"file4"},{"photo_id":"1377713331","filename":"file1"},{"photo_id":"1377713327","filename":"file0"},{"photo_id":"1377713336","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377713338":["hashtag1","hashtag2"]},{"1377713331":["hashtag1","hashtag2"]},{"1377713334":["hashtag1","hashtag2"]},{"1377713336":["hashtag1","hashtag2"]},{"1377713327":["hashtag1","hashtag2"]},{"1377713341":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377713338, 1377713331, 1377713334, 1377713336, 1377713327, 1377713341)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.449050426483154 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:48:47.169854
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/48/image_18082025_18_48_45_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/18/48/image_18082025_18_48_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/18/48/image_18082025_18_48_24_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/18/48/image_18082025_18_48_15_10701.jpg', 2), ('/home/nano/Desktop/images/18082025/18/47/image_18082025_18_48_04_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/18/47/image_18082025_18_47_55_9600.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/48/image_18082025_18_48_45_10621.jpg', '/home/nano/Desktop/images/18082025/18/48/image_18082025_18_48_34_9642.jpg', '/home/nano/Desktop/images/18082025/18/48/image_18082025_18_48_24_9609.jpg', '/home/nano/Desktop/images/18082025/18/48/image_18082025_18_48_15_10701.jpg', '/home/nano/Desktop/images/18082025/18/47/image_18082025_18_48_04_9624.jpg', '/home/nano/Desktop/images/18082025/18/47/image_18082025_18_47_55_9600.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/48/image_18082025_18_48_45_10621.jpg
/home/nano/Desktop/images/18082025/18/48/image_18082025_18_48_34_9642.jpg
/home/nano/Desktop/images/18082025/18/48/image_18082025_18_48_24_9609.jpg
/home/nano/Desktop/images/18082025/18/48/image_18082025_18_48_15_10701.jpg
/home/nano/Desktop/images/18082025/18/47/image_18082025_18_48_04_9624.jpg
/home/nano/Desktop/images/18082025/18/47/image_18082025_18_47_55_9600.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377713355","1377713358","1377713351","1377713362","1377713353","1377713356"],"photo_ids_order":["1377713351","1377713353","1377713355","1377713356","1377713358","1377713362"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c7a9c3d70decf1ed158bb5437616d2b8.jpg","text":"TemporaryFile(/tmp/multipartBody6110697939529104398asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535788448,"filename":"image_18082025_18_48_24_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8c12f12eb3af829c696372aa3046b2ab.jpg","text":"TemporaryFile(/tmp/multipartBody4164091244365345245asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535788448,"filename":"image_18082025_18_48_04_9624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/58b15e1987016c47511dd85fc3807730.jpg","text":"TemporaryFile(/tmp/multipartBody2622157981703830483asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535788448,"filename":"image_18082025_18_48_45_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/32cdcc743ce503805835a6c17bd4d2b1.jpg","text":"TemporaryFile(/tmp/multipartBody3333189310258461467asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535788448,"filename":"image_18082025_18_47_55_9600.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/821e2a3368fb9ca9b96419c2453a13c3.jpg","text":"TemporaryFile(/tmp/multipartBody3327286710547138162asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535788448,"filename":"image_18082025_18_48_34_9642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9dfecfc89b3e42e74f46298b24d61d9f.jpg","text":"TemporaryFile(/tmp/multipartBody8150765272600290488asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535788448,"filename":"image_18082025_18_48_15_10701.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377713355","file1":"1377713353","file0":"1377713351","file4":"1377713358","file5":"1377713362","file3":"1377713356"},"map_files_photo_id_array":[{"photo_id":"1377713362","filename":"file5"},{"photo_id":"1377713355","filename":"file2"},{"photo_id":"1377713358","filename":"file4"},{"photo_id":"1377713353","filename":"file1"},{"photo_id":"1377713351","filename":"file0"},{"photo_id":"1377713356","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377713355":["hashtag1","hashtag2"]},{"1377713358":["hashtag1","hashtag2"]},{"1377713351":["hashtag1","hashtag2"]},{"1377713362":["hashtag1","hashtag2"]},{"1377713353":["hashtag1","hashtag2"]},{"1377713356":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377713355, 1377713358, 1377713351, 1377713362, 1377713353, 1377713356)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.827603340148926 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:49:32.273907
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/49/image_18082025_18_49_44_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/18/49/image_18082025_18_49_35_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/18/49/image_18082025_18_49_24_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/18/49/image_18082025_18_49_15_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/18/48/image_18082025_18_49_05_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/18/48/image_18082025_18_48_54_9607.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/49/image_18082025_18_49_44_9619.jpg', '/home/nano/Desktop/images/18082025/18/49/image_18082025_18_49_35_10621.jpg', '/home/nano/Desktop/images/18082025/18/49/image_18082025_18_49_24_9614.jpg', '/home/nano/Desktop/images/18082025/18/49/image_18082025_18_49_15_9635.jpg', '/home/nano/Desktop/images/18082025/18/48/image_18082025_18_49_05_10624.jpg', '/home/nano/Desktop/images/18082025/18/48/image_18082025_18_48_54_9607.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/49/image_18082025_18_49_44_9619.jpg
/home/nano/Desktop/images/18082025/18/49/image_18082025_18_49_35_10621.jpg
/home/nano/Desktop/images/18082025/18/49/image_18082025_18_49_24_9614.jpg
/home/nano/Desktop/images/18082025/18/49/image_18082025_18_49_15_9635.jpg
/home/nano/Desktop/images/18082025/18/48/image_18082025_18_49_05_10624.jpg
/home/nano/Desktop/images/18082025/18/48/image_18082025_18_48_54_9607.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377713379","1377713396","1377713400","1377713381","1377713398","1377713383"],"photo_ids_order":["1377713379","1377713381","1377713383","1377713396","1377713398","1377713400"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1e16c07209e8b3dfc57bca3a43473fc1.jpg","text":"TemporaryFile(/tmp/multipartBody5564447106138315754asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535833466,"filename":"image_18082025_18_49_44_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9153334bcfed6ea83f0b4c4ce72a6b70.jpg","text":"TemporaryFile(/tmp/multipartBody321837219422791692asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535833466,"filename":"image_18082025_18_49_15_9635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/874e937b0ff1283ed2048c1fd30e837b.jpg","text":"TemporaryFile(/tmp/multipartBody2922870817704241491asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535833466,"filename":"image_18082025_18_48_54_9607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/61bb8dfc02d4ff642dd33bc13f4fa0dc.jpg","text":"TemporaryFile(/tmp/multipartBody2380285375012976972asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535833466,"filename":"image_18082025_18_49_35_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a4737e1de7f7b73c6b6c7e7bf5e11e51.jpg","text":"TemporaryFile(/tmp/multipartBody4400185435229010894asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535833466,"filename":"image_18082025_18_49_05_10624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/309f52b1ab8207e0575cb629a8f0e40c.jpg","text":"TemporaryFile(/tmp/multipartBody5567515426934773084asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535833466,"filename":"image_18082025_18_49_24_9614.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377713383","file1":"1377713381","file0":"1377713379","file4":"1377713398","file5":"1377713400","file3":"1377713396"},"map_files_photo_id_array":[{"photo_id":"1377713400","filename":"file5"},{"photo_id":"1377713383","filename":"file2"},{"photo_id":"1377713398","filename":"file4"},{"photo_id":"1377713381","filename":"file1"},{"photo_id":"1377713379","filename":"file0"},{"photo_id":"1377713396","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377713379":["hashtag1","hashtag2"]},{"1377713396":["hashtag1","hashtag2"]},{"1377713400":["hashtag1","hashtag2"]},{"1377713381":["hashtag1","hashtag2"]},{"1377713398":["hashtag1","hashtag2"]},{"1377713383":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377713379, 1377713396, 1377713400, 1377713381, 1377713398, 1377713383)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.28099870681763 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:50:17.417175
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/50/image_18082025_18_50_44_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/18/50/image_18082025_18_50_35_9681.jpg', 2), ('/home/nano/Desktop/images/18082025/18/50/image_18082025_18_50_25_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/18/50/image_18082025_18_50_14_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/18/49/image_18082025_18_50_05_10643.jpg', 2), ('/home/nano/Desktop/images/18082025/18/49/image_18082025_18_49_54_9621.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/50/image_18082025_18_50_44_9619.jpg', '/home/nano/Desktop/images/18082025/18/50/image_18082025_18_50_35_9681.jpg', '/home/nano/Desktop/images/18082025/18/50/image_18082025_18_50_25_10630.jpg', '/home/nano/Desktop/images/18082025/18/50/image_18082025_18_50_14_9655.jpg', '/home/nano/Desktop/images/18082025/18/49/image_18082025_18_50_05_10643.jpg', '/home/nano/Desktop/images/18082025/18/49/image_18082025_18_49_54_9621.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/50/image_18082025_18_50_44_9619.jpg
/home/nano/Desktop/images/18082025/18/50/image_18082025_18_50_35_9681.jpg
/home/nano/Desktop/images/18082025/18/50/image_18082025_18_50_25_10630.jpg
/home/nano/Desktop/images/18082025/18/50/image_18082025_18_50_14_9655.jpg
/home/nano/Desktop/images/18082025/18/49/image_18082025_18_50_05_10643.jpg
/home/nano/Desktop/images/18082025/18/49/image_18082025_18_49_54_9621.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377713422","1377713424","1377713420","1377713414","1377713423","1377713417"],"photo_ids_order":["1377713414","1377713417","1377713420","1377713422","1377713423","1377713424"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c58f44f7384507bc1b48ecc63af7658f.jpg","text":"TemporaryFile(/tmp/multipartBody3644167280223386306asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535878965,"filename":"image_18082025_18_50_14_9655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ccb95feaafed09e9ed20f2d2518c3980.jpg","text":"TemporaryFile(/tmp/multipartBody6418699415418415378asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535878965,"filename":"image_18082025_18_49_54_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2188621b58101cb59184708e7988c911.jpg","text":"TemporaryFile(/tmp/multipartBody1070663988484663573asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535878965,"filename":"image_18082025_18_50_25_10630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/192040a0a322c399b714dbcb29548f73.jpg","text":"TemporaryFile(/tmp/multipartBody2523459537826158667asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535878965,"filename":"image_18082025_18_50_44_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6890e9b1bf3c97c0a835c2c8a8a0732d.jpg","text":"TemporaryFile(/tmp/multipartBody6908424987234307722asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535878965,"filename":"image_18082025_18_50_05_10643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9aee6372ad551bc03a48a2a17f521312.jpg","text":"TemporaryFile(/tmp/multipartBody2462752476338463284asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535878965,"filename":"image_18082025_18_50_35_9681.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377713420","file1":"1377713417","file0":"1377713414","file4":"1377713423","file5":"1377713424","file3":"1377713422"},"map_files_photo_id_array":[{"photo_id":"1377713424","filename":"file5"},{"photo_id":"1377713420","filename":"file2"},{"photo_id":"1377713423","filename":"file4"},{"photo_id":"1377713417","filename":"file1"},{"photo_id":"1377713414","filename":"file0"},{"photo_id":"1377713422","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377713422":["hashtag1","hashtag2"]},{"1377713424":["hashtag1","hashtag2"]},{"1377713420":["hashtag1","hashtag2"]},{"1377713414":["hashtag1","hashtag2"]},{"1377713423":["hashtag1","hashtag2"]},{"1377713417":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377713422, 1377713424, 1377713420, 1377713414, 1377713423, 1377713417)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.146605014801025 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:51:03.090909
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/43/image_18082025_09_43_15_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/09/42/image_18082025_09_43_05_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/09/42/image_18082025_09_42_54_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/09/42/image_18082025_09_42_45_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/09/42/image_18082025_09_42_35_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/09/42/image_18082025_09_42_24_9613.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/43/image_18082025_09_43_15_9624.jpg', '/home/nano/Desktop/images/18082025/09/42/image_18082025_09_43_05_10628.jpg', '/home/nano/Desktop/images/18082025/09/42/image_18082025_09_42_54_9608.jpg', '/home/nano/Desktop/images/18082025/09/42/image_18082025_09_42_45_9612.jpg', '/home/nano/Desktop/images/18082025/09/42/image_18082025_09_42_35_10625.jpg', '/home/nano/Desktop/images/18082025/09/42/image_18082025_09_42_24_9613.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/43/image_18082025_09_43_15_9624.jpg
/home/nano/Desktop/images/18082025/09/42/image_18082025_09_43_05_10628.jpg
/home/nano/Desktop/images/18082025/09/42/image_18082025_09_42_54_9608.jpg
/home/nano/Desktop/images/18082025/09/42/image_18082025_09_42_45_9612.jpg
/home/nano/Desktop/images/18082025/09/42/image_18082025_09_42_35_10625.jpg
/home/nano/Desktop/images/18082025/09/42/image_18082025_09_42_24_9613.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377713442","1377713448","1377713435","1377713452","1377713446","1377713440"],"photo_ids_order":["1377713435","1377713440","1377713442","1377713446","1377713448","1377713452"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/70c1c9c697969c21fd6f4d96aeb07d10.jpg","text":"TemporaryFile(/tmp/multipartBody5667673717183875160asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535924319,"filename":"image_18082025_09_42_54_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/161973525d6921029196fe42988f7f17.jpg","text":"TemporaryFile(/tmp/multipartBody4187421271240212235asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535924319,"filename":"image_18082025_09_42_35_10625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3b39352d0a52b33b59be3b3c3935c2d4.jpg","text":"TemporaryFile(/tmp/multipartBody8551791856385408085asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535924319,"filename":"image_18082025_09_43_15_9624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d4ea2ba29b1bf783bd594893cd775985.jpg","text":"TemporaryFile(/tmp/multipartBody1829157040541519344asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535924319,"filename":"image_18082025_09_42_24_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8f6e6c356cf0f07291895da6f0456d59.jpg","text":"TemporaryFile(/tmp/multipartBody3338889357328526647asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535924319,"filename":"image_18082025_09_42_45_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5822f5f9ce4c14048c4353c8bf8b9d51.jpg","text":"TemporaryFile(/tmp/multipartBody3633985990807006523asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535924319,"filename":"image_18082025_09_43_05_10628.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377713442","file1":"1377713440","file0":"1377713435","file4":"1377713448","file5":"1377713452","file3":"1377713446"},"map_files_photo_id_array":[{"photo_id":"1377713452","filename":"file5"},{"photo_id":"1377713442","filename":"file2"},{"photo_id":"1377713448","filename":"file4"},{"photo_id":"1377713440","filename":"file1"},{"photo_id":"1377713435","filename":"file0"},{"photo_id":"1377713446","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377713442":["hashtag1","hashtag2"]},{"1377713448":["hashtag1","hashtag2"]},{"1377713435":["hashtag1","hashtag2"]},{"1377713452":["hashtag1","hashtag2"]},{"1377713446":["hashtag1","hashtag2"]},{"1377713440":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377713442, 1377713448, 1377713435, 1377713452, 1377713446, 1377713440)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.98648500442505 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:51:47.492125
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/51/image_18082025_18_51_45_10700.jpg', 2), ('/home/nano/Desktop/images/18082025/18/51/image_18082025_18_51_34_9731.jpg', 2), ('/home/nano/Desktop/images/18082025/18/51/image_18082025_18_51_25_9726.jpg', 2), ('/home/nano/Desktop/images/18082025/18/51/image_18082025_18_51_15_9775.jpg', 2), ('/home/nano/Desktop/images/18082025/18/50/image_18082025_18_51_05_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/18/50/image_18082025_18_50_54_10071.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/51/image_18082025_18_51_45_10700.jpg', '/home/nano/Desktop/images/18082025/18/51/image_18082025_18_51_34_9731.jpg', '/home/nano/Desktop/images/18082025/18/51/image_18082025_18_51_25_9726.jpg', '/home/nano/Desktop/images/18082025/18/51/image_18082025_18_51_15_9775.jpg', '/home/nano/Desktop/images/18082025/18/50/image_18082025_18_51_05_10638.jpg', '/home/nano/Desktop/images/18082025/18/50/image_18082025_18_50_54_10071.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/51/image_18082025_18_51_45_10700.jpg
/home/nano/Desktop/images/18082025/18/51/image_18082025_18_51_34_9731.jpg
/home/nano/Desktop/images/18082025/18/51/image_18082025_18_51_25_9726.jpg
/home/nano/Desktop/images/18082025/18/51/image_18082025_18_51_15_9775.jpg
/home/nano/Desktop/images/18082025/18/50/image_18082025_18_51_05_10638.jpg
/home/nano/Desktop/images/18082025/18/50/image_18082025_18_50_54_10071.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377713469","1377713463","1377713466","1377713465","1377713473","1377713467"],"photo_ids_order":["1377713463","1377713465","1377713466","1377713467","1377713469","1377713473"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dae054bacda39ee20701240d4251cfb6.jpg","text":"TemporaryFile(/tmp/multipartBody721666841860728902asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535969287,"filename":"image_18082025_18_51_05_10638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/334fd1ad3a081a8a17741e147681d012.jpg","text":"TemporaryFile(/tmp/multipartBody5891165768539563974asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535969287,"filename":"image_18082025_18_51_45_10700.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c616a64b6e142653c253421e2c748ac3.jpg","text":"TemporaryFile(/tmp/multipartBody9018354400068844772asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535969287,"filename":"image_18082025_18_51_25_9726.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9d007fbe761a1f516d411bad0b2d1b89.jpg","text":"TemporaryFile(/tmp/multipartBody5976469283419947214asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535969287,"filename":"image_18082025_18_51_34_9731.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d1bc5a02603f21989ef3a1c0ec1f8202.jpg","text":"TemporaryFile(/tmp/multipartBody4751327332736698374asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535969287,"filename":"image_18082025_18_50_54_10071.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f915ca23d162866844e5da52453826c0.jpg","text":"TemporaryFile(/tmp/multipartBody3139662021502571995asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755535969287,"filename":"image_18082025_18_51_15_9775.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377713466","file1":"1377713465","file0":"1377713463","file4":"1377713469","file5":"1377713473","file3":"1377713467"},"map_files_photo_id_array":[{"photo_id":"1377713473","filename":"file5"},{"photo_id":"1377713466","filename":"file2"},{"photo_id":"1377713469","filename":"file4"},{"photo_id":"1377713465","filename":"file1"},{"photo_id":"1377713463","filename":"file0"},{"photo_id":"1377713467","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377713469":["hashtag1","hashtag2"]},{"1377713463":["hashtag1","hashtag2"]},{"1377713466":["hashtag1","hashtag2"]},{"1377713465":["hashtag1","hashtag2"]},{"1377713473":["hashtag1","hashtag2"]},{"1377713467":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377713469, 1377713463, 1377713466, 1377713465, 1377713473, 1377713467)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.30717325210571 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:52:32.630070
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/52/image_18082025_18_52_45_10753.jpg', 2), ('/home/nano/Desktop/images/18082025/18/52/image_18082025_18_52_34_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/18/52/image_18082025_18_52_25_9726.jpg', 2), ('/home/nano/Desktop/images/18082025/18/52/image_18082025_18_52_15_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/18/51/image_18082025_18_52_04_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/18/51/image_18082025_18_51_55_9630.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/52/image_18082025_18_52_45_10753.jpg', '/home/nano/Desktop/images/18082025/18/52/image_18082025_18_52_34_9648.jpg', '/home/nano/Desktop/images/18082025/18/52/image_18082025_18_52_25_9726.jpg', '/home/nano/Desktop/images/18082025/18/52/image_18082025_18_52_15_10642.jpg', '/home/nano/Desktop/images/18082025/18/51/image_18082025_18_52_04_9661.jpg', '/home/nano/Desktop/images/18082025/18/51/image_18082025_18_51_55_9630.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/52/image_18082025_18_52_45_10753.jpg
/home/nano/Desktop/images/18082025/18/52/image_18082025_18_52_34_9648.jpg
/home/nano/Desktop/images/18082025/18/52/image_18082025_18_52_25_9726.jpg
/home/nano/Desktop/images/18082025/18/52/image_18082025_18_52_15_10642.jpg
/home/nano/Desktop/images/18082025/18/51/image_18082025_18_52_04_9661.jpg
/home/nano/Desktop/images/18082025/18/51/image_18082025_18_51_55_9630.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377713490","1377713493","1377713492","1377713486","1377713494","1377713488"],"photo_ids_order":["1377713486","1377713488","1377713490","1377713492","1377713493","1377713494"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c31644ef88bc77ef82b710751fd5ac91.jpg","text":"TemporaryFile(/tmp/multipartBody7090812248251213024asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536014522,"filename":"image_18082025_18_52_25_9726.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/98e4eacb67c1be37795994cb73c70795.jpg","text":"TemporaryFile(/tmp/multipartBody6279053801898298797asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536014522,"filename":"image_18082025_18_52_04_9661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/936ac53137dd966262e1b701fbed3bbb.jpg","text":"TemporaryFile(/tmp/multipartBody3921381346251071947asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536014522,"filename":"image_18082025_18_52_15_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4bbbbfdd6a2e5be6bc91c91033fad44b.jpg","text":"TemporaryFile(/tmp/multipartBody2392011506141295011asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536014522,"filename":"image_18082025_18_52_45_10753.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c9d55bf960bc96eb89e42a5e501bbf14.jpg","text":"TemporaryFile(/tmp/multipartBody6053542205346941830asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536014522,"filename":"image_18082025_18_51_55_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f7be1e57e23c3c85ca555783ca4fa664.jpg","text":"TemporaryFile(/tmp/multipartBody7832091204519820853asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536014522,"filename":"image_18082025_18_52_34_9648.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377713490","file1":"1377713488","file0":"1377713486","file4":"1377713493","file5":"1377713494","file3":"1377713492"},"map_files_photo_id_array":[{"photo_id":"1377713494","filename":"file5"},{"photo_id":"1377713490","filename":"file2"},{"photo_id":"1377713493","filename":"file4"},{"photo_id":"1377713488","filename":"file1"},{"photo_id":"1377713486","filename":"file0"},{"photo_id":"1377713492","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377713490":["hashtag1","hashtag2"]},{"1377713493":["hashtag1","hashtag2"]},{"1377713492":["hashtag1","hashtag2"]},{"1377713486":["hashtag1","hashtag2"]},{"1377713494":["hashtag1","hashtag2"]},{"1377713488":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377713490, 1377713493, 1377713492, 1377713486, 1377713494, 1377713488)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.16894340515137 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:53:17.711457
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/53/image_18082025_18_53_44_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/18/53/image_18082025_18_53_35_9696.jpg', 2), ('/home/nano/Desktop/images/18082025/18/53/image_18082025_18_53_25_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/18/53/image_18082025_18_53_14_9755.jpg', 2), ('/home/nano/Desktop/images/18082025/18/52/image_18082025_18_53_04_9694.jpg', 2), ('/home/nano/Desktop/images/18082025/18/52/image_18082025_18_52_55_9740.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/53/image_18082025_18_53_44_9626.jpg', '/home/nano/Desktop/images/18082025/18/53/image_18082025_18_53_35_9696.jpg', '/home/nano/Desktop/images/18082025/18/53/image_18082025_18_53_25_10663.jpg', '/home/nano/Desktop/images/18082025/18/53/image_18082025_18_53_14_9755.jpg', '/home/nano/Desktop/images/18082025/18/52/image_18082025_18_53_04_9694.jpg', '/home/nano/Desktop/images/18082025/18/52/image_18082025_18_52_55_9740.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/53/image_18082025_18_53_44_9626.jpg
/home/nano/Desktop/images/18082025/18/53/image_18082025_18_53_35_9696.jpg
/home/nano/Desktop/images/18082025/18/53/image_18082025_18_53_25_10663.jpg
/home/nano/Desktop/images/18082025/18/53/image_18082025_18_53_14_9755.jpg
/home/nano/Desktop/images/18082025/18/52/image_18082025_18_53_04_9694.jpg
/home/nano/Desktop/images/18082025/18/52/image_18082025_18_52_55_9740.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377713503","1377713517","1377713511","1377713514","1377713519","1377713507"],"photo_ids_order":["1377713503","1377713507","1377713511","1377713514","1377713517","1377713519"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/044a1d8da370de532f173db29af3f8c5.jpg","text":"TemporaryFile(/tmp/multipartBody8960189501274493732asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536059205,"filename":"image_18082025_18_53_44_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/89dfe657314f999a2872836606e47305.jpg","text":"TemporaryFile(/tmp/multipartBody3476776890049528590asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536059205,"filename":"image_18082025_18_53_04_9694.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/76a88babead7bfa69639973d9e11d528.jpg","text":"TemporaryFile(/tmp/multipartBody8941077605561488651asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536059205,"filename":"image_18082025_18_53_25_10663.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cbe26caddfa67a077053ace3895479e5.jpg","text":"TemporaryFile(/tmp/multipartBody7944032180879153711asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536059205,"filename":"image_18082025_18_53_14_9755.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2925ae1d292f2fd6cfde2f972ad9b5d8.jpg","text":"TemporaryFile(/tmp/multipartBody1265514624839541496asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536059205,"filename":"image_18082025_18_52_55_9740.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/085ea1dc6f8e8484076175c9ce6dceaa.jpg","text":"TemporaryFile(/tmp/multipartBody5328838235446751174asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536059205,"filename":"image_18082025_18_53_35_9696.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377713511","file1":"1377713507","file0":"1377713503","file4":"1377713517","file5":"1377713519","file3":"1377713514"},"map_files_photo_id_array":[{"photo_id":"1377713519","filename":"file5"},{"photo_id":"1377713511","filename":"file2"},{"photo_id":"1377713517","filename":"file4"},{"photo_id":"1377713507","filename":"file1"},{"photo_id":"1377713503","filename":"file0"},{"photo_id":"1377713514","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377713503":["hashtag1","hashtag2"]},{"1377713517":["hashtag1","hashtag2"]},{"1377713511":["hashtag1","hashtag2"]},{"1377713514":["hashtag1","hashtag2"]},{"1377713519":["hashtag1","hashtag2"]},{"1377713507":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377713503, 1377713517, 1377713511, 1377713514, 1377713519, 1377713507)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.98793387413025 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:54:02.639036
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/42/image_18082025_09_42_15_10676.jpg', 2), ('/home/nano/Desktop/images/18082025/09/41/image_18082025_09_42_04_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/09/41/image_18082025_09_41_54_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/09/41/image_18082025_09_41_45_10622.jpg', 2), ('/home/nano/Desktop/images/18082025/09/41/image_18082025_09_41_34_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/09/41/image_18082025_09_41_25_9624.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/42/image_18082025_09_42_15_10676.jpg', '/home/nano/Desktop/images/18082025/09/41/image_18082025_09_42_04_9657.jpg', '/home/nano/Desktop/images/18082025/09/41/image_18082025_09_41_54_9627.jpg', '/home/nano/Desktop/images/18082025/09/41/image_18082025_09_41_45_10622.jpg', '/home/nano/Desktop/images/18082025/09/41/image_18082025_09_41_34_9621.jpg', '/home/nano/Desktop/images/18082025/09/41/image_18082025_09_41_25_9624.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/42/image_18082025_09_42_15_10676.jpg
/home/nano/Desktop/images/18082025/09/41/image_18082025_09_42_04_9657.jpg
/home/nano/Desktop/images/18082025/09/41/image_18082025_09_41_54_9627.jpg
/home/nano/Desktop/images/18082025/09/41/image_18082025_09_41_45_10622.jpg
/home/nano/Desktop/images/18082025/09/41/image_18082025_09_41_34_9621.jpg
/home/nano/Desktop/images/18082025/09/41/image_18082025_09_41_25_9624.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377713535","1377713531","1377713528","1377713525","1377713530","1377713533"],"photo_ids_order":["1377713525","1377713528","1377713530","1377713531","1377713533","1377713535"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/069a617afcd415ca65ff9b84ecaf42c6.jpg","text":"TemporaryFile(/tmp/multipartBody640250756684993951asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536103871,"filename":"image_18082025_09_41_25_9624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2d3d6dd8e0f3f4db6c80107ab63c1d80.jpg","text":"TemporaryFile(/tmp/multipartBody8940203943110090097asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536103871,"filename":"image_18082025_09_41_45_10622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/35a6399a92d944d664d08ce9fafe2871.jpg","text":"TemporaryFile(/tmp/multipartBody7172851825500754819asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536103871,"filename":"image_18082025_09_42_04_9657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c65fedb0d4da9662f1575d0f23161250.jpg","text":"TemporaryFile(/tmp/multipartBody7687016707606427409asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536103871,"filename":"image_18082025_09_42_15_10676.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c27719f6e60a926b55b4b2ca549bebab.jpg","text":"TemporaryFile(/tmp/multipartBody9077741157388745133asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536103871,"filename":"image_18082025_09_41_54_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6707e75389bf165071275a3fa41f2508.jpg","text":"TemporaryFile(/tmp/multipartBody2247484796399427268asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536103871,"filename":"image_18082025_09_41_34_9621.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377713530","file1":"1377713528","file0":"1377713525","file4":"1377713533","file5":"1377713535","file3":"1377713531"},"map_files_photo_id_array":[{"photo_id":"1377713535","filename":"file5"},{"photo_id":"1377713530","filename":"file2"},{"photo_id":"1377713533","filename":"file4"},{"photo_id":"1377713528","filename":"file1"},{"photo_id":"1377713525","filename":"file0"},{"photo_id":"1377713531","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377713535":["hashtag1","hashtag2"]},{"1377713531":["hashtag1","hashtag2"]},{"1377713528":["hashtag1","hashtag2"]},{"1377713525":["hashtag1","hashtag2"]},{"1377713530":["hashtag1","hashtag2"]},{"1377713533":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377713535, 1377713531, 1377713528, 1377713525, 1377713530, 1377713533)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.59898805618286 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:54:46.849621
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/54/image_18082025_18_54_45_9731.jpg', 2), ('/home/nano/Desktop/images/18082025/18/54/image_18082025_18_54_35_10620.jpg', 2), ('/home/nano/Desktop/images/18082025/18/54/image_18082025_18_54_24_9752.jpg', 2), ('/home/nano/Desktop/images/18082025/18/54/image_18082025_18_54_14_9777.jpg', 2), ('/home/nano/Desktop/images/18082025/18/53/image_18082025_18_54_05_9774.jpg', 2), ('/home/nano/Desktop/images/18082025/18/53/image_18082025_18_53_55_10768.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/54/image_18082025_18_54_45_9731.jpg', '/home/nano/Desktop/images/18082025/18/54/image_18082025_18_54_35_10620.jpg', '/home/nano/Desktop/images/18082025/18/54/image_18082025_18_54_24_9752.jpg', '/home/nano/Desktop/images/18082025/18/54/image_18082025_18_54_14_9777.jpg', '/home/nano/Desktop/images/18082025/18/53/image_18082025_18_54_05_9774.jpg', '/home/nano/Desktop/images/18082025/18/53/image_18082025_18_53_55_10768.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/54/image_18082025_18_54_45_9731.jpg
/home/nano/Desktop/images/18082025/18/54/image_18082025_18_54_35_10620.jpg
/home/nano/Desktop/images/18082025/18/54/image_18082025_18_54_24_9752.jpg
/home/nano/Desktop/images/18082025/18/54/image_18082025_18_54_14_9777.jpg
/home/nano/Desktop/images/18082025/18/53/image_18082025_18_54_05_9774.jpg
/home/nano/Desktop/images/18082025/18/53/image_18082025_18_53_55_10768.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377713550","1377713552","1377713546","1377713557","1377713554","1377713548"],"photo_ids_order":["1377713546","1377713548","1377713550","1377713552","1377713554","1377713557"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/989d623509db63996c85a90973a8fd08.jpg","text":"TemporaryFile(/tmp/multipartBody7345372678891593269asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536148592,"filename":"image_18082025_18_54_24_9752.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c73b9ca4460207608276d6e5e2c15a30.jpg","text":"TemporaryFile(/tmp/multipartBody3086975235949231297asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536148592,"filename":"image_18082025_18_54_14_9777.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e1cb2b82ab492bffe0cb5fc82166a8be.jpg","text":"TemporaryFile(/tmp/multipartBody4442874173737046082asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536148592,"filename":"image_18082025_18_54_45_9731.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ad193953f0f8e23e183e5d408080c786.jpg","text":"TemporaryFile(/tmp/multipartBody948576023286543752asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536148592,"filename":"image_18082025_18_53_55_10768.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b1a9a05004fb78bd8725cc20fbe30a63.jpg","text":"TemporaryFile(/tmp/multipartBody3442827834182038086asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536148592,"filename":"image_18082025_18_54_05_9774.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ddfd6cdbd8db583d97c85c43616bd050.jpg","text":"TemporaryFile(/tmp/multipartBody1081731424790306726asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536148592,"filename":"image_18082025_18_54_35_10620.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377713550","file1":"1377713548","file0":"1377713546","file4":"1377713554","file5":"1377713557","file3":"1377713552"},"map_files_photo_id_array":[{"photo_id":"1377713557","filename":"file5"},{"photo_id":"1377713550","filename":"file2"},{"photo_id":"1377713554","filename":"file4"},{"photo_id":"1377713548","filename":"file1"},{"photo_id":"1377713546","filename":"file0"},{"photo_id":"1377713552","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377713550":["hashtag1","hashtag2"]},{"1377713552":["hashtag1","hashtag2"]},{"1377713546":["hashtag1","hashtag2"]},{"1377713557":["hashtag1","hashtag2"]},{"1377713554":["hashtag1","hashtag2"]},{"1377713548":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377713550, 1377713552, 1377713546, 1377713557, 1377713554, 1377713548)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.400402784347534 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:55:31.953978
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/55/image_18082025_18_55_44_9601.jpg', 2), ('/home/nano/Desktop/images/18082025/18/55/image_18082025_18_55_35_10612.jpg', 2), ('/home/nano/Desktop/images/18082025/18/55/image_18082025_18_55_24_9602.jpg', 2), ('/home/nano/Desktop/images/18082025/18/55/image_18082025_18_55_15_9734.jpg', 2), ('/home/nano/Desktop/images/18082025/18/54/image_18082025_18_55_05_10615.jpg', 2), ('/home/nano/Desktop/images/18082025/18/54/image_18082025_18_54_54_9651.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/55/image_18082025_18_55_44_9601.jpg', '/home/nano/Desktop/images/18082025/18/55/image_18082025_18_55_35_10612.jpg', '/home/nano/Desktop/images/18082025/18/55/image_18082025_18_55_24_9602.jpg', '/home/nano/Desktop/images/18082025/18/55/image_18082025_18_55_15_9734.jpg', '/home/nano/Desktop/images/18082025/18/54/image_18082025_18_55_05_10615.jpg', '/home/nano/Desktop/images/18082025/18/54/image_18082025_18_54_54_9651.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/55/image_18082025_18_55_44_9601.jpg
/home/nano/Desktop/images/18082025/18/55/image_18082025_18_55_35_10612.jpg
/home/nano/Desktop/images/18082025/18/55/image_18082025_18_55_24_9602.jpg
/home/nano/Desktop/images/18082025/18/55/image_18082025_18_55_15_9734.jpg
/home/nano/Desktop/images/18082025/18/54/image_18082025_18_55_05_10615.jpg
/home/nano/Desktop/images/18082025/18/54/image_18082025_18_54_54_9651.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377713582","1377713576","1377713579","1377713567","1377713569","1377713572"],"photo_ids_order":["1377713567","1377713569","1377713572","1377713576","1377713579","1377713582"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/89ca525d00aed8be5f56ca2fe27f14a7.jpg","text":"TemporaryFile(/tmp/multipartBody3267154137319933755asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536193385,"filename":"image_18082025_18_54_54_9651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b377726604e1ff487017da93f5a80cea.jpg","text":"TemporaryFile(/tmp/multipartBody3851261230396980471asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536193385,"filename":"image_18082025_18_55_15_9734.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d0da6f533e8bc4f24c77e220df7cb341.jpg","text":"TemporaryFile(/tmp/multipartBody6091373276199201328asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536193385,"filename":"image_18082025_18_55_05_10615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e6704e79a18e0b6d1a1a0d679bddb70e.jpg","text":"TemporaryFile(/tmp/multipartBody5176110218499056321asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536193385,"filename":"image_18082025_18_55_44_9601.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/732e1a0eab8943ecf766d7d832a3742b.jpg","text":"TemporaryFile(/tmp/multipartBody5682007439856116603asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536193385,"filename":"image_18082025_18_55_35_10612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4991c4e2f3ff7ca499abadb5f282d32c.jpg","text":"TemporaryFile(/tmp/multipartBody5332792189446114078asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536193385,"filename":"image_18082025_18_55_24_9602.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377713572","file1":"1377713569","file0":"1377713567","file4":"1377713579","file5":"1377713582","file3":"1377713576"},"map_files_photo_id_array":[{"photo_id":"1377713582","filename":"file5"},{"photo_id":"1377713572","filename":"file2"},{"photo_id":"1377713579","filename":"file4"},{"photo_id":"1377713569","filename":"file1"},{"photo_id":"1377713567","filename":"file0"},{"photo_id":"1377713576","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377713582":["hashtag1","hashtag2"]},{"1377713576":["hashtag1","hashtag2"]},{"1377713579":["hashtag1","hashtag2"]},{"1377713567":["hashtag1","hashtag2"]},{"1377713569":["hashtag1","hashtag2"]},{"1377713572":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377713582, 1377713576, 1377713579, 1377713567, 1377713569, 1377713572)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.654406309127808 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:56:17.059278
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/56/image_18082025_18_56_44_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/18/56/image_18082025_18_56_35_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/18/56/image_18082025_18_56_25_10619.jpg', 2), ('/home/nano/Desktop/images/18082025/18/56/image_18082025_18_56_14_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/18/55/image_18082025_18_56_05_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/18/55/image_18082025_18_55_55_10628.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/56/image_18082025_18_56_44_9608.jpg', '/home/nano/Desktop/images/18082025/18/56/image_18082025_18_56_35_9611.jpg', '/home/nano/Desktop/images/18082025/18/56/image_18082025_18_56_25_10619.jpg', '/home/nano/Desktop/images/18082025/18/56/image_18082025_18_56_14_9640.jpg', '/home/nano/Desktop/images/18082025/18/55/image_18082025_18_56_05_9615.jpg', '/home/nano/Desktop/images/18082025/18/55/image_18082025_18_55_55_10628.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/56/image_18082025_18_56_44_9608.jpg
/home/nano/Desktop/images/18082025/18/56/image_18082025_18_56_35_9611.jpg
/home/nano/Desktop/images/18082025/18/56/image_18082025_18_56_25_10619.jpg
/home/nano/Desktop/images/18082025/18/56/image_18082025_18_56_14_9640.jpg
/home/nano/Desktop/images/18082025/18/55/image_18082025_18_56_05_9615.jpg
/home/nano/Desktop/images/18082025/18/55/image_18082025_18_55_55_10628.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377713602","1377713595","1377713610","1377713597","1377713599","1377713606"],"photo_ids_order":["1377713595","1377713597","1377713599","1377713602","1377713606","1377713610"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/33b1a4af399930e379cfa6ed34ed170f.jpg","text":"TemporaryFile(/tmp/multipartBody1157578688921259328asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536238357,"filename":"image_18082025_18_56_14_9640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2267ac6d223d555d8470c08146de4d85.jpg","text":"TemporaryFile(/tmp/multipartBody9018559315531631538asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536238357,"filename":"image_18082025_18_56_44_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0be4b9f04dda24b0954c9e6dff2aea34.jpg","text":"TemporaryFile(/tmp/multipartBody2807275966972969992asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536238357,"filename":"image_18082025_18_55_55_10628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/30c5a873a76b8dcd2ec9fce5f49aa209.jpg","text":"TemporaryFile(/tmp/multipartBody2438740370898415385asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536238357,"filename":"image_18082025_18_56_35_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7da5b420402579867361c0f03349ea8f.jpg","text":"TemporaryFile(/tmp/multipartBody4506036261861816816asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536238357,"filename":"image_18082025_18_56_25_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/de0e09fae9ae8117e45e4f19740f2d96.jpg","text":"TemporaryFile(/tmp/multipartBody8724637714835361130asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536238357,"filename":"image_18082025_18_56_05_9615.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377713599","file1":"1377713597","file0":"1377713595","file4":"1377713606","file5":"1377713610","file3":"1377713602"},"map_files_photo_id_array":[{"photo_id":"1377713610","filename":"file5"},{"photo_id":"1377713599","filename":"file2"},{"photo_id":"1377713606","filename":"file4"},{"photo_id":"1377713597","filename":"file1"},{"photo_id":"1377713595","filename":"file0"},{"photo_id":"1377713602","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377713602":["hashtag1","hashtag2"]},{"1377713595":["hashtag1","hashtag2"]},{"1377713610":["hashtag1","hashtag2"]},{"1377713597":["hashtag1","hashtag2"]},{"1377713599":["hashtag1","hashtag2"]},{"1377713606":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377713602, 1377713595, 1377713610, 1377713597, 1377713599, 1377713606)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.812485218048096 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:57:02.818320
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/41/image_18082025_09_41_15_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/09/40/image_18082025_09_41_04_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/09/40/image_18082025_09_40_55_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/09/40/image_18082025_09_40_45_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/09/40/image_18082025_09_40_34_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/09/40/image_18082025_09_40_25_10625.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/41/image_18082025_09_41_15_10651.jpg', '/home/nano/Desktop/images/18082025/09/40/image_18082025_09_41_04_9634.jpg', '/home/nano/Desktop/images/18082025/09/40/image_18082025_09_40_55_9641.jpg', '/home/nano/Desktop/images/18082025/09/40/image_18082025_09_40_45_10625.jpg', '/home/nano/Desktop/images/18082025/09/40/image_18082025_09_40_34_9638.jpg', '/home/nano/Desktop/images/18082025/09/40/image_18082025_09_40_25_10625.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/41/image_18082025_09_41_15_10651.jpg
/home/nano/Desktop/images/18082025/09/40/image_18082025_09_41_04_9634.jpg
/home/nano/Desktop/images/18082025/09/40/image_18082025_09_40_55_9641.jpg
/home/nano/Desktop/images/18082025/09/40/image_18082025_09_40_45_10625.jpg
/home/nano/Desktop/images/18082025/09/40/image_18082025_09_40_34_9638.jpg
/home/nano/Desktop/images/18082025/09/40/image_18082025_09_40_25_10625.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377713628","1377713625","1377713630","1377713633","1377713636","1377713621"],"photo_ids_order":["1377713621","1377713625","1377713628","1377713630","1377713633","1377713636"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ae0b242b03b4e7940aa9714c40119626.jpg","text":"TemporaryFile(/tmp/multipartBody8687222410518989957asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536284239,"filename":"image_18082025_09_40_55_9641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/32d8734de49096d2641586ed05bbf439.jpg","text":"TemporaryFile(/tmp/multipartBody6473020623751315521asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536284239,"filename":"image_18082025_09_41_04_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a0566f69515f9336d06d101ca64df4eb.jpg","text":"TemporaryFile(/tmp/multipartBody7247965233756073529asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536284239,"filename":"image_18082025_09_40_45_10625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a7e4580ab0231142ba18a87630d19f32.jpg","text":"TemporaryFile(/tmp/multipartBody4271333444896431388asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536284239,"filename":"image_18082025_09_40_34_9638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bfb95fbb5757aad127b80221ddb407f4.jpg","text":"TemporaryFile(/tmp/multipartBody5110957272351623137asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536284239,"filename":"image_18082025_09_40_25_10625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8afb2f5f53c38a8d1bb92bd1c2c363d9.jpg","text":"TemporaryFile(/tmp/multipartBody169604329372833033asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536284239,"filename":"image_18082025_09_41_15_10651.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377713628","file1":"1377713625","file0":"1377713621","file4":"1377713633","file5":"1377713636","file3":"1377713630"},"map_files_photo_id_array":[{"photo_id":"1377713636","filename":"file5"},{"photo_id":"1377713628","filename":"file2"},{"photo_id":"1377713633","filename":"file4"},{"photo_id":"1377713625","filename":"file1"},{"photo_id":"1377713621","filename":"file0"},{"photo_id":"1377713630","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377713628":["hashtag1","hashtag2"]},{"1377713625":["hashtag1","hashtag2"]},{"1377713630":["hashtag1","hashtag2"]},{"1377713633":["hashtag1","hashtag2"]},{"1377713636":["hashtag1","hashtag2"]},{"1377713621":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377713628, 1377713625, 1377713630, 1377713633, 1377713636, 1377713621)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.626456260681152 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:57:47.268562
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/57/image_18082025_18_57_45_10613.jpg', 2), ('/home/nano/Desktop/images/18082025/18/57/image_18082025_18_57_34_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/18/57/image_18082025_18_57_25_9604.jpg', 2), ('/home/nano/Desktop/images/18082025/18/57/image_18082025_18_57_15_10670.jpg', 2), ('/home/nano/Desktop/images/18082025/18/56/image_18082025_18_57_04_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/18/56/image_18082025_18_56_55_10614.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/57/image_18082025_18_57_45_10613.jpg', '/home/nano/Desktop/images/18082025/18/57/image_18082025_18_57_34_9610.jpg', '/home/nano/Desktop/images/18082025/18/57/image_18082025_18_57_25_9604.jpg', '/home/nano/Desktop/images/18082025/18/57/image_18082025_18_57_15_10670.jpg', '/home/nano/Desktop/images/18082025/18/56/image_18082025_18_57_04_9608.jpg', '/home/nano/Desktop/images/18082025/18/56/image_18082025_18_56_55_10614.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/57/image_18082025_18_57_45_10613.jpg
/home/nano/Desktop/images/18082025/18/57/image_18082025_18_57_34_9610.jpg
/home/nano/Desktop/images/18082025/18/57/image_18082025_18_57_25_9604.jpg
/home/nano/Desktop/images/18082025/18/57/image_18082025_18_57_15_10670.jpg
/home/nano/Desktop/images/18082025/18/56/image_18082025_18_57_04_9608.jpg
/home/nano/Desktop/images/18082025/18/56/image_18082025_18_56_55_10614.jpg
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:59:03.476574
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/57/image_18082025_18_57_45_10613.jpg', 2), ('/home/nano/Desktop/images/18082025/18/57/image_18082025_18_57_34_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/18/57/image_18082025_18_57_25_9604.jpg', 2), ('/home/nano/Desktop/images/18082025/18/57/image_18082025_18_57_15_10670.jpg', 2), ('/home/nano/Desktop/images/18082025/18/56/image_18082025_18_57_04_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/18/56/image_18082025_18_56_55_10614.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/57/image_18082025_18_57_45_10613.jpg', '/home/nano/Desktop/images/18082025/18/57/image_18082025_18_57_34_9610.jpg', '/home/nano/Desktop/images/18082025/18/57/image_18082025_18_57_25_9604.jpg', '/home/nano/Desktop/images/18082025/18/57/image_18082025_18_57_15_10670.jpg', '/home/nano/Desktop/images/18082025/18/56/image_18082025_18_57_04_9608.jpg', '/home/nano/Desktop/images/18082025/18/56/image_18082025_18_56_55_10614.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/57/image_18082025_18_57_45_10613.jpg
/home/nano/Desktop/images/18082025/18/57/image_18082025_18_57_34_9610.jpg
/home/nano/Desktop/images/18082025/18/57/image_18082025_18_57_25_9604.jpg
/home/nano/Desktop/images/18082025/18/57/image_18082025_18_57_15_10670.jpg
/home/nano/Desktop/images/18082025/18/56/image_18082025_18_57_04_9608.jpg
/home/nano/Desktop/images/18082025/18/56/image_18082025_18_56_55_10614.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377713670","1377713673","1377713676","1377713661","1377713657","1377713666"],"photo_ids_order":["1377713657","1377713661","1377713666","1377713670","1377713673","1377713676"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/897c6fb238fdbaa7b487dbcaa8fc49fe.jpg","text":"TemporaryFile(/tmp/multipartBody2294204517726316233asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536404724,"filename":"image_18082025_18_57_15_10670.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/09f775292a76b1c4ea89c1c1a5a63d40.jpg","text":"TemporaryFile(/tmp/multipartBody3051799369796854075asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536404724,"filename":"image_18082025_18_57_04_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/19fc29b6344ef8260ca3dbf2c8be6cf0.jpg","text":"TemporaryFile(/tmp/multipartBody125904748135840456asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536404724,"filename":"image_18082025_18_56_55_10614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/975ea899c21fca7605818e2718b70914.jpg","text":"TemporaryFile(/tmp/multipartBody6857871353772579112asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536404724,"filename":"image_18082025_18_57_34_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dd0c8a8ba8c3b73e056d4d169f1d1fdd.jpg","text":"TemporaryFile(/tmp/multipartBody3317029241865024248asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536404724,"filename":"image_18082025_18_57_45_10613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e3c0e117d1af37979fec120705e78599.jpg","text":"TemporaryFile(/tmp/multipartBody2490743925493597928asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536404724,"filename":"image_18082025_18_57_25_9604.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377713666","file1":"1377713661","file0":"1377713657","file4":"1377713673","file5":"1377713676","file3":"1377713670"},"map_files_photo_id_array":[{"photo_id":"1377713676","filename":"file5"},{"photo_id":"1377713666","filename":"file2"},{"photo_id":"1377713673","filename":"file4"},{"photo_id":"1377713661","filename":"file1"},{"photo_id":"1377713657","filename":"file0"},{"photo_id":"1377713670","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377713670":["hashtag1","hashtag2"]},{"1377713673":["hashtag1","hashtag2"]},{"1377713676":["hashtag1","hashtag2"]},{"1377713661":["hashtag1","hashtag2"]},{"1377713657":["hashtag1","hashtag2"]},{"1377713666":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377713670, 1377713673, 1377713676, 1377713661, 1377713657, 1377713666)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.82162523269653 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 18:59:47.473657
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/59/image_18082025_18_59_44_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/18/59/image_18082025_18_59_35_10615.jpg', 2), ('/home/nano/Desktop/images/18082025/18/59/image_18082025_18_59_24_9599.jpg', 2), ('/home/nano/Desktop/images/18082025/18/59/image_18082025_18_59_14_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/18/58/image_18082025_18_59_05_10675.jpg', 2), ('/home/nano/Desktop/images/18082025/18/58/image_18082025_18_58_54_9606.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/59/image_18082025_18_59_44_9613.jpg', '/home/nano/Desktop/images/18082025/18/59/image_18082025_18_59_35_10615.jpg', '/home/nano/Desktop/images/18082025/18/59/image_18082025_18_59_24_9599.jpg', '/home/nano/Desktop/images/18082025/18/59/image_18082025_18_59_14_9610.jpg', '/home/nano/Desktop/images/18082025/18/58/image_18082025_18_59_05_10675.jpg', '/home/nano/Desktop/images/18082025/18/58/image_18082025_18_58_54_9606.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/59/image_18082025_18_59_44_9613.jpg
/home/nano/Desktop/images/18082025/18/59/image_18082025_18_59_35_10615.jpg
/home/nano/Desktop/images/18082025/18/59/image_18082025_18_59_24_9599.jpg
/home/nano/Desktop/images/18082025/18/59/image_18082025_18_59_14_9610.jpg
/home/nano/Desktop/images/18082025/18/58/image_18082025_18_59_05_10675.jpg
/home/nano/Desktop/images/18082025/18/58/image_18082025_18_58_54_9606.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377713691","1377713700","1377713706","1377713696","1377713698","1377713702"],"photo_ids_order":["1377713691","1377713696","1377713698","1377713700","1377713702","1377713706"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d3564b7abbc862b39daad3733cbd6aff.jpg","text":"TemporaryFile(/tmp/multipartBody3284339425782092120asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536448958,"filename":"image_18082025_18_59_44_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8a8077afe354d96539b35a2cdf0140e6.jpg","text":"TemporaryFile(/tmp/multipartBody8066738612911965282asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536448958,"filename":"image_18082025_18_59_14_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b34f1a767ec21710ce649fa39ee0b4cb.jpg","text":"TemporaryFile(/tmp/multipartBody3005072287015802414asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536448958,"filename":"image_18082025_18_58_54_9606.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0844684b8c3637be388136b67e6e4de5.jpg","text":"TemporaryFile(/tmp/multipartBody3198084820566016608asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536448958,"filename":"image_18082025_18_59_35_10615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0ea6b4c21abac09ec1ff59894729b474.jpg","text":"TemporaryFile(/tmp/multipartBody2978255646891711945asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536448958,"filename":"image_18082025_18_59_24_9599.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/89d3d7d25490959b821f3e238c337753.jpg","text":"TemporaryFile(/tmp/multipartBody4463642504511918995asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536448958,"filename":"image_18082025_18_59_05_10675.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377713698","file1":"1377713696","file0":"1377713691","file4":"1377713702","file5":"1377713706","file3":"1377713700"},"map_files_photo_id_array":[{"photo_id":"1377713706","filename":"file5"},{"photo_id":"1377713698","filename":"file2"},{"photo_id":"1377713702","filename":"file4"},{"photo_id":"1377713696","filename":"file1"},{"photo_id":"1377713691","filename":"file0"},{"photo_id":"1377713700","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377713691":["hashtag1","hashtag2"]},{"1377713700":["hashtag1","hashtag2"]},{"1377713706":["hashtag1","hashtag2"]},{"1377713696":["hashtag1","hashtag2"]},{"1377713698":["hashtag1","hashtag2"]},{"1377713702":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377713691, 1377713700, 1377713706, 1377713696, 1377713698, 1377713702)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.32275152206421 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:00:32.564084
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/00/image_18082025_19_00_45_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/19/00/image_18082025_19_00_34_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/19/00/image_18082025_19_00_25_10616.jpg', 2), ('/home/nano/Desktop/images/18082025/19/00/image_18082025_19_00_14_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/18/59/image_18082025_19_00_05_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/18/59/image_18082025_18_59_55_10612.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/00/image_18082025_19_00_45_10618.jpg', '/home/nano/Desktop/images/18082025/19/00/image_18082025_19_00_34_9616.jpg', '/home/nano/Desktop/images/18082025/19/00/image_18082025_19_00_25_10616.jpg', '/home/nano/Desktop/images/18082025/19/00/image_18082025_19_00_14_9649.jpg', '/home/nano/Desktop/images/18082025/18/59/image_18082025_19_00_05_9636.jpg', '/home/nano/Desktop/images/18082025/18/59/image_18082025_18_59_55_10612.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/00/image_18082025_19_00_45_10618.jpg
/home/nano/Desktop/images/18082025/19/00/image_18082025_19_00_34_9616.jpg
/home/nano/Desktop/images/18082025/19/00/image_18082025_19_00_25_10616.jpg
/home/nano/Desktop/images/18082025/19/00/image_18082025_19_00_14_9649.jpg
/home/nano/Desktop/images/18082025/18/59/image_18082025_19_00_05_9636.jpg
/home/nano/Desktop/images/18082025/18/59/image_18082025_18_59_55_10612.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.1025736331939697 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:00:47.547424
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/00/image_18082025_19_00_45_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/19/00/image_18082025_19_00_34_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/19/00/image_18082025_19_00_25_10616.jpg', 2), ('/home/nano/Desktop/images/18082025/19/00/image_18082025_19_00_14_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/18/59/image_18082025_19_00_05_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/18/59/image_18082025_18_59_55_10612.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/00/image_18082025_19_00_45_10618.jpg', '/home/nano/Desktop/images/18082025/19/00/image_18082025_19_00_34_9616.jpg', '/home/nano/Desktop/images/18082025/19/00/image_18082025_19_00_25_10616.jpg', '/home/nano/Desktop/images/18082025/19/00/image_18082025_19_00_14_9649.jpg', '/home/nano/Desktop/images/18082025/18/59/image_18082025_19_00_05_9636.jpg', '/home/nano/Desktop/images/18082025/18/59/image_18082025_18_59_55_10612.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/00/image_18082025_19_00_45_10618.jpg
/home/nano/Desktop/images/18082025/19/00/image_18082025_19_00_34_9616.jpg
/home/nano/Desktop/images/18082025/19/00/image_18082025_19_00_25_10616.jpg
/home/nano/Desktop/images/18082025/19/00/image_18082025_19_00_14_9649.jpg
/home/nano/Desktop/images/18082025/18/59/image_18082025_19_00_05_9636.jpg
/home/nano/Desktop/images/18082025/18/59/image_18082025_18_59_55_10612.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377713733","1377713727","1377713736","1377713730","1377713729","1377713731"],"photo_ids_order":["1377713727","1377713729","1377713730","1377713731","1377713733","1377713736"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/02e76f134e41b0642f0fd56c5b299bed.jpg","text":"TemporaryFile(/tmp/multipartBody3703917109972851902asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536509204,"filename":"image_18082025_19_00_05_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4279a7ee44c1b64d19ac57c14fe56a62.jpg","text":"TemporaryFile(/tmp/multipartBody228453740590814708asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536509204,"filename":"image_18082025_19_00_45_10618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1f6bedb2d2a47265791bdd52cf8c26ce.jpg","text":"TemporaryFile(/tmp/multipartBody1049157651626920199asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536509204,"filename":"image_18082025_18_59_55_10612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/138cd8d0670c34fcd549a8737ab2afe3.jpg","text":"TemporaryFile(/tmp/multipartBody1041495104918594826asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536509204,"filename":"image_18082025_19_00_25_10616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7ab991c086e815e6bfaa03a4920dc76d.jpg","text":"TemporaryFile(/tmp/multipartBody3279792297237580942asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536509204,"filename":"image_18082025_19_00_34_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6ae27207c041f62f9f78eddfe836ffc1.jpg","text":"TemporaryFile(/tmp/multipartBody382996236391536870asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536509204,"filename":"image_18082025_19_00_14_9649.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377713730","file1":"1377713729","file0":"1377713727","file4":"1377713733","file5":"1377713736","file3":"1377713731"},"map_files_photo_id_array":[{"photo_id":"1377713736","filename":"file5"},{"photo_id":"1377713730","filename":"file2"},{"photo_id":"1377713733","filename":"file4"},{"photo_id":"1377713729","filename":"file1"},{"photo_id":"1377713727","filename":"file0"},{"photo_id":"1377713731","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377713733":["hashtag1","hashtag2"]},{"1377713727":["hashtag1","hashtag2"]},{"1377713736":["hashtag1","hashtag2"]},{"1377713730":["hashtag1","hashtag2"]},{"1377713729":["hashtag1","hashtag2"]},{"1377713731":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377713733, 1377713727, 1377713736, 1377713730, 1377713729, 1377713731)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.77816128730774 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:01:32.707917
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/01/image_18082025_19_01_45_10620.jpg', 2), ('/home/nano/Desktop/images/18082025/19/01/image_18082025_19_01_34_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/19/01/image_18082025_19_01_25_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/19/01/image_18082025_19_01_15_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/19/00/image_18082025_19_01_04_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/19/00/image_18082025_19_00_55_9608.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/01/image_18082025_19_01_45_10620.jpg', '/home/nano/Desktop/images/18082025/19/01/image_18082025_19_01_34_9609.jpg', '/home/nano/Desktop/images/18082025/19/01/image_18082025_19_01_25_9617.jpg', '/home/nano/Desktop/images/18082025/19/01/image_18082025_19_01_15_10644.jpg', '/home/nano/Desktop/images/18082025/19/00/image_18082025_19_01_04_9620.jpg', '/home/nano/Desktop/images/18082025/19/00/image_18082025_19_00_55_9608.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/01/image_18082025_19_01_45_10620.jpg
/home/nano/Desktop/images/18082025/19/01/image_18082025_19_01_34_9609.jpg
/home/nano/Desktop/images/18082025/19/01/image_18082025_19_01_25_9617.jpg
/home/nano/Desktop/images/18082025/19/01/image_18082025_19_01_15_10644.jpg
/home/nano/Desktop/images/18082025/19/00/image_18082025_19_01_04_9620.jpg
/home/nano/Desktop/images/18082025/19/00/image_18082025_19_00_55_9608.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377713760","1377713754","1377713756","1377713753","1377713758","1377713752"],"photo_ids_order":["1377713752","1377713753","1377713754","1377713756","1377713758","1377713760"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9aba873d7e48743af3d3130d3f2ac58f.jpg","text":"TemporaryFile(/tmp/multipartBody5528423741443702752asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536554222,"filename":"image_18082025_19_00_55_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0cb68979b8a9d58bdd589c0e2b4ddd7d.jpg","text":"TemporaryFile(/tmp/multipartBody5795858148665551645asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536554222,"filename":"image_18082025_19_01_25_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f45c3660546c314fedb76ff498443ab6.jpg","text":"TemporaryFile(/tmp/multipartBody2707121842163916893asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536554222,"filename":"image_18082025_19_01_15_10644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3fad41c90a1249c59498fdf0389d2756.jpg","text":"TemporaryFile(/tmp/multipartBody7184192689499605544asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536554222,"filename":"image_18082025_19_01_34_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a3305853e7fbe859839354b2faa37f38.jpg","text":"TemporaryFile(/tmp/multipartBody2270707311607627878asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536554222,"filename":"image_18082025_19_01_04_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/04a31a545934eefc62190e7058d57c89.jpg","text":"TemporaryFile(/tmp/multipartBody3197880842711915086asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536554222,"filename":"image_18082025_19_01_45_10620.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377713754","file1":"1377713753","file0":"1377713752","file4":"1377713758","file5":"1377713760","file3":"1377713756"},"map_files_photo_id_array":[{"photo_id":"1377713760","filename":"file5"},{"photo_id":"1377713754","filename":"file2"},{"photo_id":"1377713758","filename":"file4"},{"photo_id":"1377713753","filename":"file1"},{"photo_id":"1377713752","filename":"file0"},{"photo_id":"1377713756","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377713760":["hashtag1","hashtag2"]},{"1377713754":["hashtag1","hashtag2"]},{"1377713756":["hashtag1","hashtag2"]},{"1377713753":["hashtag1","hashtag2"]},{"1377713758":["hashtag1","hashtag2"]},{"1377713752":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377713760, 1377713754, 1377713756, 1377713753, 1377713758, 1377713752)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.456575632095337 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:02:17.748204
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/02/image_18082025_19_02_45_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/19/02/image_18082025_19_02_35_10616.jpg', 2), ('/home/nano/Desktop/images/18082025/19/02/image_18082025_19_02_24_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/19/02/image_18082025_19_02_15_9671.jpg', 2), ('/home/nano/Desktop/images/18082025/19/01/image_18082025_19_02_05_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/19/01/image_18082025_19_01_54_9628.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/02/image_18082025_19_02_45_9611.jpg', '/home/nano/Desktop/images/18082025/19/02/image_18082025_19_02_35_10616.jpg', '/home/nano/Desktop/images/18082025/19/02/image_18082025_19_02_24_9613.jpg', '/home/nano/Desktop/images/18082025/19/02/image_18082025_19_02_15_9671.jpg', '/home/nano/Desktop/images/18082025/19/01/image_18082025_19_02_05_10637.jpg', '/home/nano/Desktop/images/18082025/19/01/image_18082025_19_01_54_9628.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/02/image_18082025_19_02_45_9611.jpg
/home/nano/Desktop/images/18082025/19/02/image_18082025_19_02_35_10616.jpg
/home/nano/Desktop/images/18082025/19/02/image_18082025_19_02_24_9613.jpg
/home/nano/Desktop/images/18082025/19/02/image_18082025_19_02_15_9671.jpg
/home/nano/Desktop/images/18082025/19/01/image_18082025_19_02_05_10637.jpg
/home/nano/Desktop/images/18082025/19/01/image_18082025_19_01_54_9628.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377713775","1377713769","1377713780","1377713777","1377713771","1377713773"],"photo_ids_order":["1377713769","1377713771","1377713773","1377713775","1377713777","1377713780"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/55655d01490944edbdd06e307157310a.jpg","text":"TemporaryFile(/tmp/multipartBody2085018822780125840asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536599171,"filename":"image_18082025_19_02_15_9671.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/741a9fcd25d28e15175dd419f8522e94.jpg","text":"TemporaryFile(/tmp/multipartBody1540190903594437037asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536599171,"filename":"image_18082025_19_02_45_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/84990dabd22b6c7773d652fc3e331060.jpg","text":"TemporaryFile(/tmp/multipartBody8164388944320623489asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536599171,"filename":"image_18082025_19_01_54_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/276fb6c914c6cf1992adc473af4fecfb.jpg","text":"TemporaryFile(/tmp/multipartBody1141892944219560875asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536599171,"filename":"image_18082025_19_02_05_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/65cbf5fe86effa022ebd711e4590f235.jpg","text":"TemporaryFile(/tmp/multipartBody2901323992413576304asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536599171,"filename":"image_18082025_19_02_35_10616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/767a577176094c9c14177ea644f21fd5.jpg","text":"TemporaryFile(/tmp/multipartBody563293154383282437asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536599171,"filename":"image_18082025_19_02_24_9613.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377713773","file1":"1377713771","file0":"1377713769","file4":"1377713777","file5":"1377713780","file3":"1377713775"},"map_files_photo_id_array":[{"photo_id":"1377713780","filename":"file5"},{"photo_id":"1377713773","filename":"file2"},{"photo_id":"1377713777","filename":"file4"},{"photo_id":"1377713771","filename":"file1"},{"photo_id":"1377713769","filename":"file0"},{"photo_id":"1377713775","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377713775":["hashtag1","hashtag2"]},{"1377713769":["hashtag1","hashtag2"]},{"1377713780":["hashtag1","hashtag2"]},{"1377713777":["hashtag1","hashtag2"]},{"1377713771":["hashtag1","hashtag2"]},{"1377713773":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377713775, 1377713769, 1377713780, 1377713777, 1377713771, 1377713773)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.82515597343445 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:03:02.336381
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/18/58/image_18082025_18_58_45_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/18/58/image_18082025_18_58_35_10620.jpg', 2), ('/home/nano/Desktop/images/18082025/18/58/image_18082025_18_58_24_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/18/58/image_18082025_18_58_15_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/18/57/image_18082025_18_58_04_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/18/57/image_18082025_18_57_54_9605.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/18/58/image_18082025_18_58_45_9612.jpg', '/home/nano/Desktop/images/18082025/18/58/image_18082025_18_58_35_10620.jpg', '/home/nano/Desktop/images/18082025/18/58/image_18082025_18_58_24_9616.jpg', '/home/nano/Desktop/images/18082025/18/58/image_18082025_18_58_15_10644.jpg', '/home/nano/Desktop/images/18082025/18/57/image_18082025_18_58_04_9629.jpg', '/home/nano/Desktop/images/18082025/18/57/image_18082025_18_57_54_9605.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/18/58/image_18082025_18_58_45_9612.jpg
/home/nano/Desktop/images/18082025/18/58/image_18082025_18_58_35_10620.jpg
/home/nano/Desktop/images/18082025/18/58/image_18082025_18_58_24_9616.jpg
/home/nano/Desktop/images/18082025/18/58/image_18082025_18_58_15_10644.jpg
/home/nano/Desktop/images/18082025/18/57/image_18082025_18_58_04_9629.jpg
/home/nano/Desktop/images/18082025/18/57/image_18082025_18_57_54_9605.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377713800","1377713792","1377713795","1377713797","1377713788","1377713803"],"photo_ids_order":["1377713788","1377713792","1377713795","1377713797","1377713800","1377713803"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7db7280d2ab5a52e6dc8444c53cf01a1.jpg","text":"TemporaryFile(/tmp/multipartBody7033545444781055424asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536643757,"filename":"image_18082025_18_58_04_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f836499ee016fbb30f21adbfac40a421.jpg","text":"TemporaryFile(/tmp/multipartBody5155355477680250100asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536643757,"filename":"image_18082025_18_58_35_10620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ea7d5e7b521b9768be13143e991fe70f.jpg","text":"TemporaryFile(/tmp/multipartBody3004757856923040634asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536643757,"filename":"image_18082025_18_58_24_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a3348f412d95099f447ea706e1c37fbe.jpg","text":"TemporaryFile(/tmp/multipartBody961340134928950688asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536643757,"filename":"image_18082025_18_58_15_10644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/24a3a8838e018d8771a5dd6198a2e3c8.jpg","text":"TemporaryFile(/tmp/multipartBody7630347424202687735asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536643757,"filename":"image_18082025_18_58_45_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3d035565e82bda0be971b2c5e1aa696f.jpg","text":"TemporaryFile(/tmp/multipartBody8357755744614020135asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536643757,"filename":"image_18082025_18_57_54_9605.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377713795","file1":"1377713792","file0":"1377713788","file4":"1377713800","file5":"1377713803","file3":"1377713797"},"map_files_photo_id_array":[{"photo_id":"1377713803","filename":"file5"},{"photo_id":"1377713795","filename":"file2"},{"photo_id":"1377713800","filename":"file4"},{"photo_id":"1377713792","filename":"file1"},{"photo_id":"1377713788","filename":"file0"},{"photo_id":"1377713797","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377713800":["hashtag1","hashtag2"]},{"1377713792":["hashtag1","hashtag2"]},{"1377713795":["hashtag1","hashtag2"]},{"1377713797":["hashtag1","hashtag2"]},{"1377713788":["hashtag1","hashtag2"]},{"1377713803":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377713800, 1377713792, 1377713795, 1377713797, 1377713788, 1377713803)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.00852870941162 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:03:46.839840
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/03/image_18082025_19_03_44_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/19/03/image_18082025_19_03_35_10616.jpg', 2), ('/home/nano/Desktop/images/18082025/19/03/image_18082025_19_03_24_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/19/03/image_18082025_19_03_14_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/19/02/image_18082025_19_03_05_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/19/02/image_18082025_19_02_54_9634.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/03/image_18082025_19_03_44_9612.jpg', '/home/nano/Desktop/images/18082025/19/03/image_18082025_19_03_35_10616.jpg', '/home/nano/Desktop/images/18082025/19/03/image_18082025_19_03_24_9611.jpg', '/home/nano/Desktop/images/18082025/19/03/image_18082025_19_03_14_9635.jpg', '/home/nano/Desktop/images/18082025/19/02/image_18082025_19_03_05_10632.jpg', '/home/nano/Desktop/images/18082025/19/02/image_18082025_19_02_54_9634.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/03/image_18082025_19_03_44_9612.jpg
/home/nano/Desktop/images/18082025/19/03/image_18082025_19_03_35_10616.jpg
/home/nano/Desktop/images/18082025/19/03/image_18082025_19_03_24_9611.jpg
/home/nano/Desktop/images/18082025/19/03/image_18082025_19_03_14_9635.jpg
/home/nano/Desktop/images/18082025/19/02/image_18082025_19_03_05_10632.jpg
/home/nano/Desktop/images/18082025/19/02/image_18082025_19_02_54_9634.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377713820","1377713814","1377713817","1377713822","1377713824","1377713818"],"photo_ids_order":["1377713814","1377713817","1377713818","1377713820","1377713822","1377713824"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f9eeaea8c4742204a8337c57ee7deb26.jpg","text":"TemporaryFile(/tmp/multipartBody2030913231728251953asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536688384,"filename":"image_18082025_19_03_14_9635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/262ad5d110dd2bbf5ba35a4264e112e7.jpg","text":"TemporaryFile(/tmp/multipartBody8627249973177384397asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536688384,"filename":"image_18082025_19_03_44_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3fc655cddd8008a4baf58fe9a1e3c42a.jpg","text":"TemporaryFile(/tmp/multipartBody6266898286894508516asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536688384,"filename":"image_18082025_19_03_35_10616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6373663537656b8c08a397912fd211ef.jpg","text":"TemporaryFile(/tmp/multipartBody5785333205928727507asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536688384,"filename":"image_18082025_19_03_05_10632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/49649917f4bf3462255a4ec5b3bc07c2.jpg","text":"TemporaryFile(/tmp/multipartBody1361713256671900058asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536688384,"filename":"image_18082025_19_02_54_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/28525b896a5dd3aa1577eb1ac26a9308.jpg","text":"TemporaryFile(/tmp/multipartBody2672377214207446315asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536688384,"filename":"image_18082025_19_03_24_9611.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377713818","file1":"1377713817","file0":"1377713814","file4":"1377713822","file5":"1377713824","file3":"1377713820"},"map_files_photo_id_array":[{"photo_id":"1377713824","filename":"file5"},{"photo_id":"1377713818","filename":"file2"},{"photo_id":"1377713822","filename":"file4"},{"photo_id":"1377713817","filename":"file1"},{"photo_id":"1377713814","filename":"file0"},{"photo_id":"1377713820","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377713820":["hashtag1","hashtag2"]},{"1377713814":["hashtag1","hashtag2"]},{"1377713817":["hashtag1","hashtag2"]},{"1377713822":["hashtag1","hashtag2"]},{"1377713824":["hashtag1","hashtag2"]},{"1377713818":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377713820, 1377713814, 1377713817, 1377713822, 1377713824, 1377713818)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.668985605239868 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:04:32.064493
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/04/image_18082025_19_04_45_10613.jpg', 2), ('/home/nano/Desktop/images/18082025/19/04/image_18082025_19_04_34_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/19/04/image_18082025_19_04_25_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/19/04/image_18082025_19_04_14_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/19/03/image_18082025_19_04_05_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/19/03/image_18082025_19_03_55_10639.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/04/image_18082025_19_04_45_10613.jpg', '/home/nano/Desktop/images/18082025/19/04/image_18082025_19_04_34_9613.jpg', '/home/nano/Desktop/images/18082025/19/04/image_18082025_19_04_25_10624.jpg', '/home/nano/Desktop/images/18082025/19/04/image_18082025_19_04_14_9639.jpg', '/home/nano/Desktop/images/18082025/19/03/image_18082025_19_04_05_9611.jpg', '/home/nano/Desktop/images/18082025/19/03/image_18082025_19_03_55_10639.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/04/image_18082025_19_04_45_10613.jpg
/home/nano/Desktop/images/18082025/19/04/image_18082025_19_04_34_9613.jpg
/home/nano/Desktop/images/18082025/19/04/image_18082025_19_04_25_10624.jpg
/home/nano/Desktop/images/18082025/19/04/image_18082025_19_04_14_9639.jpg
/home/nano/Desktop/images/18082025/19/03/image_18082025_19_04_05_9611.jpg
/home/nano/Desktop/images/18082025/19/03/image_18082025_19_03_55_10639.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377713844","1377713847","1377713841","1377713838","1377713846","1377713842"],"photo_ids_order":["1377713838","1377713841","1377713842","1377713844","1377713846","1377713847"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/02d17b232fab45a417d58ba8fd06c3db.jpg","text":"TemporaryFile(/tmp/multipartBody1884930471156781251asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536733335,"filename":"image_18082025_19_04_14_9639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/15c5cf7c7317821fb4c8d75a09e395c7.jpg","text":"TemporaryFile(/tmp/multipartBody2020840162759497364asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536733335,"filename":"image_18082025_19_03_55_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0dc95a8c29c172f08caa07861e1eb5f7.jpg","text":"TemporaryFile(/tmp/multipartBody4893187076565325852asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536733335,"filename":"image_18082025_19_04_34_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8a1a2012775e3380a7c5ce6492780949.jpg","text":"TemporaryFile(/tmp/multipartBody1544783781108421030asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536733335,"filename":"image_18082025_19_04_45_10613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e8d3e770b9d94dbf4f81bfe934cb13ef.jpg","text":"TemporaryFile(/tmp/multipartBody8451205168743289019asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536733335,"filename":"image_18082025_19_04_05_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ebba78d4e322bb4cc6bcf4bee5d8674f.jpg","text":"TemporaryFile(/tmp/multipartBody5463567211721580558asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536733335,"filename":"image_18082025_19_04_25_10624.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377713842","file1":"1377713841","file0":"1377713838","file4":"1377713846","file5":"1377713847","file3":"1377713844"},"map_files_photo_id_array":[{"photo_id":"1377713847","filename":"file5"},{"photo_id":"1377713842","filename":"file2"},{"photo_id":"1377713846","filename":"file4"},{"photo_id":"1377713841","filename":"file1"},{"photo_id":"1377713838","filename":"file0"},{"photo_id":"1377713844","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377713844":["hashtag1","hashtag2"]},{"1377713847":["hashtag1","hashtag2"]},{"1377713841":["hashtag1","hashtag2"]},{"1377713838":["hashtag1","hashtag2"]},{"1377713846":["hashtag1","hashtag2"]},{"1377713842":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377713844, 1377713847, 1377713841, 1377713838, 1377713846, 1377713842)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.918763875961304 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:05:17.180340
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/05/image_18082025_19_05_45_10616.jpg', 2), ('/home/nano/Desktop/images/18082025/19/05/image_18082025_19_05_34_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/19/05/image_18082025_19_05_25_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/19/05/image_18082025_19_05_15_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/19/04/image_18082025_19_05_04_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/19/04/image_18082025_19_04_55_9623.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/05/image_18082025_19_05_45_10616.jpg', '/home/nano/Desktop/images/18082025/19/05/image_18082025_19_05_34_9612.jpg', '/home/nano/Desktop/images/18082025/19/05/image_18082025_19_05_25_9620.jpg', '/home/nano/Desktop/images/18082025/19/05/image_18082025_19_05_15_10648.jpg', '/home/nano/Desktop/images/18082025/19/04/image_18082025_19_05_04_9627.jpg', '/home/nano/Desktop/images/18082025/19/04/image_18082025_19_04_55_9623.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/05/image_18082025_19_05_45_10616.jpg
/home/nano/Desktop/images/18082025/19/05/image_18082025_19_05_34_9612.jpg
/home/nano/Desktop/images/18082025/19/05/image_18082025_19_05_25_9620.jpg
/home/nano/Desktop/images/18082025/19/05/image_18082025_19_05_15_10648.jpg
/home/nano/Desktop/images/18082025/19/04/image_18082025_19_05_04_9627.jpg
/home/nano/Desktop/images/18082025/19/04/image_18082025_19_04_55_9623.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377713865","1377713867","1377713861","1377713855","1377713858","1377713863"],"photo_ids_order":["1377713855","1377713858","1377713861","1377713863","1377713865","1377713867"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f1a943659ba8a8ca2c2b0000323c6976.jpg","text":"TemporaryFile(/tmp/multipartBody3345111028716214622asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536778373,"filename":"image_18082025_19_05_04_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/810964e9ed4294b50a768f4b1d0d51b1.jpg","text":"TemporaryFile(/tmp/multipartBody6580694499027602101asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536778373,"filename":"image_18082025_19_04_55_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1c41a9d1a39b6153f334d59cd8ffb071.jpg","text":"TemporaryFile(/tmp/multipartBody8955875049740917308asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536778373,"filename":"image_18082025_19_05_25_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/739588dce1950c27f3fadfec5c41cd3e.jpg","text":"TemporaryFile(/tmp/multipartBody9197921878369754208asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536778373,"filename":"image_18082025_19_05_45_10616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1826cef3a0cc5fc20ad25530d5101e3c.jpg","text":"TemporaryFile(/tmp/multipartBody7933198340019310553asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536778373,"filename":"image_18082025_19_05_34_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/555cc57c2c2401b29da20ea087a179a6.jpg","text":"TemporaryFile(/tmp/multipartBody6709527286678929869asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536778373,"filename":"image_18082025_19_05_15_10648.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377713861","file1":"1377713858","file0":"1377713855","file4":"1377713865","file5":"1377713867","file3":"1377713863"},"map_files_photo_id_array":[{"photo_id":"1377713867","filename":"file5"},{"photo_id":"1377713861","filename":"file2"},{"photo_id":"1377713865","filename":"file4"},{"photo_id":"1377713858","filename":"file1"},{"photo_id":"1377713855","filename":"file0"},{"photo_id":"1377713863","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377713865":["hashtag1","hashtag2"]},{"1377713867":["hashtag1","hashtag2"]},{"1377713861":["hashtag1","hashtag2"]},{"1377713855":["hashtag1","hashtag2"]},{"1377713858":["hashtag1","hashtag2"]},{"1377713863":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377713865, 1377713867, 1377713861, 1377713855, 1377713858, 1377713863)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.22633647918701 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:06:02.828775
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/40/image_18082025_09_40_14_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/09/39/image_18082025_09_40_05_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/09/39/image_18082025_09_39_55_10633.jpg', 2), ('/home/nano/Desktop/images/18082025/09/39/image_18082025_09_39_44_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/09/39/image_18082025_09_39_35_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/09/39/image_18082025_09_39_25_10632.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/40/image_18082025_09_40_14_9631.jpg', '/home/nano/Desktop/images/18082025/09/39/image_18082025_09_40_05_9635.jpg', '/home/nano/Desktop/images/18082025/09/39/image_18082025_09_39_55_10633.jpg', '/home/nano/Desktop/images/18082025/09/39/image_18082025_09_39_44_9618.jpg', '/home/nano/Desktop/images/18082025/09/39/image_18082025_09_39_35_9619.jpg', '/home/nano/Desktop/images/18082025/09/39/image_18082025_09_39_25_10632.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/40/image_18082025_09_40_14_9631.jpg
/home/nano/Desktop/images/18082025/09/39/image_18082025_09_40_05_9635.jpg
/home/nano/Desktop/images/18082025/09/39/image_18082025_09_39_55_10633.jpg
/home/nano/Desktop/images/18082025/09/39/image_18082025_09_39_44_9618.jpg
/home/nano/Desktop/images/18082025/09/39/image_18082025_09_39_35_9619.jpg
/home/nano/Desktop/images/18082025/09/39/image_18082025_09_39_25_10632.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377713883","1377713886","1377713885","1377713884","1377713878","1377713881"],"photo_ids_order":["1377713878","1377713881","1377713883","1377713884","1377713885","1377713886"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1ec0bcfb7264df48267e8eeefd6dd2e8.jpg","text":"TemporaryFile(/tmp/multipartBody7838533670797729201asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536823975,"filename":"image_18082025_09_39_55_10633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/79b106fb3f960db56283fe18f7460f65.jpg","text":"TemporaryFile(/tmp/multipartBody4341646829020214123asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536823975,"filename":"image_18082025_09_39_25_10632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ae971953407545d5e85d245de8809c60.jpg","text":"TemporaryFile(/tmp/multipartBody4638692026950018339asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536823975,"filename":"image_18082025_09_39_35_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d888dcfd6211263e880514207af29715.jpg","text":"TemporaryFile(/tmp/multipartBody5578866256386961157asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536823975,"filename":"image_18082025_09_39_44_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f506c15299810ee866a5e0b5509730d8.jpg","text":"TemporaryFile(/tmp/multipartBody5473504880965511219asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536823975,"filename":"image_18082025_09_40_14_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c7941fd13a498d9be2ab8f40afccccb8.jpg","text":"TemporaryFile(/tmp/multipartBody3559088739915037784asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536823975,"filename":"image_18082025_09_40_05_9635.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377713883","file1":"1377713881","file0":"1377713878","file4":"1377713885","file5":"1377713886","file3":"1377713884"},"map_files_photo_id_array":[{"photo_id":"1377713886","filename":"file5"},{"photo_id":"1377713883","filename":"file2"},{"photo_id":"1377713885","filename":"file4"},{"photo_id":"1377713881","filename":"file1"},{"photo_id":"1377713878","filename":"file0"},{"photo_id":"1377713884","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377713883":["hashtag1","hashtag2"]},{"1377713886":["hashtag1","hashtag2"]},{"1377713885":["hashtag1","hashtag2"]},{"1377713884":["hashtag1","hashtag2"]},{"1377713878":["hashtag1","hashtag2"]},{"1377713881":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377713883, 1377713886, 1377713885, 1377713884, 1377713878, 1377713881)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.37423276901245 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:06:47.210630
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/06/image_18082025_19_06_45_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/19/06/image_18082025_19_06_35_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/19/06/image_18082025_19_06_24_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/19/06/image_18082025_19_06_15_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/19/05/image_18082025_19_06_05_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/19/05/image_18082025_19_05_54_9604.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/06/image_18082025_19_06_45_9612.jpg', '/home/nano/Desktop/images/18082025/19/06/image_18082025_19_06_35_10623.jpg', '/home/nano/Desktop/images/18082025/19/06/image_18082025_19_06_24_9610.jpg', '/home/nano/Desktop/images/18082025/19/06/image_18082025_19_06_15_9634.jpg', '/home/nano/Desktop/images/18082025/19/05/image_18082025_19_06_05_10631.jpg', '/home/nano/Desktop/images/18082025/19/05/image_18082025_19_05_54_9604.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/06/image_18082025_19_06_45_9612.jpg
/home/nano/Desktop/images/18082025/19/06/image_18082025_19_06_35_10623.jpg
/home/nano/Desktop/images/18082025/19/06/image_18082025_19_06_24_9610.jpg
/home/nano/Desktop/images/18082025/19/06/image_18082025_19_06_15_9634.jpg
/home/nano/Desktop/images/18082025/19/05/image_18082025_19_06_05_10631.jpg
/home/nano/Desktop/images/18082025/19/05/image_18082025_19_05_54_9604.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377713911","1377713905","1377713908","1377713907","1377713915","1377713903"],"photo_ids_order":["1377713903","1377713905","1377713907","1377713908","1377713911","1377713915"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c1ade3026845539db906aefe222b6fd7.jpg","text":"TemporaryFile(/tmp/multipartBody9132085155879708883asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536868529,"filename":"image_18082025_19_06_05_10631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/59359c29e1fb141a932d641107c54486.jpg","text":"TemporaryFile(/tmp/multipartBody8131779210473960630asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536868529,"filename":"image_18082025_19_06_35_10623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/eecf1c4505f26eb18cde02085aa89a07.jpg","text":"TemporaryFile(/tmp/multipartBody6820182287437987788asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536868529,"filename":"image_18082025_19_06_15_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6cea58a10e9b590d4524d5e92aa349dc.jpg","text":"TemporaryFile(/tmp/multipartBody1332671353823566246asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536868529,"filename":"image_18082025_19_06_24_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a335397d39c8342ff6e4937c4bc0d9a2.jpg","text":"TemporaryFile(/tmp/multipartBody1258904773030197814asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536868529,"filename":"image_18082025_19_05_54_9604.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a5cea5536816470e90c1cd5a56ab4074.jpg","text":"TemporaryFile(/tmp/multipartBody2554791392255744834asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536868529,"filename":"image_18082025_19_06_45_9612.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377713907","file1":"1377713905","file0":"1377713903","file4":"1377713911","file5":"1377713915","file3":"1377713908"},"map_files_photo_id_array":[{"photo_id":"1377713915","filename":"file5"},{"photo_id":"1377713907","filename":"file2"},{"photo_id":"1377713911","filename":"file4"},{"photo_id":"1377713905","filename":"file1"},{"photo_id":"1377713903","filename":"file0"},{"photo_id":"1377713908","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377713911":["hashtag1","hashtag2"]},{"1377713905":["hashtag1","hashtag2"]},{"1377713908":["hashtag1","hashtag2"]},{"1377713907":["hashtag1","hashtag2"]},{"1377713915":["hashtag1","hashtag2"]},{"1377713903":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377713911, 1377713905, 1377713908, 1377713907, 1377713915, 1377713903)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.8031964302063 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:07:32.311957
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/07/image_18082025_19_07_44_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/19/07/image_18082025_19_07_35_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/19/07/image_18082025_19_07_25_10613.jpg', 2), ('/home/nano/Desktop/images/18082025/19/07/image_18082025_19_07_14_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/19/06/image_18082025_19_07_05_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/19/06/image_18082025_19_06_54_9602.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/07/image_18082025_19_07_44_9636.jpg', '/home/nano/Desktop/images/18082025/19/07/image_18082025_19_07_35_9611.jpg', '/home/nano/Desktop/images/18082025/19/07/image_18082025_19_07_25_10613.jpg', '/home/nano/Desktop/images/18082025/19/07/image_18082025_19_07_14_9631.jpg', '/home/nano/Desktop/images/18082025/19/06/image_18082025_19_07_05_10631.jpg', '/home/nano/Desktop/images/18082025/19/06/image_18082025_19_06_54_9602.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/07/image_18082025_19_07_44_9636.jpg
/home/nano/Desktop/images/18082025/19/07/image_18082025_19_07_35_9611.jpg
/home/nano/Desktop/images/18082025/19/07/image_18082025_19_07_25_10613.jpg
/home/nano/Desktop/images/18082025/19/07/image_18082025_19_07_14_9631.jpg
/home/nano/Desktop/images/18082025/19/06/image_18082025_19_07_05_10631.jpg
/home/nano/Desktop/images/18082025/19/06/image_18082025_19_06_54_9602.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377713931","1377713925","1377713928","1377713941","1377713935","1377713938"],"photo_ids_order":["1377713925","1377713928","1377713931","1377713935","1377713938","1377713941"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/84d2886163eeb218ff3d841932ca301a.jpg","text":"TemporaryFile(/tmp/multipartBody3733075098936612757asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536913478,"filename":"image_18082025_19_07_25_10613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/24fc2555a376189a2bc0002fb58e0472.jpg","text":"TemporaryFile(/tmp/multipartBody7321574320844710185asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536913478,"filename":"image_18082025_19_07_44_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e436aeaeb5bc6e84405702ac083b9770.jpg","text":"TemporaryFile(/tmp/multipartBody5088233438653438663asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536913478,"filename":"image_18082025_19_07_35_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4cdbc73caef40812a81423e8e9193209.jpg","text":"TemporaryFile(/tmp/multipartBody3278765754135134916asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536913478,"filename":"image_18082025_19_06_54_9602.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/981c14685987b0b8a5e512607e626096.jpg","text":"TemporaryFile(/tmp/multipartBody5703737253297958776asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536913478,"filename":"image_18082025_19_07_14_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d8fa93cfdc6259cbf2e7ce4e3c61feb0.jpg","text":"TemporaryFile(/tmp/multipartBody6379078930376546409asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536913478,"filename":"image_18082025_19_07_05_10631.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377713931","file1":"1377713928","file0":"1377713925","file4":"1377713938","file5":"1377713941","file3":"1377713935"},"map_files_photo_id_array":[{"photo_id":"1377713941","filename":"file5"},{"photo_id":"1377713931","filename":"file2"},{"photo_id":"1377713938","filename":"file4"},{"photo_id":"1377713928","filename":"file1"},{"photo_id":"1377713925","filename":"file0"},{"photo_id":"1377713935","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377713931":["hashtag1","hashtag2"]},{"1377713925":["hashtag1","hashtag2"]},{"1377713928":["hashtag1","hashtag2"]},{"1377713941":["hashtag1","hashtag2"]},{"1377713935":["hashtag1","hashtag2"]},{"1377713938":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377713931, 1377713925, 1377713928, 1377713941, 1377713935, 1377713938)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.230271577835083 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:08:17.431212
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/08/image_18082025_19_08_45_10619.jpg', 2), ('/home/nano/Desktop/images/18082025/19/08/image_18082025_19_08_34_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/19/08/image_18082025_19_08_25_10615.jpg', 2), ('/home/nano/Desktop/images/18082025/19/08/image_18082025_19_08_14_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/19/07/image_18082025_19_08_05_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/19/07/image_18082025_19_07_55_10637.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/08/image_18082025_19_08_45_10619.jpg', '/home/nano/Desktop/images/18082025/19/08/image_18082025_19_08_34_9612.jpg', '/home/nano/Desktop/images/18082025/19/08/image_18082025_19_08_25_10615.jpg', '/home/nano/Desktop/images/18082025/19/08/image_18082025_19_08_14_9634.jpg', '/home/nano/Desktop/images/18082025/19/07/image_18082025_19_08_05_9626.jpg', '/home/nano/Desktop/images/18082025/19/07/image_18082025_19_07_55_10637.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/08/image_18082025_19_08_45_10619.jpg
/home/nano/Desktop/images/18082025/19/08/image_18082025_19_08_34_9612.jpg
/home/nano/Desktop/images/18082025/19/08/image_18082025_19_08_25_10615.jpg
/home/nano/Desktop/images/18082025/19/08/image_18082025_19_08_14_9634.jpg
/home/nano/Desktop/images/18082025/19/07/image_18082025_19_08_05_9626.jpg
/home/nano/Desktop/images/18082025/19/07/image_18082025_19_07_55_10637.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377713949","1377713960","1377713954","1377713963","1377713957","1377713951"],"photo_ids_order":["1377713949","1377713951","1377713954","1377713957","1377713960","1377713963"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/571b5b79a315d486f9c9fc9006af7f3a.jpg","text":"TemporaryFile(/tmp/multipartBody5444995943766702128asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536958808,"filename":"image_18082025_19_08_45_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/56b5cc91b9e7cae91b73ec3c484a3293.jpg","text":"TemporaryFile(/tmp/multipartBody4338733054331257928asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536958808,"filename":"image_18082025_19_08_05_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/99d9c72587bba9d878e095fea2369ddc.jpg","text":"TemporaryFile(/tmp/multipartBody1057848920987822355asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536958808,"filename":"image_18082025_19_08_25_10615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/41c31f22a7d737d0b4e437fb0dcbd9cc.jpg","text":"TemporaryFile(/tmp/multipartBody8925628852988193840asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536958808,"filename":"image_18082025_19_07_55_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1de460decfaf2b4999a17d7bbe94ea79.jpg","text":"TemporaryFile(/tmp/multipartBody4684941315591806866asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536958808,"filename":"image_18082025_19_08_14_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a01709c799d241e021a51b803e093563.jpg","text":"TemporaryFile(/tmp/multipartBody8950514697299201945asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755536958808,"filename":"image_18082025_19_08_34_9612.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377713954","file1":"1377713951","file0":"1377713949","file4":"1377713960","file5":"1377713963","file3":"1377713957"},"map_files_photo_id_array":[{"photo_id":"1377713963","filename":"file5"},{"photo_id":"1377713954","filename":"file2"},{"photo_id":"1377713960","filename":"file4"},{"photo_id":"1377713951","filename":"file1"},{"photo_id":"1377713949","filename":"file0"},{"photo_id":"1377713957","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377713949":["hashtag1","hashtag2"]},{"1377713960":["hashtag1","hashtag2"]},{"1377713954":["hashtag1","hashtag2"]},{"1377713963":["hashtag1","hashtag2"]},{"1377713957":["hashtag1","hashtag2"]},{"1377713951":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377713949, 1377713960, 1377713954, 1377713963, 1377713957, 1377713951)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.43826413154602 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:09:03.701645
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/39/image_18082025_09_39_14_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/09/38/image_18082025_09_39_05_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/09/38/image_18082025_09_38_54_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/09/38/image_18082025_09_38_44_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/09/38/image_18082025_09_38_35_10683.jpg', 2), ('/home/nano/Desktop/images/18082025/09/38/image_18082025_09_38_24_9641.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/39/image_18082025_09_39_14_9644.jpg', '/home/nano/Desktop/images/18082025/09/38/image_18082025_09_39_05_10642.jpg', '/home/nano/Desktop/images/18082025/09/38/image_18082025_09_38_54_9639.jpg', '/home/nano/Desktop/images/18082025/09/38/image_18082025_09_38_44_9624.jpg', '/home/nano/Desktop/images/18082025/09/38/image_18082025_09_38_35_10683.jpg', '/home/nano/Desktop/images/18082025/09/38/image_18082025_09_38_24_9641.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/39/image_18082025_09_39_14_9644.jpg
/home/nano/Desktop/images/18082025/09/38/image_18082025_09_39_05_10642.jpg
/home/nano/Desktop/images/18082025/09/38/image_18082025_09_38_54_9639.jpg
/home/nano/Desktop/images/18082025/09/38/image_18082025_09_38_44_9624.jpg
/home/nano/Desktop/images/18082025/09/38/image_18082025_09_38_35_10683.jpg
/home/nano/Desktop/images/18082025/09/38/image_18082025_09_38_24_9641.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377713988","1377713984","1377713975","1377713977","1377713971","1377713980"],"photo_ids_order":["1377713971","1377713975","1377713977","1377713980","1377713984","1377713988"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f7dbfa1b999f6425411e6b99db9e9ead.jpg","text":"TemporaryFile(/tmp/multipartBody6747196164986534280asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537005231,"filename":"image_18082025_09_38_24_9641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9b1b6f1f5645b1c63cf8d98d1ef4aa0d.jpg","text":"TemporaryFile(/tmp/multipartBody8801269488199023542asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537005231,"filename":"image_18082025_09_38_35_10683.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/080b25f52b5a24a8ec5b9c31affd8a34.jpg","text":"TemporaryFile(/tmp/multipartBody2357751209477802791asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537005231,"filename":"image_18082025_09_39_05_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/84ba775023187dc35734f924aff84e52.jpg","text":"TemporaryFile(/tmp/multipartBody3650196605142967927asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537005231,"filename":"image_18082025_09_38_54_9639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8a91a74aefd001f0796487579921be42.jpg","text":"TemporaryFile(/tmp/multipartBody8338111599222057056asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537005231,"filename":"image_18082025_09_39_14_9644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6d0f8bbbacec26661e9a11212f4e5174.jpg","text":"TemporaryFile(/tmp/multipartBody4978490118490939265asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537005231,"filename":"image_18082025_09_38_44_9624.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377713977","file1":"1377713975","file0":"1377713971","file4":"1377713984","file5":"1377713988","file3":"1377713980"},"map_files_photo_id_array":[{"photo_id":"1377713988","filename":"file5"},{"photo_id":"1377713977","filename":"file2"},{"photo_id":"1377713984","filename":"file4"},{"photo_id":"1377713975","filename":"file1"},{"photo_id":"1377713971","filename":"file0"},{"photo_id":"1377713980","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377713988":["hashtag1","hashtag2"]},{"1377713984":["hashtag1","hashtag2"]},{"1377713975":["hashtag1","hashtag2"]},{"1377713977":["hashtag1","hashtag2"]},{"1377713971":["hashtag1","hashtag2"]},{"1377713980":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377713988, 1377713984, 1377713975, 1377713977, 1377713971, 1377713980)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.531391859054565 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:09:47.486726
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/09/image_18082025_19_09_45_10622.jpg', 2), ('/home/nano/Desktop/images/18082025/19/09/image_18082025_19_09_34_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/19/09/image_18082025_19_09_24_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/19/09/image_18082025_19_09_15_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/19/08/image_18082025_19_09_04_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/19/08/image_18082025_19_08_55_9616.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/09/image_18082025_19_09_45_10622.jpg', '/home/nano/Desktop/images/18082025/19/09/image_18082025_19_09_34_9629.jpg', '/home/nano/Desktop/images/18082025/19/09/image_18082025_19_09_24_9616.jpg', '/home/nano/Desktop/images/18082025/19/09/image_18082025_19_09_15_10653.jpg', '/home/nano/Desktop/images/18082025/19/08/image_18082025_19_09_04_9619.jpg', '/home/nano/Desktop/images/18082025/19/08/image_18082025_19_08_55_9616.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/09/image_18082025_19_09_45_10622.jpg
/home/nano/Desktop/images/18082025/19/09/image_18082025_19_09_34_9629.jpg
/home/nano/Desktop/images/18082025/19/09/image_18082025_19_09_24_9616.jpg
/home/nano/Desktop/images/18082025/19/09/image_18082025_19_09_15_10653.jpg
/home/nano/Desktop/images/18082025/19/08/image_18082025_19_09_04_9619.jpg
/home/nano/Desktop/images/18082025/19/08/image_18082025_19_08_55_9616.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377714018","1377714011","1377714008","1377714013","1377714016","1377714010"],"photo_ids_order":["1377714008","1377714010","1377714011","1377714013","1377714016","1377714018"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d808cf7430e67e3de41e856b9213310c.jpg","text":"TemporaryFile(/tmp/multipartBody6165127818459740022asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537048929,"filename":"image_18082025_19_08_55_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/eded60e1b5f8ab3ac53c39f7b47ec0c5.jpg","text":"TemporaryFile(/tmp/multipartBody3518342509383489045asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537048929,"filename":"image_18082025_19_09_24_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1683ffa7a4bf73a2dc6aebe0f4f43508.jpg","text":"TemporaryFile(/tmp/multipartBody6512585046300228589asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537048929,"filename":"image_18082025_19_09_45_10622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e56b493ae3ea972b3479a9dbc9a60a40.jpg","text":"TemporaryFile(/tmp/multipartBody1283805116213981409asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537048929,"filename":"image_18082025_19_09_15_10653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a5fc9fc5aa6c2fa662a3b7a3ee1633ac.jpg","text":"TemporaryFile(/tmp/multipartBody9023955598626820289asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537048929,"filename":"image_18082025_19_09_04_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9bd588d49afb86e308359c5323273c6b.jpg","text":"TemporaryFile(/tmp/multipartBody6810381345243078399asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537048929,"filename":"image_18082025_19_09_34_9629.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377714011","file1":"1377714010","file0":"1377714008","file4":"1377714016","file5":"1377714018","file3":"1377714013"},"map_files_photo_id_array":[{"photo_id":"1377714018","filename":"file5"},{"photo_id":"1377714011","filename":"file2"},{"photo_id":"1377714016","filename":"file4"},{"photo_id":"1377714010","filename":"file1"},{"photo_id":"1377714008","filename":"file0"},{"photo_id":"1377714013","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377714018":["hashtag1","hashtag2"]},{"1377714011":["hashtag1","hashtag2"]},{"1377714008":["hashtag1","hashtag2"]},{"1377714013":["hashtag1","hashtag2"]},{"1377714016":["hashtag1","hashtag2"]},{"1377714010":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377714018, 1377714011, 1377714008, 1377714013, 1377714016, 1377714010)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.12542200088501 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:10:32.609378
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/10/image_18082025_19_10_44_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/19/10/image_18082025_19_10_35_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/19/10/image_18082025_19_10_24_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/19/10/image_18082025_19_10_15_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/19/09/image_18082025_19_10_05_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/19/09/image_18082025_19_09_54_9605.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/10/image_18082025_19_10_44_9608.jpg', '/home/nano/Desktop/images/18082025/19/10/image_18082025_19_10_35_10626.jpg', '/home/nano/Desktop/images/18082025/19/10/image_18082025_19_10_24_9617.jpg', '/home/nano/Desktop/images/18082025/19/10/image_18082025_19_10_15_9628.jpg', '/home/nano/Desktop/images/18082025/19/09/image_18082025_19_10_05_10642.jpg', '/home/nano/Desktop/images/18082025/19/09/image_18082025_19_09_54_9605.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/10/image_18082025_19_10_44_9608.jpg
/home/nano/Desktop/images/18082025/19/10/image_18082025_19_10_35_10626.jpg
/home/nano/Desktop/images/18082025/19/10/image_18082025_19_10_24_9617.jpg
/home/nano/Desktop/images/18082025/19/10/image_18082025_19_10_15_9628.jpg
/home/nano/Desktop/images/18082025/19/09/image_18082025_19_10_05_10642.jpg
/home/nano/Desktop/images/18082025/19/09/image_18082025_19_09_54_9605.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377714039","1377714030","1377714033","1377714036","1377714026","1377714028"],"photo_ids_order":["1377714026","1377714028","1377714030","1377714033","1377714036","1377714039"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d25924c8bde07164349687c02fc4247c.jpg","text":"TemporaryFile(/tmp/multipartBody6378300668147180002asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537094103,"filename":"image_18082025_19_09_54_9605.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f9a0b654ca3495b8636be2a42dcaa845.jpg","text":"TemporaryFile(/tmp/multipartBody7970907965209498051asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537094103,"filename":"image_18082025_19_10_24_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d296ce8c8cbba478c2ad832807236c5d.jpg","text":"TemporaryFile(/tmp/multipartBody8302970009185002346asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537094103,"filename":"image_18082025_19_10_15_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b4ffe50c4bc53b1bc259941f8065f813.jpg","text":"TemporaryFile(/tmp/multipartBody1494875399702722155asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537094103,"filename":"image_18082025_19_10_05_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/741ce520b09d231e1a5d8cdcf2bb912e.jpg","text":"TemporaryFile(/tmp/multipartBody483133191446817810asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537094103,"filename":"image_18082025_19_10_44_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3a57d7cd0ccc02722ca6df4e9151862c.jpg","text":"TemporaryFile(/tmp/multipartBody8774723676811291342asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537094103,"filename":"image_18082025_19_10_35_10626.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377714030","file1":"1377714028","file0":"1377714026","file4":"1377714036","file5":"1377714039","file3":"1377714033"},"map_files_photo_id_array":[{"photo_id":"1377714039","filename":"file5"},{"photo_id":"1377714030","filename":"file2"},{"photo_id":"1377714036","filename":"file4"},{"photo_id":"1377714028","filename":"file1"},{"photo_id":"1377714026","filename":"file0"},{"photo_id":"1377714033","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377714039":["hashtag1","hashtag2"]},{"1377714030":["hashtag1","hashtag2"]},{"1377714033":["hashtag1","hashtag2"]},{"1377714036":["hashtag1","hashtag2"]},{"1377714026":["hashtag1","hashtag2"]},{"1377714028":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377714039, 1377714030, 1377714033, 1377714036, 1377714026, 1377714028)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.93276858329773 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:11:17.685416
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/11/image_18082025_19_11_44_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/19/11/image_18082025_19_11_35_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/19/11/image_18082025_19_11_25_10622.jpg', 2), ('/home/nano/Desktop/images/18082025/19/11/image_18082025_19_11_14_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/19/10/image_18082025_19_11_05_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/19/10/image_18082025_19_10_54_9613.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/11/image_18082025_19_11_44_9609.jpg', '/home/nano/Desktop/images/18082025/19/11/image_18082025_19_11_35_9611.jpg', '/home/nano/Desktop/images/18082025/19/11/image_18082025_19_11_25_10622.jpg', '/home/nano/Desktop/images/18082025/19/11/image_18082025_19_11_14_9650.jpg', '/home/nano/Desktop/images/18082025/19/10/image_18082025_19_11_05_10624.jpg', '/home/nano/Desktop/images/18082025/19/10/image_18082025_19_10_54_9613.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/11/image_18082025_19_11_44_9609.jpg
/home/nano/Desktop/images/18082025/19/11/image_18082025_19_11_35_9611.jpg
/home/nano/Desktop/images/18082025/19/11/image_18082025_19_11_25_10622.jpg
/home/nano/Desktop/images/18082025/19/11/image_18082025_19_11_14_9650.jpg
/home/nano/Desktop/images/18082025/19/10/image_18082025_19_11_05_10624.jpg
/home/nano/Desktop/images/18082025/19/10/image_18082025_19_10_54_9613.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377714051","1377714054","1377714056","1377714058","1377714049","1377714060"],"photo_ids_order":["1377714049","1377714051","1377714054","1377714056","1377714058","1377714060"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1ed5bb74b1cec6a4ec7634e35180aa99.jpg","text":"TemporaryFile(/tmp/multipartBody1259397669581700850asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537138815,"filename":"image_18082025_19_11_35_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2bc4b93710e20ad81f721e4a197d3985.jpg","text":"TemporaryFile(/tmp/multipartBody4356001695788081181asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537138815,"filename":"image_18082025_19_11_25_10622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/506a2db976fdf812464b81ed06aca50b.jpg","text":"TemporaryFile(/tmp/multipartBody8665463093057066172asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537138815,"filename":"image_18082025_19_11_14_9650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fb1f69a44200eb75ef09876e9108f5a7.jpg","text":"TemporaryFile(/tmp/multipartBody44636804402741085asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537138815,"filename":"image_18082025_19_11_05_10624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f9203619d9d7362a8ec093fa6d6211a3.jpg","text":"TemporaryFile(/tmp/multipartBody978783512450031384asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537138815,"filename":"image_18082025_19_11_44_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c9e43712fc35e89ad96f0d5defb2df69.jpg","text":"TemporaryFile(/tmp/multipartBody1262880561145838623asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537138815,"filename":"image_18082025_19_10_54_9613.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377714054","file1":"1377714051","file0":"1377714049","file4":"1377714058","file5":"1377714060","file3":"1377714056"},"map_files_photo_id_array":[{"photo_id":"1377714060","filename":"file5"},{"photo_id":"1377714054","filename":"file2"},{"photo_id":"1377714058","filename":"file4"},{"photo_id":"1377714051","filename":"file1"},{"photo_id":"1377714049","filename":"file0"},{"photo_id":"1377714056","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377714051":["hashtag1","hashtag2"]},{"1377714054":["hashtag1","hashtag2"]},{"1377714056":["hashtag1","hashtag2"]},{"1377714058":["hashtag1","hashtag2"]},{"1377714049":["hashtag1","hashtag2"]},{"1377714060":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377714051, 1377714054, 1377714056, 1377714058, 1377714049, 1377714060)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.074671268463135 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:12:02.441219
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/38/image_18082025_09_38_14_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/09/37/image_18082025_09_38_05_10677.jpg', 2), ('/home/nano/Desktop/images/18082025/09/37/image_18082025_09_37_54_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/09/37/image_18082025_09_37_45_9671.jpg', 2), ('/home/nano/Desktop/images/18082025/09/37/image_18082025_09_37_35_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/09/37/image_18082025_09_37_24_9696.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/38/image_18082025_09_38_14_9650.jpg', '/home/nano/Desktop/images/18082025/09/37/image_18082025_09_38_05_10677.jpg', '/home/nano/Desktop/images/18082025/09/37/image_18082025_09_37_54_9609.jpg', '/home/nano/Desktop/images/18082025/09/37/image_18082025_09_37_45_9671.jpg', '/home/nano/Desktop/images/18082025/09/37/image_18082025_09_37_35_10659.jpg', '/home/nano/Desktop/images/18082025/09/37/image_18082025_09_37_24_9696.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/38/image_18082025_09_38_14_9650.jpg
/home/nano/Desktop/images/18082025/09/37/image_18082025_09_38_05_10677.jpg
/home/nano/Desktop/images/18082025/09/37/image_18082025_09_37_54_9609.jpg
/home/nano/Desktop/images/18082025/09/37/image_18082025_09_37_45_9671.jpg
/home/nano/Desktop/images/18082025/09/37/image_18082025_09_37_35_10659.jpg
/home/nano/Desktop/images/18082025/09/37/image_18082025_09_37_24_9696.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377714063","1377714066","1377714077","1377714070","1377714073","1377714081"],"photo_ids_order":["1377714063","1377714066","1377714070","1377714073","1377714077","1377714081"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8b8c02d76865560281738720fa5c369e.jpg","text":"TemporaryFile(/tmp/multipartBody653401686259003276asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537183814,"filename":"image_18082025_09_38_14_9650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e1937bf39849fa8309424957ca71803d.jpg","text":"TemporaryFile(/tmp/multipartBody5783365780738662014asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537183814,"filename":"image_18082025_09_38_05_10677.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3755d3c12b54613d7c5dc167dbbafa11.jpg","text":"TemporaryFile(/tmp/multipartBody8711383389714962151asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537183814,"filename":"image_18082025_09_37_35_10659.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a181fbcbb5a34b6b691d21bb11a28d41.jpg","text":"TemporaryFile(/tmp/multipartBody8045807608941179680asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537183814,"filename":"image_18082025_09_37_54_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0c22ca896fe5f20ef7b05b15f7161438.jpg","text":"TemporaryFile(/tmp/multipartBody1012333817885498807asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537183814,"filename":"image_18082025_09_37_45_9671.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ab26f442dd011ee15243c079955c4a74.jpg","text":"TemporaryFile(/tmp/multipartBody7893228055765343408asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537183814,"filename":"image_18082025_09_37_24_9696.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377714070","file1":"1377714066","file0":"1377714063","file4":"1377714077","file5":"1377714081","file3":"1377714073"},"map_files_photo_id_array":[{"photo_id":"1377714081","filename":"file5"},{"photo_id":"1377714070","filename":"file2"},{"photo_id":"1377714077","filename":"file4"},{"photo_id":"1377714066","filename":"file1"},{"photo_id":"1377714063","filename":"file0"},{"photo_id":"1377714073","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377714063":["hashtag1","hashtag2"]},{"1377714066":["hashtag1","hashtag2"]},{"1377714077":["hashtag1","hashtag2"]},{"1377714070":["hashtag1","hashtag2"]},{"1377714073":["hashtag1","hashtag2"]},{"1377714081":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377714063, 1377714066, 1377714077, 1377714070, 1377714073, 1377714081)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.11659598350525 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:12:46.785117
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/12/image_18082025_19_12_45_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/19/12/image_18082025_19_12_34_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/19/12/image_18082025_19_12_25_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/19/12/image_18082025_19_12_14_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/19/11/image_18082025_19_12_04_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/19/11/image_18082025_19_11_55_10627.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/12/image_18082025_19_12_45_10627.jpg', '/home/nano/Desktop/images/18082025/19/12/image_18082025_19_12_34_9617.jpg', '/home/nano/Desktop/images/18082025/19/12/image_18082025_19_12_25_10650.jpg', '/home/nano/Desktop/images/18082025/19/12/image_18082025_19_12_14_9631.jpg', '/home/nano/Desktop/images/18082025/19/11/image_18082025_19_12_04_9625.jpg', '/home/nano/Desktop/images/18082025/19/11/image_18082025_19_11_55_10627.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/12/image_18082025_19_12_45_10627.jpg
/home/nano/Desktop/images/18082025/19/12/image_18082025_19_12_34_9617.jpg
/home/nano/Desktop/images/18082025/19/12/image_18082025_19_12_25_10650.jpg
/home/nano/Desktop/images/18082025/19/12/image_18082025_19_12_14_9631.jpg
/home/nano/Desktop/images/18082025/19/11/image_18082025_19_12_04_9625.jpg
/home/nano/Desktop/images/18082025/19/11/image_18082025_19_11_55_10627.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377714105","1377714095","1377714097","1377714101","1377714099","1377714093"],"photo_ids_order":["1377714093","1377714095","1377714097","1377714099","1377714101","1377714105"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d01a371eca0426a86ea6d39efd936a8e.jpg","text":"TemporaryFile(/tmp/multipartBody3432694399611566653asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537228120,"filename":"image_18082025_19_11_55_10627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/00b38804fcfdaff1b978149dabb75225.jpg","text":"TemporaryFile(/tmp/multipartBody1590378300230151998asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537228120,"filename":"image_18082025_19_12_34_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/308323df81658399009cf3fe5a9c6669.jpg","text":"TemporaryFile(/tmp/multipartBody6433978070273179064asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537228120,"filename":"image_18082025_19_12_25_10650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ca4f783a115f46771c8fa33108284909.jpg","text":"TemporaryFile(/tmp/multipartBody6842536476224533115asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537228120,"filename":"image_18082025_19_12_04_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ce22017e14754cac2c55f8f7168d3b11.jpg","text":"TemporaryFile(/tmp/multipartBody4403611746444518252asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537228120,"filename":"image_18082025_19_12_14_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0cb8ae272280765c670ea58591de4e72.jpg","text":"TemporaryFile(/tmp/multipartBody4031527951610244515asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537228120,"filename":"image_18082025_19_12_45_10627.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377714097","file1":"1377714095","file0":"1377714093","file4":"1377714101","file5":"1377714105","file3":"1377714099"},"map_files_photo_id_array":[{"photo_id":"1377714105","filename":"file5"},{"photo_id":"1377714097","filename":"file2"},{"photo_id":"1377714101","filename":"file4"},{"photo_id":"1377714095","filename":"file1"},{"photo_id":"1377714093","filename":"file0"},{"photo_id":"1377714099","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377714105":["hashtag1","hashtag2"]},{"1377714095":["hashtag1","hashtag2"]},{"1377714097":["hashtag1","hashtag2"]},{"1377714101":["hashtag1","hashtag2"]},{"1377714099":["hashtag1","hashtag2"]},{"1377714093":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377714105, 1377714095, 1377714097, 1377714101, 1377714099, 1377714093)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.788617372512817 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:13:31.894164
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/13/image_18082025_19_13_45_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/19/13/image_18082025_19_13_34_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/19/13/image_18082025_19_13_24_9605.jpg', 2), ('/home/nano/Desktop/images/18082025/19/13/image_18082025_19_13_15_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/19/12/image_18082025_19_13_04_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/19/12/image_18082025_19_12_55_9626.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/13/image_18082025_19_13_45_10618.jpg', '/home/nano/Desktop/images/18082025/19/13/image_18082025_19_13_34_9612.jpg', '/home/nano/Desktop/images/18082025/19/13/image_18082025_19_13_24_9605.jpg', '/home/nano/Desktop/images/18082025/19/13/image_18082025_19_13_15_10651.jpg', '/home/nano/Desktop/images/18082025/19/12/image_18082025_19_13_04_9614.jpg', '/home/nano/Desktop/images/18082025/19/12/image_18082025_19_12_55_9626.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/13/image_18082025_19_13_45_10618.jpg
/home/nano/Desktop/images/18082025/19/13/image_18082025_19_13_34_9612.jpg
/home/nano/Desktop/images/18082025/19/13/image_18082025_19_13_24_9605.jpg
/home/nano/Desktop/images/18082025/19/13/image_18082025_19_13_15_10651.jpg
/home/nano/Desktop/images/18082025/19/12/image_18082025_19_13_04_9614.jpg
/home/nano/Desktop/images/18082025/19/12/image_18082025_19_12_55_9626.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377714123","1377714114","1377714117","1377714122","1377714116","1377714119"],"photo_ids_order":["1377714114","1377714116","1377714117","1377714119","1377714122","1377714123"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b003a44d6b89ef02b885326b2c9545a6.jpg","text":"TemporaryFile(/tmp/multipartBody4966889274687514963asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537273088,"filename":"image_18082025_19_12_55_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/56e1cca980329863d2d43fdd16285851.jpg","text":"TemporaryFile(/tmp/multipartBody3890192807153356302asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537273088,"filename":"image_18082025_19_13_45_10618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c32fdef331a1afade5477e74435fb75d.jpg","text":"TemporaryFile(/tmp/multipartBody8745245646354446874asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537273088,"filename":"image_18082025_19_13_24_9605.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/26dfa2ac6cd3a264c973ba91b760b42c.jpg","text":"TemporaryFile(/tmp/multipartBody7966132578966861717asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537273088,"filename":"image_18082025_19_13_04_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7983d03431c81c1b637f03e7c401f62b.jpg","text":"TemporaryFile(/tmp/multipartBody5035369259512577336asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537273088,"filename":"image_18082025_19_13_34_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d8f17df47fafd9b4d3d6032f275a091b.jpg","text":"TemporaryFile(/tmp/multipartBody1562009621477543495asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537273088,"filename":"image_18082025_19_13_15_10651.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377714117","file1":"1377714116","file0":"1377714114","file4":"1377714122","file5":"1377714123","file3":"1377714119"},"map_files_photo_id_array":[{"photo_id":"1377714123","filename":"file5"},{"photo_id":"1377714117","filename":"file2"},{"photo_id":"1377714122","filename":"file4"},{"photo_id":"1377714116","filename":"file1"},{"photo_id":"1377714114","filename":"file0"},{"photo_id":"1377714119","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377714123":["hashtag1","hashtag2"]},{"1377714114":["hashtag1","hashtag2"]},{"1377714117":["hashtag1","hashtag2"]},{"1377714122":["hashtag1","hashtag2"]},{"1377714116":["hashtag1","hashtag2"]},{"1377714119":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377714123, 1377714114, 1377714117, 1377714122, 1377714116, 1377714119)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.63056254386902 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:14:17.058541
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/14/image_18082025_19_14_44_9605.jpg', 2), ('/home/nano/Desktop/images/18082025/19/14/image_18082025_19_14_35_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/19/14/image_18082025_19_14_24_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/19/14/image_18082025_19_14_15_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/19/13/image_18082025_19_14_05_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/19/13/image_18082025_19_13_54_9612.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/14/image_18082025_19_14_44_9605.jpg', '/home/nano/Desktop/images/18082025/19/14/image_18082025_19_14_35_10627.jpg', '/home/nano/Desktop/images/18082025/19/14/image_18082025_19_14_24_9615.jpg', '/home/nano/Desktop/images/18082025/19/14/image_18082025_19_14_15_9616.jpg', '/home/nano/Desktop/images/18082025/19/13/image_18082025_19_14_05_10644.jpg', '/home/nano/Desktop/images/18082025/19/13/image_18082025_19_13_54_9612.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/14/image_18082025_19_14_44_9605.jpg
/home/nano/Desktop/images/18082025/19/14/image_18082025_19_14_35_10627.jpg
/home/nano/Desktop/images/18082025/19/14/image_18082025_19_14_24_9615.jpg
/home/nano/Desktop/images/18082025/19/14/image_18082025_19_14_15_9616.jpg
/home/nano/Desktop/images/18082025/19/13/image_18082025_19_14_05_10644.jpg
/home/nano/Desktop/images/18082025/19/13/image_18082025_19_13_54_9612.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377714141","1377714144","1377714132","1377714134","1377714137","1377714142"],"photo_ids_order":["1377714132","1377714134","1377714137","1377714141","1377714142","1377714144"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/09028b2cd02c18a01583e71c3c93443c.jpg","text":"TemporaryFile(/tmp/multipartBody1691857016572573017asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537318460,"filename":"image_18082025_19_14_15_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e7d50d65d9c1fc8a2b1a5aae159cba9c.jpg","text":"TemporaryFile(/tmp/multipartBody3443128548014525121asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537318460,"filename":"image_18082025_19_13_54_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1a08230657af3ca9ac200ac7ee965045.jpg","text":"TemporaryFile(/tmp/multipartBody9197805907578702290asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537318460,"filename":"image_18082025_19_14_44_9605.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b37749519976febaee00495a4dcc30a1.jpg","text":"TemporaryFile(/tmp/multipartBody2495357800656535489asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537318460,"filename":"image_18082025_19_14_35_10627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/50035cf7ab3d81b4f5ad677dea918556.jpg","text":"TemporaryFile(/tmp/multipartBody7091796370009881229asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537318460,"filename":"image_18082025_19_14_24_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4a04836af514bcc5c99ff9bd759ddf53.jpg","text":"TemporaryFile(/tmp/multipartBody6228712508293077822asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537318460,"filename":"image_18082025_19_14_05_10644.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377714137","file1":"1377714134","file0":"1377714132","file4":"1377714142","file5":"1377714144","file3":"1377714141"},"map_files_photo_id_array":[{"photo_id":"1377714144","filename":"file5"},{"photo_id":"1377714137","filename":"file2"},{"photo_id":"1377714142","filename":"file4"},{"photo_id":"1377714134","filename":"file1"},{"photo_id":"1377714132","filename":"file0"},{"photo_id":"1377714141","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377714141":["hashtag1","hashtag2"]},{"1377714144":["hashtag1","hashtag2"]},{"1377714132":["hashtag1","hashtag2"]},{"1377714134":["hashtag1","hashtag2"]},{"1377714137":["hashtag1","hashtag2"]},{"1377714142":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377714141, 1377714144, 1377714132, 1377714134, 1377714137, 1377714142)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.54834246635437 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:15:02.960461
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/37/image_18082025_09_37_15_9682.jpg', 2), ('/home/nano/Desktop/images/18082025/09/36/image_18082025_09_37_05_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/09/36/image_18082025_09_36_54_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/09/36/image_18082025_09_36_45_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/09/36/image_18082025_09_36_35_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/09/36/image_18082025_09_36_24_9649.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/37/image_18082025_09_37_15_9682.jpg', '/home/nano/Desktop/images/18082025/09/36/image_18082025_09_37_05_10652.jpg', '/home/nano/Desktop/images/18082025/09/36/image_18082025_09_36_54_9669.jpg', '/home/nano/Desktop/images/18082025/09/36/image_18082025_09_36_45_9641.jpg', '/home/nano/Desktop/images/18082025/09/36/image_18082025_09_36_35_10637.jpg', '/home/nano/Desktop/images/18082025/09/36/image_18082025_09_36_24_9649.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/37/image_18082025_09_37_15_9682.jpg
/home/nano/Desktop/images/18082025/09/36/image_18082025_09_37_05_10652.jpg
/home/nano/Desktop/images/18082025/09/36/image_18082025_09_36_54_9669.jpg
/home/nano/Desktop/images/18082025/09/36/image_18082025_09_36_45_9641.jpg
/home/nano/Desktop/images/18082025/09/36/image_18082025_09_36_35_10637.jpg
/home/nano/Desktop/images/18082025/09/36/image_18082025_09_36_24_9649.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377714162","1377714165","1377714159","1377714170","1377714167","1377714155"],"photo_ids_order":["1377714155","1377714159","1377714162","1377714165","1377714167","1377714170"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/72b2024ad8cd9da61eef032863824de2.jpg","text":"TemporaryFile(/tmp/multipartBody8975993604969390049asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537364400,"filename":"image_18082025_09_36_54_9669.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3967adac0f38eb3f3fdbf3b7ff9ffbe3.jpg","text":"TemporaryFile(/tmp/multipartBody859679816551697651asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537364400,"filename":"image_18082025_09_36_45_9641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/472666b5add0de8e5ae207680fcdcd62.jpg","text":"TemporaryFile(/tmp/multipartBody285164891354304136asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537364400,"filename":"image_18082025_09_37_05_10652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9d64ad6f14d4ca4af7c15c6a7d6bffc6.jpg","text":"TemporaryFile(/tmp/multipartBody707316678181583118asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537364400,"filename":"image_18082025_09_36_24_9649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5c1b1890e8ef6ef3584faa2bea8a4a06.jpg","text":"TemporaryFile(/tmp/multipartBody4354800667000750104asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537364400,"filename":"image_18082025_09_36_35_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/83bf9bb757acdd746ed05dc6292a8295.jpg","text":"TemporaryFile(/tmp/multipartBody248266705799347936asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537364400,"filename":"image_18082025_09_37_15_9682.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377714162","file1":"1377714159","file0":"1377714155","file4":"1377714167","file5":"1377714170","file3":"1377714165"},"map_files_photo_id_array":[{"photo_id":"1377714170","filename":"file5"},{"photo_id":"1377714162","filename":"file2"},{"photo_id":"1377714167","filename":"file4"},{"photo_id":"1377714159","filename":"file1"},{"photo_id":"1377714155","filename":"file0"},{"photo_id":"1377714165","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377714162":["hashtag1","hashtag2"]},{"1377714165":["hashtag1","hashtag2"]},{"1377714159":["hashtag1","hashtag2"]},{"1377714170":["hashtag1","hashtag2"]},{"1377714167":["hashtag1","hashtag2"]},{"1377714155":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377714162, 1377714165, 1377714159, 1377714170, 1377714167, 1377714155)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.69406270980835 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:15:47.163751
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/15/image_18082025_19_15_44_9604.jpg', 2), ('/home/nano/Desktop/images/18082025/19/15/image_18082025_19_15_35_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/19/15/image_18082025_19_15_25_10620.jpg', 2), ('/home/nano/Desktop/images/18082025/19/15/image_18082025_19_15_14_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/19/14/image_18082025_19_15_05_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/19/14/image_18082025_19_14_55_10616.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/15/image_18082025_19_15_44_9604.jpg', '/home/nano/Desktop/images/18082025/19/15/image_18082025_19_15_35_9607.jpg', '/home/nano/Desktop/images/18082025/19/15/image_18082025_19_15_25_10620.jpg', '/home/nano/Desktop/images/18082025/19/15/image_18082025_19_15_14_9653.jpg', '/home/nano/Desktop/images/18082025/19/14/image_18082025_19_15_05_9625.jpg', '/home/nano/Desktop/images/18082025/19/14/image_18082025_19_14_55_10616.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/15/image_18082025_19_15_44_9604.jpg
/home/nano/Desktop/images/18082025/19/15/image_18082025_19_15_35_9607.jpg
/home/nano/Desktop/images/18082025/19/15/image_18082025_19_15_25_10620.jpg
/home/nano/Desktop/images/18082025/19/15/image_18082025_19_15_14_9653.jpg
/home/nano/Desktop/images/18082025/19/14/image_18082025_19_15_05_9625.jpg
/home/nano/Desktop/images/18082025/19/14/image_18082025_19_14_55_10616.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377714185","1377714194","1377714188","1377714190","1377714192","1377714186"],"photo_ids_order":["1377714185","1377714186","1377714188","1377714190","1377714192","1377714194"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4c708fba22ac8d8d60a8357a53474240.jpg","text":"TemporaryFile(/tmp/multipartBody403470067690115549asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537408590,"filename":"image_18082025_19_15_44_9604.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/64f3099d00866269d93e0e44ff42f0bb.jpg","text":"TemporaryFile(/tmp/multipartBody4149232874160849827asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537408590,"filename":"image_18082025_19_14_55_10616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7d966e140e26c2c99d168597b0a37c02.jpg","text":"TemporaryFile(/tmp/multipartBody1642918748392041497asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537408590,"filename":"image_18082025_19_15_25_10620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/60c0a8a92f001db879ee4f2b60f5712b.jpg","text":"TemporaryFile(/tmp/multipartBody3372384412112967491asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537408590,"filename":"image_18082025_19_15_14_9653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3eb6ad39df7b4bb926fd6948db18a654.jpg","text":"TemporaryFile(/tmp/multipartBody2988123487827245742asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537408590,"filename":"image_18082025_19_15_05_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b7e0b16b3e54b914dd62c142e29b7cf3.jpg","text":"TemporaryFile(/tmp/multipartBody21430545394322365asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537408590,"filename":"image_18082025_19_15_35_9607.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377714188","file1":"1377714186","file0":"1377714185","file4":"1377714192","file5":"1377714194","file3":"1377714190"},"map_files_photo_id_array":[{"photo_id":"1377714194","filename":"file5"},{"photo_id":"1377714188","filename":"file2"},{"photo_id":"1377714192","filename":"file4"},{"photo_id":"1377714186","filename":"file1"},{"photo_id":"1377714185","filename":"file0"},{"photo_id":"1377714190","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377714185":["hashtag1","hashtag2"]},{"1377714194":["hashtag1","hashtag2"]},{"1377714188":["hashtag1","hashtag2"]},{"1377714190":["hashtag1","hashtag2"]},{"1377714192":["hashtag1","hashtag2"]},{"1377714186":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377714185, 1377714194, 1377714188, 1377714190, 1377714192, 1377714186)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.03548765182495 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:16:32.250600
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/16/image_18082025_19_16_45_10622.jpg', 2), ('/home/nano/Desktop/images/18082025/19/16/image_18082025_19_16_34_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/19/16/image_18082025_19_16_25_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/19/16/image_18082025_19_16_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/19/15/image_18082025_19_16_04_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/19/15/image_18082025_19_15_55_10620.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/16/image_18082025_19_16_45_10622.jpg', '/home/nano/Desktop/images/18082025/19/16/image_18082025_19_16_34_9607.jpg', '/home/nano/Desktop/images/18082025/19/16/image_18082025_19_16_25_10631.jpg', '/home/nano/Desktop/images/18082025/19/16/image_18082025_19_16_14_9656.jpg', '/home/nano/Desktop/images/18082025/19/15/image_18082025_19_16_04_9628.jpg', '/home/nano/Desktop/images/18082025/19/15/image_18082025_19_15_55_10620.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/16/image_18082025_19_16_45_10622.jpg
/home/nano/Desktop/images/18082025/19/16/image_18082025_19_16_34_9607.jpg
/home/nano/Desktop/images/18082025/19/16/image_18082025_19_16_25_10631.jpg
/home/nano/Desktop/images/18082025/19/16/image_18082025_19_16_14_9656.jpg
/home/nano/Desktop/images/18082025/19/15/image_18082025_19_16_04_9628.jpg
/home/nano/Desktop/images/18082025/19/15/image_18082025_19_15_55_10620.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377714225","1377714219","1377714227","1377714221","1377714218","1377714223"],"photo_ids_order":["1377714218","1377714219","1377714221","1377714223","1377714225","1377714227"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/49772382df324b06583846e0c54829ac.jpg","text":"TemporaryFile(/tmp/multipartBody172267427856786865asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537453665,"filename":"image_18082025_19_16_04_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2cd13adff2d3e608e9677a104d8c9a9b.jpg","text":"TemporaryFile(/tmp/multipartBody9221941584944050415asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537453665,"filename":"image_18082025_19_16_34_9607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/98ddc220baa78008a73c3693eb30df49.jpg","text":"TemporaryFile(/tmp/multipartBody8560611042571892395asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537453665,"filename":"image_18082025_19_15_55_10620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1179ed67ff03e3366b9eac190606e597.jpg","text":"TemporaryFile(/tmp/multipartBody5168929588803646903asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537453665,"filename":"image_18082025_19_16_25_10631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/27363fc45e92f620a84c64db5d20f4c9.jpg","text":"TemporaryFile(/tmp/multipartBody7506590910679152850asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537453665,"filename":"image_18082025_19_16_45_10622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/11fb2a324885f903d2de12ff3a1f0e57.jpg","text":"TemporaryFile(/tmp/multipartBody7801884733179333357asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537453665,"filename":"image_18082025_19_16_14_9656.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377714221","file1":"1377714219","file0":"1377714218","file4":"1377714225","file5":"1377714227","file3":"1377714223"},"map_files_photo_id_array":[{"photo_id":"1377714227","filename":"file5"},{"photo_id":"1377714221","filename":"file2"},{"photo_id":"1377714225","filename":"file4"},{"photo_id":"1377714219","filename":"file1"},{"photo_id":"1377714218","filename":"file0"},{"photo_id":"1377714223","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377714225":["hashtag1","hashtag2"]},{"1377714219":["hashtag1","hashtag2"]},{"1377714227":["hashtag1","hashtag2"]},{"1377714221":["hashtag1","hashtag2"]},{"1377714218":["hashtag1","hashtag2"]},{"1377714223":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377714225, 1377714219, 1377714227, 1377714221, 1377714218, 1377714223)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.1147620677948 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:17:17.354495
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/17/image_18082025_19_17_45_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/19/17/image_18082025_19_17_35_10619.jpg', 2), ('/home/nano/Desktop/images/18082025/19/17/image_18082025_19_17_24_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/19/17/image_18082025_19_17_15_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/19/16/image_18082025_19_17_04_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/19/16/image_18082025_19_16_55_9612.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/17/image_18082025_19_17_45_9607.jpg', '/home/nano/Desktop/images/18082025/19/17/image_18082025_19_17_35_10619.jpg', '/home/nano/Desktop/images/18082025/19/17/image_18082025_19_17_24_9612.jpg', '/home/nano/Desktop/images/18082025/19/17/image_18082025_19_17_15_10646.jpg', '/home/nano/Desktop/images/18082025/19/16/image_18082025_19_17_04_9631.jpg', '/home/nano/Desktop/images/18082025/19/16/image_18082025_19_16_55_9612.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/17/image_18082025_19_17_45_9607.jpg
/home/nano/Desktop/images/18082025/19/17/image_18082025_19_17_35_10619.jpg
/home/nano/Desktop/images/18082025/19/17/image_18082025_19_17_24_9612.jpg
/home/nano/Desktop/images/18082025/19/17/image_18082025_19_17_15_10646.jpg
/home/nano/Desktop/images/18082025/19/16/image_18082025_19_17_04_9631.jpg
/home/nano/Desktop/images/18082025/19/16/image_18082025_19_16_55_9612.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377714249","1377714237","1377714245","1377714242","1377714239","1377714247"],"photo_ids_order":["1377714237","1377714239","1377714242","1377714245","1377714247","1377714249"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c4fe80966b8cdc67d248abd1c21020d3.jpg","text":"TemporaryFile(/tmp/multipartBody5960972876501083193asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537498573,"filename":"image_18082025_19_16_55_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4e13585e8876776e310a6cae370d61dc.jpg","text":"TemporaryFile(/tmp/multipartBody1629174155608049956asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537498573,"filename":"image_18082025_19_17_45_9607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a1ae7f9299e27e9770fdc19afaa1d852.jpg","text":"TemporaryFile(/tmp/multipartBody9009975312799570946asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537498573,"filename":"image_18082025_19_17_15_10646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/469d62aa615a49b966cdf8c897051cbc.jpg","text":"TemporaryFile(/tmp/multipartBody8238281006159634843asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537498573,"filename":"image_18082025_19_17_24_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ef1f1b274432b5b96a905962afd27594.jpg","text":"TemporaryFile(/tmp/multipartBody3207802018729756444asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537498573,"filename":"image_18082025_19_17_35_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/11efcc23f3c40ecc04005d1a4e64a65d.jpg","text":"TemporaryFile(/tmp/multipartBody1992212226387511308asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537498573,"filename":"image_18082025_19_17_04_9631.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377714242","file1":"1377714239","file0":"1377714237","file4":"1377714247","file5":"1377714249","file3":"1377714245"},"map_files_photo_id_array":[{"photo_id":"1377714249","filename":"file5"},{"photo_id":"1377714242","filename":"file2"},{"photo_id":"1377714247","filename":"file4"},{"photo_id":"1377714239","filename":"file1"},{"photo_id":"1377714237","filename":"file0"},{"photo_id":"1377714245","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377714249":["hashtag1","hashtag2"]},{"1377714237":["hashtag1","hashtag2"]},{"1377714245":["hashtag1","hashtag2"]},{"1377714242":["hashtag1","hashtag2"]},{"1377714239":["hashtag1","hashtag2"]},{"1377714247":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377714249, 1377714237, 1377714245, 1377714242, 1377714239, 1377714247)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.226430416107178 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:18:03.004600
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/36/image_18082025_09_36_15_9722.jpg', 2), ('/home/nano/Desktop/images/18082025/09/35/image_18082025_09_36_05_10701.jpg', 2), ('/home/nano/Desktop/images/18082025/09/35/image_18082025_09_35_54_9677.jpg', 2), ('/home/nano/Desktop/images/18082025/09/35/image_18082025_09_35_45_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/09/35/image_18082025_09_35_35_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/09/35/image_18082025_09_35_24_9664.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/36/image_18082025_09_36_15_9722.jpg', '/home/nano/Desktop/images/18082025/09/35/image_18082025_09_36_05_10701.jpg', '/home/nano/Desktop/images/18082025/09/35/image_18082025_09_35_54_9677.jpg', '/home/nano/Desktop/images/18082025/09/35/image_18082025_09_35_45_9625.jpg', '/home/nano/Desktop/images/18082025/09/35/image_18082025_09_35_35_10652.jpg', '/home/nano/Desktop/images/18082025/09/35/image_18082025_09_35_24_9664.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/36/image_18082025_09_36_15_9722.jpg
/home/nano/Desktop/images/18082025/09/35/image_18082025_09_36_05_10701.jpg
/home/nano/Desktop/images/18082025/09/35/image_18082025_09_35_54_9677.jpg
/home/nano/Desktop/images/18082025/09/35/image_18082025_09_35_45_9625.jpg
/home/nano/Desktop/images/18082025/09/35/image_18082025_09_35_35_10652.jpg
/home/nano/Desktop/images/18082025/09/35/image_18082025_09_35_24_9664.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377714264","1377714263","1377714266","1377714260","1377714254","1377714257"],"photo_ids_order":["1377714254","1377714257","1377714260","1377714263","1377714264","1377714266"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0e6dd8386785c0afdbbebabb1878ebaf.jpg","text":"TemporaryFile(/tmp/multipartBody7867560347414807330asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537544467,"filename":"image_18082025_09_35_35_10652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ef9b53dd57e12e2d261a79ad7317db17.jpg","text":"TemporaryFile(/tmp/multipartBody6511619823342204884asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537544467,"filename":"image_18082025_09_35_45_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/03b6c403f06a49227277477d1f5ee6e5.jpg","text":"TemporaryFile(/tmp/multipartBody20501695090610184asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537544467,"filename":"image_18082025_09_35_24_9664.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2454ea5ad6e9775f4333bd82e0ef7064.jpg","text":"TemporaryFile(/tmp/multipartBody3135584677240603198asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537544467,"filename":"image_18082025_09_35_54_9677.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/142ba3e286e47c37c4383dea70bbaf72.jpg","text":"TemporaryFile(/tmp/multipartBody4200365320978580106asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537544467,"filename":"image_18082025_09_36_15_9722.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/972924c03e6186fd0bf7932ed0e557f0.jpg","text":"TemporaryFile(/tmp/multipartBody1166201023623262629asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537544467,"filename":"image_18082025_09_36_05_10701.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377714260","file1":"1377714257","file0":"1377714254","file4":"1377714264","file5":"1377714266","file3":"1377714263"},"map_files_photo_id_array":[{"photo_id":"1377714266","filename":"file5"},{"photo_id":"1377714260","filename":"file2"},{"photo_id":"1377714264","filename":"file4"},{"photo_id":"1377714257","filename":"file1"},{"photo_id":"1377714254","filename":"file0"},{"photo_id":"1377714263","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377714264":["hashtag1","hashtag2"]},{"1377714263":["hashtag1","hashtag2"]},{"1377714266":["hashtag1","hashtag2"]},{"1377714260":["hashtag1","hashtag2"]},{"1377714254":["hashtag1","hashtag2"]},{"1377714257":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377714264, 1377714263, 1377714266, 1377714260, 1377714254, 1377714257)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.51754832267761 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:18:47.461126
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/18/image_18082025_19_18_44_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/19/18/image_18082025_19_18_35_10643.jpg', 2), ('/home/nano/Desktop/images/18082025/19/18/image_18082025_19_18_24_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/19/18/image_18082025_19_18_15_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/19/17/image_18082025_19_18_05_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/19/17/image_18082025_19_17_54_9613.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/18/image_18082025_19_18_44_9609.jpg', '/home/nano/Desktop/images/18082025/19/18/image_18082025_19_18_35_10643.jpg', '/home/nano/Desktop/images/18082025/19/18/image_18082025_19_18_24_9609.jpg', '/home/nano/Desktop/images/18082025/19/18/image_18082025_19_18_15_9645.jpg', '/home/nano/Desktop/images/18082025/19/17/image_18082025_19_18_05_10626.jpg', '/home/nano/Desktop/images/18082025/19/17/image_18082025_19_17_54_9613.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/18/image_18082025_19_18_44_9609.jpg
/home/nano/Desktop/images/18082025/19/18/image_18082025_19_18_35_10643.jpg
/home/nano/Desktop/images/18082025/19/18/image_18082025_19_18_24_9609.jpg
/home/nano/Desktop/images/18082025/19/18/image_18082025_19_18_15_9645.jpg
/home/nano/Desktop/images/18082025/19/17/image_18082025_19_18_05_10626.jpg
/home/nano/Desktop/images/18082025/19/17/image_18082025_19_17_54_9613.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377714281","1377714275","1377714283","1377714277","1377714286","1377714279"],"photo_ids_order":["1377714275","1377714277","1377714279","1377714281","1377714283","1377714286"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/165c9fea41f5010280018ff001aa26cf.jpg","text":"TemporaryFile(/tmp/multipartBody1716869491591959181asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537588816,"filename":"image_18082025_19_18_15_9645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2354bcd52b79c5abf76c71ce5f2b2b0d.jpg","text":"TemporaryFile(/tmp/multipartBody3593412614347544834asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537588816,"filename":"image_18082025_19_18_44_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6422ae4cd02fa5945ed36172114dd72c.jpg","text":"TemporaryFile(/tmp/multipartBody7187378425209731105asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537588816,"filename":"image_18082025_19_18_05_10626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e2028ba1b0d059f11d8f9c46a22436d8.jpg","text":"TemporaryFile(/tmp/multipartBody2462562768788243047asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537588816,"filename":"image_18082025_19_18_35_10643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6709696a3c97f9bd8d37b1079c9d3501.jpg","text":"TemporaryFile(/tmp/multipartBody4959792917543639779asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537588816,"filename":"image_18082025_19_17_54_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a3c7ddd4940e0a100a2d0335c7253929.jpg","text":"TemporaryFile(/tmp/multipartBody5318833601834826601asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537588816,"filename":"image_18082025_19_18_24_9609.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377714279","file1":"1377714277","file0":"1377714275","file4":"1377714283","file5":"1377714286","file3":"1377714281"},"map_files_photo_id_array":[{"photo_id":"1377714286","filename":"file5"},{"photo_id":"1377714279","filename":"file2"},{"photo_id":"1377714283","filename":"file4"},{"photo_id":"1377714277","filename":"file1"},{"photo_id":"1377714275","filename":"file0"},{"photo_id":"1377714281","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377714281":["hashtag1","hashtag2"]},{"1377714275":["hashtag1","hashtag2"]},{"1377714283":["hashtag1","hashtag2"]},{"1377714277":["hashtag1","hashtag2"]},{"1377714286":["hashtag1","hashtag2"]},{"1377714279":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377714281, 1377714275, 1377714283, 1377714277, 1377714286, 1377714279)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.909753561019897 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:19:32.578131
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/19/image_18082025_19_19_44_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/19/19/image_18082025_19_19_35_9602.jpg', 2), ('/home/nano/Desktop/images/18082025/19/19/image_18082025_19_19_25_10619.jpg', 2), ('/home/nano/Desktop/images/18082025/19/19/image_18082025_19_19_14_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/19/18/image_18082025_19_19_05_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/19/18/image_18082025_19_18_55_10627.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/19/image_18082025_19_19_44_9606.jpg', '/home/nano/Desktop/images/18082025/19/19/image_18082025_19_19_35_9602.jpg', '/home/nano/Desktop/images/18082025/19/19/image_18082025_19_19_25_10619.jpg', '/home/nano/Desktop/images/18082025/19/19/image_18082025_19_19_14_9634.jpg', '/home/nano/Desktop/images/18082025/19/18/image_18082025_19_19_05_9617.jpg', '/home/nano/Desktop/images/18082025/19/18/image_18082025_19_18_55_10627.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/19/image_18082025_19_19_44_9606.jpg
/home/nano/Desktop/images/18082025/19/19/image_18082025_19_19_35_9602.jpg
/home/nano/Desktop/images/18082025/19/19/image_18082025_19_19_25_10619.jpg
/home/nano/Desktop/images/18082025/19/19/image_18082025_19_19_14_9634.jpg
/home/nano/Desktop/images/18082025/19/18/image_18082025_19_19_05_9617.jpg
/home/nano/Desktop/images/18082025/19/18/image_18082025_19_18_55_10627.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377714315","1377714296","1377714299","1377714317","1377714298","1377714304"],"photo_ids_order":["1377714296","1377714298","1377714299","1377714304","1377714315","1377714317"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6a66612de61677e813ce51ad8c33c110.jpg","text":"TemporaryFile(/tmp/multipartBody1828380735379781412asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537633995,"filename":"image_18082025_19_19_05_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6cb950bd498612bd221a7b93aa45c8b1.jpg","text":"TemporaryFile(/tmp/multipartBody3528279840069053985asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537633995,"filename":"image_18082025_19_19_44_9606.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f1afd835cff829ca53c2cfaae121d82c.jpg","text":"TemporaryFile(/tmp/multipartBody5736144950980058743asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537633995,"filename":"image_18082025_19_19_25_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dfd3b04aa12f199c23c6b7a99f1a0c92.jpg","text":"TemporaryFile(/tmp/multipartBody260876909346006281asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537633995,"filename":"image_18082025_19_18_55_10627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dc3dc88a665f137860d26bfa68b20d33.jpg","text":"TemporaryFile(/tmp/multipartBody2372103073042160161asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537633995,"filename":"image_18082025_19_19_35_9602.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/95c86bb7b1a0de7e990b05f24303a3a8.jpg","text":"TemporaryFile(/tmp/multipartBody7625500655541559996asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537633995,"filename":"image_18082025_19_19_14_9634.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377714299","file1":"1377714298","file0":"1377714296","file4":"1377714315","file5":"1377714317","file3":"1377714304"},"map_files_photo_id_array":[{"photo_id":"1377714317","filename":"file5"},{"photo_id":"1377714299","filename":"file2"},{"photo_id":"1377714315","filename":"file4"},{"photo_id":"1377714298","filename":"file1"},{"photo_id":"1377714296","filename":"file0"},{"photo_id":"1377714304","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377714315":["hashtag1","hashtag2"]},{"1377714296":["hashtag1","hashtag2"]},{"1377714299":["hashtag1","hashtag2"]},{"1377714317":["hashtag1","hashtag2"]},{"1377714298":["hashtag1","hashtag2"]},{"1377714304":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377714315, 1377714296, 1377714299, 1377714317, 1377714298, 1377714304)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.435290813446045 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:20:17.709703
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/20/image_18082025_19_20_45_10612.jpg', 2), ('/home/nano/Desktop/images/18082025/19/20/image_18082025_19_20_34_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/19/20/image_18082025_19_20_25_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/19/20/image_18082025_19_20_15_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/19/19/image_18082025_19_20_04_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/19/19/image_18082025_19_19_55_10636.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/20/image_18082025_19_20_45_10612.jpg', '/home/nano/Desktop/images/18082025/19/20/image_18082025_19_20_34_9610.jpg', '/home/nano/Desktop/images/18082025/19/20/image_18082025_19_20_25_9608.jpg', '/home/nano/Desktop/images/18082025/19/20/image_18082025_19_20_15_10631.jpg', '/home/nano/Desktop/images/18082025/19/19/image_18082025_19_20_04_9644.jpg', '/home/nano/Desktop/images/18082025/19/19/image_18082025_19_19_55_10636.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/20/image_18082025_19_20_45_10612.jpg
/home/nano/Desktop/images/18082025/19/20/image_18082025_19_20_34_9610.jpg
/home/nano/Desktop/images/18082025/19/20/image_18082025_19_20_25_9608.jpg
/home/nano/Desktop/images/18082025/19/20/image_18082025_19_20_15_10631.jpg
/home/nano/Desktop/images/18082025/19/19/image_18082025_19_20_04_9644.jpg
/home/nano/Desktop/images/18082025/19/19/image_18082025_19_19_55_10636.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377714342","1377714336","1377714344","1377714332","1377714337","1377714340"],"photo_ids_order":["1377714332","1377714336","1377714337","1377714340","1377714342","1377714344"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5db0e0cb6d9fc986d834a37ecac2bfa0.jpg","text":"TemporaryFile(/tmp/multipartBody7999576724656301925asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537678933,"filename":"image_18082025_19_20_04_9644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7d2b900c54f1ba640f71a3c7708ca6be.jpg","text":"TemporaryFile(/tmp/multipartBody5106864102314220334asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537678933,"filename":"image_18082025_19_20_34_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/46a7c1acead156df6066aacaec8da65b.jpg","text":"TemporaryFile(/tmp/multipartBody5121497807861845563asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537678933,"filename":"image_18082025_19_19_55_10636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b70fed82b82799dc87bcd61c3e582434.jpg","text":"TemporaryFile(/tmp/multipartBody5521023924830645577asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537678933,"filename":"image_18082025_19_20_45_10612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2abca6acaa6667eb06431f0b49c99375.jpg","text":"TemporaryFile(/tmp/multipartBody272082771515063978asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537678933,"filename":"image_18082025_19_20_25_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c29c2d48b74d0c62e4a7e6ef58936003.jpg","text":"TemporaryFile(/tmp/multipartBody2823799369133920209asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537678933,"filename":"image_18082025_19_20_15_10631.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377714337","file1":"1377714336","file0":"1377714332","file4":"1377714342","file5":"1377714344","file3":"1377714340"},"map_files_photo_id_array":[{"photo_id":"1377714344","filename":"file5"},{"photo_id":"1377714337","filename":"file2"},{"photo_id":"1377714342","filename":"file4"},{"photo_id":"1377714336","filename":"file1"},{"photo_id":"1377714332","filename":"file0"},{"photo_id":"1377714340","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377714342":["hashtag1","hashtag2"]},{"1377714336":["hashtag1","hashtag2"]},{"1377714344":["hashtag1","hashtag2"]},{"1377714332":["hashtag1","hashtag2"]},{"1377714337":["hashtag1","hashtag2"]},{"1377714340":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377714342, 1377714336, 1377714344, 1377714332, 1377714337, 1377714340)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.20889949798584 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:21:02.537253
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/35/image_18082025_09_35_15_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/09/34/image_18082025_09_35_05_10682.jpg', 2), ('/home/nano/Desktop/images/18082025/09/34/image_18082025_09_34_54_9681.jpg', 2), ('/home/nano/Desktop/images/18082025/09/34/image_18082025_09_34_45_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/09/34/image_18082025_09_34_35_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/09/34/image_18082025_09_34_24_9670.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/35/image_18082025_09_35_15_9653.jpg', '/home/nano/Desktop/images/18082025/09/34/image_18082025_09_35_05_10682.jpg', '/home/nano/Desktop/images/18082025/09/34/image_18082025_09_34_54_9681.jpg', '/home/nano/Desktop/images/18082025/09/34/image_18082025_09_34_45_9636.jpg', '/home/nano/Desktop/images/18082025/09/34/image_18082025_09_34_35_10665.jpg', '/home/nano/Desktop/images/18082025/09/34/image_18082025_09_34_24_9670.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/35/image_18082025_09_35_15_9653.jpg
/home/nano/Desktop/images/18082025/09/34/image_18082025_09_35_05_10682.jpg
/home/nano/Desktop/images/18082025/09/34/image_18082025_09_34_54_9681.jpg
/home/nano/Desktop/images/18082025/09/34/image_18082025_09_34_45_9636.jpg
/home/nano/Desktop/images/18082025/09/34/image_18082025_09_34_35_10665.jpg
/home/nano/Desktop/images/18082025/09/34/image_18082025_09_34_24_9670.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377714357","1377714362","1377714359","1377714350","1377714353","1377714355"],"photo_ids_order":["1377714350","1377714353","1377714355","1377714357","1377714359","1377714362"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2f3684f2008a41d926c09c18cd53525b.jpg","text":"TemporaryFile(/tmp/multipartBody6467677109529280541asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537723963,"filename":"image_18082025_09_34_45_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/da83f435e64cfde56bd5540f55f54931.jpg","text":"TemporaryFile(/tmp/multipartBody6751305670913972847asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537723963,"filename":"image_18082025_09_34_24_9670.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1b73033791c775cf27d5fcffc005db0c.jpg","text":"TemporaryFile(/tmp/multipartBody5343404453776306304asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537723963,"filename":"image_18082025_09_34_35_10665.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/75bd0fca8e695cbc7ae6ec6d532ffe7e.jpg","text":"TemporaryFile(/tmp/multipartBody8016767773307332880asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537723963,"filename":"image_18082025_09_35_15_9653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/72a708e78bf0188e4a309fff227e3993.jpg","text":"TemporaryFile(/tmp/multipartBody6169909632204721481asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537723963,"filename":"image_18082025_09_35_05_10682.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3111adec90551c4234a806564ac84547.jpg","text":"TemporaryFile(/tmp/multipartBody619159628385091352asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537723963,"filename":"image_18082025_09_34_54_9681.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377714355","file1":"1377714353","file0":"1377714350","file4":"1377714359","file5":"1377714362","file3":"1377714357"},"map_files_photo_id_array":[{"photo_id":"1377714362","filename":"file5"},{"photo_id":"1377714355","filename":"file2"},{"photo_id":"1377714359","filename":"file4"},{"photo_id":"1377714353","filename":"file1"},{"photo_id":"1377714350","filename":"file0"},{"photo_id":"1377714357","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377714357":["hashtag1","hashtag2"]},{"1377714362":["hashtag1","hashtag2"]},{"1377714359":["hashtag1","hashtag2"]},{"1377714350":["hashtag1","hashtag2"]},{"1377714353":["hashtag1","hashtag2"]},{"1377714355":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377714357, 1377714362, 1377714359, 1377714350, 1377714353, 1377714355)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.834925889968872 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:21:46.820693
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/21/image_18082025_19_21_45_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/19/21/image_18082025_19_21_35_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/19/21/image_18082025_19_21_24_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/19/21/image_18082025_19_21_15_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/19/20/image_18082025_19_21_04_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/19/20/image_18082025_19_20_54_9628.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/21/image_18082025_19_21_45_9619.jpg', '/home/nano/Desktop/images/18082025/19/21/image_18082025_19_21_35_10635.jpg', '/home/nano/Desktop/images/18082025/19/21/image_18082025_19_21_24_9612.jpg', '/home/nano/Desktop/images/18082025/19/21/image_18082025_19_21_15_10640.jpg', '/home/nano/Desktop/images/18082025/19/20/image_18082025_19_21_04_9621.jpg', '/home/nano/Desktop/images/18082025/19/20/image_18082025_19_20_54_9628.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/21/image_18082025_19_21_45_9619.jpg
/home/nano/Desktop/images/18082025/19/21/image_18082025_19_21_35_10635.jpg
/home/nano/Desktop/images/18082025/19/21/image_18082025_19_21_24_9612.jpg
/home/nano/Desktop/images/18082025/19/21/image_18082025_19_21_15_10640.jpg
/home/nano/Desktop/images/18082025/19/20/image_18082025_19_21_04_9621.jpg
/home/nano/Desktop/images/18082025/19/20/image_18082025_19_20_54_9628.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377714381","1377714383","1377714377","1377714376","1377714379","1377714387"],"photo_ids_order":["1377714376","1377714377","1377714379","1377714381","1377714383","1377714387"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/915c9f5eb1485bab5ea5c084ce0afe2b.jpg","text":"TemporaryFile(/tmp/multipartBody8602469826314302944asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537768240,"filename":"image_18082025_19_21_15_10640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7814a40b22ec0144671c1734ef19952c.jpg","text":"TemporaryFile(/tmp/multipartBody5552763883075417665asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537768240,"filename":"image_18082025_19_21_04_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/87c87d851ca508c89fdd4ed2134b8bf6.jpg","text":"TemporaryFile(/tmp/multipartBody3684578516347176597asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537768240,"filename":"image_18082025_19_21_35_10635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/52acbc068fd96e9bd5b373b987f91e5c.jpg","text":"TemporaryFile(/tmp/multipartBody2797247897622267500asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537768240,"filename":"image_18082025_19_21_45_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d7561fe0389783d402f3ffbcbdb322fd.jpg","text":"TemporaryFile(/tmp/multipartBody4744297120356771618asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537768240,"filename":"image_18082025_19_21_24_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5c03eb83460ba28bef37e73d164b2166.jpg","text":"TemporaryFile(/tmp/multipartBody6874738229188723985asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537768240,"filename":"image_18082025_19_20_54_9628.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377714379","file1":"1377714377","file0":"1377714376","file4":"1377714383","file5":"1377714387","file3":"1377714381"},"map_files_photo_id_array":[{"photo_id":"1377714387","filename":"file5"},{"photo_id":"1377714379","filename":"file2"},{"photo_id":"1377714383","filename":"file4"},{"photo_id":"1377714377","filename":"file1"},{"photo_id":"1377714376","filename":"file0"},{"photo_id":"1377714381","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377714381":["hashtag1","hashtag2"]},{"1377714383":["hashtag1","hashtag2"]},{"1377714377":["hashtag1","hashtag2"]},{"1377714376":["hashtag1","hashtag2"]},{"1377714379":["hashtag1","hashtag2"]},{"1377714387":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377714381, 1377714383, 1377714377, 1377714376, 1377714379, 1377714387)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.324071407318115 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:22:31.916332
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/22/image_18082025_19_22_44_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/19/22/image_18082025_19_22_35_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/19/22/image_18082025_19_22_24_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/19/22/image_18082025_19_22_14_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/19/21/image_18082025_19_22_05_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/19/21/image_18082025_19_21_54_9608.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/22/image_18082025_19_22_44_9607.jpg', '/home/nano/Desktop/images/18082025/19/22/image_18082025_19_22_35_10644.jpg', '/home/nano/Desktop/images/18082025/19/22/image_18082025_19_22_24_9612.jpg', '/home/nano/Desktop/images/18082025/19/22/image_18082025_19_22_14_9629.jpg', '/home/nano/Desktop/images/18082025/19/21/image_18082025_19_22_05_10636.jpg', '/home/nano/Desktop/images/18082025/19/21/image_18082025_19_21_54_9608.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/22/image_18082025_19_22_44_9607.jpg
/home/nano/Desktop/images/18082025/19/22/image_18082025_19_22_35_10644.jpg
/home/nano/Desktop/images/18082025/19/22/image_18082025_19_22_24_9612.jpg
/home/nano/Desktop/images/18082025/19/22/image_18082025_19_22_14_9629.jpg
/home/nano/Desktop/images/18082025/19/21/image_18082025_19_22_05_10636.jpg
/home/nano/Desktop/images/18082025/19/21/image_18082025_19_21_54_9608.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377714402","1377714411","1377714408","1377714401","1377714406","1377714403"],"photo_ids_order":["1377714401","1377714402","1377714403","1377714406","1377714408","1377714411"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/027c671643fe057887bafaebb426c786.jpg","text":"TemporaryFile(/tmp/multipartBody2013849907590013721asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537813257,"filename":"image_18082025_19_22_35_10644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b7ea3d0b479401237c2c24b03cfa0a25.jpg","text":"TemporaryFile(/tmp/multipartBody7592688498224161363asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537813257,"filename":"image_18082025_19_21_54_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b8a661ce0bc9ead602770e60782fcbec.jpg","text":"TemporaryFile(/tmp/multipartBody3013180283681373180asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537813257,"filename":"image_18082025_19_22_05_10636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8f0b7281cb0a7b542ecec351d38ac382.jpg","text":"TemporaryFile(/tmp/multipartBody5769776646659360188asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537813257,"filename":"image_18082025_19_22_44_9607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/85cdf830a67b1e110e19769815dc181b.jpg","text":"TemporaryFile(/tmp/multipartBody3491289393429058686asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537813257,"filename":"image_18082025_19_22_14_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4a2f7d592613ac7433e7f3d0a30cddb8.jpg","text":"TemporaryFile(/tmp/multipartBody1484135174049516908asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537813257,"filename":"image_18082025_19_22_24_9612.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377714403","file1":"1377714402","file0":"1377714401","file4":"1377714408","file5":"1377714411","file3":"1377714406"},"map_files_photo_id_array":[{"photo_id":"1377714411","filename":"file5"},{"photo_id":"1377714403","filename":"file2"},{"photo_id":"1377714408","filename":"file4"},{"photo_id":"1377714402","filename":"file1"},{"photo_id":"1377714401","filename":"file0"},{"photo_id":"1377714406","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377714402":["hashtag1","hashtag2"]},{"1377714411":["hashtag1","hashtag2"]},{"1377714408":["hashtag1","hashtag2"]},{"1377714401":["hashtag1","hashtag2"]},{"1377714406":["hashtag1","hashtag2"]},{"1377714403":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377714402, 1377714411, 1377714408, 1377714401, 1377714406, 1377714403)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.37816572189331 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:23:17.012149
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/23/image_18082025_19_23_44_9605.jpg', 2), ('/home/nano/Desktop/images/18082025/19/23/image_18082025_19_23_35_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/19/23/image_18082025_19_23_25_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/19/23/image_18082025_19_23_14_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/19/22/image_18082025_19_23_05_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/19/22/image_18082025_19_22_55_10620.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/23/image_18082025_19_23_44_9605.jpg', '/home/nano/Desktop/images/18082025/19/23/image_18082025_19_23_35_9606.jpg', '/home/nano/Desktop/images/18082025/19/23/image_18082025_19_23_25_10639.jpg', '/home/nano/Desktop/images/18082025/19/23/image_18082025_19_23_14_9638.jpg', '/home/nano/Desktop/images/18082025/19/22/image_18082025_19_23_05_9639.jpg', '/home/nano/Desktop/images/18082025/19/22/image_18082025_19_22_55_10620.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/23/image_18082025_19_23_44_9605.jpg
/home/nano/Desktop/images/18082025/19/23/image_18082025_19_23_35_9606.jpg
/home/nano/Desktop/images/18082025/19/23/image_18082025_19_23_25_10639.jpg
/home/nano/Desktop/images/18082025/19/23/image_18082025_19_23_14_9638.jpg
/home/nano/Desktop/images/18082025/19/22/image_18082025_19_23_05_9639.jpg
/home/nano/Desktop/images/18082025/19/22/image_18082025_19_22_55_10620.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377714432","1377714429","1377714442","1377714436","1377714445","1377714439"],"photo_ids_order":["1377714429","1377714432","1377714436","1377714439","1377714442","1377714445"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3ca43f08f071bcca7bf0328a0fc6db58.jpg","text":"TemporaryFile(/tmp/multipartBody7138444181633591028asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537858268,"filename":"image_18082025_19_23_35_9606.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a1b7177f3384ea88ea4eddd143f511b8.jpg","text":"TemporaryFile(/tmp/multipartBody9055513642591542787asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537858268,"filename":"image_18082025_19_23_44_9605.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0270e216309de6f1330292f46050c3d2.jpg","text":"TemporaryFile(/tmp/multipartBody8467344261091076841asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537858268,"filename":"image_18082025_19_23_05_9639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0a807e225ebbac3f7e0cfe849cc42d10.jpg","text":"TemporaryFile(/tmp/multipartBody823019100828505636asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537858268,"filename":"image_18082025_19_23_25_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/eb63ca9c9a886507e2e64c74e5a4b30c.jpg","text":"TemporaryFile(/tmp/multipartBody5642332518533565413asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537858268,"filename":"image_18082025_19_22_55_10620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c6934aa22a040e98d0229ec8253e99ca.jpg","text":"TemporaryFile(/tmp/multipartBody3875178554870674687asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537858268,"filename":"image_18082025_19_23_14_9638.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377714436","file1":"1377714432","file0":"1377714429","file4":"1377714442","file5":"1377714445","file3":"1377714439"},"map_files_photo_id_array":[{"photo_id":"1377714445","filename":"file5"},{"photo_id":"1377714436","filename":"file2"},{"photo_id":"1377714442","filename":"file4"},{"photo_id":"1377714432","filename":"file1"},{"photo_id":"1377714429","filename":"file0"},{"photo_id":"1377714439","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377714432":["hashtag1","hashtag2"]},{"1377714429":["hashtag1","hashtag2"]},{"1377714442":["hashtag1","hashtag2"]},{"1377714436":["hashtag1","hashtag2"]},{"1377714445":["hashtag1","hashtag2"]},{"1377714439":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377714432, 1377714429, 1377714442, 1377714436, 1377714445, 1377714439)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.289653062820435 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:24:02.900962
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/34/image_18082025_09_34_15_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/09/33/image_18082025_09_34_05_10693.jpg', 2), ('/home/nano/Desktop/images/18082025/09/33/image_18082025_09_33_54_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/09/33/image_18082025_09_33_45_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/09/33/image_18082025_09_33_35_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/09/33/image_18082025_09_33_24_9660.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/34/image_18082025_09_34_15_9667.jpg', '/home/nano/Desktop/images/18082025/09/33/image_18082025_09_34_05_10693.jpg', '/home/nano/Desktop/images/18082025/09/33/image_18082025_09_33_54_9625.jpg', '/home/nano/Desktop/images/18082025/09/33/image_18082025_09_33_45_9661.jpg', '/home/nano/Desktop/images/18082025/09/33/image_18082025_09_33_35_10645.jpg', '/home/nano/Desktop/images/18082025/09/33/image_18082025_09_33_24_9660.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/34/image_18082025_09_34_15_9667.jpg
/home/nano/Desktop/images/18082025/09/33/image_18082025_09_34_05_10693.jpg
/home/nano/Desktop/images/18082025/09/33/image_18082025_09_33_54_9625.jpg
/home/nano/Desktop/images/18082025/09/33/image_18082025_09_33_45_9661.jpg
/home/nano/Desktop/images/18082025/09/33/image_18082025_09_33_35_10645.jpg
/home/nano/Desktop/images/18082025/09/33/image_18082025_09_33_24_9660.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377714458","1377714452","1377714460","1377714454","1377714463","1377714450"],"photo_ids_order":["1377714450","1377714452","1377714454","1377714458","1377714460","1377714463"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0f9a2f70d72f5ca203cccbbd77f65528.jpg","text":"TemporaryFile(/tmp/multipartBody557073646869145131asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537904475,"filename":"image_18082025_09_33_45_9661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/939632485cea9cab61c36cb20f0855db.jpg","text":"TemporaryFile(/tmp/multipartBody1927624752862039700asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537904475,"filename":"image_18082025_09_34_05_10693.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8ff77302b3a9567c3a7959ff2b78a6aa.jpg","text":"TemporaryFile(/tmp/multipartBody1268909784274128956asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537904475,"filename":"image_18082025_09_33_35_10645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/279b8b8c367710e41d2440dfd83375cc.jpg","text":"TemporaryFile(/tmp/multipartBody2933288910734942661asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537904475,"filename":"image_18082025_09_33_54_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/14c943b6c8c53af2faa72b90a15ce666.jpg","text":"TemporaryFile(/tmp/multipartBody1869293757692108683asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537904475,"filename":"image_18082025_09_33_24_9660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cffc9c4ea73ed61f07de2a724fb583ad.jpg","text":"TemporaryFile(/tmp/multipartBody6585298434449762789asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537904475,"filename":"image_18082025_09_34_15_9667.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377714454","file1":"1377714452","file0":"1377714450","file4":"1377714460","file5":"1377714463","file3":"1377714458"},"map_files_photo_id_array":[{"photo_id":"1377714463","filename":"file5"},{"photo_id":"1377714454","filename":"file2"},{"photo_id":"1377714460","filename":"file4"},{"photo_id":"1377714452","filename":"file1"},{"photo_id":"1377714450","filename":"file0"},{"photo_id":"1377714458","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377714458":["hashtag1","hashtag2"]},{"1377714452":["hashtag1","hashtag2"]},{"1377714460":["hashtag1","hashtag2"]},{"1377714454":["hashtag1","hashtag2"]},{"1377714463":["hashtag1","hashtag2"]},{"1377714450":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377714458, 1377714452, 1377714460, 1377714454, 1377714463, 1377714450)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.275004625320435 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:24:47.111749
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/24/image_18082025_19_24_45_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/19/24/image_18082025_19_24_34_9602.jpg', 2), ('/home/nano/Desktop/images/18082025/19/24/image_18082025_19_24_25_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/19/24/image_18082025_19_24_15_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/19/23/image_18082025_19_24_04_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/19/23/image_18082025_19_23_55_10621.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/24/image_18082025_19_24_45_10628.jpg', '/home/nano/Desktop/images/18082025/19/24/image_18082025_19_24_34_9602.jpg', '/home/nano/Desktop/images/18082025/19/24/image_18082025_19_24_25_9611.jpg', '/home/nano/Desktop/images/18082025/19/24/image_18082025_19_24_15_10660.jpg', '/home/nano/Desktop/images/18082025/19/23/image_18082025_19_24_04_9629.jpg', '/home/nano/Desktop/images/18082025/19/23/image_18082025_19_23_55_10621.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/24/image_18082025_19_24_45_10628.jpg
/home/nano/Desktop/images/18082025/19/24/image_18082025_19_24_34_9602.jpg
/home/nano/Desktop/images/18082025/19/24/image_18082025_19_24_25_9611.jpg
/home/nano/Desktop/images/18082025/19/24/image_18082025_19_24_15_10660.jpg
/home/nano/Desktop/images/18082025/19/23/image_18082025_19_24_04_9629.jpg
/home/nano/Desktop/images/18082025/19/23/image_18082025_19_23_55_10621.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377714474","1377714476","1377714479","1377714473","1377714481","1377714475"],"photo_ids_order":["1377714473","1377714474","1377714475","1377714476","1377714479","1377714481"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/358845a8992baaa63208b61dd9160c0c.jpg","text":"TemporaryFile(/tmp/multipartBody2727431991488928146asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537948390,"filename":"image_18082025_19_24_34_9602.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ee8602215997ef1f6982735a2b4ef8b8.jpg","text":"TemporaryFile(/tmp/multipartBody465472009940730224asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537948390,"filename":"image_18082025_19_24_15_10660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a88027fec14a53d8237bcf497ff1a1a8.jpg","text":"TemporaryFile(/tmp/multipartBody8235587520216350426asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537948390,"filename":"image_18082025_19_24_04_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a9f88f30c4f58b601d5866923d7132a7.jpg","text":"TemporaryFile(/tmp/multipartBody1380356223177707919asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537948390,"filename":"image_18082025_19_24_45_10628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/383edd61f623e7fc11cb0e55fdff6c53.jpg","text":"TemporaryFile(/tmp/multipartBody4262752092871400591asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537948390,"filename":"image_18082025_19_23_55_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a05b0c6ae615ef84a086354cb0d01e3f.jpg","text":"TemporaryFile(/tmp/multipartBody7547973349608336278asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537948390,"filename":"image_18082025_19_24_25_9611.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377714475","file1":"1377714474","file0":"1377714473","file4":"1377714479","file5":"1377714481","file3":"1377714476"},"map_files_photo_id_array":[{"photo_id":"1377714481","filename":"file5"},{"photo_id":"1377714475","filename":"file2"},{"photo_id":"1377714479","filename":"file4"},{"photo_id":"1377714474","filename":"file1"},{"photo_id":"1377714473","filename":"file0"},{"photo_id":"1377714476","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377714474":["hashtag1","hashtag2"]},{"1377714476":["hashtag1","hashtag2"]},{"1377714479":["hashtag1","hashtag2"]},{"1377714473":["hashtag1","hashtag2"]},{"1377714481":["hashtag1","hashtag2"]},{"1377714475":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377714474, 1377714476, 1377714479, 1377714473, 1377714481, 1377714475)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.91054320335388 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:25:32.190537
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/25/image_18082025_19_25_45_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/19/25/image_18082025_19_25_35_10613.jpg', 2), ('/home/nano/Desktop/images/18082025/19/25/image_18082025_19_25_24_9604.jpg', 2), ('/home/nano/Desktop/images/18082025/19/25/image_18082025_19_25_15_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/19/24/image_18082025_19_25_04_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/19/24/image_18082025_19_24_54_9616.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/25/image_18082025_19_25_45_9607.jpg', '/home/nano/Desktop/images/18082025/19/25/image_18082025_19_25_35_10613.jpg', '/home/nano/Desktop/images/18082025/19/25/image_18082025_19_25_24_9604.jpg', '/home/nano/Desktop/images/18082025/19/25/image_18082025_19_25_15_10668.jpg', '/home/nano/Desktop/images/18082025/19/24/image_18082025_19_25_04_9633.jpg', '/home/nano/Desktop/images/18082025/19/24/image_18082025_19_24_54_9616.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/25/image_18082025_19_25_45_9607.jpg
/home/nano/Desktop/images/18082025/19/25/image_18082025_19_25_35_10613.jpg
/home/nano/Desktop/images/18082025/19/25/image_18082025_19_25_24_9604.jpg
/home/nano/Desktop/images/18082025/19/25/image_18082025_19_25_15_10668.jpg
/home/nano/Desktop/images/18082025/19/24/image_18082025_19_25_04_9633.jpg
/home/nano/Desktop/images/18082025/19/24/image_18082025_19_24_54_9616.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377714494","1377714497","1377714491","1377714499","1377714502","1377714505"],"photo_ids_order":["1377714491","1377714494","1377714497","1377714499","1377714502","1377714505"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/81df648fc878fe44770bcfe6f1c12471.jpg","text":"TemporaryFile(/tmp/multipartBody6418791157430433828asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537993597,"filename":"image_18082025_19_25_35_10613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a965c62f04018fe6cbd73227e1154f48.jpg","text":"TemporaryFile(/tmp/multipartBody6304746640615985610asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537993597,"filename":"image_18082025_19_25_24_9604.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/48aa102b09b3098476508907a29e9a06.jpg","text":"TemporaryFile(/tmp/multipartBody2661027693599535533asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537993597,"filename":"image_18082025_19_25_45_9607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dc0af1c8b2aad254ca90675c995a259c.jpg","text":"TemporaryFile(/tmp/multipartBody5380621330396286826asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537993597,"filename":"image_18082025_19_25_15_10668.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d76f676699ce5a337e28361168aa725e.jpg","text":"TemporaryFile(/tmp/multipartBody8284463069917643148asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537993597,"filename":"image_18082025_19_25_04_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/860b3af617f00f8005ebb58476f36c0f.jpg","text":"TemporaryFile(/tmp/multipartBody6927053519938191394asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755537993597,"filename":"image_18082025_19_24_54_9616.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377714497","file1":"1377714494","file0":"1377714491","file4":"1377714502","file5":"1377714505","file3":"1377714499"},"map_files_photo_id_array":[{"photo_id":"1377714505","filename":"file5"},{"photo_id":"1377714497","filename":"file2"},{"photo_id":"1377714502","filename":"file4"},{"photo_id":"1377714494","filename":"file1"},{"photo_id":"1377714491","filename":"file0"},{"photo_id":"1377714499","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377714494":["hashtag1","hashtag2"]},{"1377714497":["hashtag1","hashtag2"]},{"1377714491":["hashtag1","hashtag2"]},{"1377714499":["hashtag1","hashtag2"]},{"1377714502":["hashtag1","hashtag2"]},{"1377714505":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377714494, 1377714497, 1377714491, 1377714499, 1377714502, 1377714505)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.548148155212402 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:26:17.280203
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/26/image_18082025_19_26_44_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/19/26/image_18082025_19_26_35_10604.jpg', 2), ('/home/nano/Desktop/images/18082025/19/26/image_18082025_19_26_24_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/19/26/image_18082025_19_26_15_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/19/25/image_18082025_19_26_05_10643.jpg', 2), ('/home/nano/Desktop/images/18082025/19/25/image_18082025_19_25_54_9612.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/26/image_18082025_19_26_44_9610.jpg', '/home/nano/Desktop/images/18082025/19/26/image_18082025_19_26_35_10604.jpg', '/home/nano/Desktop/images/18082025/19/26/image_18082025_19_26_24_9609.jpg', '/home/nano/Desktop/images/18082025/19/26/image_18082025_19_26_15_9649.jpg', '/home/nano/Desktop/images/18082025/19/25/image_18082025_19_26_05_10643.jpg', '/home/nano/Desktop/images/18082025/19/25/image_18082025_19_25_54_9612.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/26/image_18082025_19_26_44_9610.jpg
/home/nano/Desktop/images/18082025/19/26/image_18082025_19_26_35_10604.jpg
/home/nano/Desktop/images/18082025/19/26/image_18082025_19_26_24_9609.jpg
/home/nano/Desktop/images/18082025/19/26/image_18082025_19_26_15_9649.jpg
/home/nano/Desktop/images/18082025/19/25/image_18082025_19_26_05_10643.jpg
/home/nano/Desktop/images/18082025/19/25/image_18082025_19_25_54_9612.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377714528","1377714519","1377714524","1377714521","1377714518","1377714532"],"photo_ids_order":["1377714518","1377714519","1377714521","1377714524","1377714528","1377714532"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/392426f19a6c1283922a5b8154823969.jpg","text":"TemporaryFile(/tmp/multipartBody7291407209458008773asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538038571,"filename":"image_18082025_19_26_05_10643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/600219d34ed26cf70ef6f1e9043aaffd.jpg","text":"TemporaryFile(/tmp/multipartBody2704862634948644294asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538038571,"filename":"image_18082025_19_26_35_10604.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ac56a61c082e8e8c5bbec9c90cd3fdd1.jpg","text":"TemporaryFile(/tmp/multipartBody1357269943106426251asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538038571,"filename":"image_18082025_19_26_15_9649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/95903c3b54c8bda5b1760b60e2d76a61.jpg","text":"TemporaryFile(/tmp/multipartBody3026295158791961091asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538038571,"filename":"image_18082025_19_26_24_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2c3ab15e9b6ef89bc32e48dff0a0f57f.jpg","text":"TemporaryFile(/tmp/multipartBody4741920336721550982asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538038571,"filename":"image_18082025_19_26_44_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/eb5e599611900bea5ad458857f9f08c9.jpg","text":"TemporaryFile(/tmp/multipartBody6784566671213744323asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538038571,"filename":"image_18082025_19_25_54_9612.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377714521","file1":"1377714519","file0":"1377714518","file4":"1377714528","file5":"1377714532","file3":"1377714524"},"map_files_photo_id_array":[{"photo_id":"1377714532","filename":"file5"},{"photo_id":"1377714521","filename":"file2"},{"photo_id":"1377714528","filename":"file4"},{"photo_id":"1377714519","filename":"file1"},{"photo_id":"1377714518","filename":"file0"},{"photo_id":"1377714524","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377714528":["hashtag1","hashtag2"]},{"1377714519":["hashtag1","hashtag2"]},{"1377714524":["hashtag1","hashtag2"]},{"1377714521":["hashtag1","hashtag2"]},{"1377714518":["hashtag1","hashtag2"]},{"1377714532":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377714528, 1377714519, 1377714524, 1377714521, 1377714518, 1377714532)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.375611782073975 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:27:02.952989
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/33/image_18082025_09_33_15_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/09/32/image_18082025_09_33_05_10744.jpg', 2), ('/home/nano/Desktop/images/18082025/09/32/image_18082025_09_32_54_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/09/32/image_18082025_09_32_45_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/09/32/image_18082025_09_32_35_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/09/32/image_18082025_09_32_24_9713.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/33/image_18082025_09_33_15_9629.jpg', '/home/nano/Desktop/images/18082025/09/32/image_18082025_09_33_05_10744.jpg', '/home/nano/Desktop/images/18082025/09/32/image_18082025_09_32_54_9644.jpg', '/home/nano/Desktop/images/18082025/09/32/image_18082025_09_32_45_9662.jpg', '/home/nano/Desktop/images/18082025/09/32/image_18082025_09_32_35_10667.jpg', '/home/nano/Desktop/images/18082025/09/32/image_18082025_09_32_24_9713.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/33/image_18082025_09_33_15_9629.jpg
/home/nano/Desktop/images/18082025/09/32/image_18082025_09_33_05_10744.jpg
/home/nano/Desktop/images/18082025/09/32/image_18082025_09_32_54_9644.jpg
/home/nano/Desktop/images/18082025/09/32/image_18082025_09_32_45_9662.jpg
/home/nano/Desktop/images/18082025/09/32/image_18082025_09_32_35_10667.jpg
/home/nano/Desktop/images/18082025/09/32/image_18082025_09_32_24_9713.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377714552","1377714555","1377714554","1377714548","1377714544","1377714558"],"photo_ids_order":["1377714544","1377714548","1377714552","1377714554","1377714555","1377714558"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0598853e5bf3e17e2dabe2b5318a9168.jpg","text":"TemporaryFile(/tmp/multipartBody4969303804391022179asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538084439,"filename":"image_18082025_09_32_54_9644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/99efbe36469ab3ef67b5db7b45dc9ad4.jpg","text":"TemporaryFile(/tmp/multipartBody5348270692628622352asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538084439,"filename":"image_18082025_09_32_35_10667.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dc148c366ad9b31e83cb7cf336484078.jpg","text":"TemporaryFile(/tmp/multipartBody2215190735199944744asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538084439,"filename":"image_18082025_09_32_45_9662.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e97663119fe5282a9c1eb7969c822ff5.jpg","text":"TemporaryFile(/tmp/multipartBody1366715527433180132asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538084439,"filename":"image_18082025_09_33_05_10744.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4685a9e853e08544fb745c9d55056a75.jpg","text":"TemporaryFile(/tmp/multipartBody2618373283163174687asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538084439,"filename":"image_18082025_09_33_15_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cacb7c38ced29926af9329943bc15b44.jpg","text":"TemporaryFile(/tmp/multipartBody7345133657598122023asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538084439,"filename":"image_18082025_09_32_24_9713.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377714552","file1":"1377714548","file0":"1377714544","file4":"1377714555","file5":"1377714558","file3":"1377714554"},"map_files_photo_id_array":[{"photo_id":"1377714558","filename":"file5"},{"photo_id":"1377714552","filename":"file2"},{"photo_id":"1377714555","filename":"file4"},{"photo_id":"1377714548","filename":"file1"},{"photo_id":"1377714544","filename":"file0"},{"photo_id":"1377714554","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377714552":["hashtag1","hashtag2"]},{"1377714555":["hashtag1","hashtag2"]},{"1377714554":["hashtag1","hashtag2"]},{"1377714548":["hashtag1","hashtag2"]},{"1377714544":["hashtag1","hashtag2"]},{"1377714558":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377714552, 1377714555, 1377714554, 1377714548, 1377714544, 1377714558)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.70020532608032 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:27:47.408525
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/27/image_18082025_19_27_44_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/19/27/image_18082025_19_27_34_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/19/27/image_18082025_19_27_25_10615.jpg', 2), ('/home/nano/Desktop/images/18082025/19/27/image_18082025_19_27_14_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/19/26/image_18082025_19_27_05_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/19/26/image_18082025_19_26_55_10623.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/27/image_18082025_19_27_44_9616.jpg', '/home/nano/Desktop/images/18082025/19/27/image_18082025_19_27_34_9609.jpg', '/home/nano/Desktop/images/18082025/19/27/image_18082025_19_27_25_10615.jpg', '/home/nano/Desktop/images/18082025/19/27/image_18082025_19_27_14_9637.jpg', '/home/nano/Desktop/images/18082025/19/26/image_18082025_19_27_05_9619.jpg', '/home/nano/Desktop/images/18082025/19/26/image_18082025_19_26_55_10623.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/27/image_18082025_19_27_44_9616.jpg
/home/nano/Desktop/images/18082025/19/27/image_18082025_19_27_34_9609.jpg
/home/nano/Desktop/images/18082025/19/27/image_18082025_19_27_25_10615.jpg
/home/nano/Desktop/images/18082025/19/27/image_18082025_19_27_14_9637.jpg
/home/nano/Desktop/images/18082025/19/26/image_18082025_19_27_05_9619.jpg
/home/nano/Desktop/images/18082025/19/26/image_18082025_19_26_55_10623.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377714573","1377714575","1377714584","1377714577","1377714582","1377714579"],"photo_ids_order":["1377714573","1377714575","1377714577","1377714579","1377714582","1377714584"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6e801cbdb1258be7f7629a425175e5c6.jpg","text":"TemporaryFile(/tmp/multipartBody3842493117805178554asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538128761,"filename":"image_18082025_19_27_44_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a1833e21bda7f65b82e4371c38ca6b27.jpg","text":"TemporaryFile(/tmp/multipartBody9060812644823618823asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538128761,"filename":"image_18082025_19_27_34_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/afe8f75c5315e31d0b422fecf5c2246c.jpg","text":"TemporaryFile(/tmp/multipartBody155531568229059133asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538128761,"filename":"image_18082025_19_26_55_10623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d70c08a0cfbc04270021cd27ee75866a.jpg","text":"TemporaryFile(/tmp/multipartBody1458387160264624579asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538128761,"filename":"image_18082025_19_27_25_10615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0de415df395d6920a7344b54f42e5c92.jpg","text":"TemporaryFile(/tmp/multipartBody1928055789889294246asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538128761,"filename":"image_18082025_19_27_05_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4d9d53f659b7e71d89dd4ea915a68a89.jpg","text":"TemporaryFile(/tmp/multipartBody7804066055001812481asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538128761,"filename":"image_18082025_19_27_14_9637.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377714577","file1":"1377714575","file0":"1377714573","file4":"1377714582","file5":"1377714584","file3":"1377714579"},"map_files_photo_id_array":[{"photo_id":"1377714584","filename":"file5"},{"photo_id":"1377714577","filename":"file2"},{"photo_id":"1377714582","filename":"file4"},{"photo_id":"1377714575","filename":"file1"},{"photo_id":"1377714573","filename":"file0"},{"photo_id":"1377714579","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377714573":["hashtag1","hashtag2"]},{"1377714575":["hashtag1","hashtag2"]},{"1377714584":["hashtag1","hashtag2"]},{"1377714577":["hashtag1","hashtag2"]},{"1377714582":["hashtag1","hashtag2"]},{"1377714579":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377714573, 1377714575, 1377714584, 1377714577, 1377714582, 1377714579)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.54893660545349 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:28:32.511201
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/28/image_18082025_19_28_45_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/19/28/image_18082025_19_28_34_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/19/28/image_18082025_19_28_25_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/19/28/image_18082025_19_28_15_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/19/27/image_18082025_19_28_04_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/19/27/image_18082025_19_27_55_10641.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/28/image_18082025_19_28_45_10628.jpg', '/home/nano/Desktop/images/18082025/19/28/image_18082025_19_28_34_9612.jpg', '/home/nano/Desktop/images/18082025/19/28/image_18082025_19_28_25_9609.jpg', '/home/nano/Desktop/images/18082025/19/28/image_18082025_19_28_15_10668.jpg', '/home/nano/Desktop/images/18082025/19/27/image_18082025_19_28_04_9658.jpg', '/home/nano/Desktop/images/18082025/19/27/image_18082025_19_27_55_10641.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/28/image_18082025_19_28_45_10628.jpg
/home/nano/Desktop/images/18082025/19/28/image_18082025_19_28_34_9612.jpg
/home/nano/Desktop/images/18082025/19/28/image_18082025_19_28_25_9609.jpg
/home/nano/Desktop/images/18082025/19/28/image_18082025_19_28_15_10668.jpg
/home/nano/Desktop/images/18082025/19/27/image_18082025_19_28_04_9658.jpg
/home/nano/Desktop/images/18082025/19/27/image_18082025_19_27_55_10641.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377714600","1377714599","1377714596","1377714592","1377714594","1377714597"],"photo_ids_order":["1377714592","1377714594","1377714596","1377714597","1377714599","1377714600"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6ea8ebd2bdbc43ad41a3c129bd61633e.jpg","text":"TemporaryFile(/tmp/multipartBody4604749705502112070asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538173620,"filename":"image_18082025_19_27_55_10641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b87280d5e08e972fd5f6eff97123c3e1.jpg","text":"TemporaryFile(/tmp/multipartBody7702445637030650059asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538173620,"filename":"image_18082025_19_28_04_9658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/884be276c40b644a8d9ca897e80e516a.jpg","text":"TemporaryFile(/tmp/multipartBody6520696845461465582asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538173620,"filename":"image_18082025_19_28_25_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ae236bae43f115b261a6b4477315257c.jpg","text":"TemporaryFile(/tmp/multipartBody4412442539350634638asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538173620,"filename":"image_18082025_19_28_45_10628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/32bada792a1084c9b04a352441f07f8a.jpg","text":"TemporaryFile(/tmp/multipartBody6038698635738537635asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538173620,"filename":"image_18082025_19_28_34_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6f57fc9a6e7bc1c026ecf25bce91e933.jpg","text":"TemporaryFile(/tmp/multipartBody6630590905206389084asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538173620,"filename":"image_18082025_19_28_15_10668.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377714596","file1":"1377714594","file0":"1377714592","file4":"1377714599","file5":"1377714600","file3":"1377714597"},"map_files_photo_id_array":[{"photo_id":"1377714600","filename":"file5"},{"photo_id":"1377714596","filename":"file2"},{"photo_id":"1377714599","filename":"file4"},{"photo_id":"1377714594","filename":"file1"},{"photo_id":"1377714592","filename":"file0"},{"photo_id":"1377714597","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377714600":["hashtag1","hashtag2"]},{"1377714599":["hashtag1","hashtag2"]},{"1377714596":["hashtag1","hashtag2"]},{"1377714592":["hashtag1","hashtag2"]},{"1377714594":["hashtag1","hashtag2"]},{"1377714597":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377714600, 1377714599, 1377714596, 1377714592, 1377714594, 1377714597)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.08768081665039 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:29:17.594109
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/29/image_18082025_19_29_45_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/19/29/image_18082025_19_29_35_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/19/29/image_18082025_19_29_24_9605.jpg', 2), ('/home/nano/Desktop/images/18082025/19/29/image_18082025_19_29_15_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/19/28/image_18082025_19_29_04_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/19/28/image_18082025_19_28_55_9627.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/29/image_18082025_19_29_45_9609.jpg', '/home/nano/Desktop/images/18082025/19/29/image_18082025_19_29_35_10636.jpg', '/home/nano/Desktop/images/18082025/19/29/image_18082025_19_29_24_9605.jpg', '/home/nano/Desktop/images/18082025/19/29/image_18082025_19_29_15_10666.jpg', '/home/nano/Desktop/images/18082025/19/28/image_18082025_19_29_04_9646.jpg', '/home/nano/Desktop/images/18082025/19/28/image_18082025_19_28_55_9627.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/29/image_18082025_19_29_45_9609.jpg
/home/nano/Desktop/images/18082025/19/29/image_18082025_19_29_35_10636.jpg
/home/nano/Desktop/images/18082025/19/29/image_18082025_19_29_24_9605.jpg
/home/nano/Desktop/images/18082025/19/29/image_18082025_19_29_15_10666.jpg
/home/nano/Desktop/images/18082025/19/28/image_18082025_19_29_04_9646.jpg
/home/nano/Desktop/images/18082025/19/28/image_18082025_19_28_55_9627.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377714615","1377714609","1377714611","1377714614","1377714616","1377714613"],"photo_ids_order":["1377714609","1377714611","1377714613","1377714614","1377714615","1377714616"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c09af8eed9d25e00d585fbb25de2136d.jpg","text":"TemporaryFile(/tmp/multipartBody4075307326575626697asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538218858,"filename":"image_18082025_19_29_04_9646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/589ae64d073cf40c25a1cf464d12099b.jpg","text":"TemporaryFile(/tmp/multipartBody7553629816554621453asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538218858,"filename":"image_18082025_19_29_45_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ae89c196480bb971c8abe0da1e5db7a2.jpg","text":"TemporaryFile(/tmp/multipartBody8600598862924112223asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538218858,"filename":"image_18082025_19_29_35_10636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3f72cd2891e4cd00ca471d01569fecf8.jpg","text":"TemporaryFile(/tmp/multipartBody321745052375575036asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538218858,"filename":"image_18082025_19_29_15_10666.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7bfc868043fb525813a5b71168611ea0.jpg","text":"TemporaryFile(/tmp/multipartBody4942926030754455526asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538218858,"filename":"image_18082025_19_28_55_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0300a07f869f336c065d63890e5e7aa7.jpg","text":"TemporaryFile(/tmp/multipartBody5784200533984322428asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538218858,"filename":"image_18082025_19_29_24_9605.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377714613","file1":"1377714611","file0":"1377714609","file4":"1377714615","file5":"1377714616","file3":"1377714614"},"map_files_photo_id_array":[{"photo_id":"1377714616","filename":"file5"},{"photo_id":"1377714613","filename":"file2"},{"photo_id":"1377714615","filename":"file4"},{"photo_id":"1377714611","filename":"file1"},{"photo_id":"1377714609","filename":"file0"},{"photo_id":"1377714614","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377714615":["hashtag1","hashtag2"]},{"1377714609":["hashtag1","hashtag2"]},{"1377714611":["hashtag1","hashtag2"]},{"1377714614":["hashtag1","hashtag2"]},{"1377714616":["hashtag1","hashtag2"]},{"1377714613":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377714615, 1377714609, 1377714611, 1377714614, 1377714616, 1377714613)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.480478286743164 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:30:02.957898
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/32/image_18082025_09_32_15_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/09/31/image_18082025_09_32_05_10691.jpg', 2), ('/home/nano/Desktop/images/18082025/09/31/image_18082025_09_31_54_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/09/31/image_18082025_09_31_45_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/09/31/image_18082025_09_31_35_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/09/31/image_18082025_09_31_24_9622.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/32/image_18082025_09_32_15_9623.jpg', '/home/nano/Desktop/images/18082025/09/31/image_18082025_09_32_05_10691.jpg', '/home/nano/Desktop/images/18082025/09/31/image_18082025_09_31_54_9654.jpg', '/home/nano/Desktop/images/18082025/09/31/image_18082025_09_31_45_9633.jpg', '/home/nano/Desktop/images/18082025/09/31/image_18082025_09_31_35_10623.jpg', '/home/nano/Desktop/images/18082025/09/31/image_18082025_09_31_24_9622.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/32/image_18082025_09_32_15_9623.jpg
/home/nano/Desktop/images/18082025/09/31/image_18082025_09_32_05_10691.jpg
/home/nano/Desktop/images/18082025/09/31/image_18082025_09_31_54_9654.jpg
/home/nano/Desktop/images/18082025/09/31/image_18082025_09_31_45_9633.jpg
/home/nano/Desktop/images/18082025/09/31/image_18082025_09_31_35_10623.jpg
/home/nano/Desktop/images/18082025/09/31/image_18082025_09_31_24_9622.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377714645","1377714639","1377714641","1377714634","1377714643","1377714637"],"photo_ids_order":["1377714634","1377714637","1377714639","1377714641","1377714643","1377714645"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1be70555ba386abae0f94bf992f5dd12.jpg","text":"TemporaryFile(/tmp/multipartBody5709353145781020326asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538264498,"filename":"image_18082025_09_31_24_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9a1f91bf618d97abf129157e4d5fdec4.jpg","text":"TemporaryFile(/tmp/multipartBody1022807121482007924asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538264498,"filename":"image_18082025_09_31_54_9654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b890b4655dcbb890e740177c49ece555.jpg","text":"TemporaryFile(/tmp/multipartBody1883212854427603098asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538264498,"filename":"image_18082025_09_31_45_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/299aaad22530a2e4b80b56dbc47d1abc.jpg","text":"TemporaryFile(/tmp/multipartBody7102512342952286275asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538264498,"filename":"image_18082025_09_32_15_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8ea0d268b770d57e6aa585c0399ab818.jpg","text":"TemporaryFile(/tmp/multipartBody167983090424204191asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538264498,"filename":"image_18082025_09_31_35_10623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/647ac3db97a685baba1812e22e05c6ed.jpg","text":"TemporaryFile(/tmp/multipartBody4499532699973612733asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538264498,"filename":"image_18082025_09_32_05_10691.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377714639","file1":"1377714637","file0":"1377714634","file4":"1377714643","file5":"1377714645","file3":"1377714641"},"map_files_photo_id_array":[{"photo_id":"1377714645","filename":"file5"},{"photo_id":"1377714639","filename":"file2"},{"photo_id":"1377714643","filename":"file4"},{"photo_id":"1377714637","filename":"file1"},{"photo_id":"1377714634","filename":"file0"},{"photo_id":"1377714641","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377714645":["hashtag1","hashtag2"]},{"1377714639":["hashtag1","hashtag2"]},{"1377714641":["hashtag1","hashtag2"]},{"1377714634":["hashtag1","hashtag2"]},{"1377714643":["hashtag1","hashtag2"]},{"1377714637":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377714645, 1377714639, 1377714641, 1377714634, 1377714643, 1377714637)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.987127780914307 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:30:47.703782
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/30/image_18082025_19_30_44_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/19/30/image_18082025_19_30_35_10633.jpg', 2), ('/home/nano/Desktop/images/18082025/19/30/image_18082025_19_30_24_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/19/30/image_18082025_19_30_15_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/19/29/image_18082025_19_30_05_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/19/29/image_18082025_19_29_54_9612.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/30/image_18082025_19_30_44_9635.jpg', '/home/nano/Desktop/images/18082025/19/30/image_18082025_19_30_35_10633.jpg', '/home/nano/Desktop/images/18082025/19/30/image_18082025_19_30_24_9617.jpg', '/home/nano/Desktop/images/18082025/19/30/image_18082025_19_30_15_9658.jpg', '/home/nano/Desktop/images/18082025/19/29/image_18082025_19_30_05_10647.jpg', '/home/nano/Desktop/images/18082025/19/29/image_18082025_19_29_54_9612.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/30/image_18082025_19_30_44_9635.jpg
/home/nano/Desktop/images/18082025/19/30/image_18082025_19_30_35_10633.jpg
/home/nano/Desktop/images/18082025/19/30/image_18082025_19_30_24_9617.jpg
/home/nano/Desktop/images/18082025/19/30/image_18082025_19_30_15_9658.jpg
/home/nano/Desktop/images/18082025/19/29/image_18082025_19_30_05_10647.jpg
/home/nano/Desktop/images/18082025/19/29/image_18082025_19_29_54_9612.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377714654","1377714653","1377714659","1377714652","1377714655","1377714657"],"photo_ids_order":["1377714652","1377714653","1377714654","1377714655","1377714657","1377714659"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e98c883e0edef45f25732edcc53e38d3.jpg","text":"TemporaryFile(/tmp/multipartBody3294683978884591395asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538308889,"filename":"image_18082025_19_30_24_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c84876d9bfacc97c6a4d6e41e511841b.jpg","text":"TemporaryFile(/tmp/multipartBody7146965975115025454asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538308889,"filename":"image_18082025_19_30_35_10633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e565b1ccb12c03981e88f6a4084c886b.jpg","text":"TemporaryFile(/tmp/multipartBody7850137080851924839asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538308889,"filename":"image_18082025_19_29_54_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8233f80de83c0649229c8e8be52067b5.jpg","text":"TemporaryFile(/tmp/multipartBody5300264760464364583asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538308889,"filename":"image_18082025_19_30_44_9635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2d6877440945e3cb2dae4bcff10daf0d.jpg","text":"TemporaryFile(/tmp/multipartBody2189787558455684257asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538308889,"filename":"image_18082025_19_30_15_9658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0f232d92dbb48960a642bde713f20ce4.jpg","text":"TemporaryFile(/tmp/multipartBody6156623556235858684asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538308889,"filename":"image_18082025_19_30_05_10647.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377714654","file1":"1377714653","file0":"1377714652","file4":"1377714657","file5":"1377714659","file3":"1377714655"},"map_files_photo_id_array":[{"photo_id":"1377714659","filename":"file5"},{"photo_id":"1377714654","filename":"file2"},{"photo_id":"1377714657","filename":"file4"},{"photo_id":"1377714653","filename":"file1"},{"photo_id":"1377714652","filename":"file0"},{"photo_id":"1377714655","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377714654":["hashtag1","hashtag2"]},{"1377714653":["hashtag1","hashtag2"]},{"1377714659":["hashtag1","hashtag2"]},{"1377714652":["hashtag1","hashtag2"]},{"1377714655":["hashtag1","hashtag2"]},{"1377714657":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377714654, 1377714653, 1377714659, 1377714652, 1377714655, 1377714657)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.610379934310913 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:31:31.800763
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/31/image_18082025_19_31_44_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/19/31/image_18082025_19_31_35_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/19/31/image_18082025_19_31_25_10619.jpg', 2), ('/home/nano/Desktop/images/18082025/19/31/image_18082025_19_31_14_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/19/30/image_18082025_19_31_05_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/19/30/image_18082025_19_30_54_9611.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/31/image_18082025_19_31_44_9632.jpg', '/home/nano/Desktop/images/18082025/19/31/image_18082025_19_31_35_9614.jpg', '/home/nano/Desktop/images/18082025/19/31/image_18082025_19_31_25_10619.jpg', '/home/nano/Desktop/images/18082025/19/31/image_18082025_19_31_14_9645.jpg', '/home/nano/Desktop/images/18082025/19/30/image_18082025_19_31_05_10660.jpg', '/home/nano/Desktop/images/18082025/19/30/image_18082025_19_30_54_9611.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/31/image_18082025_19_31_44_9632.jpg
/home/nano/Desktop/images/18082025/19/31/image_18082025_19_31_35_9614.jpg
/home/nano/Desktop/images/18082025/19/31/image_18082025_19_31_25_10619.jpg
/home/nano/Desktop/images/18082025/19/31/image_18082025_19_31_14_9645.jpg
/home/nano/Desktop/images/18082025/19/30/image_18082025_19_31_05_10660.jpg
/home/nano/Desktop/images/18082025/19/30/image_18082025_19_30_54_9611.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377714668","1377714679","1377714670","1377714673","1377714667","1377714676"],"photo_ids_order":["1377714667","1377714668","1377714670","1377714673","1377714676","1377714679"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/136fcc9ee7ba0a068d631dd2dad986e1.jpg","text":"TemporaryFile(/tmp/multipartBody8792341451903896749asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538353100,"filename":"image_18082025_19_31_35_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6766f7eff0716c4af3fa54d8a9d0191d.jpg","text":"TemporaryFile(/tmp/multipartBody3571948049572504087asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538353100,"filename":"image_18082025_19_30_54_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3dbffe9c440d87fbc8ed9601f03d7d00.jpg","text":"TemporaryFile(/tmp/multipartBody8571548790579506489asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538353100,"filename":"image_18082025_19_31_25_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/92db9e8686caa657956c33228df39b86.jpg","text":"TemporaryFile(/tmp/multipartBody3368409966552905681asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538353100,"filename":"image_18082025_19_31_14_9645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8cf3272752cb114f67b326f990c35a75.jpg","text":"TemporaryFile(/tmp/multipartBody1989317534932186474asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538353100,"filename":"image_18082025_19_31_44_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8a578a25d7cd3012555dc66a2714f0b1.jpg","text":"TemporaryFile(/tmp/multipartBody7552498015669928018asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538353100,"filename":"image_18082025_19_31_05_10660.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377714670","file1":"1377714668","file0":"1377714667","file4":"1377714676","file5":"1377714679","file3":"1377714673"},"map_files_photo_id_array":[{"photo_id":"1377714679","filename":"file5"},{"photo_id":"1377714670","filename":"file2"},{"photo_id":"1377714676","filename":"file4"},{"photo_id":"1377714668","filename":"file1"},{"photo_id":"1377714667","filename":"file0"},{"photo_id":"1377714673","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377714668":["hashtag1","hashtag2"]},{"1377714679":["hashtag1","hashtag2"]},{"1377714670":["hashtag1","hashtag2"]},{"1377714673":["hashtag1","hashtag2"]},{"1377714667":["hashtag1","hashtag2"]},{"1377714676":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377714668, 1377714679, 1377714670, 1377714673, 1377714667, 1377714676)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.944836378097534 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:32:16.905018
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/32/image_18082025_19_32_45_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/19/32/image_18082025_19_32_34_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/19/32/image_18082025_19_32_25_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/19/32/image_18082025_19_32_14_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/19/31/image_18082025_19_32_05_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/19/31/image_18082025_19_31_55_10618.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/32/image_18082025_19_32_45_10621.jpg', '/home/nano/Desktop/images/18082025/19/32/image_18082025_19_32_34_9620.jpg', '/home/nano/Desktop/images/18082025/19/32/image_18082025_19_32_25_10624.jpg', '/home/nano/Desktop/images/18082025/19/32/image_18082025_19_32_14_9631.jpg', '/home/nano/Desktop/images/18082025/19/31/image_18082025_19_32_05_9623.jpg', '/home/nano/Desktop/images/18082025/19/31/image_18082025_19_31_55_10618.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/32/image_18082025_19_32_45_10621.jpg
/home/nano/Desktop/images/18082025/19/32/image_18082025_19_32_34_9620.jpg
/home/nano/Desktop/images/18082025/19/32/image_18082025_19_32_25_10624.jpg
/home/nano/Desktop/images/18082025/19/32/image_18082025_19_32_14_9631.jpg
/home/nano/Desktop/images/18082025/19/31/image_18082025_19_32_05_9623.jpg
/home/nano/Desktop/images/18082025/19/31/image_18082025_19_31_55_10618.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.2507009506225586 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:32:31.914693
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/32/image_18082025_19_32_45_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/19/32/image_18082025_19_32_34_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/19/32/image_18082025_19_32_25_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/19/32/image_18082025_19_32_14_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/19/31/image_18082025_19_32_05_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/19/31/image_18082025_19_31_55_10618.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/32/image_18082025_19_32_45_10621.jpg', '/home/nano/Desktop/images/18082025/19/32/image_18082025_19_32_34_9620.jpg', '/home/nano/Desktop/images/18082025/19/32/image_18082025_19_32_25_10624.jpg', '/home/nano/Desktop/images/18082025/19/32/image_18082025_19_32_14_9631.jpg', '/home/nano/Desktop/images/18082025/19/31/image_18082025_19_32_05_9623.jpg', '/home/nano/Desktop/images/18082025/19/31/image_18082025_19_31_55_10618.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/32/image_18082025_19_32_45_10621.jpg
/home/nano/Desktop/images/18082025/19/32/image_18082025_19_32_34_9620.jpg
/home/nano/Desktop/images/18082025/19/32/image_18082025_19_32_25_10624.jpg
/home/nano/Desktop/images/18082025/19/32/image_18082025_19_32_14_9631.jpg
/home/nano/Desktop/images/18082025/19/31/image_18082025_19_32_05_9623.jpg
/home/nano/Desktop/images/18082025/19/31/image_18082025_19_31_55_10618.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377714698","1377714692","1377714705","1377714695","1377714701","1377714703"],"photo_ids_order":["1377714692","1377714695","1377714698","1377714701","1377714703","1377714705"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0fcbcf989e35b6c7840cad87a762c8f1.jpg","text":"TemporaryFile(/tmp/multipartBody8737835976150907675asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538412972,"filename":"image_18082025_19_32_25_10624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0296e231760b6a593e48f4d20542b20e.jpg","text":"TemporaryFile(/tmp/multipartBody5533032169631395431asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538412972,"filename":"image_18082025_19_32_45_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fecba666f2b6422e4c7bacb27879cb9a.jpg","text":"TemporaryFile(/tmp/multipartBody6740387920122942904asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538412972,"filename":"image_18082025_19_31_55_10618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/921c9ca1c69a7c576b128b7072547e10.jpg","text":"TemporaryFile(/tmp/multipartBody7162447436567394035asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538412972,"filename":"image_18082025_19_32_34_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7434fd6b51f447cbb92bc945b819e708.jpg","text":"TemporaryFile(/tmp/multipartBody8343401265984638148asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538412972,"filename":"image_18082025_19_32_14_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9d7e08dca36258b06e41f4eba4112368.jpg","text":"TemporaryFile(/tmp/multipartBody6925921962463828478asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538412972,"filename":"image_18082025_19_32_05_9623.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377714698","file1":"1377714695","file0":"1377714692","file4":"1377714703","file5":"1377714705","file3":"1377714701"},"map_files_photo_id_array":[{"photo_id":"1377714705","filename":"file5"},{"photo_id":"1377714698","filename":"file2"},{"photo_id":"1377714703","filename":"file4"},{"photo_id":"1377714695","filename":"file1"},{"photo_id":"1377714692","filename":"file0"},{"photo_id":"1377714701","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377714698":["hashtag1","hashtag2"]},{"1377714692":["hashtag1","hashtag2"]},{"1377714705":["hashtag1","hashtag2"]},{"1377714695":["hashtag1","hashtag2"]},{"1377714701":["hashtag1","hashtag2"]},{"1377714703":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377714698, 1377714692, 1377714705, 1377714695, 1377714701, 1377714703)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.81321430206299 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:33:17.023836
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/33/image_18082025_19_33_45_10643.jpg', 2), ('/home/nano/Desktop/images/18082025/19/33/image_18082025_19_33_34_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/19/33/image_18082025_19_33_25_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/19/33/image_18082025_19_33_15_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/19/32/image_18082025_19_33_04_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/19/32/image_18082025_19_32_55_9616.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/33/image_18082025_19_33_45_10643.jpg', '/home/nano/Desktop/images/18082025/19/33/image_18082025_19_33_34_9606.jpg', '/home/nano/Desktop/images/18082025/19/33/image_18082025_19_33_25_9610.jpg', '/home/nano/Desktop/images/18082025/19/33/image_18082025_19_33_15_10665.jpg', '/home/nano/Desktop/images/18082025/19/32/image_18082025_19_33_04_9623.jpg', '/home/nano/Desktop/images/18082025/19/32/image_18082025_19_32_55_9616.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/33/image_18082025_19_33_45_10643.jpg
/home/nano/Desktop/images/18082025/19/33/image_18082025_19_33_34_9606.jpg
/home/nano/Desktop/images/18082025/19/33/image_18082025_19_33_25_9610.jpg
/home/nano/Desktop/images/18082025/19/33/image_18082025_19_33_15_10665.jpg
/home/nano/Desktop/images/18082025/19/32/image_18082025_19_33_04_9623.jpg
/home/nano/Desktop/images/18082025/19/32/image_18082025_19_32_55_9616.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377714720","1377714714","1377714716","1377714719","1377714721","1377714718"],"photo_ids_order":["1377714714","1377714716","1377714718","1377714719","1377714720","1377714721"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f8d36877b07e4a303bd2963964b0bf08.jpg","text":"TemporaryFile(/tmp/multipartBody221643589492340162asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538458162,"filename":"image_18082025_19_33_04_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8501b67cf842c9a8ad34c409fdcc4c74.jpg","text":"TemporaryFile(/tmp/multipartBody227830247144887100asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538458162,"filename":"image_18082025_19_33_45_10643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/328fe9cf08bb211a691b1763f54afc9c.jpg","text":"TemporaryFile(/tmp/multipartBody1842161816278133068asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538458162,"filename":"image_18082025_19_33_34_9606.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2055df7b084169bdab5ab92113f9546e.jpg","text":"TemporaryFile(/tmp/multipartBody7840077688998439758asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538458162,"filename":"image_18082025_19_33_15_10665.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/91d59d4c342e75fb1d38e98bafe21ae7.jpg","text":"TemporaryFile(/tmp/multipartBody5055316200277427928asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538458162,"filename":"image_18082025_19_32_55_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fca04eeef9c1597398f323c990f7efbc.jpg","text":"TemporaryFile(/tmp/multipartBody6971341291392486158asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538458162,"filename":"image_18082025_19_33_25_9610.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377714718","file1":"1377714716","file0":"1377714714","file4":"1377714720","file5":"1377714721","file3":"1377714719"},"map_files_photo_id_array":[{"photo_id":"1377714721","filename":"file5"},{"photo_id":"1377714718","filename":"file2"},{"photo_id":"1377714720","filename":"file4"},{"photo_id":"1377714716","filename":"file1"},{"photo_id":"1377714714","filename":"file0"},{"photo_id":"1377714719","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377714720":["hashtag1","hashtag2"]},{"1377714714":["hashtag1","hashtag2"]},{"1377714716":["hashtag1","hashtag2"]},{"1377714719":["hashtag1","hashtag2"]},{"1377714721":["hashtag1","hashtag2"]},{"1377714718":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377714720, 1377714714, 1377714716, 1377714719, 1377714721, 1377714718)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.792241096496582 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:34:03.024158
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/31/image_18082025_09_31_15_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/09/30/image_18082025_09_31_05_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/09/30/image_18082025_09_30_54_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/09/30/image_18082025_09_30_45_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/09/30/image_18082025_09_30_34_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/30/image_18082025_09_30_25_9621.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/31/image_18082025_09_31_15_9649.jpg', '/home/nano/Desktop/images/18082025/09/30/image_18082025_09_31_05_10631.jpg', '/home/nano/Desktop/images/18082025/09/30/image_18082025_09_30_54_9615.jpg', '/home/nano/Desktop/images/18082025/09/30/image_18082025_09_30_45_10647.jpg', '/home/nano/Desktop/images/18082025/09/30/image_18082025_09_30_34_9616.jpg', '/home/nano/Desktop/images/18082025/09/30/image_18082025_09_30_25_9621.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/31/image_18082025_09_31_15_9649.jpg
/home/nano/Desktop/images/18082025/09/30/image_18082025_09_31_05_10631.jpg
/home/nano/Desktop/images/18082025/09/30/image_18082025_09_30_54_9615.jpg
/home/nano/Desktop/images/18082025/09/30/image_18082025_09_30_45_10647.jpg
/home/nano/Desktop/images/18082025/09/30/image_18082025_09_30_34_9616.jpg
/home/nano/Desktop/images/18082025/09/30/image_18082025_09_30_25_9621.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377714735","1377714734","1377714737","1377714733","1377714727","1377714730"],"photo_ids_order":["1377714727","1377714730","1377714733","1377714734","1377714735","1377714737"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0cc8c01a71e8f1b114d6ce8c52452956.jpg","text":"TemporaryFile(/tmp/multipartBody6263437682640387809asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538504098,"filename":"image_18082025_09_30_34_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/630d2cd60db72df03513e2b2bcf6759b.jpg","text":"TemporaryFile(/tmp/multipartBody7748929312618720250asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538504098,"filename":"image_18082025_09_30_45_10647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e6287a3a60a3bf175cbbfceaa73da42d.jpg","text":"TemporaryFile(/tmp/multipartBody6114259883133873277asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538504098,"filename":"image_18082025_09_30_25_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0af1534960f6a52e4c4010c3bc4e13a7.jpg","text":"TemporaryFile(/tmp/multipartBody170843520285829530asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538504098,"filename":"image_18082025_09_30_54_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e24c41e10bfafa705dcf3f630e031745.jpg","text":"TemporaryFile(/tmp/multipartBody8773067796492161409asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538504098,"filename":"image_18082025_09_31_15_9649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6a8fd5ed26e8fb2419685e3ec07a4293.jpg","text":"TemporaryFile(/tmp/multipartBody4114205513612122937asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538504098,"filename":"image_18082025_09_31_05_10631.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377714733","file1":"1377714730","file0":"1377714727","file4":"1377714735","file5":"1377714737","file3":"1377714734"},"map_files_photo_id_array":[{"photo_id":"1377714737","filename":"file5"},{"photo_id":"1377714733","filename":"file2"},{"photo_id":"1377714735","filename":"file4"},{"photo_id":"1377714730","filename":"file1"},{"photo_id":"1377714727","filename":"file0"},{"photo_id":"1377714734","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377714735":["hashtag1","hashtag2"]},{"1377714734":["hashtag1","hashtag2"]},{"1377714737":["hashtag1","hashtag2"]},{"1377714733":["hashtag1","hashtag2"]},{"1377714727":["hashtag1","hashtag2"]},{"1377714730":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377714735, 1377714734, 1377714737, 1377714733, 1377714727, 1377714730)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.77829384803772 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:34:47.133831
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/34/image_18082025_19_34_45_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/19/34/image_18082025_19_34_35_10616.jpg', 2), ('/home/nano/Desktop/images/18082025/19/34/image_18082025_19_34_24_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/19/34/image_18082025_19_34_15_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/19/33/image_18082025_19_34_05_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/19/33/image_18082025_19_33_54_9614.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/34/image_18082025_19_34_45_9629.jpg', '/home/nano/Desktop/images/18082025/19/34/image_18082025_19_34_35_10616.jpg', '/home/nano/Desktop/images/18082025/19/34/image_18082025_19_34_24_9609.jpg', '/home/nano/Desktop/images/18082025/19/34/image_18082025_19_34_15_9627.jpg', '/home/nano/Desktop/images/18082025/19/33/image_18082025_19_34_05_10650.jpg', '/home/nano/Desktop/images/18082025/19/33/image_18082025_19_33_54_9614.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/34/image_18082025_19_34_45_9629.jpg
/home/nano/Desktop/images/18082025/19/34/image_18082025_19_34_35_10616.jpg
/home/nano/Desktop/images/18082025/19/34/image_18082025_19_34_24_9609.jpg
/home/nano/Desktop/images/18082025/19/34/image_18082025_19_34_15_9627.jpg
/home/nano/Desktop/images/18082025/19/33/image_18082025_19_34_05_10650.jpg
/home/nano/Desktop/images/18082025/19/33/image_18082025_19_33_54_9614.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377714747","1377714752","1377714755","1377714749","1377714745","1377714748"],"photo_ids_order":["1377714745","1377714747","1377714748","1377714749","1377714752","1377714755"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d34d5b9f58632f56f99384edc620deee.jpg","text":"TemporaryFile(/tmp/multipartBody1393594604846765165asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538548484,"filename":"image_18082025_19_34_35_10616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4541babaf8fe255b3ac6d786c5a0537e.jpg","text":"TemporaryFile(/tmp/multipartBody3181733232468461551asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538548484,"filename":"image_18082025_19_34_05_10650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ba2c44be3a783621808fa85e7e9aec05.jpg","text":"TemporaryFile(/tmp/multipartBody5907916862693286585asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538548484,"filename":"image_18082025_19_33_54_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0fb57ed49fd928034f4cc41af096f858.jpg","text":"TemporaryFile(/tmp/multipartBody6731626607978331760asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538548484,"filename":"image_18082025_19_34_15_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/399c9bdf9fe8b3346eea456c6a788137.jpg","text":"TemporaryFile(/tmp/multipartBody5634477445886867648asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538548484,"filename":"image_18082025_19_34_45_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bab5bef7e35d5b76e105ce929af0725b.jpg","text":"TemporaryFile(/tmp/multipartBody2230049223565744644asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538548484,"filename":"image_18082025_19_34_24_9609.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377714748","file1":"1377714747","file0":"1377714745","file4":"1377714752","file5":"1377714755","file3":"1377714749"},"map_files_photo_id_array":[{"photo_id":"1377714755","filename":"file5"},{"photo_id":"1377714748","filename":"file2"},{"photo_id":"1377714752","filename":"file4"},{"photo_id":"1377714747","filename":"file1"},{"photo_id":"1377714745","filename":"file0"},{"photo_id":"1377714749","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377714747":["hashtag1","hashtag2"]},{"1377714752":["hashtag1","hashtag2"]},{"1377714755":["hashtag1","hashtag2"]},{"1377714749":["hashtag1","hashtag2"]},{"1377714745":["hashtag1","hashtag2"]},{"1377714748":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377714747, 1377714752, 1377714755, 1377714749, 1377714745, 1377714748)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.16417193412781 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:35:32.243149
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/35/image_18082025_19_35_44_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/19/35/image_18082025_19_35_35_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/19/35/image_18082025_19_35_25_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/19/35/image_18082025_19_35_14_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/19/34/image_18082025_19_35_05_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/19/34/image_18082025_19_34_54_9626.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/35/image_18082025_19_35_44_9630.jpg', '/home/nano/Desktop/images/18082025/19/35/image_18082025_19_35_35_9613.jpg', '/home/nano/Desktop/images/18082025/19/35/image_18082025_19_35_25_10629.jpg', '/home/nano/Desktop/images/18082025/19/35/image_18082025_19_35_14_9640.jpg', '/home/nano/Desktop/images/18082025/19/34/image_18082025_19_35_05_10635.jpg', '/home/nano/Desktop/images/18082025/19/34/image_18082025_19_34_54_9626.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/35/image_18082025_19_35_44_9630.jpg
/home/nano/Desktop/images/18082025/19/35/image_18082025_19_35_35_9613.jpg
/home/nano/Desktop/images/18082025/19/35/image_18082025_19_35_25_10629.jpg
/home/nano/Desktop/images/18082025/19/35/image_18082025_19_35_14_9640.jpg
/home/nano/Desktop/images/18082025/19/34/image_18082025_19_35_05_10635.jpg
/home/nano/Desktop/images/18082025/19/34/image_18082025_19_34_54_9626.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377714770","1377714773","1377714764","1377714766","1377714775","1377714768"],"photo_ids_order":["1377714764","1377714766","1377714768","1377714770","1377714773","1377714775"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8beae6c57bc2435fa4501e30d5f26d85.jpg","text":"TemporaryFile(/tmp/multipartBody7870043609046280950asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538593555,"filename":"image_18082025_19_35_14_9640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6efc303fec70a76006b96dcb24152dfe.jpg","text":"TemporaryFile(/tmp/multipartBody8516440597544969734asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538593555,"filename":"image_18082025_19_35_05_10635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bb031be96a8378ddba37bd14edde8017.jpg","text":"TemporaryFile(/tmp/multipartBody3118790167365994259asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538593555,"filename":"image_18082025_19_35_44_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/454dc92d7fb4f21541132fdafda8db64.jpg","text":"TemporaryFile(/tmp/multipartBody3758863779480329098asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538593555,"filename":"image_18082025_19_35_35_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8c235a55a6d42417a05726c6d6aa31eb.jpg","text":"TemporaryFile(/tmp/multipartBody8557688538772405727asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538593555,"filename":"image_18082025_19_34_54_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/33b861459345cf23ae0e84d3b47f9dce.jpg","text":"TemporaryFile(/tmp/multipartBody3347138296976614191asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538593555,"filename":"image_18082025_19_35_25_10629.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377714768","file1":"1377714766","file0":"1377714764","file4":"1377714773","file5":"1377714775","file3":"1377714770"},"map_files_photo_id_array":[{"photo_id":"1377714775","filename":"file5"},{"photo_id":"1377714768","filename":"file2"},{"photo_id":"1377714773","filename":"file4"},{"photo_id":"1377714766","filename":"file1"},{"photo_id":"1377714764","filename":"file0"},{"photo_id":"1377714770","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377714770":["hashtag1","hashtag2"]},{"1377714773":["hashtag1","hashtag2"]},{"1377714764":["hashtag1","hashtag2"]},{"1377714766":["hashtag1","hashtag2"]},{"1377714775":["hashtag1","hashtag2"]},{"1377714768":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377714770, 1377714773, 1377714764, 1377714766, 1377714775, 1377714768)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.41037368774414 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:36:17.340955
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/36/image_18082025_19_36_45_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/19/36/image_18082025_19_36_34_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/19/36/image_18082025_19_36_25_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/19/36/image_18082025_19_36_14_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/19/35/image_18082025_19_36_05_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/19/35/image_18082025_19_35_55_10626.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/36/image_18082025_19_36_45_10621.jpg', '/home/nano/Desktop/images/18082025/19/36/image_18082025_19_36_34_9618.jpg', '/home/nano/Desktop/images/18082025/19/36/image_18082025_19_36_25_10629.jpg', '/home/nano/Desktop/images/18082025/19/36/image_18082025_19_36_14_9637.jpg', '/home/nano/Desktop/images/18082025/19/35/image_18082025_19_36_05_9620.jpg', '/home/nano/Desktop/images/18082025/19/35/image_18082025_19_35_55_10626.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/36/image_18082025_19_36_45_10621.jpg
/home/nano/Desktop/images/18082025/19/36/image_18082025_19_36_34_9618.jpg
/home/nano/Desktop/images/18082025/19/36/image_18082025_19_36_25_10629.jpg
/home/nano/Desktop/images/18082025/19/36/image_18082025_19_36_14_9637.jpg
/home/nano/Desktop/images/18082025/19/35/image_18082025_19_36_05_9620.jpg
/home/nano/Desktop/images/18082025/19/35/image_18082025_19_35_55_10626.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377714791","1377714794","1377714788","1377714796","1377714793","1377714795"],"photo_ids_order":["1377714788","1377714791","1377714793","1377714794","1377714795","1377714796"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6260d75be774772d58a0a77979690359.jpg","text":"TemporaryFile(/tmp/multipartBody8531613438250103386asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538639616,"filename":"image_18082025_19_36_34_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6750ff529eb0221a40cada784dc67a11.jpg","text":"TemporaryFile(/tmp/multipartBody1844955529705769831asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538639616,"filename":"image_18082025_19_36_14_9637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a344d096d6e5fac3e11a9a21a5b67218.jpg","text":"TemporaryFile(/tmp/multipartBody7466170698828879969asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538639616,"filename":"image_18082025_19_36_45_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e010ef291cbf001b10fb5493731cae66.jpg","text":"TemporaryFile(/tmp/multipartBody7801447666523183307asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538639616,"filename":"image_18082025_19_35_55_10626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/17db661f4dda01d6b2cbcfc297c7d60b.jpg","text":"TemporaryFile(/tmp/multipartBody1936783293243279996asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538639616,"filename":"image_18082025_19_36_25_10629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/77ba4bca38caeaefc4b20c126a98cad4.jpg","text":"TemporaryFile(/tmp/multipartBody1355270483896774665asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538639616,"filename":"image_18082025_19_36_05_9620.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377714793","file1":"1377714791","file0":"1377714788","file4":"1377714795","file5":"1377714796","file3":"1377714794"},"map_files_photo_id_array":[{"photo_id":"1377714796","filename":"file5"},{"photo_id":"1377714793","filename":"file2"},{"photo_id":"1377714795","filename":"file4"},{"photo_id":"1377714791","filename":"file1"},{"photo_id":"1377714788","filename":"file0"},{"photo_id":"1377714794","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377714791":["hashtag1","hashtag2"]},{"1377714794":["hashtag1","hashtag2"]},{"1377714788":["hashtag1","hashtag2"]},{"1377714796":["hashtag1","hashtag2"]},{"1377714793":["hashtag1","hashtag2"]},{"1377714795":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377714791, 1377714794, 1377714788, 1377714796, 1377714793, 1377714795)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.907889366149902 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:37:03.018502
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/30/image_18082025_09_30_15_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/09/29/image_18082025_09_30_04_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/09/29/image_18082025_09_29_55_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/09/29/image_18082025_09_29_45_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/09/29/image_18082025_09_29_34_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/09/29/image_18082025_09_29_25_10648.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/30/image_18082025_09_30_15_10649.jpg', '/home/nano/Desktop/images/18082025/09/29/image_18082025_09_30_04_9633.jpg', '/home/nano/Desktop/images/18082025/09/29/image_18082025_09_29_55_9620.jpg', '/home/nano/Desktop/images/18082025/09/29/image_18082025_09_29_45_10628.jpg', '/home/nano/Desktop/images/18082025/09/29/image_18082025_09_29_34_9624.jpg', '/home/nano/Desktop/images/18082025/09/29/image_18082025_09_29_25_10648.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/30/image_18082025_09_30_15_10649.jpg
/home/nano/Desktop/images/18082025/09/29/image_18082025_09_30_04_9633.jpg
/home/nano/Desktop/images/18082025/09/29/image_18082025_09_29_55_9620.jpg
/home/nano/Desktop/images/18082025/09/29/image_18082025_09_29_45_10628.jpg
/home/nano/Desktop/images/18082025/09/29/image_18082025_09_29_34_9624.jpg
/home/nano/Desktop/images/18082025/09/29/image_18082025_09_29_25_10648.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377714810","1377714807","1377714806","1377714808","1377714802","1377714805"],"photo_ids_order":["1377714802","1377714805","1377714806","1377714807","1377714808","1377714810"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/237aa232445196f622735f0d3e1b2e0e.jpg","text":"TemporaryFile(/tmp/multipartBody260333748931967630asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538684434,"filename":"image_18082025_09_29_25_10648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b2c4b64951a375d5c8075e313c7feed3.jpg","text":"TemporaryFile(/tmp/multipartBody7930970051581438319asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538684434,"filename":"image_18082025_09_29_45_10628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b38306fe9e7a4fb177f15dd36d21a058.jpg","text":"TemporaryFile(/tmp/multipartBody6338445209678085684asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538684434,"filename":"image_18082025_09_29_55_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3ee6f2b1c59b0a681511bd462905c626.jpg","text":"TemporaryFile(/tmp/multipartBody736368767310223294asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538684434,"filename":"image_18082025_09_29_34_9624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4982aef060c789787e2e6fb2021ec87b.jpg","text":"TemporaryFile(/tmp/multipartBody4468138709135284576asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538684434,"filename":"image_18082025_09_30_15_10649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0481b0ce0dd5ad4ecb2c097e6b88e876.jpg","text":"TemporaryFile(/tmp/multipartBody2056932839272190593asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538684434,"filename":"image_18082025_09_30_04_9633.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377714806","file1":"1377714805","file0":"1377714802","file4":"1377714808","file5":"1377714810","file3":"1377714807"},"map_files_photo_id_array":[{"photo_id":"1377714810","filename":"file5"},{"photo_id":"1377714806","filename":"file2"},{"photo_id":"1377714808","filename":"file4"},{"photo_id":"1377714805","filename":"file1"},{"photo_id":"1377714802","filename":"file0"},{"photo_id":"1377714807","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377714810":["hashtag1","hashtag2"]},{"1377714807":["hashtag1","hashtag2"]},{"1377714806":["hashtag1","hashtag2"]},{"1377714808":["hashtag1","hashtag2"]},{"1377714802":["hashtag1","hashtag2"]},{"1377714805":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377714810, 1377714807, 1377714806, 1377714808, 1377714802, 1377714805)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.303881883621216 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:37:47.425100
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/37/image_18082025_19_37_45_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/19/37/image_18082025_19_37_34_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/19/37/image_18082025_19_37_25_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/19/37/image_18082025_19_37_15_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/19/36/image_18082025_19_37_04_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/19/36/image_18082025_19_36_55_9602.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/37/image_18082025_19_37_45_10618.jpg', '/home/nano/Desktop/images/18082025/19/37/image_18082025_19_37_34_9607.jpg', '/home/nano/Desktop/images/18082025/19/37/image_18082025_19_37_25_9607.jpg', '/home/nano/Desktop/images/18082025/19/37/image_18082025_19_37_15_10641.jpg', '/home/nano/Desktop/images/18082025/19/36/image_18082025_19_37_04_9626.jpg', '/home/nano/Desktop/images/18082025/19/36/image_18082025_19_36_55_9602.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/37/image_18082025_19_37_45_10618.jpg
/home/nano/Desktop/images/18082025/19/37/image_18082025_19_37_34_9607.jpg
/home/nano/Desktop/images/18082025/19/37/image_18082025_19_37_25_9607.jpg
/home/nano/Desktop/images/18082025/19/37/image_18082025_19_37_15_10641.jpg
/home/nano/Desktop/images/18082025/19/36/image_18082025_19_37_04_9626.jpg
/home/nano/Desktop/images/18082025/19/36/image_18082025_19_36_55_9602.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377714819","1377714822","1377714816","1377714818","1377714820","1377714817"],"photo_ids_order":["1377714816","1377714817","1377714818","1377714819","1377714820","1377714822"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0e4454fa13483c499d97ebd1bb997c2b.jpg","text":"TemporaryFile(/tmp/multipartBody1273643101938604106asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538728795,"filename":"image_18082025_19_37_15_10641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f11ec4869a84cc391d8075749c7a8ecc.jpg","text":"TemporaryFile(/tmp/multipartBody2992344572495308991asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538728795,"filename":"image_18082025_19_36_55_9602.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/496014cfe182972c3610b9831dd51e7c.jpg","text":"TemporaryFile(/tmp/multipartBody869077146401572637asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538728795,"filename":"image_18082025_19_37_45_10618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f402056608b177c4ec68e2545c6745f9.jpg","text":"TemporaryFile(/tmp/multipartBody7099127473203623717asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538728795,"filename":"image_18082025_19_37_25_9607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/842d070533d316a79f796cad5dd1f3f1.jpg","text":"TemporaryFile(/tmp/multipartBody3120291614319875759asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538728795,"filename":"image_18082025_19_37_04_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c9c2cd027c1b3e21e13b02b869ebd808.jpg","text":"TemporaryFile(/tmp/multipartBody102669701913571673asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538728795,"filename":"image_18082025_19_37_34_9607.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377714818","file1":"1377714817","file0":"1377714816","file4":"1377714820","file5":"1377714822","file3":"1377714819"},"map_files_photo_id_array":[{"photo_id":"1377714822","filename":"file5"},{"photo_id":"1377714818","filename":"file2"},{"photo_id":"1377714820","filename":"file4"},{"photo_id":"1377714817","filename":"file1"},{"photo_id":"1377714816","filename":"file0"},{"photo_id":"1377714819","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377714819":["hashtag1","hashtag2"]},{"1377714822":["hashtag1","hashtag2"]},{"1377714816":["hashtag1","hashtag2"]},{"1377714818":["hashtag1","hashtag2"]},{"1377714820":["hashtag1","hashtag2"]},{"1377714817":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377714819, 1377714822, 1377714816, 1377714818, 1377714820, 1377714817)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.023391008377075 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:38:32.521095
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/38/image_18082025_19_38_44_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/19/38/image_18082025_19_38_35_10622.jpg', 2), ('/home/nano/Desktop/images/18082025/19/38/image_18082025_19_38_24_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/19/38/image_18082025_19_38_15_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/19/37/image_18082025_19_38_05_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/19/37/image_18082025_19_37_54_9606.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/38/image_18082025_19_38_44_9616.jpg', '/home/nano/Desktop/images/18082025/19/38/image_18082025_19_38_35_10622.jpg', '/home/nano/Desktop/images/18082025/19/38/image_18082025_19_38_24_9611.jpg', '/home/nano/Desktop/images/18082025/19/38/image_18082025_19_38_15_9629.jpg', '/home/nano/Desktop/images/18082025/19/37/image_18082025_19_38_05_10630.jpg', '/home/nano/Desktop/images/18082025/19/37/image_18082025_19_37_54_9606.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/38/image_18082025_19_38_44_9616.jpg
/home/nano/Desktop/images/18082025/19/38/image_18082025_19_38_35_10622.jpg
/home/nano/Desktop/images/18082025/19/38/image_18082025_19_38_24_9611.jpg
/home/nano/Desktop/images/18082025/19/38/image_18082025_19_38_15_9629.jpg
/home/nano/Desktop/images/18082025/19/37/image_18082025_19_38_05_10630.jpg
/home/nano/Desktop/images/18082025/19/37/image_18082025_19_37_54_9606.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377714837","1377714840","1377714833","1377714841","1377714835","1377714838"],"photo_ids_order":["1377714833","1377714835","1377714837","1377714838","1377714840","1377714841"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7b15843288ca2d1de690d8e55bec33af.jpg","text":"TemporaryFile(/tmp/multipartBody554233337941592434asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538773793,"filename":"image_18082025_19_38_24_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bf7e04d3e6c7ab19c28ccd30ff0b122e.jpg","text":"TemporaryFile(/tmp/multipartBody3647054654120028110asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538773793,"filename":"image_18082025_19_38_05_10630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/850428e0b63747d8fc7776fa814e8e16.jpg","text":"TemporaryFile(/tmp/multipartBody8359776546579566141asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538773793,"filename":"image_18082025_19_38_44_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/28f2d20c8a3ab581d061b1d267590e84.jpg","text":"TemporaryFile(/tmp/multipartBody5603819961289090717asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538773793,"filename":"image_18082025_19_37_54_9606.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ca3e548452f16b0edb2014136d4a9bb5.jpg","text":"TemporaryFile(/tmp/multipartBody827614845655520215asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538773793,"filename":"image_18082025_19_38_35_10622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2b56cde79f70ebe6a10d733db96ea469.jpg","text":"TemporaryFile(/tmp/multipartBody7380777844954524843asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538773793,"filename":"image_18082025_19_38_15_9629.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377714837","file1":"1377714835","file0":"1377714833","file4":"1377714840","file5":"1377714841","file3":"1377714838"},"map_files_photo_id_array":[{"photo_id":"1377714841","filename":"file5"},{"photo_id":"1377714837","filename":"file2"},{"photo_id":"1377714840","filename":"file4"},{"photo_id":"1377714835","filename":"file1"},{"photo_id":"1377714833","filename":"file0"},{"photo_id":"1377714838","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377714837":["hashtag1","hashtag2"]},{"1377714840":["hashtag1","hashtag2"]},{"1377714833":["hashtag1","hashtag2"]},{"1377714841":["hashtag1","hashtag2"]},{"1377714835":["hashtag1","hashtag2"]},{"1377714838":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377714837, 1377714840, 1377714833, 1377714841, 1377714835, 1377714838)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.83072829246521 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:39:17.766913
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/39/image_18082025_19_39_44_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/19/39/image_18082025_19_39_35_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/19/39/image_18082025_19_39_25_10619.jpg', 2), ('/home/nano/Desktop/images/18082025/19/39/image_18082025_19_39_14_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/19/38/image_18082025_19_39_05_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/19/38/image_18082025_19_38_54_9614.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/39/image_18082025_19_39_44_9613.jpg', '/home/nano/Desktop/images/18082025/19/39/image_18082025_19_39_35_9612.jpg', '/home/nano/Desktop/images/18082025/19/39/image_18082025_19_39_25_10619.jpg', '/home/nano/Desktop/images/18082025/19/39/image_18082025_19_39_14_9635.jpg', '/home/nano/Desktop/images/18082025/19/38/image_18082025_19_39_05_10637.jpg', '/home/nano/Desktop/images/18082025/19/38/image_18082025_19_38_54_9614.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/39/image_18082025_19_39_44_9613.jpg
/home/nano/Desktop/images/18082025/19/39/image_18082025_19_39_35_9612.jpg
/home/nano/Desktop/images/18082025/19/39/image_18082025_19_39_25_10619.jpg
/home/nano/Desktop/images/18082025/19/39/image_18082025_19_39_14_9635.jpg
/home/nano/Desktop/images/18082025/19/38/image_18082025_19_39_05_10637.jpg
/home/nano/Desktop/images/18082025/19/38/image_18082025_19_38_54_9614.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377714852","1377714854","1377714848","1377714850","1377714853","1377714855"],"photo_ids_order":["1377714848","1377714850","1377714852","1377714853","1377714854","1377714855"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/10d226c86dbe8c1ef598ea0ec6504d03.jpg","text":"TemporaryFile(/tmp/multipartBody1127967600969308593asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538819120,"filename":"image_18082025_19_39_25_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b7682e071d1b027fe8a18c755db00772.jpg","text":"TemporaryFile(/tmp/multipartBody2844856208800770519asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538819120,"filename":"image_18082025_19_39_05_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8f5e1dce180a38fdab4d8953a698829e.jpg","text":"TemporaryFile(/tmp/multipartBody301363134860196838asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538819120,"filename":"image_18082025_19_39_44_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d51194acf6fefccf0d219a94f81d4018.jpg","text":"TemporaryFile(/tmp/multipartBody4721477323994479328asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538819120,"filename":"image_18082025_19_39_35_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7851ba8f220a1c984913650ef1bf19ce.jpg","text":"TemporaryFile(/tmp/multipartBody1762115264025605772asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538819120,"filename":"image_18082025_19_39_14_9635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4352d1ed5d9bed4d5c96dd81b503a27b.jpg","text":"TemporaryFile(/tmp/multipartBody7428578465780102123asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538819120,"filename":"image_18082025_19_38_54_9614.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377714852","file1":"1377714850","file0":"1377714848","file4":"1377714854","file5":"1377714855","file3":"1377714853"},"map_files_photo_id_array":[{"photo_id":"1377714855","filename":"file5"},{"photo_id":"1377714852","filename":"file2"},{"photo_id":"1377714854","filename":"file4"},{"photo_id":"1377714850","filename":"file1"},{"photo_id":"1377714848","filename":"file0"},{"photo_id":"1377714853","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377714852":["hashtag1","hashtag2"]},{"1377714854":["hashtag1","hashtag2"]},{"1377714848":["hashtag1","hashtag2"]},{"1377714850":["hashtag1","hashtag2"]},{"1377714853":["hashtag1","hashtag2"]},{"1377714855":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377714852, 1377714854, 1377714848, 1377714850, 1377714853, 1377714855)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.280543088912964 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:40:02.261529
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/40/image_18082025_19_40_55_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/09/29/image_18082025_09_29_14_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/09/28/image_18082025_09_29_04_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/09/28/image_18082025_09_28_55_10619.jpg', 2), ('/home/nano/Desktop/images/18082025/09/28/image_18082025_09_28_44_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/09/28/image_18082025_09_28_35_9621.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/40/image_18082025_19_40_55_9626.jpg', '/home/nano/Desktop/images/18082025/09/29/image_18082025_09_29_14_9638.jpg', '/home/nano/Desktop/images/18082025/09/28/image_18082025_09_29_04_9627.jpg', '/home/nano/Desktop/images/18082025/09/28/image_18082025_09_28_55_10619.jpg', '/home/nano/Desktop/images/18082025/09/28/image_18082025_09_28_44_9620.jpg', '/home/nano/Desktop/images/18082025/09/28/image_18082025_09_28_35_9621.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/40/image_18082025_19_40_55_9626.jpg
/home/nano/Desktop/images/18082025/09/29/image_18082025_09_29_14_9638.jpg
/home/nano/Desktop/images/18082025/09/28/image_18082025_09_29_04_9627.jpg
/home/nano/Desktop/images/18082025/09/28/image_18082025_09_28_55_10619.jpg
/home/nano/Desktop/images/18082025/09/28/image_18082025_09_28_44_9620.jpg
/home/nano/Desktop/images/18082025/09/28/image_18082025_09_28_35_9621.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377714878","1377714875","1377714880","1377714877","1377714873","1377714876"],"photo_ids_order":["1377714873","1377714875","1377714876","1377714877","1377714878","1377714880"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3eb3d4bd3f25f5371d95c1e678a67587.jpg","text":"TemporaryFile(/tmp/multipartBody822539364996640774asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538863708,"filename":"image_18082025_09_28_44_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ff9a9796687140b38400d99190e4111a.jpg","text":"TemporaryFile(/tmp/multipartBody1403261731096759096asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538863708,"filename":"image_18082025_09_29_14_9638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/66d329ec6d2485c7377beac39d1f6730.jpg","text":"TemporaryFile(/tmp/multipartBody645163163857092911asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538863708,"filename":"image_18082025_09_28_35_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/697678223b7054e24eda2d46fe34a96a.jpg","text":"TemporaryFile(/tmp/multipartBody4643058130099971354asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538863708,"filename":"image_18082025_09_28_55_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8eba751cab4acb1ad16d986762450721.jpg","text":"TemporaryFile(/tmp/multipartBody4197401886276038462asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538863708,"filename":"image_18082025_19_40_55_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5542d99df7f7fdd01ee28e0efe1ffa48.jpg","text":"TemporaryFile(/tmp/multipartBody7396129001682844343asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538863708,"filename":"image_18082025_09_29_04_9627.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377714876","file1":"1377714875","file0":"1377714873","file4":"1377714878","file5":"1377714880","file3":"1377714877"},"map_files_photo_id_array":[{"photo_id":"1377714880","filename":"file5"},{"photo_id":"1377714876","filename":"file2"},{"photo_id":"1377714878","filename":"file4"},{"photo_id":"1377714875","filename":"file1"},{"photo_id":"1377714873","filename":"file0"},{"photo_id":"1377714877","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377714878":["hashtag1","hashtag2"]},{"1377714875":["hashtag1","hashtag2"]},{"1377714880":["hashtag1","hashtag2"]},{"1377714877":["hashtag1","hashtag2"]},{"1377714873":["hashtag1","hashtag2"]},{"1377714876":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377714878, 1377714875, 1377714880, 1377714877, 1377714873, 1377714876)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.700735807418823 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:40:46.778464
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/40/image_18082025_19_40_34_9608.jpg', 2), ('/home/nano/Desktop/images/18082025/19/40/image_18082025_19_40_25_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/19/40/image_18082025_19_40_14_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/19/39/image_18082025_19_40_04_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/19/39/image_18082025_19_39_55_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/09/28/image_18082025_09_28_25_10639.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/40/image_18082025_19_40_34_9608.jpg', '/home/nano/Desktop/images/18082025/19/40/image_18082025_19_40_25_10631.jpg', '/home/nano/Desktop/images/18082025/19/40/image_18082025_19_40_14_9637.jpg', '/home/nano/Desktop/images/18082025/19/39/image_18082025_19_40_04_9652.jpg', '/home/nano/Desktop/images/18082025/19/39/image_18082025_19_39_55_10638.jpg', '/home/nano/Desktop/images/18082025/09/28/image_18082025_09_28_25_10639.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/40/image_18082025_19_40_34_9608.jpg
/home/nano/Desktop/images/18082025/19/40/image_18082025_19_40_25_10631.jpg
/home/nano/Desktop/images/18082025/19/40/image_18082025_19_40_14_9637.jpg
/home/nano/Desktop/images/18082025/19/39/image_18082025_19_40_04_9652.jpg
/home/nano/Desktop/images/18082025/19/39/image_18082025_19_39_55_10638.jpg
/home/nano/Desktop/images/18082025/09/28/image_18082025_09_28_25_10639.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377714896","1377714893","1377714887","1377714889","1377714886","1377714891"],"photo_ids_order":["1377714886","1377714887","1377714889","1377714891","1377714893","1377714896"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/495a3b65b154c65571620588a418b332.jpg","text":"TemporaryFile(/tmp/multipartBody5440488806164958636asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538907910,"filename":"image_18082025_09_28_25_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a5c18538c95c689250103c2601b571fd.jpg","text":"TemporaryFile(/tmp/multipartBody2526269430294666608asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538907910,"filename":"image_18082025_19_39_55_10638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1cadb541f56d28657ce478a64045b92b.jpg","text":"TemporaryFile(/tmp/multipartBody5737843987132271960asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538907910,"filename":"image_18082025_19_40_25_10631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/34e97b884e510736e4fde7268f0d8482.jpg","text":"TemporaryFile(/tmp/multipartBody2462174116600487615asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538907910,"filename":"image_18082025_19_40_14_9637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0279a9b7118ddd6608403fdb14ac26ad.jpg","text":"TemporaryFile(/tmp/multipartBody480057165046907615asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538907910,"filename":"image_18082025_19_40_34_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/35b3c3da070fc1fd17449d2bcef3d9f7.jpg","text":"TemporaryFile(/tmp/multipartBody8273526832672438489asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538907910,"filename":"image_18082025_19_40_04_9652.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377714889","file1":"1377714887","file0":"1377714886","file4":"1377714893","file5":"1377714896","file3":"1377714891"},"map_files_photo_id_array":[{"photo_id":"1377714896","filename":"file5"},{"photo_id":"1377714889","filename":"file2"},{"photo_id":"1377714893","filename":"file4"},{"photo_id":"1377714887","filename":"file1"},{"photo_id":"1377714886","filename":"file0"},{"photo_id":"1377714891","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377714896":["hashtag1","hashtag2"]},{"1377714893":["hashtag1","hashtag2"]},{"1377714887":["hashtag1","hashtag2"]},{"1377714889":["hashtag1","hashtag2"]},{"1377714886":["hashtag1","hashtag2"]},{"1377714891":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377714896, 1377714893, 1377714887, 1377714889, 1377714886, 1377714891)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.73232412338257 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:41:31.888066
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/41/image_18082025_19_41_45_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/19/41/image_18082025_19_41_34_9605.jpg', 2), ('/home/nano/Desktop/images/18082025/19/41/image_18082025_19_41_25_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/19/41/image_18082025_19_41_15_10682.jpg', 2), ('/home/nano/Desktop/images/18082025/19/40/image_18082025_19_41_04_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/19/40/image_18082025_19_40_45_10625.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/41/image_18082025_19_41_45_10626.jpg', '/home/nano/Desktop/images/18082025/19/41/image_18082025_19_41_34_9605.jpg', '/home/nano/Desktop/images/18082025/19/41/image_18082025_19_41_25_9615.jpg', '/home/nano/Desktop/images/18082025/19/41/image_18082025_19_41_15_10682.jpg', '/home/nano/Desktop/images/18082025/19/40/image_18082025_19_41_04_9610.jpg', '/home/nano/Desktop/images/18082025/19/40/image_18082025_19_40_45_10625.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/41/image_18082025_19_41_45_10626.jpg
/home/nano/Desktop/images/18082025/19/41/image_18082025_19_41_34_9605.jpg
/home/nano/Desktop/images/18082025/19/41/image_18082025_19_41_25_9615.jpg
/home/nano/Desktop/images/18082025/19/41/image_18082025_19_41_15_10682.jpg
/home/nano/Desktop/images/18082025/19/40/image_18082025_19_41_04_9610.jpg
/home/nano/Desktop/images/18082025/19/40/image_18082025_19_40_45_10625.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377714912","1377714909","1377714914","1377714908","1377714916","1377714910"],"photo_ids_order":["1377714908","1377714909","1377714910","1377714912","1377714914","1377714916"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d8b9ee84737e5944d1f1fd6b0acb3a73.jpg","text":"TemporaryFile(/tmp/multipartBody5629084332480768190asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538953243,"filename":"image_18082025_19_41_15_10682.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fd2f1de174f58d52b83c7630844692a3.jpg","text":"TemporaryFile(/tmp/multipartBody9196054536411626052asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538953243,"filename":"image_18082025_19_41_34_9605.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/421c20308146ebcba9385acf7524afea.jpg","text":"TemporaryFile(/tmp/multipartBody3814332045496527912asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538953243,"filename":"image_18082025_19_41_04_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f413e9384accbc57ad33a0c4ba4e70d0.jpg","text":"TemporaryFile(/tmp/multipartBody5141287673185066206asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538953243,"filename":"image_18082025_19_41_45_10626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f612d0d532e7b54acff46c0864f2cd20.jpg","text":"TemporaryFile(/tmp/multipartBody1323859916345819789asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538953243,"filename":"image_18082025_19_40_45_10625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e471dd1a43444200d8fd2ca1b2f65a7e.jpg","text":"TemporaryFile(/tmp/multipartBody700358844381513671asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538953243,"filename":"image_18082025_19_41_25_9615.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377714910","file1":"1377714909","file0":"1377714908","file4":"1377714914","file5":"1377714916","file3":"1377714912"},"map_files_photo_id_array":[{"photo_id":"1377714916","filename":"file5"},{"photo_id":"1377714910","filename":"file2"},{"photo_id":"1377714914","filename":"file4"},{"photo_id":"1377714909","filename":"file1"},{"photo_id":"1377714908","filename":"file0"},{"photo_id":"1377714912","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377714912":["hashtag1","hashtag2"]},{"1377714909":["hashtag1","hashtag2"]},{"1377714914":["hashtag1","hashtag2"]},{"1377714908":["hashtag1","hashtag2"]},{"1377714916":["hashtag1","hashtag2"]},{"1377714910":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377714912, 1377714909, 1377714914, 1377714908, 1377714916, 1377714910)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.630298137664795 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:42:16.986713
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/42/image_18082025_19_42_45_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/19/42/image_18082025_19_42_35_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/19/42/image_18082025_19_42_24_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/19/42/image_18082025_19_42_15_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/19/41/image_18082025_19_42_05_10633.jpg', 2), ('/home/nano/Desktop/images/18082025/19/41/image_18082025_19_41_54_9611.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/42/image_18082025_19_42_45_9607.jpg', '/home/nano/Desktop/images/18082025/19/42/image_18082025_19_42_35_10639.jpg', '/home/nano/Desktop/images/18082025/19/42/image_18082025_19_42_24_9646.jpg', '/home/nano/Desktop/images/18082025/19/42/image_18082025_19_42_15_9615.jpg', '/home/nano/Desktop/images/18082025/19/41/image_18082025_19_42_05_10633.jpg', '/home/nano/Desktop/images/18082025/19/41/image_18082025_19_41_54_9611.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/42/image_18082025_19_42_45_9607.jpg
/home/nano/Desktop/images/18082025/19/42/image_18082025_19_42_35_10639.jpg
/home/nano/Desktop/images/18082025/19/42/image_18082025_19_42_24_9646.jpg
/home/nano/Desktop/images/18082025/19/42/image_18082025_19_42_15_9615.jpg
/home/nano/Desktop/images/18082025/19/41/image_18082025_19_42_05_10633.jpg
/home/nano/Desktop/images/18082025/19/41/image_18082025_19_41_54_9611.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377714924","1377714933","1377714927","1377714929","1377714931","1377714925"],"photo_ids_order":["1377714924","1377714925","1377714927","1377714929","1377714931","1377714933"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c5fc6e39528298efe941f899f14d2a48.jpg","text":"TemporaryFile(/tmp/multipartBody8425571461133302171asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538998246,"filename":"image_18082025_19_42_45_9607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/395ad1e5e9ecff1d2c27cff61b85f532.jpg","text":"TemporaryFile(/tmp/multipartBody4749410816704019432asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538998246,"filename":"image_18082025_19_41_54_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b17b2bede26de0e87cd27959f6845d55.jpg","text":"TemporaryFile(/tmp/multipartBody1964100208475321681asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538998246,"filename":"image_18082025_19_42_24_9646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8aedd20e374c2bee22edf4ee9c457fce.jpg","text":"TemporaryFile(/tmp/multipartBody5817967558930356235asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538998246,"filename":"image_18082025_19_42_15_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4905c750b1b33a9140cc476e8a2f324d.jpg","text":"TemporaryFile(/tmp/multipartBody4939556039911541852asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538998246,"filename":"image_18082025_19_42_05_10633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c14ba07e0a8846bc65504eaafa75f455.jpg","text":"TemporaryFile(/tmp/multipartBody1104827408197067478asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755538998246,"filename":"image_18082025_19_42_35_10639.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377714927","file1":"1377714925","file0":"1377714924","file4":"1377714931","file5":"1377714933","file3":"1377714929"},"map_files_photo_id_array":[{"photo_id":"1377714933","filename":"file5"},{"photo_id":"1377714927","filename":"file2"},{"photo_id":"1377714931","filename":"file4"},{"photo_id":"1377714925","filename":"file1"},{"photo_id":"1377714924","filename":"file0"},{"photo_id":"1377714929","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377714924":["hashtag1","hashtag2"]},{"1377714933":["hashtag1","hashtag2"]},{"1377714927":["hashtag1","hashtag2"]},{"1377714929":["hashtag1","hashtag2"]},{"1377714931":["hashtag1","hashtag2"]},{"1377714925":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377714924, 1377714933, 1377714927, 1377714929, 1377714931, 1377714925)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.713847637176514 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:43:02.490056
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/28/image_18082025_09_28_14_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/09/27/image_18082025_09_28_05_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/09/27/image_18082025_09_27_54_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/09/27/image_18082025_09_27_44_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/09/27/image_18082025_09_27_35_10617.jpg', 2), ('/home/nano/Desktop/images/18082025/09/27/image_18082025_09_27_24_9623.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/28/image_18082025_09_28_14_9632.jpg', '/home/nano/Desktop/images/18082025/09/27/image_18082025_09_28_05_10641.jpg', '/home/nano/Desktop/images/18082025/09/27/image_18082025_09_27_54_9617.jpg', '/home/nano/Desktop/images/18082025/09/27/image_18082025_09_27_44_9607.jpg', '/home/nano/Desktop/images/18082025/09/27/image_18082025_09_27_35_10617.jpg', '/home/nano/Desktop/images/18082025/09/27/image_18082025_09_27_24_9623.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/28/image_18082025_09_28_14_9632.jpg
/home/nano/Desktop/images/18082025/09/27/image_18082025_09_28_05_10641.jpg
/home/nano/Desktop/images/18082025/09/27/image_18082025_09_27_54_9617.jpg
/home/nano/Desktop/images/18082025/09/27/image_18082025_09_27_44_9607.jpg
/home/nano/Desktop/images/18082025/09/27/image_18082025_09_27_35_10617.jpg
/home/nano/Desktop/images/18082025/09/27/image_18082025_09_27_24_9623.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377714936","1377714943","1377714952","1377714946","1377714949","1377714940"],"photo_ids_order":["1377714936","1377714940","1377714943","1377714946","1377714949","1377714952"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/166ba9e80d1bd1c1d9e087fe8b38b39f.jpg","text":"TemporaryFile(/tmp/multipartBody1706807070274956945asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539043629,"filename":"image_18082025_09_28_14_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f77a57cc2fbb0f4451a49dde0a207f7b.jpg","text":"TemporaryFile(/tmp/multipartBody5890630113333259352asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539043629,"filename":"image_18082025_09_27_54_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9f7f208d7dda98ed98029e2ce80e4bfe.jpg","text":"TemporaryFile(/tmp/multipartBody5813463199896432523asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539043629,"filename":"image_18082025_09_27_24_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/69ca0480abe6335bf7f52b06b5105706.jpg","text":"TemporaryFile(/tmp/multipartBody6856653652862541579asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539043629,"filename":"image_18082025_09_27_44_9607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/87f06ab71b3dfa7f9df51eec9e5ba310.jpg","text":"TemporaryFile(/tmp/multipartBody2161346114540956176asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539043629,"filename":"image_18082025_09_27_35_10617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/eb946cef027c4353c3fadadbc6613ea8.jpg","text":"TemporaryFile(/tmp/multipartBody5442617385116214421asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539043629,"filename":"image_18082025_09_28_05_10641.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377714943","file1":"1377714940","file0":"1377714936","file4":"1377714949","file5":"1377714952","file3":"1377714946"},"map_files_photo_id_array":[{"photo_id":"1377714952","filename":"file5"},{"photo_id":"1377714943","filename":"file2"},{"photo_id":"1377714949","filename":"file4"},{"photo_id":"1377714940","filename":"file1"},{"photo_id":"1377714936","filename":"file0"},{"photo_id":"1377714946","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377714936":["hashtag1","hashtag2"]},{"1377714943":["hashtag1","hashtag2"]},{"1377714952":["hashtag1","hashtag2"]},{"1377714946":["hashtag1","hashtag2"]},{"1377714949":["hashtag1","hashtag2"]},{"1377714940":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377714936, 1377714943, 1377714952, 1377714946, 1377714949, 1377714940)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.578600645065308 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:43:47.057749
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/43/image_18082025_19_43_44_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/19/43/image_18082025_19_43_35_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/19/43/image_18082025_19_43_25_10619.jpg', 2), ('/home/nano/Desktop/images/18082025/19/43/image_18082025_19_43_14_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/19/42/image_18082025_19_43_05_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/19/42/image_18082025_19_42_54_9612.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/43/image_18082025_19_43_44_9610.jpg', '/home/nano/Desktop/images/18082025/19/43/image_18082025_19_43_35_9615.jpg', '/home/nano/Desktop/images/18082025/19/43/image_18082025_19_43_25_10619.jpg', '/home/nano/Desktop/images/18082025/19/43/image_18082025_19_43_14_9625.jpg', '/home/nano/Desktop/images/18082025/19/42/image_18082025_19_43_05_10629.jpg', '/home/nano/Desktop/images/18082025/19/42/image_18082025_19_42_54_9612.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/43/image_18082025_19_43_44_9610.jpg
/home/nano/Desktop/images/18082025/19/43/image_18082025_19_43_35_9615.jpg
/home/nano/Desktop/images/18082025/19/43/image_18082025_19_43_25_10619.jpg
/home/nano/Desktop/images/18082025/19/43/image_18082025_19_43_14_9625.jpg
/home/nano/Desktop/images/18082025/19/42/image_18082025_19_43_05_10629.jpg
/home/nano/Desktop/images/18082025/19/42/image_18082025_19_42_54_9612.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377714963","1377714965","1377714961","1377714970","1377714967","1377714960"],"photo_ids_order":["1377714960","1377714961","1377714963","1377714965","1377714967","1377714970"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2c76963a93426874e0942bbf22d55dc1.jpg","text":"TemporaryFile(/tmp/multipartBody7576801817422535489asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539088230,"filename":"image_18082025_19_43_25_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fb0c88978bddeb7bc898ab72b3a14be0.jpg","text":"TemporaryFile(/tmp/multipartBody4094096410372875368asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539088230,"filename":"image_18082025_19_43_14_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/446a30099c8768f7f5d07d95178eb14c.jpg","text":"TemporaryFile(/tmp/multipartBody2619280216274325512asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539088230,"filename":"image_18082025_19_43_35_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1eccbae63fcf087c357eacbb06c4936a.jpg","text":"TemporaryFile(/tmp/multipartBody2757193495873354487asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539088230,"filename":"image_18082025_19_42_54_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5b2425b59563b8fcfa2297990478965d.jpg","text":"TemporaryFile(/tmp/multipartBody6162597581789738945asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539088230,"filename":"image_18082025_19_43_05_10629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/04227a12143a53c328af4db97177556b.jpg","text":"TemporaryFile(/tmp/multipartBody8894290878285840827asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539088230,"filename":"image_18082025_19_43_44_9610.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377714963","file1":"1377714961","file0":"1377714960","file4":"1377714967","file5":"1377714970","file3":"1377714965"},"map_files_photo_id_array":[{"photo_id":"1377714970","filename":"file5"},{"photo_id":"1377714963","filename":"file2"},{"photo_id":"1377714967","filename":"file4"},{"photo_id":"1377714961","filename":"file1"},{"photo_id":"1377714960","filename":"file0"},{"photo_id":"1377714965","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377714963":["hashtag1","hashtag2"]},{"1377714965":["hashtag1","hashtag2"]},{"1377714961":["hashtag1","hashtag2"]},{"1377714970":["hashtag1","hashtag2"]},{"1377714967":["hashtag1","hashtag2"]},{"1377714960":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377714963, 1377714965, 1377714961, 1377714970, 1377714967, 1377714960)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.57812190055847 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:44:32.171526
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/44/image_18082025_19_44_45_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/19/44/image_18082025_19_44_34_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/19/44/image_18082025_19_44_25_10620.jpg', 2), ('/home/nano/Desktop/images/18082025/19/44/image_18082025_19_44_14_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/19/43/image_18082025_19_44_04_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/19/43/image_18082025_19_43_55_10624.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/44/image_18082025_19_44_45_10623.jpg', '/home/nano/Desktop/images/18082025/19/44/image_18082025_19_44_34_9611.jpg', '/home/nano/Desktop/images/18082025/19/44/image_18082025_19_44_25_10620.jpg', '/home/nano/Desktop/images/18082025/19/44/image_18082025_19_44_14_9629.jpg', '/home/nano/Desktop/images/18082025/19/43/image_18082025_19_44_04_9627.jpg', '/home/nano/Desktop/images/18082025/19/43/image_18082025_19_43_55_10624.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/44/image_18082025_19_44_45_10623.jpg
/home/nano/Desktop/images/18082025/19/44/image_18082025_19_44_34_9611.jpg
/home/nano/Desktop/images/18082025/19/44/image_18082025_19_44_25_10620.jpg
/home/nano/Desktop/images/18082025/19/44/image_18082025_19_44_14_9629.jpg
/home/nano/Desktop/images/18082025/19/43/image_18082025_19_44_04_9627.jpg
/home/nano/Desktop/images/18082025/19/43/image_18082025_19_43_55_10624.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377714989","1377714991","1377714994","1377714984","1377714993","1377714987"],"photo_ids_order":["1377714984","1377714987","1377714989","1377714991","1377714993","1377714994"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dd5365c50efbdc2d8febfe633df6b877.jpg","text":"TemporaryFile(/tmp/multipartBody4521734439979679653asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539133466,"filename":"image_18082025_19_44_25_10620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/12b012138864f29b8c9df1a8d047d658.jpg","text":"TemporaryFile(/tmp/multipartBody7509589863394171091asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539133466,"filename":"image_18082025_19_44_14_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3acd4dcb80300ad1fd9dacbeef19fe21.jpg","text":"TemporaryFile(/tmp/multipartBody9044922886112236817asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539133466,"filename":"image_18082025_19_43_55_10624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f8ec1e1ed240e9a54734f97e0b6caa9a.jpg","text":"TemporaryFile(/tmp/multipartBody5942520636503254000asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539133466,"filename":"image_18082025_19_44_45_10623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/888eabd929337542f6e7bf0c1cf295e5.jpg","text":"TemporaryFile(/tmp/multipartBody4240263382298113644asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539133466,"filename":"image_18082025_19_44_04_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dda42ee4e3f37fa8e17df787b9efbc15.jpg","text":"TemporaryFile(/tmp/multipartBody8334501010243403519asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539133466,"filename":"image_18082025_19_44_34_9611.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377714989","file1":"1377714987","file0":"1377714984","file4":"1377714993","file5":"1377714994","file3":"1377714991"},"map_files_photo_id_array":[{"photo_id":"1377714994","filename":"file5"},{"photo_id":"1377714989","filename":"file2"},{"photo_id":"1377714993","filename":"file4"},{"photo_id":"1377714987","filename":"file1"},{"photo_id":"1377714984","filename":"file0"},{"photo_id":"1377714991","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377714989":["hashtag1","hashtag2"]},{"1377714991":["hashtag1","hashtag2"]},{"1377714994":["hashtag1","hashtag2"]},{"1377714984":["hashtag1","hashtag2"]},{"1377714993":["hashtag1","hashtag2"]},{"1377714987":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377714989, 1377714991, 1377714994, 1377714984, 1377714993, 1377714987)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.185314178466797 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:45:17.335209
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/45/image_18082025_19_45_45_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/19/45/image_18082025_19_45_34_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/19/45/image_18082025_19_45_25_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/19/45/image_18082025_19_45_15_10674.jpg', 2), ('/home/nano/Desktop/images/18082025/19/44/image_18082025_19_45_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/19/44/image_18082025_19_44_55_9621.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/45/image_18082025_19_45_45_10621.jpg', '/home/nano/Desktop/images/18082025/19/45/image_18082025_19_45_34_9615.jpg', '/home/nano/Desktop/images/18082025/19/45/image_18082025_19_45_25_9611.jpg', '/home/nano/Desktop/images/18082025/19/45/image_18082025_19_45_15_10674.jpg', '/home/nano/Desktop/images/18082025/19/44/image_18082025_19_45_04_9651.jpg', '/home/nano/Desktop/images/18082025/19/44/image_18082025_19_44_55_9621.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/45/image_18082025_19_45_45_10621.jpg
/home/nano/Desktop/images/18082025/19/45/image_18082025_19_45_34_9615.jpg
/home/nano/Desktop/images/18082025/19/45/image_18082025_19_45_25_9611.jpg
/home/nano/Desktop/images/18082025/19/45/image_18082025_19_45_15_10674.jpg
/home/nano/Desktop/images/18082025/19/44/image_18082025_19_45_04_9651.jpg
/home/nano/Desktop/images/18082025/19/44/image_18082025_19_44_55_9621.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377715016","1377715012","1377715006","1377715009","1377715018","1377715020"],"photo_ids_order":["1377715006","1377715009","1377715012","1377715016","1377715018","1377715020"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4179d841576cadbac7826246ec538361.jpg","text":"TemporaryFile(/tmp/multipartBody4344145658426912139asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539178534,"filename":"image_18082025_19_45_15_10674.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/565984d6c2cf395e1338eb46e010afb7.jpg","text":"TemporaryFile(/tmp/multipartBody3528404155613851845asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539178534,"filename":"image_18082025_19_45_25_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2e54a71e0479bd1c34157bdfa0d0fb84.jpg","text":"TemporaryFile(/tmp/multipartBody4006726795572601951asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539178534,"filename":"image_18082025_19_45_45_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/eb802131cb97a1896992eb31d75ade71.jpg","text":"TemporaryFile(/tmp/multipartBody8463720572645472361asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539178534,"filename":"image_18082025_19_45_34_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/35d0b1bb0f38a5f601d5fa55dcf19383.jpg","text":"TemporaryFile(/tmp/multipartBody5776554848617991008asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539178534,"filename":"image_18082025_19_45_04_9651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2e67f7764235ecc39ddcfb14f95fefb8.jpg","text":"TemporaryFile(/tmp/multipartBody8427991946508082662asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539178534,"filename":"image_18082025_19_44_55_9621.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377715012","file1":"1377715009","file0":"1377715006","file4":"1377715018","file5":"1377715020","file3":"1377715016"},"map_files_photo_id_array":[{"photo_id":"1377715020","filename":"file5"},{"photo_id":"1377715012","filename":"file2"},{"photo_id":"1377715018","filename":"file4"},{"photo_id":"1377715009","filename":"file1"},{"photo_id":"1377715006","filename":"file0"},{"photo_id":"1377715016","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377715016":["hashtag1","hashtag2"]},{"1377715012":["hashtag1","hashtag2"]},{"1377715006":["hashtag1","hashtag2"]},{"1377715009":["hashtag1","hashtag2"]},{"1377715018":["hashtag1","hashtag2"]},{"1377715020":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377715016, 1377715012, 1377715006, 1377715009, 1377715018, 1377715020)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.72081542015076 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:46:02.940960
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/27/image_18082025_09_27_15_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/09/26/image_18082025_09_27_05_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/09/26/image_18082025_09_26_54_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/09/26/image_18082025_09_26_45_10616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/26/image_18082025_09_26_34_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/09/26/image_18082025_09_26_24_9605.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/27/image_18082025_09_27_15_9643.jpg', '/home/nano/Desktop/images/18082025/09/26/image_18082025_09_27_05_10625.jpg', '/home/nano/Desktop/images/18082025/09/26/image_18082025_09_26_54_9607.jpg', '/home/nano/Desktop/images/18082025/09/26/image_18082025_09_26_45_10616.jpg', '/home/nano/Desktop/images/18082025/09/26/image_18082025_09_26_34_9632.jpg', '/home/nano/Desktop/images/18082025/09/26/image_18082025_09_26_24_9605.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/27/image_18082025_09_27_15_9643.jpg
/home/nano/Desktop/images/18082025/09/26/image_18082025_09_27_05_10625.jpg
/home/nano/Desktop/images/18082025/09/26/image_18082025_09_26_54_9607.jpg
/home/nano/Desktop/images/18082025/09/26/image_18082025_09_26_45_10616.jpg
/home/nano/Desktop/images/18082025/09/26/image_18082025_09_26_34_9632.jpg
/home/nano/Desktop/images/18082025/09/26/image_18082025_09_26_24_9605.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377715040","1377715037","1377715042","1377715033","1377715035","1377715044"],"photo_ids_order":["1377715033","1377715035","1377715037","1377715040","1377715042","1377715044"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/da111f30a87f6d28fd0e34333799e888.jpg","text":"TemporaryFile(/tmp/multipartBody6155924934831851016asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539224679,"filename":"image_18082025_09_26_45_10616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c58947f13079eae1070080ffc5d12ece.jpg","text":"TemporaryFile(/tmp/multipartBody2635269466564131972asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539224679,"filename":"image_18082025_09_26_54_9607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4dbc9ee64edae598c49545a872fb5945.jpg","text":"TemporaryFile(/tmp/multipartBody1216220976000801307asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539224679,"filename":"image_18082025_09_26_34_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/416eac7f7f2746f1ae4afd3e16e8f076.jpg","text":"TemporaryFile(/tmp/multipartBody5484686604390114650asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539224679,"filename":"image_18082025_09_27_15_9643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f08f77ee11f30100719bf5cab6246963.jpg","text":"TemporaryFile(/tmp/multipartBody6133740540579314567asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539224679,"filename":"image_18082025_09_27_05_10625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ffb9e9e9b7bc071516a3de94993f2bb9.jpg","text":"TemporaryFile(/tmp/multipartBody1938331561726680125asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539224679,"filename":"image_18082025_09_26_24_9605.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377715037","file1":"1377715035","file0":"1377715033","file4":"1377715042","file5":"1377715044","file3":"1377715040"},"map_files_photo_id_array":[{"photo_id":"1377715044","filename":"file5"},{"photo_id":"1377715037","filename":"file2"},{"photo_id":"1377715042","filename":"file4"},{"photo_id":"1377715035","filename":"file1"},{"photo_id":"1377715033","filename":"file0"},{"photo_id":"1377715040","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377715040":["hashtag1","hashtag2"]},{"1377715037":["hashtag1","hashtag2"]},{"1377715042":["hashtag1","hashtag2"]},{"1377715033":["hashtag1","hashtag2"]},{"1377715035":["hashtag1","hashtag2"]},{"1377715044":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377715040, 1377715037, 1377715042, 1377715033, 1377715035, 1377715044)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.918035984039307 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:46:47.430294
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/46/image_18082025_19_46_44_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/19/46/image_18082025_19_46_35_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/19/46/image_18082025_19_46_24_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/19/46/image_18082025_19_46_15_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/19/45/image_18082025_19_46_05_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/19/45/image_18082025_19_45_54_9610.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/46/image_18082025_19_46_44_9612.jpg', '/home/nano/Desktop/images/18082025/19/46/image_18082025_19_46_35_10624.jpg', '/home/nano/Desktop/images/18082025/19/46/image_18082025_19_46_24_9606.jpg', '/home/nano/Desktop/images/18082025/19/46/image_18082025_19_46_15_9642.jpg', '/home/nano/Desktop/images/18082025/19/45/image_18082025_19_46_05_10631.jpg', '/home/nano/Desktop/images/18082025/19/45/image_18082025_19_45_54_9610.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/46/image_18082025_19_46_44_9612.jpg
/home/nano/Desktop/images/18082025/19/46/image_18082025_19_46_35_10624.jpg
/home/nano/Desktop/images/18082025/19/46/image_18082025_19_46_24_9606.jpg
/home/nano/Desktop/images/18082025/19/46/image_18082025_19_46_15_9642.jpg
/home/nano/Desktop/images/18082025/19/45/image_18082025_19_46_05_10631.jpg
/home/nano/Desktop/images/18082025/19/45/image_18082025_19_45_54_9610.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377715055","1377715060","1377715057","1377715065","1377715062","1377715059"],"photo_ids_order":["1377715055","1377715057","1377715059","1377715060","1377715062","1377715065"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0387044b02d986fcb2ec2042f09b913c.jpg","text":"TemporaryFile(/tmp/multipartBody769378171470760502asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539268689,"filename":"image_18082025_19_46_44_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1245de98389029aa3963a89dc2ecaaac.jpg","text":"TemporaryFile(/tmp/multipartBody3223901079418777883asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539268689,"filename":"image_18082025_19_46_15_9642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2d28046f9dda7aac189e84d7cba0d8d1.jpg","text":"TemporaryFile(/tmp/multipartBody2066094543742368112asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539268689,"filename":"image_18082025_19_46_35_10624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/13c93426b13910bb0c91334d55406dd2.jpg","text":"TemporaryFile(/tmp/multipartBody5326791656011216191asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539268689,"filename":"image_18082025_19_45_54_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3692bba8ff13dbe51dc617e067556a08.jpg","text":"TemporaryFile(/tmp/multipartBody6147383945463147258asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539268689,"filename":"image_18082025_19_46_05_10631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/043a54f0ec0c8d0641585216b83157e7.jpg","text":"TemporaryFile(/tmp/multipartBody5955731625375632759asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539268689,"filename":"image_18082025_19_46_24_9606.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377715059","file1":"1377715057","file0":"1377715055","file4":"1377715062","file5":"1377715065","file3":"1377715060"},"map_files_photo_id_array":[{"photo_id":"1377715065","filename":"file5"},{"photo_id":"1377715059","filename":"file2"},{"photo_id":"1377715062","filename":"file4"},{"photo_id":"1377715057","filename":"file1"},{"photo_id":"1377715055","filename":"file0"},{"photo_id":"1377715060","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377715055":["hashtag1","hashtag2"]},{"1377715060":["hashtag1","hashtag2"]},{"1377715057":["hashtag1","hashtag2"]},{"1377715065":["hashtag1","hashtag2"]},{"1377715062":["hashtag1","hashtag2"]},{"1377715059":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377715055, 1377715060, 1377715057, 1377715065, 1377715062, 1377715059)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.14362668991089 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:47:32.547709
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/47/image_18082025_19_47_44_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/19/47/image_18082025_19_47_35_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/19/47/image_18082025_19_47_25_10617.jpg', 2), ('/home/nano/Desktop/images/18082025/19/47/image_18082025_19_47_14_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/19/46/image_18082025_19_47_05_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/19/46/image_18082025_19_46_54_9611.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/47/image_18082025_19_47_44_9618.jpg', '/home/nano/Desktop/images/18082025/19/47/image_18082025_19_47_35_9629.jpg', '/home/nano/Desktop/images/18082025/19/47/image_18082025_19_47_25_10617.jpg', '/home/nano/Desktop/images/18082025/19/47/image_18082025_19_47_14_9645.jpg', '/home/nano/Desktop/images/18082025/19/46/image_18082025_19_47_05_10630.jpg', '/home/nano/Desktop/images/18082025/19/46/image_18082025_19_46_54_9611.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/47/image_18082025_19_47_44_9618.jpg
/home/nano/Desktop/images/18082025/19/47/image_18082025_19_47_35_9629.jpg
/home/nano/Desktop/images/18082025/19/47/image_18082025_19_47_25_10617.jpg
/home/nano/Desktop/images/18082025/19/47/image_18082025_19_47_14_9645.jpg
/home/nano/Desktop/images/18082025/19/46/image_18082025_19_47_05_10630.jpg
/home/nano/Desktop/images/18082025/19/46/image_18082025_19_46_54_9611.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.2231740951538086 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:47:47.554238
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/47/image_18082025_19_47_44_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/19/47/image_18082025_19_47_35_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/19/47/image_18082025_19_47_25_10617.jpg', 2), ('/home/nano/Desktop/images/18082025/19/47/image_18082025_19_47_14_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/19/46/image_18082025_19_47_05_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/19/46/image_18082025_19_46_54_9611.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/47/image_18082025_19_47_44_9618.jpg', '/home/nano/Desktop/images/18082025/19/47/image_18082025_19_47_35_9629.jpg', '/home/nano/Desktop/images/18082025/19/47/image_18082025_19_47_25_10617.jpg', '/home/nano/Desktop/images/18082025/19/47/image_18082025_19_47_14_9645.jpg', '/home/nano/Desktop/images/18082025/19/46/image_18082025_19_47_05_10630.jpg', '/home/nano/Desktop/images/18082025/19/46/image_18082025_19_46_54_9611.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/47/image_18082025_19_47_44_9618.jpg
/home/nano/Desktop/images/18082025/19/47/image_18082025_19_47_35_9629.jpg
/home/nano/Desktop/images/18082025/19/47/image_18082025_19_47_25_10617.jpg
/home/nano/Desktop/images/18082025/19/47/image_18082025_19_47_14_9645.jpg
/home/nano/Desktop/images/18082025/19/46/image_18082025_19_47_05_10630.jpg
/home/nano/Desktop/images/18082025/19/46/image_18082025_19_46_54_9611.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377715094","1377715091","1377715087","1377715096","1377715090","1377715092"],"photo_ids_order":["1377715087","1377715090","1377715091","1377715092","1377715094","1377715096"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c43cdd40d72faec43680ec2828805261.jpg","text":"TemporaryFile(/tmp/multipartBody4696543610191072799asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539328911,"filename":"image_18082025_19_47_05_10630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7027c1f0e2cf4ef24334fc3e80c75fbc.jpg","text":"TemporaryFile(/tmp/multipartBody430256747055791832asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539328911,"filename":"image_18082025_19_47_25_10617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/16a01f02a6db3516ebe7a4f52353fd4e.jpg","text":"TemporaryFile(/tmp/multipartBody4133524238276800813asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539328911,"filename":"image_18082025_19_47_44_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/202f40fa9af7d07e2c28f162ac5cdd90.jpg","text":"TemporaryFile(/tmp/multipartBody4015761452094331873asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539328911,"filename":"image_18082025_19_46_54_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5f1f3dc874536fe78d44a687cb37511e.jpg","text":"TemporaryFile(/tmp/multipartBody6183852408641592896asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539328911,"filename":"image_18082025_19_47_35_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e61e96c5e5416d555df4fab8e15d153a.jpg","text":"TemporaryFile(/tmp/multipartBody6282118165818223170asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539328911,"filename":"image_18082025_19_47_14_9645.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377715091","file1":"1377715090","file0":"1377715087","file4":"1377715094","file5":"1377715096","file3":"1377715092"},"map_files_photo_id_array":[{"photo_id":"1377715096","filename":"file5"},{"photo_id":"1377715091","filename":"file2"},{"photo_id":"1377715094","filename":"file4"},{"photo_id":"1377715090","filename":"file1"},{"photo_id":"1377715087","filename":"file0"},{"photo_id":"1377715092","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377715094":["hashtag1","hashtag2"]},{"1377715091":["hashtag1","hashtag2"]},{"1377715087":["hashtag1","hashtag2"]},{"1377715096":["hashtag1","hashtag2"]},{"1377715090":["hashtag1","hashtag2"]},{"1377715092":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377715094, 1377715091, 1377715087, 1377715096, 1377715090, 1377715092)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.974513292312622 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:48:32.628572
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/48/image_18082025_19_48_45_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/19/48/image_18082025_19_48_34_9606.jpg', 2), ('/home/nano/Desktop/images/18082025/19/48/image_18082025_19_48_25_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/19/48/image_18082025_19_48_14_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/19/47/image_18082025_19_48_04_9602.jpg', 2), ('/home/nano/Desktop/images/18082025/19/47/image_18082025_19_47_55_10614.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/48/image_18082025_19_48_45_10621.jpg', '/home/nano/Desktop/images/18082025/19/48/image_18082025_19_48_34_9606.jpg', '/home/nano/Desktop/images/18082025/19/48/image_18082025_19_48_25_10635.jpg', '/home/nano/Desktop/images/18082025/19/48/image_18082025_19_48_14_9632.jpg', '/home/nano/Desktop/images/18082025/19/47/image_18082025_19_48_04_9602.jpg', '/home/nano/Desktop/images/18082025/19/47/image_18082025_19_47_55_10614.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/48/image_18082025_19_48_45_10621.jpg
/home/nano/Desktop/images/18082025/19/48/image_18082025_19_48_34_9606.jpg
/home/nano/Desktop/images/18082025/19/48/image_18082025_19_48_25_10635.jpg
/home/nano/Desktop/images/18082025/19/48/image_18082025_19_48_14_9632.jpg
/home/nano/Desktop/images/18082025/19/47/image_18082025_19_48_04_9602.jpg
/home/nano/Desktop/images/18082025/19/47/image_18082025_19_47_55_10614.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377715119","1377715121","1377715109","1377715117","1377715111","1377715114"],"photo_ids_order":["1377715109","1377715111","1377715114","1377715117","1377715119","1377715121"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/53771093008fff4aee5e36872467b000.jpg","text":"TemporaryFile(/tmp/multipartBody550397895592141465asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539373804,"filename":"image_18082025_19_48_04_9602.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/79a3bea3a869706ec3cc84c47aa47a48.jpg","text":"TemporaryFile(/tmp/multipartBody8484030221875186355asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539373804,"filename":"image_18082025_19_47_55_10614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c83a60e5023a526ef3a6168bacc4ca54.jpg","text":"TemporaryFile(/tmp/multipartBody2866930897230986971asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539373804,"filename":"image_18082025_19_48_45_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9ba3297164c6ee49fb40f80977881b59.jpg","text":"TemporaryFile(/tmp/multipartBody4946379080533294925asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539373804,"filename":"image_18082025_19_48_14_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4c33fe676088182a4910ac5da58c7753.jpg","text":"TemporaryFile(/tmp/multipartBody5689163536542324185asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539373804,"filename":"image_18082025_19_48_34_9606.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4e657349a892e5fe7520b1bee9525311.jpg","text":"TemporaryFile(/tmp/multipartBody5100170244565344539asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539373804,"filename":"image_18082025_19_48_25_10635.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377715114","file1":"1377715111","file0":"1377715109","file4":"1377715119","file5":"1377715121","file3":"1377715117"},"map_files_photo_id_array":[{"photo_id":"1377715121","filename":"file5"},{"photo_id":"1377715114","filename":"file2"},{"photo_id":"1377715119","filename":"file4"},{"photo_id":"1377715111","filename":"file1"},{"photo_id":"1377715109","filename":"file0"},{"photo_id":"1377715117","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377715119":["hashtag1","hashtag2"]},{"1377715121":["hashtag1","hashtag2"]},{"1377715109":["hashtag1","hashtag2"]},{"1377715117":["hashtag1","hashtag2"]},{"1377715111":["hashtag1","hashtag2"]},{"1377715114":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377715119, 1377715121, 1377715109, 1377715117, 1377715111, 1377715114)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.594786643981934 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:49:16.798362
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/49/image_18082025_19_49_45_10616.jpg', 2), ('/home/nano/Desktop/images/18082025/19/49/image_18082025_19_49_34_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/19/49/image_18082025_19_49_24_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/19/49/image_18082025_19_49_15_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/19/48/image_18082025_19_49_04_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/19/48/image_18082025_19_48_55_9612.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/49/image_18082025_19_49_45_10616.jpg', '/home/nano/Desktop/images/18082025/19/49/image_18082025_19_49_34_9630.jpg', '/home/nano/Desktop/images/18082025/19/49/image_18082025_19_49_24_9613.jpg', '/home/nano/Desktop/images/18082025/19/49/image_18082025_19_49_15_10644.jpg', '/home/nano/Desktop/images/18082025/19/48/image_18082025_19_49_04_9618.jpg', '/home/nano/Desktop/images/18082025/19/48/image_18082025_19_48_55_9612.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/49/image_18082025_19_49_45_10616.jpg
/home/nano/Desktop/images/18082025/19/49/image_18082025_19_49_34_9630.jpg
/home/nano/Desktop/images/18082025/19/49/image_18082025_19_49_24_9613.jpg
/home/nano/Desktop/images/18082025/19/49/image_18082025_19_49_15_10644.jpg
/home/nano/Desktop/images/18082025/19/48/image_18082025_19_49_04_9618.jpg
/home/nano/Desktop/images/18082025/19/48/image_18082025_19_48_55_9612.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377715145","1377715142","1377715147","1377715140","1377715143","1377715137"],"photo_ids_order":["1377715137","1377715140","1377715142","1377715143","1377715145","1377715147"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/156f955170eea27668a6d90c64644699.jpg","text":"TemporaryFile(/tmp/multipartBody2167083855470282375asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539418001,"filename":"image_18082025_19_49_04_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cbed9c00c8cd0ac6baaede47deed0c22.jpg","text":"TemporaryFile(/tmp/multipartBody1096161364480348374asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539418001,"filename":"image_18082025_19_49_24_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/977245ee5e17e465e29533ed564f0486.jpg","text":"TemporaryFile(/tmp/multipartBody7220025869881713897asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539418001,"filename":"image_18082025_19_48_55_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/94ee53eca84c036515468faf4390da87.jpg","text":"TemporaryFile(/tmp/multipartBody4447715083414327406asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539418001,"filename":"image_18082025_19_49_34_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f411200c40927450709131ed73b81d8d.jpg","text":"TemporaryFile(/tmp/multipartBody2973894192735715611asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539418001,"filename":"image_18082025_19_49_15_10644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b0d135bd23abce0c8ac39257cc2f3014.jpg","text":"TemporaryFile(/tmp/multipartBody8996056198266261484asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539418001,"filename":"image_18082025_19_49_45_10616.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377715142","file1":"1377715140","file0":"1377715137","file4":"1377715145","file5":"1377715147","file3":"1377715143"},"map_files_photo_id_array":[{"photo_id":"1377715147","filename":"file5"},{"photo_id":"1377715142","filename":"file2"},{"photo_id":"1377715145","filename":"file4"},{"photo_id":"1377715140","filename":"file1"},{"photo_id":"1377715137","filename":"file0"},{"photo_id":"1377715143","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377715145":["hashtag1","hashtag2"]},{"1377715142":["hashtag1","hashtag2"]},{"1377715147":["hashtag1","hashtag2"]},{"1377715140":["hashtag1","hashtag2"]},{"1377715143":["hashtag1","hashtag2"]},{"1377715137":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377715145, 1377715142, 1377715147, 1377715140, 1377715143, 1377715137)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.98905873298645 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:50:02.305781
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/26/image_18082025_09_26_15_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/09/25/image_18082025_09_26_04_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_55_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_45_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_34_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_25_9652.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/26/image_18082025_09_26_15_10645.jpg', '/home/nano/Desktop/images/18082025/09/25/image_18082025_09_26_04_9627.jpg', '/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_55_9627.jpg', '/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_45_10650.jpg', '/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_34_9619.jpg', '/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_25_9652.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/26/image_18082025_09_26_15_10645.jpg
/home/nano/Desktop/images/18082025/09/25/image_18082025_09_26_04_9627.jpg
/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_55_9627.jpg
/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_45_10650.jpg
/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_34_9619.jpg
/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_25_9652.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.3039159774780273 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:50:16.913485
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/50/image_18082025_19_50_44_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/19/50/image_18082025_19_50_35_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/19/50/image_18082025_19_50_24_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/19/50/image_18082025_19_50_15_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/19/49/image_18082025_19_50_05_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/19/49/image_18082025_19_49_54_9625.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/50/image_18082025_19_50_44_9616.jpg', '/home/nano/Desktop/images/18082025/19/50/image_18082025_19_50_35_10636.jpg', '/home/nano/Desktop/images/18082025/19/50/image_18082025_19_50_24_9622.jpg', '/home/nano/Desktop/images/18082025/19/50/image_18082025_19_50_15_9620.jpg', '/home/nano/Desktop/images/18082025/19/49/image_18082025_19_50_05_10654.jpg', '/home/nano/Desktop/images/18082025/19/49/image_18082025_19_49_54_9625.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/50/image_18082025_19_50_44_9616.jpg
/home/nano/Desktop/images/18082025/19/50/image_18082025_19_50_35_10636.jpg
/home/nano/Desktop/images/18082025/19/50/image_18082025_19_50_24_9622.jpg
/home/nano/Desktop/images/18082025/19/50/image_18082025_19_50_15_9620.jpg
/home/nano/Desktop/images/18082025/19/49/image_18082025_19_50_05_10654.jpg
/home/nano/Desktop/images/18082025/19/49/image_18082025_19_49_54_9625.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377715193","1377715196","1377715186","1377715180","1377715191","1377715200"],"photo_ids_order":["1377715180","1377715186","1377715191","1377715193","1377715196","1377715200"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c37067861f35539859d05cc4e86287bb.jpg","text":"TemporaryFile(/tmp/multipartBody1554833057896962976asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539478226,"filename":"image_18082025_19_50_15_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/36889795487b380b13c4ed85d802446f.jpg","text":"TemporaryFile(/tmp/multipartBody3745702780289145390asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539478226,"filename":"image_18082025_19_50_05_10654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e03a724dde58a4671618f6e9f0b4f376.jpg","text":"TemporaryFile(/tmp/multipartBody8823112147109532941asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539478226,"filename":"image_18082025_19_50_35_10636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8dc8d32da7f369308250a0cf6a4cd10a.jpg","text":"TemporaryFile(/tmp/multipartBody5397291659921584340asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539478226,"filename":"image_18082025_19_50_44_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4333289602ab3c070df1d2b129e7fcbb.jpg","text":"TemporaryFile(/tmp/multipartBody5885654711517580633asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539478226,"filename":"image_18082025_19_50_24_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/adfab91ef36cf838fa8b42d731669e93.jpg","text":"TemporaryFile(/tmp/multipartBody65663045400167070asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539478226,"filename":"image_18082025_19_49_54_9625.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377715191","file1":"1377715186","file0":"1377715180","file4":"1377715196","file5":"1377715200","file3":"1377715193"},"map_files_photo_id_array":[{"photo_id":"1377715200","filename":"file5"},{"photo_id":"1377715191","filename":"file2"},{"photo_id":"1377715196","filename":"file4"},{"photo_id":"1377715186","filename":"file1"},{"photo_id":"1377715180","filename":"file0"},{"photo_id":"1377715193","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377715193":["hashtag1","hashtag2"]},{"1377715196":["hashtag1","hashtag2"]},{"1377715186":["hashtag1","hashtag2"]},{"1377715180":["hashtag1","hashtag2"]},{"1377715191":["hashtag1","hashtag2"]},{"1377715200":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377715193, 1377715196, 1377715186, 1377715180, 1377715191, 1377715200)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.13719606399536 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:51:02.666124
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/26/image_18082025_09_26_15_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/09/25/image_18082025_09_26_04_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_55_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_45_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_34_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_25_9652.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/26/image_18082025_09_26_15_10645.jpg', '/home/nano/Desktop/images/18082025/09/25/image_18082025_09_26_04_9627.jpg', '/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_55_9627.jpg', '/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_45_10650.jpg', '/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_34_9619.jpg', '/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_25_9652.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/26/image_18082025_09_26_15_10645.jpg
/home/nano/Desktop/images/18082025/09/25/image_18082025_09_26_04_9627.jpg
/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_55_9627.jpg
/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_45_10650.jpg
/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_34_9619.jpg
/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_25_9652.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.2609272003173828 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:51:17.024375
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/51/image_18082025_19_51_44_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/19/51/image_18082025_19_51_35_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/19/51/image_18082025_19_51_25_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/19/51/image_18082025_19_51_14_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/19/50/image_18082025_19_51_05_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/19/50/image_18082025_19_50_54_9617.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/51/image_18082025_19_51_44_9616.jpg', '/home/nano/Desktop/images/18082025/19/51/image_18082025_19_51_35_9617.jpg', '/home/nano/Desktop/images/18082025/19/51/image_18082025_19_51_25_10625.jpg', '/home/nano/Desktop/images/18082025/19/51/image_18082025_19_51_14_9628.jpg', '/home/nano/Desktop/images/18082025/19/50/image_18082025_19_51_05_10631.jpg', '/home/nano/Desktop/images/18082025/19/50/image_18082025_19_50_54_9617.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/51/image_18082025_19_51_44_9616.jpg
/home/nano/Desktop/images/18082025/19/51/image_18082025_19_51_35_9617.jpg
/home/nano/Desktop/images/18082025/19/51/image_18082025_19_51_25_10625.jpg
/home/nano/Desktop/images/18082025/19/51/image_18082025_19_51_14_9628.jpg
/home/nano/Desktop/images/18082025/19/50/image_18082025_19_51_05_10631.jpg
/home/nano/Desktop/images/18082025/19/50/image_18082025_19_50_54_9617.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377715239","1377715230","1377715226","1377715234","1377715237","1377715222"],"photo_ids_order":["1377715222","1377715226","1377715230","1377715234","1377715237","1377715239"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cceb8f4f5391ea19e809523986a53a7f.jpg","text":"TemporaryFile(/tmp/multipartBody2297165276028795431asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539538079,"filename":"image_18082025_19_50_54_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8b77140eb42bb1f786ed0669a6838d7e.jpg","text":"TemporaryFile(/tmp/multipartBody8970234129836117605asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539538079,"filename":"image_18082025_19_51_25_10625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/00bc3551aa084ef86ebea92b427ae1fc.jpg","text":"TemporaryFile(/tmp/multipartBody7284363364367491733asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539538079,"filename":"image_18082025_19_51_35_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/addae6df1f4a0b4a4433034ce543ef96.jpg","text":"TemporaryFile(/tmp/multipartBody6442786151309308705asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539538079,"filename":"image_18082025_19_51_14_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/448899f698913dba4fa5664152f0f6f0.jpg","text":"TemporaryFile(/tmp/multipartBody4910310348050036924asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539538079,"filename":"image_18082025_19_51_05_10631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fcd8d26c5216e7f954ec5f175bc2dc16.jpg","text":"TemporaryFile(/tmp/multipartBody8912938566556927962asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539538079,"filename":"image_18082025_19_51_44_9616.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377715230","file1":"1377715226","file0":"1377715222","file4":"1377715237","file5":"1377715239","file3":"1377715234"},"map_files_photo_id_array":[{"photo_id":"1377715239","filename":"file5"},{"photo_id":"1377715230","filename":"file2"},{"photo_id":"1377715237","filename":"file4"},{"photo_id":"1377715226","filename":"file1"},{"photo_id":"1377715222","filename":"file0"},{"photo_id":"1377715234","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377715239":["hashtag1","hashtag2"]},{"1377715230":["hashtag1","hashtag2"]},{"1377715226":["hashtag1","hashtag2"]},{"1377715234":["hashtag1","hashtag2"]},{"1377715237":["hashtag1","hashtag2"]},{"1377715222":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377715239, 1377715230, 1377715226, 1377715234, 1377715237, 1377715222)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.09956431388855 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:52:02.616411
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/26/image_18082025_09_26_15_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/09/25/image_18082025_09_26_04_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_55_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_45_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_34_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_25_9652.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/26/image_18082025_09_26_15_10645.jpg', '/home/nano/Desktop/images/18082025/09/25/image_18082025_09_26_04_9627.jpg', '/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_55_9627.jpg', '/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_45_10650.jpg', '/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_34_9619.jpg', '/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_25_9652.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/26/image_18082025_09_26_15_10645.jpg
/home/nano/Desktop/images/18082025/09/25/image_18082025_09_26_04_9627.jpg
/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_55_9627.jpg
/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_45_10650.jpg
/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_34_9619.jpg
/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_25_9652.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377715256","1377715250","1377715253","1377715255","1377715254","1377715257"],"photo_ids_order":["1377715250","1377715253","1377715254","1377715255","1377715256","1377715257"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c737ffa38e8f98e4e23231774ccd592c.jpg","text":"TemporaryFile(/tmp/multipartBody2902681740495454519asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539583964,"filename":"image_18082025_09_25_34_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/27f4a95b8aea74d830d1433ddbd7939f.jpg","text":"TemporaryFile(/tmp/multipartBody5239318804193428672asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539583964,"filename":"image_18082025_09_26_15_10645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d6dfa75774a20db8ef0c1e16d01b3eac.jpg","text":"TemporaryFile(/tmp/multipartBody4301569131682787870asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539583964,"filename":"image_18082025_09_26_04_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4dea6b21ebc877e32c4e1564d61d148a.jpg","text":"TemporaryFile(/tmp/multipartBody3993590583134655296asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539583964,"filename":"image_18082025_09_25_45_10650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/100bcf0702c73d1ff32db87680fb83a6.jpg","text":"TemporaryFile(/tmp/multipartBody3975185775194615125asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539583964,"filename":"image_18082025_09_25_55_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cdce13f212a34b578e6802c2997d03ad.jpg","text":"TemporaryFile(/tmp/multipartBody4788030671732866457asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539583964,"filename":"image_18082025_09_25_25_9652.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377715254","file1":"1377715253","file0":"1377715250","file4":"1377715256","file5":"1377715257","file3":"1377715255"},"map_files_photo_id_array":[{"photo_id":"1377715257","filename":"file5"},{"photo_id":"1377715254","filename":"file2"},{"photo_id":"1377715256","filename":"file4"},{"photo_id":"1377715253","filename":"file1"},{"photo_id":"1377715250","filename":"file0"},{"photo_id":"1377715255","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377715256":["hashtag1","hashtag2"]},{"1377715250":["hashtag1","hashtag2"]},{"1377715253":["hashtag1","hashtag2"]},{"1377715255":["hashtag1","hashtag2"]},{"1377715254":["hashtag1","hashtag2"]},{"1377715257":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377715256, 1377715250, 1377715253, 1377715255, 1377715254, 1377715257)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.618676900863647 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:52:47.084934
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/52/image_18082025_19_52_45_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/19/52/image_18082025_19_52_34_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/19/52/image_18082025_19_52_25_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/19/52/image_18082025_19_52_14_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/19/51/image_18082025_19_52_04_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/19/51/image_18082025_19_51_55_10617.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/52/image_18082025_19_52_45_10624.jpg', '/home/nano/Desktop/images/18082025/19/52/image_18082025_19_52_34_9618.jpg', '/home/nano/Desktop/images/18082025/19/52/image_18082025_19_52_25_10618.jpg', '/home/nano/Desktop/images/18082025/19/52/image_18082025_19_52_14_9631.jpg', '/home/nano/Desktop/images/18082025/19/51/image_18082025_19_52_04_9645.jpg', '/home/nano/Desktop/images/18082025/19/51/image_18082025_19_51_55_10617.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/52/image_18082025_19_52_45_10624.jpg
/home/nano/Desktop/images/18082025/19/52/image_18082025_19_52_34_9618.jpg
/home/nano/Desktop/images/18082025/19/52/image_18082025_19_52_25_10618.jpg
/home/nano/Desktop/images/18082025/19/52/image_18082025_19_52_14_9631.jpg
/home/nano/Desktop/images/18082025/19/51/image_18082025_19_52_04_9645.jpg
/home/nano/Desktop/images/18082025/19/51/image_18082025_19_51_55_10617.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377715274","1377715268","1377715271","1377715270","1377715267","1377715269"],"photo_ids_order":["1377715267","1377715268","1377715269","1377715270","1377715271","1377715274"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2c4e892f5b082dfcaac1e7471b0e04c5.jpg","text":"TemporaryFile(/tmp/multipartBody3765385824309794272asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539628352,"filename":"image_18082025_19_51_55_10617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/83b5045f87877ea53280efa1aedba553.jpg","text":"TemporaryFile(/tmp/multipartBody1997680922117860751asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539628352,"filename":"image_18082025_19_52_34_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f7013b652100757a7c5d6eae0b12c826.jpg","text":"TemporaryFile(/tmp/multipartBody2935758259229324720asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539628352,"filename":"image_18082025_19_52_04_9645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dcc881483c1aaee559ee01490ed1f61c.jpg","text":"TemporaryFile(/tmp/multipartBody4571447885441923918asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539628352,"filename":"image_18082025_19_52_14_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fcd6c03e937209cb1d0df242b06788ba.jpg","text":"TemporaryFile(/tmp/multipartBody6175008256793287333asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539628352,"filename":"image_18082025_19_52_45_10624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/12234f19d107843c4c69f88b7da58933.jpg","text":"TemporaryFile(/tmp/multipartBody1977154711448316198asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539628352,"filename":"image_18082025_19_52_25_10618.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377715269","file1":"1377715268","file0":"1377715267","file4":"1377715271","file5":"1377715274","file3":"1377715270"},"map_files_photo_id_array":[{"photo_id":"1377715274","filename":"file5"},{"photo_id":"1377715269","filename":"file2"},{"photo_id":"1377715271","filename":"file4"},{"photo_id":"1377715268","filename":"file1"},{"photo_id":"1377715267","filename":"file0"},{"photo_id":"1377715270","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377715274":["hashtag1","hashtag2"]},{"1377715268":["hashtag1","hashtag2"]},{"1377715271":["hashtag1","hashtag2"]},{"1377715270":["hashtag1","hashtag2"]},{"1377715267":["hashtag1","hashtag2"]},{"1377715269":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377715274, 1377715268, 1377715271, 1377715270, 1377715267, 1377715269)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.87384343147278 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:53:32.192698
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/53/image_18082025_19_53_45_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/19/53/image_18082025_19_53_35_10614.jpg', 2), ('/home/nano/Desktop/images/18082025/19/53/image_18082025_19_53_24_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/19/53/image_18082025_19_53_15_10634.jpg', 2), ('/home/nano/Desktop/images/18082025/19/52/image_18082025_19_53_04_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/19/52/image_18082025_19_52_55_9608.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/53/image_18082025_19_53_45_9616.jpg', '/home/nano/Desktop/images/18082025/19/53/image_18082025_19_53_35_10614.jpg', '/home/nano/Desktop/images/18082025/19/53/image_18082025_19_53_24_9629.jpg', '/home/nano/Desktop/images/18082025/19/53/image_18082025_19_53_15_10634.jpg', '/home/nano/Desktop/images/18082025/19/52/image_18082025_19_53_04_9610.jpg', '/home/nano/Desktop/images/18082025/19/52/image_18082025_19_52_55_9608.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/53/image_18082025_19_53_45_9616.jpg
/home/nano/Desktop/images/18082025/19/53/image_18082025_19_53_35_10614.jpg
/home/nano/Desktop/images/18082025/19/53/image_18082025_19_53_24_9629.jpg
/home/nano/Desktop/images/18082025/19/53/image_18082025_19_53_15_10634.jpg
/home/nano/Desktop/images/18082025/19/52/image_18082025_19_53_04_9610.jpg
/home/nano/Desktop/images/18082025/19/52/image_18082025_19_52_55_9608.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377715292","1377715286","1377715294","1377715288","1377715296","1377715290"],"photo_ids_order":["1377715286","1377715288","1377715290","1377715292","1377715294","1377715296"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/37eb0abe4eb45d091a96297d85ebf090.jpg","text":"TemporaryFile(/tmp/multipartBody1018700314384256832asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539673377,"filename":"image_18082025_19_53_15_10634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f8b3940d8e45ebce0c9841635f53260e.jpg","text":"TemporaryFile(/tmp/multipartBody641813147038714252asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539673377,"filename":"image_18082025_19_53_45_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/01757c530d0c434778849317b6c592c6.jpg","text":"TemporaryFile(/tmp/multipartBody317178879141950189asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539673377,"filename":"image_18082025_19_53_04_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3458789a22157f3bdfe81a61254f09b4.jpg","text":"TemporaryFile(/tmp/multipartBody5852000139138897057asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539673377,"filename":"image_18082025_19_53_35_10614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3e7f2c48f4ad8d70e16830f5eaa9a964.jpg","text":"TemporaryFile(/tmp/multipartBody573932735898416571asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539673377,"filename":"image_18082025_19_52_55_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b3eb83b7ef5bb0748f13271df6c1995a.jpg","text":"TemporaryFile(/tmp/multipartBody4516985123585222710asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539673377,"filename":"image_18082025_19_53_24_9629.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377715290","file1":"1377715288","file0":"1377715286","file4":"1377715294","file5":"1377715296","file3":"1377715292"},"map_files_photo_id_array":[{"photo_id":"1377715296","filename":"file5"},{"photo_id":"1377715290","filename":"file2"},{"photo_id":"1377715294","filename":"file4"},{"photo_id":"1377715288","filename":"file1"},{"photo_id":"1377715286","filename":"file0"},{"photo_id":"1377715292","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377715292":["hashtag1","hashtag2"]},{"1377715286":["hashtag1","hashtag2"]},{"1377715294":["hashtag1","hashtag2"]},{"1377715288":["hashtag1","hashtag2"]},{"1377715296":["hashtag1","hashtag2"]},{"1377715290":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377715292, 1377715286, 1377715294, 1377715288, 1377715296, 1377715290)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.293105363845825 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:54:17.272453
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/54/image_18082025_19_54_44_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/19/54/image_18082025_19_54_35_10622.jpg', 2), ('/home/nano/Desktop/images/18082025/19/54/image_18082025_19_54_24_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/19/54/image_18082025_19_54_15_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/19/53/image_18082025_19_54_05_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/19/53/image_18082025_19_53_54_9632.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/54/image_18082025_19_54_44_9641.jpg', '/home/nano/Desktop/images/18082025/19/54/image_18082025_19_54_35_10622.jpg', '/home/nano/Desktop/images/18082025/19/54/image_18082025_19_54_24_9614.jpg', '/home/nano/Desktop/images/18082025/19/54/image_18082025_19_54_15_9626.jpg', '/home/nano/Desktop/images/18082025/19/53/image_18082025_19_54_05_10640.jpg', '/home/nano/Desktop/images/18082025/19/53/image_18082025_19_53_54_9632.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/54/image_18082025_19_54_44_9641.jpg
/home/nano/Desktop/images/18082025/19/54/image_18082025_19_54_35_10622.jpg
/home/nano/Desktop/images/18082025/19/54/image_18082025_19_54_24_9614.jpg
/home/nano/Desktop/images/18082025/19/54/image_18082025_19_54_15_9626.jpg
/home/nano/Desktop/images/18082025/19/53/image_18082025_19_54_05_10640.jpg
/home/nano/Desktop/images/18082025/19/53/image_18082025_19_53_54_9632.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377715310","1377715304","1377715303","1377715312","1377715306","1377715308"],"photo_ids_order":["1377715303","1377715304","1377715306","1377715308","1377715310","1377715312"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1e5f07973c25245a5d7ab199efbd9eb2.jpg","text":"TemporaryFile(/tmp/multipartBody4826842452775970278asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539718674,"filename":"image_18082025_19_54_05_10640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/29997edc000d7e44636f871ca06c3c2b.jpg","text":"TemporaryFile(/tmp/multipartBody2915306809851936563asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539718674,"filename":"image_18082025_19_54_35_10622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1843713fc98a8bea9b9d1b4a7c2043bb.jpg","text":"TemporaryFile(/tmp/multipartBody8022268153438624895asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539718674,"filename":"image_18082025_19_54_44_9641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e6ab1bbce422666e99ffe761e0aa0eeb.jpg","text":"TemporaryFile(/tmp/multipartBody5004933340197894164asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539718674,"filename":"image_18082025_19_53_54_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/73412d952e982e83ba0bd5a279213bfd.jpg","text":"TemporaryFile(/tmp/multipartBody7190007283275958623asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539718674,"filename":"image_18082025_19_54_24_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8e0b45720b3d30befac159fca7f48c7c.jpg","text":"TemporaryFile(/tmp/multipartBody1983506905660219813asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539718674,"filename":"image_18082025_19_54_15_9626.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377715306","file1":"1377715304","file0":"1377715303","file4":"1377715310","file5":"1377715312","file3":"1377715308"},"map_files_photo_id_array":[{"photo_id":"1377715312","filename":"file5"},{"photo_id":"1377715306","filename":"file2"},{"photo_id":"1377715310","filename":"file4"},{"photo_id":"1377715304","filename":"file1"},{"photo_id":"1377715303","filename":"file0"},{"photo_id":"1377715308","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377715310":["hashtag1","hashtag2"]},{"1377715304":["hashtag1","hashtag2"]},{"1377715303":["hashtag1","hashtag2"]},{"1377715312":["hashtag1","hashtag2"]},{"1377715306":["hashtag1","hashtag2"]},{"1377715308":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377715310, 1377715304, 1377715303, 1377715312, 1377715306, 1377715308)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.01661777496338 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:55:03.083843
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_15_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/09/24/image_18082025_09_25_04_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/09/24/image_18082025_09_24_55_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/09/24/image_18082025_09_24_44_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/09/24/image_18082025_09_24_35_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/09/24/image_18082025_09_24_25_10616.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_15_10646.jpg', '/home/nano/Desktop/images/18082025/09/24/image_18082025_09_25_04_9633.jpg', '/home/nano/Desktop/images/18082025/09/24/image_18082025_09_24_55_10637.jpg', '/home/nano/Desktop/images/18082025/09/24/image_18082025_09_24_44_9613.jpg', '/home/nano/Desktop/images/18082025/09/24/image_18082025_09_24_35_9622.jpg', '/home/nano/Desktop/images/18082025/09/24/image_18082025_09_24_25_10616.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/25/image_18082025_09_25_15_10646.jpg
/home/nano/Desktop/images/18082025/09/24/image_18082025_09_25_04_9633.jpg
/home/nano/Desktop/images/18082025/09/24/image_18082025_09_24_55_10637.jpg
/home/nano/Desktop/images/18082025/09/24/image_18082025_09_24_44_9613.jpg
/home/nano/Desktop/images/18082025/09/24/image_18082025_09_24_35_9622.jpg
/home/nano/Desktop/images/18082025/09/24/image_18082025_09_24_25_10616.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377715316","1377715321","1377715330","1377715324","1377715318","1377715327"],"photo_ids_order":["1377715316","1377715318","1377715321","1377715324","1377715327","1377715330"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4ccbe58dcb6fa014eaf5000985261bc6.jpg","text":"TemporaryFile(/tmp/multipartBody5314519353938515345asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539764685,"filename":"image_18082025_09_25_15_10646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9997590cd68695167161d6aa568b1be2.jpg","text":"TemporaryFile(/tmp/multipartBody8106173616675316638asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539764685,"filename":"image_18082025_09_24_55_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/34e398702189d7b179d2df24b8556692.jpg","text":"TemporaryFile(/tmp/multipartBody263566672002406590asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539764685,"filename":"image_18082025_09_24_25_10616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b7e5a31f6cef1548c578d235e3cb044a.jpg","text":"TemporaryFile(/tmp/multipartBody1811073757849056763asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539764685,"filename":"image_18082025_09_24_44_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/691bedfa8d252aa6c646e0007cc9aa30.jpg","text":"TemporaryFile(/tmp/multipartBody5955011973143702570asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539764685,"filename":"image_18082025_09_25_04_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d51406be746f050a13e492866ca55b12.jpg","text":"TemporaryFile(/tmp/multipartBody3918993465627275871asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539764685,"filename":"image_18082025_09_24_35_9622.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377715321","file1":"1377715318","file0":"1377715316","file4":"1377715327","file5":"1377715330","file3":"1377715324"},"map_files_photo_id_array":[{"photo_id":"1377715330","filename":"file5"},{"photo_id":"1377715321","filename":"file2"},{"photo_id":"1377715327","filename":"file4"},{"photo_id":"1377715318","filename":"file1"},{"photo_id":"1377715316","filename":"file0"},{"photo_id":"1377715324","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377715316":["hashtag1","hashtag2"]},{"1377715321":["hashtag1","hashtag2"]},{"1377715330":["hashtag1","hashtag2"]},{"1377715324":["hashtag1","hashtag2"]},{"1377715318":["hashtag1","hashtag2"]},{"1377715327":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377715316, 1377715321, 1377715330, 1377715324, 1377715318, 1377715327)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.716225385665894 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:55:47.410698
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/55/image_18082025_19_55_44_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/19/55/image_18082025_19_55_35_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/19/55/image_18082025_19_55_25_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/19/55/image_18082025_19_55_14_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/19/54/image_18082025_19_55_05_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/19/54/image_18082025_19_54_54_9614.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/55/image_18082025_19_55_44_9610.jpg', '/home/nano/Desktop/images/18082025/19/55/image_18082025_19_55_35_9617.jpg', '/home/nano/Desktop/images/18082025/19/55/image_18082025_19_55_25_10621.jpg', '/home/nano/Desktop/images/18082025/19/55/image_18082025_19_55_14_9637.jpg', '/home/nano/Desktop/images/18082025/19/54/image_18082025_19_55_05_10654.jpg', '/home/nano/Desktop/images/18082025/19/54/image_18082025_19_54_54_9614.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/55/image_18082025_19_55_44_9610.jpg
/home/nano/Desktop/images/18082025/19/55/image_18082025_19_55_35_9617.jpg
/home/nano/Desktop/images/18082025/19/55/image_18082025_19_55_25_10621.jpg
/home/nano/Desktop/images/18082025/19/55/image_18082025_19_55_14_9637.jpg
/home/nano/Desktop/images/18082025/19/54/image_18082025_19_55_05_10654.jpg
/home/nano/Desktop/images/18082025/19/54/image_18082025_19_54_54_9614.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377715355","1377715349","1377715351","1377715342","1377715345","1377715347"],"photo_ids_order":["1377715342","1377715345","1377715347","1377715349","1377715351","1377715355"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7e65f0c243bc331970eb324d9b8fdb82.jpg","text":"TemporaryFile(/tmp/multipartBody8871712940926565087asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539808841,"filename":"image_18082025_19_54_54_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/73100104107a1561ac9caf31477740d3.jpg","text":"TemporaryFile(/tmp/multipartBody5886510916734792719asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539808841,"filename":"image_18082025_19_55_14_9637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/874102e870cb69448f215b98491e62c0.jpg","text":"TemporaryFile(/tmp/multipartBody928824200249158637asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539808841,"filename":"image_18082025_19_55_05_10654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/462676dfb10c49b8a1a8afeaa327666a.jpg","text":"TemporaryFile(/tmp/multipartBody1920754745574808762asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539808841,"filename":"image_18082025_19_55_44_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9175a80076542ee73d8f8767b30e28dc.jpg","text":"TemporaryFile(/tmp/multipartBody5762831003485117943asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539808841,"filename":"image_18082025_19_55_35_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7547841b882aa2d919c0c33118198179.jpg","text":"TemporaryFile(/tmp/multipartBody32306315355334831asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539808841,"filename":"image_18082025_19_55_25_10621.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377715347","file1":"1377715345","file0":"1377715342","file4":"1377715351","file5":"1377715355","file3":"1377715349"},"map_files_photo_id_array":[{"photo_id":"1377715355","filename":"file5"},{"photo_id":"1377715347","filename":"file2"},{"photo_id":"1377715351","filename":"file4"},{"photo_id":"1377715345","filename":"file1"},{"photo_id":"1377715342","filename":"file0"},{"photo_id":"1377715349","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377715355":["hashtag1","hashtag2"]},{"1377715349":["hashtag1","hashtag2"]},{"1377715351":["hashtag1","hashtag2"]},{"1377715342":["hashtag1","hashtag2"]},{"1377715345":["hashtag1","hashtag2"]},{"1377715347":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377715355, 1377715349, 1377715351, 1377715342, 1377715345, 1377715347)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.421072244644165 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:56:32.485068
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/56/image_18082025_19_56_45_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/19/56/image_18082025_19_56_34_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/19/56/image_18082025_19_56_25_10622.jpg', 2), ('/home/nano/Desktop/images/18082025/19/56/image_18082025_19_56_14_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/19/55/image_18082025_19_56_04_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/19/55/image_18082025_19_55_55_10622.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/56/image_18082025_19_56_45_10627.jpg', '/home/nano/Desktop/images/18082025/19/56/image_18082025_19_56_34_9626.jpg', '/home/nano/Desktop/images/18082025/19/56/image_18082025_19_56_25_10622.jpg', '/home/nano/Desktop/images/18082025/19/56/image_18082025_19_56_14_9643.jpg', '/home/nano/Desktop/images/18082025/19/55/image_18082025_19_56_04_9618.jpg', '/home/nano/Desktop/images/18082025/19/55/image_18082025_19_55_55_10622.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/56/image_18082025_19_56_45_10627.jpg
/home/nano/Desktop/images/18082025/19/56/image_18082025_19_56_34_9626.jpg
/home/nano/Desktop/images/18082025/19/56/image_18082025_19_56_25_10622.jpg
/home/nano/Desktop/images/18082025/19/56/image_18082025_19_56_14_9643.jpg
/home/nano/Desktop/images/18082025/19/55/image_18082025_19_56_04_9618.jpg
/home/nano/Desktop/images/18082025/19/55/image_18082025_19_55_55_10622.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377715373","1377715372","1377715366","1377715375","1377715369","1377715363"],"photo_ids_order":["1377715363","1377715366","1377715369","1377715372","1377715373","1377715375"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/58bd8d5b2c25ac15beedfafd7b08270d.jpg","text":"TemporaryFile(/tmp/multipartBody1865967346779084664asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539853909,"filename":"image_18082025_19_56_04_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d6a07672154dff2265a0d559d4dbf761.jpg","text":"TemporaryFile(/tmp/multipartBody32317899181341257asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539853909,"filename":"image_18082025_19_56_14_9643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/221c6887fa1965f66acce3b907ffac99.jpg","text":"TemporaryFile(/tmp/multipartBody293248784114973940asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539853909,"filename":"image_18082025_19_56_34_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/773929dcb4338d3fb1fb0e37a05d6fae.jpg","text":"TemporaryFile(/tmp/multipartBody8465696448030230559asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539853909,"filename":"image_18082025_19_55_55_10622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/28f1ef436fcff4f76af68d61c7d4aa81.jpg","text":"TemporaryFile(/tmp/multipartBody7766313178791063801asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539853909,"filename":"image_18082025_19_56_25_10622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5ef528624b99640e069b7b87de3d4944.jpg","text":"TemporaryFile(/tmp/multipartBody8788411348741265745asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539853909,"filename":"image_18082025_19_56_45_10627.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377715369","file1":"1377715366","file0":"1377715363","file4":"1377715373","file5":"1377715375","file3":"1377715372"},"map_files_photo_id_array":[{"photo_id":"1377715375","filename":"file5"},{"photo_id":"1377715369","filename":"file2"},{"photo_id":"1377715373","filename":"file4"},{"photo_id":"1377715366","filename":"file1"},{"photo_id":"1377715363","filename":"file0"},{"photo_id":"1377715372","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377715373":["hashtag1","hashtag2"]},{"1377715372":["hashtag1","hashtag2"]},{"1377715366":["hashtag1","hashtag2"]},{"1377715375":["hashtag1","hashtag2"]},{"1377715369":["hashtag1","hashtag2"]},{"1377715363":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377715373, 1377715372, 1377715366, 1377715375, 1377715369, 1377715363)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.844857692718506 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:57:17.588444
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/57/image_18082025_19_57_45_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/19/57/image_18082025_19_57_34_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/19/57/image_18082025_19_57_24_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/19/57/image_18082025_19_57_15_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/19/56/image_18082025_19_57_04_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/19/56/image_18082025_19_56_55_9611.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/57/image_18082025_19_57_45_10627.jpg', '/home/nano/Desktop/images/18082025/19/57/image_18082025_19_57_34_9629.jpg', '/home/nano/Desktop/images/18082025/19/57/image_18082025_19_57_24_9621.jpg', '/home/nano/Desktop/images/18082025/19/57/image_18082025_19_57_15_10658.jpg', '/home/nano/Desktop/images/18082025/19/56/image_18082025_19_57_04_9617.jpg', '/home/nano/Desktop/images/18082025/19/56/image_18082025_19_56_55_9611.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/57/image_18082025_19_57_45_10627.jpg
/home/nano/Desktop/images/18082025/19/57/image_18082025_19_57_34_9629.jpg
/home/nano/Desktop/images/18082025/19/57/image_18082025_19_57_24_9621.jpg
/home/nano/Desktop/images/18082025/19/57/image_18082025_19_57_15_10658.jpg
/home/nano/Desktop/images/18082025/19/56/image_18082025_19_57_04_9617.jpg
/home/nano/Desktop/images/18082025/19/56/image_18082025_19_56_55_9611.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377715401","1377715397","1377715403","1377715400","1377715393","1377715402"],"photo_ids_order":["1377715393","1377715397","1377715400","1377715401","1377715402","1377715403"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/08a264305f0f146aba056d414285931b.jpg","text":"TemporaryFile(/tmp/multipartBody5366192959628440635asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539898845,"filename":"image_18082025_19_57_15_10658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6717209ba3a6ff37d6f04577042b6930.jpg","text":"TemporaryFile(/tmp/multipartBody4124488380244311076asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539898845,"filename":"image_18082025_19_57_34_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3c4d20c55d39770a79d258aa20bc7e2c.jpg","text":"TemporaryFile(/tmp/multipartBody4282366475667277466asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539898845,"filename":"image_18082025_19_56_55_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/108390e8c98fe475b8cb7bf968143d1f.jpg","text":"TemporaryFile(/tmp/multipartBody3955818758698395074asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539898845,"filename":"image_18082025_19_57_24_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d51c795df132687cee3dd9d31d4c4503.jpg","text":"TemporaryFile(/tmp/multipartBody5806214048524308020asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539898845,"filename":"image_18082025_19_57_45_10627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9982b2f18546bf18bcb90f28e7848565.jpg","text":"TemporaryFile(/tmp/multipartBody4629338625614663705asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755539898845,"filename":"image_18082025_19_57_04_9617.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377715400","file1":"1377715397","file0":"1377715393","file4":"1377715402","file5":"1377715403","file3":"1377715401"},"map_files_photo_id_array":[{"photo_id":"1377715403","filename":"file5"},{"photo_id":"1377715400","filename":"file2"},{"photo_id":"1377715402","filename":"file4"},{"photo_id":"1377715397","filename":"file1"},{"photo_id":"1377715393","filename":"file0"},{"photo_id":"1377715401","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377715401":["hashtag1","hashtag2"]},{"1377715397":["hashtag1","hashtag2"]},{"1377715403":["hashtag1","hashtag2"]},{"1377715400":["hashtag1","hashtag2"]},{"1377715393":["hashtag1","hashtag2"]},{"1377715402":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377715401, 1377715397, 1377715403, 1377715400, 1377715393, 1377715402)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.485175609588623 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:59:03.173534
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/24/image_18082025_09_24_14_9708.jpg', 2), ('/home/nano/Desktop/images/18082025/09/23/image_18082025_09_24_05_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/09/23/image_18082025_09_23_55_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/09/23/image_18082025_09_23_44_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/09/23/image_18082025_09_23_35_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/09/23/image_18082025_09_23_25_10639.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/24/image_18082025_09_24_14_9708.jpg', '/home/nano/Desktop/images/18082025/09/23/image_18082025_09_24_05_9621.jpg', '/home/nano/Desktop/images/18082025/09/23/image_18082025_09_23_55_10650.jpg', '/home/nano/Desktop/images/18082025/09/23/image_18082025_09_23_44_9640.jpg', '/home/nano/Desktop/images/18082025/09/23/image_18082025_09_23_35_9623.jpg', '/home/nano/Desktop/images/18082025/09/23/image_18082025_09_23_25_10639.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/24/image_18082025_09_24_14_9708.jpg
/home/nano/Desktop/images/18082025/09/23/image_18082025_09_24_05_9621.jpg
/home/nano/Desktop/images/18082025/09/23/image_18082025_09_23_55_10650.jpg
/home/nano/Desktop/images/18082025/09/23/image_18082025_09_23_44_9640.jpg
/home/nano/Desktop/images/18082025/09/23/image_18082025_09_23_35_9623.jpg
/home/nano/Desktop/images/18082025/09/23/image_18082025_09_23_25_10639.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377715421","1377715430","1377715418","1377715435","1377715425","1377715440"],"photo_ids_order":["1377715418","1377715421","1377715425","1377715430","1377715435","1377715440"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0b6e5856ef2c99154f15a619625c75f1.jpg","text":"TemporaryFile(/tmp/multipartBody6276513507534814110asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540004567,"filename":"image_18082025_09_24_05_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/99df67f75ea81d5a381971966c683204.jpg","text":"TemporaryFile(/tmp/multipartBody4998547892779989137asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540004567,"filename":"image_18082025_09_23_44_9640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e8ae74b2c5bea07c18d7756c24277da6.jpg","text":"TemporaryFile(/tmp/multipartBody920338800101197679asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540004567,"filename":"image_18082025_09_24_14_9708.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f11a28cac40af58b29c6f5b900d3968b.jpg","text":"TemporaryFile(/tmp/multipartBody1349249686300151334asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540004567,"filename":"image_18082025_09_23_35_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e57bad80d98014d3f0b5f378558cb600.jpg","text":"TemporaryFile(/tmp/multipartBody3752613160140146120asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540004567,"filename":"image_18082025_09_23_55_10650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e48587599b0c24645340b0f52af9db91.jpg","text":"TemporaryFile(/tmp/multipartBody1446879816301213311asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540004567,"filename":"image_18082025_09_23_25_10639.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377715425","file1":"1377715421","file0":"1377715418","file4":"1377715435","file5":"1377715440","file3":"1377715430"},"map_files_photo_id_array":[{"photo_id":"1377715440","filename":"file5"},{"photo_id":"1377715425","filename":"file2"},{"photo_id":"1377715435","filename":"file4"},{"photo_id":"1377715421","filename":"file1"},{"photo_id":"1377715418","filename":"file0"},{"photo_id":"1377715430","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377715421":["hashtag1","hashtag2"]},{"1377715430":["hashtag1","hashtag2"]},{"1377715418":["hashtag1","hashtag2"]},{"1377715435":["hashtag1","hashtag2"]},{"1377715425":["hashtag1","hashtag2"]},{"1377715440":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377715421, 1377715430, 1377715418, 1377715435, 1377715425, 1377715440)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.44395399093628 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 19:59:47.109189
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/59/image_18082025_19_59_45_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/19/59/image_18082025_19_59_35_10698.jpg', 2), ('/home/nano/Desktop/images/18082025/19/59/image_18082025_19_59_24_9725.jpg', 2), ('/home/nano/Desktop/images/18082025/19/59/image_18082025_19_59_15_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/19/58/image_18082025_19_59_05_10739.jpg', 2), ('/home/nano/Desktop/images/18082025/19/58/image_18082025_19_58_54_9580.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/59/image_18082025_19_59_45_9648.jpg', '/home/nano/Desktop/images/18082025/19/59/image_18082025_19_59_35_10698.jpg', '/home/nano/Desktop/images/18082025/19/59/image_18082025_19_59_24_9725.jpg', '/home/nano/Desktop/images/18082025/19/59/image_18082025_19_59_15_9651.jpg', '/home/nano/Desktop/images/18082025/19/58/image_18082025_19_59_05_10739.jpg', '/home/nano/Desktop/images/18082025/19/58/image_18082025_19_58_54_9580.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/59/image_18082025_19_59_45_9648.jpg
/home/nano/Desktop/images/18082025/19/59/image_18082025_19_59_35_10698.jpg
/home/nano/Desktop/images/18082025/19/59/image_18082025_19_59_24_9725.jpg
/home/nano/Desktop/images/18082025/19/59/image_18082025_19_59_15_9651.jpg
/home/nano/Desktop/images/18082025/19/58/image_18082025_19_59_05_10739.jpg
/home/nano/Desktop/images/18082025/19/58/image_18082025_19_58_54_9580.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377715466","1377715463","1377715474","1377715468","1377715461","1377715470"],"photo_ids_order":["1377715461","1377715463","1377715466","1377715468","1377715470","1377715474"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3f1bee7cf782361810aa92a83df75002.jpg","text":"TemporaryFile(/tmp/multipartBody375913678591012584asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540048726,"filename":"image_18082025_19_59_24_9725.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/84a58b7d09392019e31c94f437d35aec.jpg","text":"TemporaryFile(/tmp/multipartBody9031519921233224563asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540048726,"filename":"image_18082025_19_59_35_10698.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8ba24f517a2949e86272bc35c8f778f6.jpg","text":"TemporaryFile(/tmp/multipartBody3477651700494873175asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540048726,"filename":"image_18082025_19_58_54_9580.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d8ce29da00619b7343d5bfc0cf9dc0f5.jpg","text":"TemporaryFile(/tmp/multipartBody5729902096034750851asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540048726,"filename":"image_18082025_19_59_15_9651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/60fe5786a3451c4d91d0e2e367787645.jpg","text":"TemporaryFile(/tmp/multipartBody1369747164010954749asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540048726,"filename":"image_18082025_19_59_45_9648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b72a02599c6ef2c5d346d7168ac1083e.jpg","text":"TemporaryFile(/tmp/multipartBody6322936572888734515asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540048726,"filename":"image_18082025_19_59_05_10739.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377715466","file1":"1377715463","file0":"1377715461","file4":"1377715470","file5":"1377715474","file3":"1377715468"},"map_files_photo_id_array":[{"photo_id":"1377715474","filename":"file5"},{"photo_id":"1377715466","filename":"file2"},{"photo_id":"1377715470","filename":"file4"},{"photo_id":"1377715463","filename":"file1"},{"photo_id":"1377715461","filename":"file0"},{"photo_id":"1377715468","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377715466":["hashtag1","hashtag2"]},{"1377715463":["hashtag1","hashtag2"]},{"1377715474":["hashtag1","hashtag2"]},{"1377715468":["hashtag1","hashtag2"]},{"1377715461":["hashtag1","hashtag2"]},{"1377715470":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377715466, 1377715463, 1377715474, 1377715468, 1377715461, 1377715470)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.02603626251221 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:00:32.197376
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/00/image_18082025_20_00_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/20/00/image_18082025_20_00_35_10606.jpg', 2), ('/home/nano/Desktop/images/18082025/20/00/image_18082025_20_00_24_9699.jpg', 2), ('/home/nano/Desktop/images/18082025/20/00/image_18082025_20_00_15_9672.jpg', 2), ('/home/nano/Desktop/images/18082025/19/59/image_18082025_20_00_05_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/19/59/image_18082025_19_59_54_9628.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/00/image_18082025_20_00_44_9638.jpg', '/home/nano/Desktop/images/18082025/20/00/image_18082025_20_00_35_10606.jpg', '/home/nano/Desktop/images/18082025/20/00/image_18082025_20_00_24_9699.jpg', '/home/nano/Desktop/images/18082025/20/00/image_18082025_20_00_15_9672.jpg', '/home/nano/Desktop/images/18082025/19/59/image_18082025_20_00_05_10654.jpg', '/home/nano/Desktop/images/18082025/19/59/image_18082025_19_59_54_9628.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/00/image_18082025_20_00_44_9638.jpg
/home/nano/Desktop/images/18082025/20/00/image_18082025_20_00_35_10606.jpg
/home/nano/Desktop/images/18082025/20/00/image_18082025_20_00_24_9699.jpg
/home/nano/Desktop/images/18082025/20/00/image_18082025_20_00_15_9672.jpg
/home/nano/Desktop/images/18082025/19/59/image_18082025_20_00_05_10654.jpg
/home/nano/Desktop/images/18082025/19/59/image_18082025_19_59_54_9628.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377715499","1377715486","1377715491","1377715494","1377715488","1377715497"],"photo_ids_order":["1377715486","1377715488","1377715491","1377715494","1377715497","1377715499"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5f08a3fd1633ef5dc7d19112262a15c5.jpg","text":"TemporaryFile(/tmp/multipartBody2193881281045242157asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540093773,"filename":"image_18082025_19_59_54_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a900e2574421b58bec9362d7a0cc804b.jpg","text":"TemporaryFile(/tmp/multipartBody6493379756382626702asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540093773,"filename":"image_18082025_20_00_44_9638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3657c636f420bd145d60cbfafe8da069.jpg","text":"TemporaryFile(/tmp/multipartBody1151682906382994134asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540093773,"filename":"image_18082025_20_00_24_9699.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e59023bba120f91bd4f47bf01be561af.jpg","text":"TemporaryFile(/tmp/multipartBody3802110230489382asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540093773,"filename":"image_18082025_20_00_15_9672.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5ab38803dae2924e6842a750a3a1b16a.jpg","text":"TemporaryFile(/tmp/multipartBody7501662111859762530asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540093773,"filename":"image_18082025_20_00_35_10606.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c866008b08524a3a2f87b42e0f5ba94c.jpg","text":"TemporaryFile(/tmp/multipartBody4527749932322358622asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540093773,"filename":"image_18082025_20_00_05_10654.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377715491","file1":"1377715488","file0":"1377715486","file4":"1377715497","file5":"1377715499","file3":"1377715494"},"map_files_photo_id_array":[{"photo_id":"1377715499","filename":"file5"},{"photo_id":"1377715491","filename":"file2"},{"photo_id":"1377715497","filename":"file4"},{"photo_id":"1377715488","filename":"file1"},{"photo_id":"1377715486","filename":"file0"},{"photo_id":"1377715494","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377715499":["hashtag1","hashtag2"]},{"1377715486":["hashtag1","hashtag2"]},{"1377715491":["hashtag1","hashtag2"]},{"1377715494":["hashtag1","hashtag2"]},{"1377715488":["hashtag1","hashtag2"]},{"1377715497":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377715499, 1377715486, 1377715491, 1377715494, 1377715488, 1377715497)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.587862491607666 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:01:17.298456
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/01/image_18082025_20_01_44_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/20/01/image_18082025_20_01_35_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/20/01/image_18082025_20_01_24_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/20/01/image_18082025_20_01_15_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/20/00/image_18082025_20_01_05_10767.jpg', 2), ('/home/nano/Desktop/images/18082025/20/00/image_18082025_20_00_54_9653.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/01/image_18082025_20_01_44_9656.jpg', '/home/nano/Desktop/images/18082025/20/01/image_18082025_20_01_35_10650.jpg', '/home/nano/Desktop/images/18082025/20/01/image_18082025_20_01_24_9607.jpg', '/home/nano/Desktop/images/18082025/20/01/image_18082025_20_01_15_9660.jpg', '/home/nano/Desktop/images/18082025/20/00/image_18082025_20_01_05_10767.jpg', '/home/nano/Desktop/images/18082025/20/00/image_18082025_20_00_54_9653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/01/image_18082025_20_01_44_9656.jpg
/home/nano/Desktop/images/18082025/20/01/image_18082025_20_01_35_10650.jpg
/home/nano/Desktop/images/18082025/20/01/image_18082025_20_01_24_9607.jpg
/home/nano/Desktop/images/18082025/20/01/image_18082025_20_01_15_9660.jpg
/home/nano/Desktop/images/18082025/20/00/image_18082025_20_01_05_10767.jpg
/home/nano/Desktop/images/18082025/20/00/image_18082025_20_00_54_9653.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377715521","1377715511","1377715513","1377715522","1377715516","1377715519"],"photo_ids_order":["1377715511","1377715513","1377715516","1377715519","1377715521","1377715522"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e5c70b9db561a6e607ad9d5d56f92ee6.jpg","text":"TemporaryFile(/tmp/multipartBody5337634214827089519asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540138650,"filename":"image_18082025_20_01_05_10767.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0256295dd7f67ae24438474f2d592994.jpg","text":"TemporaryFile(/tmp/multipartBody7059822399313183575asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540138650,"filename":"image_18082025_20_01_44_9656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9addada881bb1ccffcf80cde7a4e028b.jpg","text":"TemporaryFile(/tmp/multipartBody3716805619400536764asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540138650,"filename":"image_18082025_20_01_35_10650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/07b016aa8edebafc8f8b0b6880314d9d.jpg","text":"TemporaryFile(/tmp/multipartBody6181474151789621043asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540138650,"filename":"image_18082025_20_00_54_9653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/63a97aacfcd5effd39a563a3c8ae1e1e.jpg","text":"TemporaryFile(/tmp/multipartBody954932234790223987asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540138650,"filename":"image_18082025_20_01_24_9607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/59d1451a78e1174bd5b2592d3ab45900.jpg","text":"TemporaryFile(/tmp/multipartBody1240402746621239608asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540138650,"filename":"image_18082025_20_01_15_9660.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377715516","file1":"1377715513","file0":"1377715511","file4":"1377715521","file5":"1377715522","file3":"1377715519"},"map_files_photo_id_array":[{"photo_id":"1377715522","filename":"file5"},{"photo_id":"1377715516","filename":"file2"},{"photo_id":"1377715521","filename":"file4"},{"photo_id":"1377715513","filename":"file1"},{"photo_id":"1377715511","filename":"file0"},{"photo_id":"1377715519","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377715521":["hashtag1","hashtag2"]},{"1377715511":["hashtag1","hashtag2"]},{"1377715513":["hashtag1","hashtag2"]},{"1377715522":["hashtag1","hashtag2"]},{"1377715516":["hashtag1","hashtag2"]},{"1377715519":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377715521, 1377715511, 1377715513, 1377715522, 1377715516, 1377715519)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.105000019073486 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:02:02.972395
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/19/58/image_18082025_19_58_45_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/19/58/image_18082025_19_58_35_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/19/58/image_18082025_19_58_24_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/19/58/image_18082025_19_58_15_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/19/57/image_18082025_19_58_05_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/19/57/image_18082025_19_57_54_9608.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/19/58/image_18082025_19_58_45_9621.jpg', '/home/nano/Desktop/images/18082025/19/58/image_18082025_19_58_35_10648.jpg', '/home/nano/Desktop/images/18082025/19/58/image_18082025_19_58_24_9669.jpg', '/home/nano/Desktop/images/18082025/19/58/image_18082025_19_58_15_9634.jpg', '/home/nano/Desktop/images/18082025/19/57/image_18082025_19_58_05_10629.jpg', '/home/nano/Desktop/images/18082025/19/57/image_18082025_19_57_54_9608.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/19/58/image_18082025_19_58_45_9621.jpg
/home/nano/Desktop/images/18082025/19/58/image_18082025_19_58_35_10648.jpg
/home/nano/Desktop/images/18082025/19/58/image_18082025_19_58_24_9669.jpg
/home/nano/Desktop/images/18082025/19/58/image_18082025_19_58_15_9634.jpg
/home/nano/Desktop/images/18082025/19/57/image_18082025_19_58_05_10629.jpg
/home/nano/Desktop/images/18082025/19/57/image_18082025_19_57_54_9608.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377715529","1377715546","1377715540","1377715534","1377715543","1377715537"],"photo_ids_order":["1377715529","1377715534","1377715537","1377715540","1377715543","1377715546"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0e4e8bddfaeb4deab879d4ec5f36f33d.jpg","text":"TemporaryFile(/tmp/multipartBody2793131027232412649asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540184284,"filename":"image_18082025_19_58_45_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b42a6664f7b955aad13f31d77e76bb79.jpg","text":"TemporaryFile(/tmp/multipartBody5752469314904396882asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540184284,"filename":"image_18082025_19_57_54_9608.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/173df5d2cf85789a4ffccf2d4233ee26.jpg","text":"TemporaryFile(/tmp/multipartBody7387042580472701402asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540184284,"filename":"image_18082025_19_58_15_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cc3ec5edb8056bf21963656e62f4fbba.jpg","text":"TemporaryFile(/tmp/multipartBody1474061994645077919asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540184284,"filename":"image_18082025_19_58_35_10648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4dcc2dca5133890668a4083775ac9fb0.jpg","text":"TemporaryFile(/tmp/multipartBody3157488234739043902asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540184284,"filename":"image_18082025_19_58_05_10629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bf47b97e5ebb12c69342f1f04250d247.jpg","text":"TemporaryFile(/tmp/multipartBody5409561144773516159asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540184284,"filename":"image_18082025_19_58_24_9669.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377715537","file1":"1377715534","file0":"1377715529","file4":"1377715543","file5":"1377715546","file3":"1377715540"},"map_files_photo_id_array":[{"photo_id":"1377715546","filename":"file5"},{"photo_id":"1377715537","filename":"file2"},{"photo_id":"1377715543","filename":"file4"},{"photo_id":"1377715534","filename":"file1"},{"photo_id":"1377715529","filename":"file0"},{"photo_id":"1377715540","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377715529":["hashtag1","hashtag2"]},{"1377715546":["hashtag1","hashtag2"]},{"1377715540":["hashtag1","hashtag2"]},{"1377715534":["hashtag1","hashtag2"]},{"1377715543":["hashtag1","hashtag2"]},{"1377715537":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377715529, 1377715546, 1377715540, 1377715534, 1377715543, 1377715537)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.201157569885254 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:02:47.454489
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/02/image_18082025_20_02_44_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/20/02/image_18082025_20_02_35_10682.jpg', 2), ('/home/nano/Desktop/images/18082025/20/02/image_18082025_20_02_24_9691.jpg', 2), ('/home/nano/Desktop/images/18082025/20/02/image_18082025_20_02_14_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/20/01/image_18082025_20_02_05_10611.jpg', 2), ('/home/nano/Desktop/images/18082025/20/01/image_18082025_20_01_54_9645.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/02/image_18082025_20_02_44_9646.jpg', '/home/nano/Desktop/images/18082025/20/02/image_18082025_20_02_35_10682.jpg', '/home/nano/Desktop/images/18082025/20/02/image_18082025_20_02_24_9691.jpg', '/home/nano/Desktop/images/18082025/20/02/image_18082025_20_02_14_9639.jpg', '/home/nano/Desktop/images/18082025/20/01/image_18082025_20_02_05_10611.jpg', '/home/nano/Desktop/images/18082025/20/01/image_18082025_20_01_54_9645.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/02/image_18082025_20_02_44_9646.jpg
/home/nano/Desktop/images/18082025/20/02/image_18082025_20_02_35_10682.jpg
/home/nano/Desktop/images/18082025/20/02/image_18082025_20_02_24_9691.jpg
/home/nano/Desktop/images/18082025/20/02/image_18082025_20_02_14_9639.jpg
/home/nano/Desktop/images/18082025/20/01/image_18082025_20_02_05_10611.jpg
/home/nano/Desktop/images/18082025/20/01/image_18082025_20_01_54_9645.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377715556","1377715564","1377715558","1377715555","1377715560","1377715557"],"photo_ids_order":["1377715555","1377715556","1377715557","1377715558","1377715560","1377715564"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f69222c21c0e356205004ec1449c130d.jpg","text":"TemporaryFile(/tmp/multipartBody1873149812827868538asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540229151,"filename":"image_18082025_20_02_35_10682.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/85186eaf9e837e6c6aedd6d2c1b45d1f.jpg","text":"TemporaryFile(/tmp/multipartBody5565923159504542980asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540229151,"filename":"image_18082025_20_01_54_9645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dd4f258e1cdf47cae41e95f16e4f749b.jpg","text":"TemporaryFile(/tmp/multipartBody3145983445829554395asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540229151,"filename":"image_18082025_20_02_14_9639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9f1685e7d2e734cc5b71e80003562c76.jpg","text":"TemporaryFile(/tmp/multipartBody1518662924172351472asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540229151,"filename":"image_18082025_20_02_44_9646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/020709841ed7dc3147860c534371b6a0.jpg","text":"TemporaryFile(/tmp/multipartBody3430562973435768435asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540229151,"filename":"image_18082025_20_02_05_10611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3400b0e0212d9ca8dbc1e6cd11ba88c4.jpg","text":"TemporaryFile(/tmp/multipartBody3849127829776732234asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540229151,"filename":"image_18082025_20_02_24_9691.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377715557","file1":"1377715556","file0":"1377715555","file4":"1377715560","file5":"1377715564","file3":"1377715558"},"map_files_photo_id_array":[{"photo_id":"1377715564","filename":"file5"},{"photo_id":"1377715557","filename":"file2"},{"photo_id":"1377715560","filename":"file4"},{"photo_id":"1377715556","filename":"file1"},{"photo_id":"1377715555","filename":"file0"},{"photo_id":"1377715558","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377715556":["hashtag1","hashtag2"]},{"1377715564":["hashtag1","hashtag2"]},{"1377715558":["hashtag1","hashtag2"]},{"1377715555":["hashtag1","hashtag2"]},{"1377715560":["hashtag1","hashtag2"]},{"1377715557":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377715556, 1377715564, 1377715558, 1377715555, 1377715560, 1377715557)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.0234477519989 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:03:32.597121
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/03/image_18082025_20_03_44_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/20/03/image_18082025_20_03_35_9698.jpg', 2), ('/home/nano/Desktop/images/18082025/20/03/image_18082025_20_03_25_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/20/03/image_18082025_20_03_14_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/20/02/image_18082025_20_03_05_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/20/02/image_18082025_20_02_55_10622.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/03/image_18082025_20_03_44_9653.jpg', '/home/nano/Desktop/images/18082025/20/03/image_18082025_20_03_35_9698.jpg', '/home/nano/Desktop/images/18082025/20/03/image_18082025_20_03_25_10656.jpg', '/home/nano/Desktop/images/18082025/20/03/image_18082025_20_03_14_9637.jpg', '/home/nano/Desktop/images/18082025/20/02/image_18082025_20_03_05_9615.jpg', '/home/nano/Desktop/images/18082025/20/02/image_18082025_20_02_55_10622.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/03/image_18082025_20_03_44_9653.jpg
/home/nano/Desktop/images/18082025/20/03/image_18082025_20_03_35_9698.jpg
/home/nano/Desktop/images/18082025/20/03/image_18082025_20_03_25_10656.jpg
/home/nano/Desktop/images/18082025/20/03/image_18082025_20_03_14_9637.jpg
/home/nano/Desktop/images/18082025/20/02/image_18082025_20_03_05_9615.jpg
/home/nano/Desktop/images/18082025/20/02/image_18082025_20_02_55_10622.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377715583","1377715580","1377715585","1377715579","1377715587","1377715581"],"photo_ids_order":["1377715579","1377715580","1377715581","1377715583","1377715585","1377715587"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/75da18ec0710fbb9ce679bdd6b6f9889.jpg","text":"TemporaryFile(/tmp/multipartBody1990184051497123610asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540274009,"filename":"image_18082025_20_03_14_9637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d960877e34cd40e576db37079b6bdafc.jpg","text":"TemporaryFile(/tmp/multipartBody2478378240116573236asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540274009,"filename":"image_18082025_20_03_35_9698.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c6262a5329978e258f9a758bc0f9797b.jpg","text":"TemporaryFile(/tmp/multipartBody6449091002345203162asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540274009,"filename":"image_18082025_20_03_05_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/662f54aa5c8d51c0d61c302554c318b6.jpg","text":"TemporaryFile(/tmp/multipartBody3098621088672998303asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540274009,"filename":"image_18082025_20_03_44_9653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/952a610a256e32f730527f7ecdf05fce.jpg","text":"TemporaryFile(/tmp/multipartBody4177546525214169205asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540274009,"filename":"image_18082025_20_02_55_10622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3ae85728dfcb9ef28d8dd815a152ce97.jpg","text":"TemporaryFile(/tmp/multipartBody5135003217222198777asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540274009,"filename":"image_18082025_20_03_25_10656.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377715581","file1":"1377715580","file0":"1377715579","file4":"1377715585","file5":"1377715587","file3":"1377715583"},"map_files_photo_id_array":[{"photo_id":"1377715587","filename":"file5"},{"photo_id":"1377715581","filename":"file2"},{"photo_id":"1377715585","filename":"file4"},{"photo_id":"1377715580","filename":"file1"},{"photo_id":"1377715579","filename":"file0"},{"photo_id":"1377715583","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377715583":["hashtag1","hashtag2"]},{"1377715580":["hashtag1","hashtag2"]},{"1377715585":["hashtag1","hashtag2"]},{"1377715579":["hashtag1","hashtag2"]},{"1377715587":["hashtag1","hashtag2"]},{"1377715581":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377715583, 1377715580, 1377715585, 1377715579, 1377715587, 1377715581)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.463534593582153 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:04:17.723116
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/04/image_18082025_20_04_45_10619.jpg', 2), ('/home/nano/Desktop/images/18082025/20/04/image_18082025_20_04_34_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/20/04/image_18082025_20_04_25_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/20/04/image_18082025_20_04_14_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/20/03/image_18082025_20_04_05_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/20/03/image_18082025_20_03_55_10619.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/04/image_18082025_20_04_45_10619.jpg', '/home/nano/Desktop/images/18082025/20/04/image_18082025_20_04_34_9622.jpg', '/home/nano/Desktop/images/18082025/20/04/image_18082025_20_04_25_10637.jpg', '/home/nano/Desktop/images/18082025/20/04/image_18082025_20_04_14_9652.jpg', '/home/nano/Desktop/images/18082025/20/03/image_18082025_20_04_05_9610.jpg', '/home/nano/Desktop/images/18082025/20/03/image_18082025_20_03_55_10619.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/04/image_18082025_20_04_45_10619.jpg
/home/nano/Desktop/images/18082025/20/04/image_18082025_20_04_34_9622.jpg
/home/nano/Desktop/images/18082025/20/04/image_18082025_20_04_25_10637.jpg
/home/nano/Desktop/images/18082025/20/04/image_18082025_20_04_14_9652.jpg
/home/nano/Desktop/images/18082025/20/03/image_18082025_20_04_05_9610.jpg
/home/nano/Desktop/images/18082025/20/03/image_18082025_20_03_55_10619.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377715602","1377715604","1377715597","1377715609","1377715600","1377715606"],"photo_ids_order":["1377715597","1377715600","1377715602","1377715604","1377715606","1377715609"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6f72962906524e9cf4640efa2558bcc2.jpg","text":"TemporaryFile(/tmp/multipartBody4278135563536856748asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540318957,"filename":"image_18082025_20_04_25_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4692d67f440d1276e209e7264f75a461.jpg","text":"TemporaryFile(/tmp/multipartBody8004551136859528300asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540318957,"filename":"image_18082025_20_04_14_9652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b4ba10d952411dea8283e8250e86643e.jpg","text":"TemporaryFile(/tmp/multipartBody5063097719568839938asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540318957,"filename":"image_18082025_20_04_45_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0248e7e4f35e48fa7a0dd35c51fe5e75.jpg","text":"TemporaryFile(/tmp/multipartBody427153576405254053asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540318957,"filename":"image_18082025_20_03_55_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/075d22eba57fb102b70bff0e03ebe238.jpg","text":"TemporaryFile(/tmp/multipartBody7108793333603281077asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540318957,"filename":"image_18082025_20_04_34_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/010d8f2b92b568a29e33ce615be84bd8.jpg","text":"TemporaryFile(/tmp/multipartBody7794303895943491500asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540318957,"filename":"image_18082025_20_04_05_9610.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377715602","file1":"1377715600","file0":"1377715597","file4":"1377715606","file5":"1377715609","file3":"1377715604"},"map_files_photo_id_array":[{"photo_id":"1377715609","filename":"file5"},{"photo_id":"1377715602","filename":"file2"},{"photo_id":"1377715606","filename":"file4"},{"photo_id":"1377715600","filename":"file1"},{"photo_id":"1377715597","filename":"file0"},{"photo_id":"1377715604","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377715602":["hashtag1","hashtag2"]},{"1377715604":["hashtag1","hashtag2"]},{"1377715597":["hashtag1","hashtag2"]},{"1377715609":["hashtag1","hashtag2"]},{"1377715600":["hashtag1","hashtag2"]},{"1377715606":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377715602, 1377715604, 1377715597, 1377715609, 1377715600, 1377715606)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.03353977203369 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:05:02.512607
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/23/image_18082025_09_23_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/09/22/image_18082025_09_23_05_9670.jpg', 2), ('/home/nano/Desktop/images/18082025/09/22/image_18082025_09_22_55_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/09/22/image_18082025_09_22_44_9696.jpg', 2), ('/home/nano/Desktop/images/18082025/09/22/image_18082025_09_22_35_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/09/22/image_18082025_09_22_25_10637.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/23/image_18082025_09_23_14_9663.jpg', '/home/nano/Desktop/images/18082025/09/22/image_18082025_09_23_05_9670.jpg', '/home/nano/Desktop/images/18082025/09/22/image_18082025_09_22_55_10659.jpg', '/home/nano/Desktop/images/18082025/09/22/image_18082025_09_22_44_9696.jpg', '/home/nano/Desktop/images/18082025/09/22/image_18082025_09_22_35_9663.jpg', '/home/nano/Desktop/images/18082025/09/22/image_18082025_09_22_25_10637.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/23/image_18082025_09_23_14_9663.jpg
/home/nano/Desktop/images/18082025/09/22/image_18082025_09_23_05_9670.jpg
/home/nano/Desktop/images/18082025/09/22/image_18082025_09_22_55_10659.jpg
/home/nano/Desktop/images/18082025/09/22/image_18082025_09_22_44_9696.jpg
/home/nano/Desktop/images/18082025/09/22/image_18082025_09_22_35_9663.jpg
/home/nano/Desktop/images/18082025/09/22/image_18082025_09_22_25_10637.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377715629","1377715622","1377715612","1377715615","1377715618","1377715626"],"photo_ids_order":["1377715612","1377715615","1377715618","1377715622","1377715626","1377715629"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e9801ed30af7e4be4a242c3d5918da14.jpg","text":"TemporaryFile(/tmp/multipartBody4226663111720376504asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540363764,"filename":"image_18082025_09_22_25_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1c24d9de1b84c5ecedfc093f47f553d2.jpg","text":"TemporaryFile(/tmp/multipartBody790096338908986621asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540363764,"filename":"image_18082025_09_22_44_9696.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9fe6c68664c959666773734fdd710ef8.jpg","text":"TemporaryFile(/tmp/multipartBody5148745529519541344asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540363764,"filename":"image_18082025_09_23_14_9663.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2c8066750fb64a55560a0454b85f6d97.jpg","text":"TemporaryFile(/tmp/multipartBody5354494892842586829asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540363764,"filename":"image_18082025_09_23_05_9670.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4fd3f8df49a2aa2505252f1fab8c64f0.jpg","text":"TemporaryFile(/tmp/multipartBody5079306741387298950asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540363764,"filename":"image_18082025_09_22_55_10659.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8f1c2f6d7dfd88dccc62c3aa552cefbc.jpg","text":"TemporaryFile(/tmp/multipartBody7079619358942815648asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540363764,"filename":"image_18082025_09_22_35_9663.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377715618","file1":"1377715615","file0":"1377715612","file4":"1377715626","file5":"1377715629","file3":"1377715622"},"map_files_photo_id_array":[{"photo_id":"1377715629","filename":"file5"},{"photo_id":"1377715618","filename":"file2"},{"photo_id":"1377715626","filename":"file4"},{"photo_id":"1377715615","filename":"file1"},{"photo_id":"1377715612","filename":"file0"},{"photo_id":"1377715622","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377715629":["hashtag1","hashtag2"]},{"1377715622":["hashtag1","hashtag2"]},{"1377715612":["hashtag1","hashtag2"]},{"1377715615":["hashtag1","hashtag2"]},{"1377715618":["hashtag1","hashtag2"]},{"1377715626":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377715629, 1377715622, 1377715612, 1377715615, 1377715618, 1377715626)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.199806928634644 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:05:46.745274
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/05/image_18082025_20_05_45_10619.jpg', 2), ('/home/nano/Desktop/images/18082025/20/05/image_18082025_20_05_34_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/20/05/image_18082025_20_05_25_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/20/05/image_18082025_20_05_15_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/20/04/image_18082025_20_05_04_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/20/04/image_18082025_20_04_55_9607.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/05/image_18082025_20_05_45_10619.jpg', '/home/nano/Desktop/images/18082025/20/05/image_18082025_20_05_34_9616.jpg', '/home/nano/Desktop/images/18082025/20/05/image_18082025_20_05_25_9611.jpg', '/home/nano/Desktop/images/18082025/20/05/image_18082025_20_05_15_10650.jpg', '/home/nano/Desktop/images/18082025/20/04/image_18082025_20_05_04_9624.jpg', '/home/nano/Desktop/images/18082025/20/04/image_18082025_20_04_55_9607.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/05/image_18082025_20_05_45_10619.jpg
/home/nano/Desktop/images/18082025/20/05/image_18082025_20_05_34_9616.jpg
/home/nano/Desktop/images/18082025/20/05/image_18082025_20_05_25_9611.jpg
/home/nano/Desktop/images/18082025/20/05/image_18082025_20_05_15_10650.jpg
/home/nano/Desktop/images/18082025/20/04/image_18082025_20_05_04_9624.jpg
/home/nano/Desktop/images/18082025/20/04/image_18082025_20_04_55_9607.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377715652","1377715657","1377715645","1377715654","1377715650","1377715647"],"photo_ids_order":["1377715645","1377715647","1377715650","1377715652","1377715654","1377715657"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c0beac58fb948a57a5ab91533513e767.jpg","text":"TemporaryFile(/tmp/multipartBody4818919778851874240asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540407937,"filename":"image_18082025_20_05_15_10650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fb76079ecd951669ecc17f60e77684ed.jpg","text":"TemporaryFile(/tmp/multipartBody6914774866095806698asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540407937,"filename":"image_18082025_20_04_55_9607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/94ab35bae72078ccaf219a8a53acb5c1.jpg","text":"TemporaryFile(/tmp/multipartBody4905734580110395565asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540407937,"filename":"image_18082025_20_05_45_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0f073d1a2bfdae960c37569797a840f6.jpg","text":"TemporaryFile(/tmp/multipartBody7772923352252406603asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540407937,"filename":"image_18082025_20_05_04_9624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a2da7716f50719e9c87fe330f9ee5191.jpg","text":"TemporaryFile(/tmp/multipartBody8508132222833624474asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540407937,"filename":"image_18082025_20_05_25_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/049bcf0f17f71e9876d8409c5b6a7d6e.jpg","text":"TemporaryFile(/tmp/multipartBody6093566847686438168asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540407937,"filename":"image_18082025_20_05_34_9616.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377715650","file1":"1377715647","file0":"1377715645","file4":"1377715654","file5":"1377715657","file3":"1377715652"},"map_files_photo_id_array":[{"photo_id":"1377715657","filename":"file5"},{"photo_id":"1377715650","filename":"file2"},{"photo_id":"1377715654","filename":"file4"},{"photo_id":"1377715647","filename":"file1"},{"photo_id":"1377715645","filename":"file0"},{"photo_id":"1377715652","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377715652":["hashtag1","hashtag2"]},{"1377715657":["hashtag1","hashtag2"]},{"1377715645":["hashtag1","hashtag2"]},{"1377715654":["hashtag1","hashtag2"]},{"1377715650":["hashtag1","hashtag2"]},{"1377715647":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377715652, 1377715657, 1377715645, 1377715654, 1377715650, 1377715647)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.781882762908936 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:06:31.867970
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/06/image_18082025_20_06_45_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/20/06/image_18082025_20_06_35_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/20/06/image_18082025_20_06_24_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/20/06/image_18082025_20_06_15_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/20/05/image_18082025_20_06_04_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/20/05/image_18082025_20_05_54_9629.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/06/image_18082025_20_06_45_9632.jpg', '/home/nano/Desktop/images/18082025/20/06/image_18082025_20_06_35_10629.jpg', '/home/nano/Desktop/images/18082025/20/06/image_18082025_20_06_24_9616.jpg', '/home/nano/Desktop/images/18082025/20/06/image_18082025_20_06_15_10651.jpg', '/home/nano/Desktop/images/18082025/20/05/image_18082025_20_06_04_9649.jpg', '/home/nano/Desktop/images/18082025/20/05/image_18082025_20_05_54_9629.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/06/image_18082025_20_06_45_9632.jpg
/home/nano/Desktop/images/18082025/20/06/image_18082025_20_06_35_10629.jpg
/home/nano/Desktop/images/18082025/20/06/image_18082025_20_06_24_9616.jpg
/home/nano/Desktop/images/18082025/20/06/image_18082025_20_06_15_10651.jpg
/home/nano/Desktop/images/18082025/20/05/image_18082025_20_06_04_9649.jpg
/home/nano/Desktop/images/18082025/20/05/image_18082025_20_05_54_9629.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377715682","1377715688","1377715687","1377715684","1377715678","1377715686"],"photo_ids_order":["1377715678","1377715682","1377715684","1377715686","1377715687","1377715688"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b4da49a7f9793b3d34a947b4e2db74e9.jpg","text":"TemporaryFile(/tmp/multipartBody8865678835292778219asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540453377,"filename":"image_18082025_20_06_35_10629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ee9cc75a2c58aeca9a3f83c5d160bd05.jpg","text":"TemporaryFile(/tmp/multipartBody1413487122784307576asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540453377,"filename":"image_18082025_20_05_54_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4d67ad9905d5b5607f7772dadf8a374e.jpg","text":"TemporaryFile(/tmp/multipartBody7531330281695991931asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540453377,"filename":"image_18082025_20_06_04_9649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/79f768d54d731dfdb635e3ac71b0365f.jpg","text":"TemporaryFile(/tmp/multipartBody2177444127886966495asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540453377,"filename":"image_18082025_20_06_24_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/17a9a6e751a8342d0d2bd80fc86d2cc8.jpg","text":"TemporaryFile(/tmp/multipartBody7392923800459623836asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540453377,"filename":"image_18082025_20_06_45_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/46e62d0799d586cf07f2688c7a740aca.jpg","text":"TemporaryFile(/tmp/multipartBody5436022827488703097asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540453377,"filename":"image_18082025_20_06_15_10651.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377715684","file1":"1377715682","file0":"1377715678","file4":"1377715687","file5":"1377715688","file3":"1377715686"},"map_files_photo_id_array":[{"photo_id":"1377715688","filename":"file5"},{"photo_id":"1377715684","filename":"file2"},{"photo_id":"1377715687","filename":"file4"},{"photo_id":"1377715682","filename":"file1"},{"photo_id":"1377715678","filename":"file0"},{"photo_id":"1377715686","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377715682":["hashtag1","hashtag2"]},{"1377715688":["hashtag1","hashtag2"]},{"1377715687":["hashtag1","hashtag2"]},{"1377715684":["hashtag1","hashtag2"]},{"1377715678":["hashtag1","hashtag2"]},{"1377715686":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377715682, 1377715688, 1377715687, 1377715684, 1377715678, 1377715686)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.147361516952515 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:07:16.966681
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/07/image_18082025_20_07_45_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/20/07/image_18082025_20_07_35_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/20/07/image_18082025_20_07_24_9745.jpg', 2), ('/home/nano/Desktop/images/18082025/20/07/image_18082025_20_07_15_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/20/06/image_18082025_20_07_05_10662.jpg', 2), ('/home/nano/Desktop/images/18082025/20/06/image_18082025_20_06_54_9621.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/07/image_18082025_20_07_45_9649.jpg', '/home/nano/Desktop/images/18082025/20/07/image_18082025_20_07_35_10655.jpg', '/home/nano/Desktop/images/18082025/20/07/image_18082025_20_07_24_9745.jpg', '/home/nano/Desktop/images/18082025/20/07/image_18082025_20_07_15_9650.jpg', '/home/nano/Desktop/images/18082025/20/06/image_18082025_20_07_05_10662.jpg', '/home/nano/Desktop/images/18082025/20/06/image_18082025_20_06_54_9621.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/07/image_18082025_20_07_45_9649.jpg
/home/nano/Desktop/images/18082025/20/07/image_18082025_20_07_35_10655.jpg
/home/nano/Desktop/images/18082025/20/07/image_18082025_20_07_24_9745.jpg
/home/nano/Desktop/images/18082025/20/07/image_18082025_20_07_15_9650.jpg
/home/nano/Desktop/images/18082025/20/06/image_18082025_20_07_05_10662.jpg
/home/nano/Desktop/images/18082025/20/06/image_18082025_20_06_54_9621.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377715713","1377715715","1377715700","1377715712","1377715705","1377715710"],"photo_ids_order":["1377715700","1377715705","1377715710","1377715712","1377715713","1377715715"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e5d822b04d84f86622f03dacc450424b.jpg","text":"TemporaryFile(/tmp/multipartBody4656239192315202850asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540498437,"filename":"image_18082025_20_07_05_10662.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d04267284ed9d3473588560d0305b7d2.jpg","text":"TemporaryFile(/tmp/multipartBody7763477609341691170asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540498437,"filename":"image_18082025_20_06_54_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7fbe1c8c470386c9bc5548716bf41bb7.jpg","text":"TemporaryFile(/tmp/multipartBody5041982843361071391asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540498437,"filename":"image_18082025_20_07_45_9649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4c41b3a62da13d89fd4a077b5155dcde.jpg","text":"TemporaryFile(/tmp/multipartBody1137561702408128886asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540498437,"filename":"image_18082025_20_07_15_9650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9b54a7701efaa245e39ab47e60ef10cd.jpg","text":"TemporaryFile(/tmp/multipartBody4375839231543345991asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540498437,"filename":"image_18082025_20_07_35_10655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/17c810962dab9b6f87e529710912cdb3.jpg","text":"TemporaryFile(/tmp/multipartBody5587085538915109837asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540498437,"filename":"image_18082025_20_07_24_9745.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377715710","file1":"1377715705","file0":"1377715700","file4":"1377715713","file5":"1377715715","file3":"1377715712"},"map_files_photo_id_array":[{"photo_id":"1377715715","filename":"file5"},{"photo_id":"1377715710","filename":"file2"},{"photo_id":"1377715713","filename":"file4"},{"photo_id":"1377715705","filename":"file1"},{"photo_id":"1377715700","filename":"file0"},{"photo_id":"1377715712","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377715713":["hashtag1","hashtag2"]},{"1377715715":["hashtag1","hashtag2"]},{"1377715700":["hashtag1","hashtag2"]},{"1377715712":["hashtag1","hashtag2"]},{"1377715705":["hashtag1","hashtag2"]},{"1377715710":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377715713, 1377715715, 1377715700, 1377715712, 1377715705, 1377715710)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 36.93402123451233 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:08:02.642385
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/22/image_18082025_09_22_14_9675.jpg', 2), ('/home/nano/Desktop/images/18082025/09/21/image_18082025_09_22_05_9685.jpg', 2), ('/home/nano/Desktop/images/18082025/09/21/image_18082025_09_21_55_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/09/21/image_18082025_09_21_44_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/09/21/image_18082025_09_21_35_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/09/21/image_18082025_09_21_24_9615.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/22/image_18082025_09_22_14_9675.jpg', '/home/nano/Desktop/images/18082025/09/21/image_18082025_09_22_05_9685.jpg', '/home/nano/Desktop/images/18082025/09/21/image_18082025_09_21_55_10642.jpg', '/home/nano/Desktop/images/18082025/09/21/image_18082025_09_21_44_9642.jpg', '/home/nano/Desktop/images/18082025/09/21/image_18082025_09_21_35_10627.jpg', '/home/nano/Desktop/images/18082025/09/21/image_18082025_09_21_24_9615.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/22/image_18082025_09_22_14_9675.jpg
/home/nano/Desktop/images/18082025/09/21/image_18082025_09_22_05_9685.jpg
/home/nano/Desktop/images/18082025/09/21/image_18082025_09_21_55_10642.jpg
/home/nano/Desktop/images/18082025/09/21/image_18082025_09_21_44_9642.jpg
/home/nano/Desktop/images/18082025/09/21/image_18082025_09_21_35_10627.jpg
/home/nano/Desktop/images/18082025/09/21/image_18082025_09_21_24_9615.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377715741","1377715738","1377715723","1377715726","1377715735","1377715731"],"photo_ids_order":["1377715723","1377715726","1377715731","1377715735","1377715738","1377715741"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e2508930d82b6304d1131315bb59b9f0.jpg","text":"TemporaryFile(/tmp/multipartBody657467390261591348asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540543825,"filename":"image_18082025_09_21_24_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f0194d817379e88c6da5d5831dbafdf1.jpg","text":"TemporaryFile(/tmp/multipartBody27239716467330822asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540543825,"filename":"image_18082025_09_21_35_10627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8c48fe60cf612048ab12c5347fb384c9.jpg","text":"TemporaryFile(/tmp/multipartBody9085786691870657984asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540543825,"filename":"image_18082025_09_22_14_9675.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/38be8c1288e3dee7891fcd0e668353dd.jpg","text":"TemporaryFile(/tmp/multipartBody3992174505413844762asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540543825,"filename":"image_18082025_09_22_05_9685.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3df232d5bea13d5988a0c8e4933ce8d2.jpg","text":"TemporaryFile(/tmp/multipartBody4387241890008869184asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540543825,"filename":"image_18082025_09_21_44_9642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d82910239cf458f2449af951b7dcf9db.jpg","text":"TemporaryFile(/tmp/multipartBody6256666933192766627asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540543825,"filename":"image_18082025_09_21_55_10642.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377715731","file1":"1377715726","file0":"1377715723","file4":"1377715738","file5":"1377715741","file3":"1377715735"},"map_files_photo_id_array":[{"photo_id":"1377715741","filename":"file5"},{"photo_id":"1377715731","filename":"file2"},{"photo_id":"1377715738","filename":"file4"},{"photo_id":"1377715726","filename":"file1"},{"photo_id":"1377715723","filename":"file0"},{"photo_id":"1377715735","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377715741":["hashtag1","hashtag2"]},{"1377715738":["hashtag1","hashtag2"]},{"1377715723":["hashtag1","hashtag2"]},{"1377715726":["hashtag1","hashtag2"]},{"1377715735":["hashtag1","hashtag2"]},{"1377715731":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377715741, 1377715738, 1377715723, 1377715726, 1377715735, 1377715731)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.55648374557495 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:08:47.114029
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/08/image_18082025_20_08_44_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/20/08/image_18082025_20_08_35_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/20/08/image_18082025_20_08_24_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/20/08/image_18082025_20_08_14_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/20/07/image_18082025_20_08_05_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/20/07/image_18082025_20_07_54_9610.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/08/image_18082025_20_08_44_9612.jpg', '/home/nano/Desktop/images/18082025/20/08/image_18082025_20_08_35_10621.jpg', '/home/nano/Desktop/images/18082025/20/08/image_18082025_20_08_24_9613.jpg', '/home/nano/Desktop/images/18082025/20/08/image_18082025_20_08_14_9633.jpg', '/home/nano/Desktop/images/18082025/20/07/image_18082025_20_08_05_10649.jpg', '/home/nano/Desktop/images/18082025/20/07/image_18082025_20_07_54_9610.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/08/image_18082025_20_08_44_9612.jpg
/home/nano/Desktop/images/18082025/20/08/image_18082025_20_08_35_10621.jpg
/home/nano/Desktop/images/18082025/20/08/image_18082025_20_08_24_9613.jpg
/home/nano/Desktop/images/18082025/20/08/image_18082025_20_08_14_9633.jpg
/home/nano/Desktop/images/18082025/20/07/image_18082025_20_08_05_10649.jpg
/home/nano/Desktop/images/18082025/20/07/image_18082025_20_07_54_9610.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377715763","1377715756","1377715759","1377715750","1377715753","1377715747"],"photo_ids_order":["1377715747","1377715750","1377715753","1377715756","1377715759","1377715763"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/63596b01d3cffd1ba2e4a1ed11e3b604.jpg","text":"TemporaryFile(/tmp/multipartBody7632795860386959346asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540588661,"filename":"image_18082025_20_07_54_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/75d8287824c48c7ee019323985103f1d.jpg","text":"TemporaryFile(/tmp/multipartBody6809314268117353584asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540588661,"filename":"image_18082025_20_08_14_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b68fc8f0cd1d96f3df98d0c72657a0c3.jpg","text":"TemporaryFile(/tmp/multipartBody6990129111695932773asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540588661,"filename":"image_18082025_20_08_05_10649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/80f5fc43c8ecc02173f667ef729845bc.jpg","text":"TemporaryFile(/tmp/multipartBody7961809692911587110asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540588661,"filename":"image_18082025_20_08_35_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0b11cba20b7f27a166de24aca88fa6d4.jpg","text":"TemporaryFile(/tmp/multipartBody3317742739229594688asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540588661,"filename":"image_18082025_20_08_24_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/63d3ba13bdebdae0c810bd9b5a2f2a5f.jpg","text":"TemporaryFile(/tmp/multipartBody2463807224294085019asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540588661,"filename":"image_18082025_20_08_44_9612.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377715753","file1":"1377715750","file0":"1377715747","file4":"1377715759","file5":"1377715763","file3":"1377715756"},"map_files_photo_id_array":[{"photo_id":"1377715763","filename":"file5"},{"photo_id":"1377715753","filename":"file2"},{"photo_id":"1377715759","filename":"file4"},{"photo_id":"1377715750","filename":"file1"},{"photo_id":"1377715747","filename":"file0"},{"photo_id":"1377715756","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377715763":["hashtag1","hashtag2"]},{"1377715756":["hashtag1","hashtag2"]},{"1377715759":["hashtag1","hashtag2"]},{"1377715750":["hashtag1","hashtag2"]},{"1377715753":["hashtag1","hashtag2"]},{"1377715747":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377715763, 1377715756, 1377715759, 1377715750, 1377715753, 1377715747)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.1463406085968 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:09:32.198428
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/09/image_18082025_20_09_44_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/20/09/image_18082025_20_09_34_9611.jpg', 2), ('/home/nano/Desktop/images/18082025/20/09/image_18082025_20_09_25_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/20/09/image_18082025_20_09_14_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/20/08/image_18082025_20_09_05_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/20/08/image_18082025_20_08_55_10622.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/09/image_18082025_20_09_44_9610.jpg', '/home/nano/Desktop/images/18082025/20/09/image_18082025_20_09_34_9611.jpg', '/home/nano/Desktop/images/18082025/20/09/image_18082025_20_09_25_10625.jpg', '/home/nano/Desktop/images/18082025/20/09/image_18082025_20_09_14_9636.jpg', '/home/nano/Desktop/images/18082025/20/08/image_18082025_20_09_05_9653.jpg', '/home/nano/Desktop/images/18082025/20/08/image_18082025_20_08_55_10622.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/09/image_18082025_20_09_44_9610.jpg
/home/nano/Desktop/images/18082025/20/09/image_18082025_20_09_34_9611.jpg
/home/nano/Desktop/images/18082025/20/09/image_18082025_20_09_25_10625.jpg
/home/nano/Desktop/images/18082025/20/09/image_18082025_20_09_14_9636.jpg
/home/nano/Desktop/images/18082025/20/08/image_18082025_20_09_05_9653.jpg
/home/nano/Desktop/images/18082025/20/08/image_18082025_20_08_55_10622.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377715800","1377715784","1377715787","1377715780","1377715804","1377715782"],"photo_ids_order":["1377715780","1377715782","1377715784","1377715787","1377715800","1377715804"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/84643ee2855c25606d8138188f3482ff.jpg","text":"TemporaryFile(/tmp/multipartBody9175690880460386857asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540633623,"filename":"image_18082025_20_09_05_9653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1ed5e1aff1eff94b5a88ad6e2198b125.jpg","text":"TemporaryFile(/tmp/multipartBody6687154213619515520asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540633623,"filename":"image_18082025_20_09_25_10625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6391ebf5567ffd16079e8f31a45102c4.jpg","text":"TemporaryFile(/tmp/multipartBody7945707163134880940asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540633623,"filename":"image_18082025_20_09_14_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e9e5973f81d673e67a225fe3f39122cf.jpg","text":"TemporaryFile(/tmp/multipartBody2357160394490943008asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540633623,"filename":"image_18082025_20_09_44_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d806ee4fb28dfc3eee193286a1549d6d.jpg","text":"TemporaryFile(/tmp/multipartBody1281167870982319680asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540633623,"filename":"image_18082025_20_08_55_10622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1c1b8de1637490fc2065acd705bf553c.jpg","text":"TemporaryFile(/tmp/multipartBody812713484927894916asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540633623,"filename":"image_18082025_20_09_34_9611.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377715784","file1":"1377715782","file0":"1377715780","file4":"1377715800","file5":"1377715804","file3":"1377715787"},"map_files_photo_id_array":[{"photo_id":"1377715804","filename":"file5"},{"photo_id":"1377715784","filename":"file2"},{"photo_id":"1377715800","filename":"file4"},{"photo_id":"1377715782","filename":"file1"},{"photo_id":"1377715780","filename":"file0"},{"photo_id":"1377715787","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377715800":["hashtag1","hashtag2"]},{"1377715784":["hashtag1","hashtag2"]},{"1377715787":["hashtag1","hashtag2"]},{"1377715780":["hashtag1","hashtag2"]},{"1377715804":["hashtag1","hashtag2"]},{"1377715782":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377715800, 1377715784, 1377715787, 1377715780, 1377715804, 1377715782)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.280940771102905 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:10:17.327082
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/10/image_18082025_20_10_45_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/20/10/image_18082025_20_10_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/20/10/image_18082025_20_10_25_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/20/10/image_18082025_20_10_15_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/20/09/image_18082025_20_10_04_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/20/09/image_18082025_20_09_55_10617.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/10/image_18082025_20_10_45_10656.jpg', '/home/nano/Desktop/images/18082025/20/10/image_18082025_20_10_34_9640.jpg', '/home/nano/Desktop/images/18082025/20/10/image_18082025_20_10_25_9620.jpg', '/home/nano/Desktop/images/18082025/20/10/image_18082025_20_10_15_10673.jpg', '/home/nano/Desktop/images/18082025/20/09/image_18082025_20_10_04_9628.jpg', '/home/nano/Desktop/images/18082025/20/09/image_18082025_20_09_55_10617.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/10/image_18082025_20_10_45_10656.jpg
/home/nano/Desktop/images/18082025/20/10/image_18082025_20_10_34_9640.jpg
/home/nano/Desktop/images/18082025/20/10/image_18082025_20_10_25_9620.jpg
/home/nano/Desktop/images/18082025/20/10/image_18082025_20_10_15_10673.jpg
/home/nano/Desktop/images/18082025/20/09/image_18082025_20_10_04_9628.jpg
/home/nano/Desktop/images/18082025/20/09/image_18082025_20_09_55_10617.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377715827","1377715829","1377715822","1377715831","1377715825","1377715819"],"photo_ids_order":["1377715819","1377715822","1377715825","1377715827","1377715829","1377715831"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/669cb8e71c0db80aa2f23fd89646ea95.jpg","text":"TemporaryFile(/tmp/multipartBody507202697056256128asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540678851,"filename":"image_18082025_20_10_15_10673.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bfec504efb80bbcc263da80c5b0c5865.jpg","text":"TemporaryFile(/tmp/multipartBody8298844839685462468asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540678851,"filename":"image_18082025_20_10_04_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/827830c63031e759a39c9f19ccdc1a97.jpg","text":"TemporaryFile(/tmp/multipartBody4127629350823647677asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540678851,"filename":"image_18082025_20_10_34_9640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fd8e234e536cb772cf118e74f77387ab.jpg","text":"TemporaryFile(/tmp/multipartBody2263148445921695416asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540678851,"filename":"image_18082025_20_09_55_10617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4d23bef815e63a9ae304e3b4921000f0.jpg","text":"TemporaryFile(/tmp/multipartBody1865131943388109335asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540678851,"filename":"image_18082025_20_10_25_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d1c3fc4aa678af27ffc19112d9de1537.jpg","text":"TemporaryFile(/tmp/multipartBody5915085202787829042asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540678851,"filename":"image_18082025_20_10_45_10656.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377715825","file1":"1377715822","file0":"1377715819","file4":"1377715829","file5":"1377715831","file3":"1377715827"},"map_files_photo_id_array":[{"photo_id":"1377715831","filename":"file5"},{"photo_id":"1377715825","filename":"file2"},{"photo_id":"1377715829","filename":"file4"},{"photo_id":"1377715822","filename":"file1"},{"photo_id":"1377715819","filename":"file0"},{"photo_id":"1377715827","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377715827":["hashtag1","hashtag2"]},{"1377715829":["hashtag1","hashtag2"]},{"1377715822":["hashtag1","hashtag2"]},{"1377715831":["hashtag1","hashtag2"]},{"1377715825":["hashtag1","hashtag2"]},{"1377715819":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377715827, 1377715829, 1377715822, 1377715831, 1377715825, 1377715819)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.483065366744995 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:11:03.254685
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/21/image_18082025_09_21_15_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/09/20/image_18082025_09_21_05_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/09/20/image_18082025_09_20_54_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/09/20/image_18082025_09_20_45_9697.jpg', 2), ('/home/nano/Desktop/images/18082025/09/20/image_18082025_09_20_35_10683.jpg', 2), ('/home/nano/Desktop/images/18082025/09/20/image_18082025_09_20_24_9629.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/21/image_18082025_09_21_15_9662.jpg', '/home/nano/Desktop/images/18082025/09/20/image_18082025_09_21_05_10630.jpg', '/home/nano/Desktop/images/18082025/09/20/image_18082025_09_20_54_9652.jpg', '/home/nano/Desktop/images/18082025/09/20/image_18082025_09_20_45_9697.jpg', '/home/nano/Desktop/images/18082025/09/20/image_18082025_09_20_35_10683.jpg', '/home/nano/Desktop/images/18082025/09/20/image_18082025_09_20_24_9629.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/21/image_18082025_09_21_15_9662.jpg
/home/nano/Desktop/images/18082025/09/20/image_18082025_09_21_05_10630.jpg
/home/nano/Desktop/images/18082025/09/20/image_18082025_09_20_54_9652.jpg
/home/nano/Desktop/images/18082025/09/20/image_18082025_09_20_45_9697.jpg
/home/nano/Desktop/images/18082025/09/20/image_18082025_09_20_35_10683.jpg
/home/nano/Desktop/images/18082025/09/20/image_18082025_09_20_24_9629.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377715844","1377715855","1377715840","1377715851","1377715848","1377715836"],"photo_ids_order":["1377715836","1377715840","1377715844","1377715848","1377715851","1377715855"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/757dc738c31874abdaa7716ba307d8e6.jpg","text":"TemporaryFile(/tmp/multipartBody7079773590027536620asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540724640,"filename":"image_18082025_09_20_54_9652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/68e7fdb8b65a1ba834490f2a1a8141e6.jpg","text":"TemporaryFile(/tmp/multipartBody3805993409678380225asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540724640,"filename":"image_18082025_09_20_24_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6d3e08bbb26f541a8be5d3f33a951ccb.jpg","text":"TemporaryFile(/tmp/multipartBody4471137810261518560asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540724640,"filename":"image_18082025_09_21_05_10630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ec4ea7875330a226c11c4a70300f1921.jpg","text":"TemporaryFile(/tmp/multipartBody8945384409839617193asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540724640,"filename":"image_18082025_09_20_35_10683.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d8e7eb6386592a1982b1ba62a6427b7a.jpg","text":"TemporaryFile(/tmp/multipartBody4984961801036956177asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540724640,"filename":"image_18082025_09_20_45_9697.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7163a24aa58046fe7e746fa666406b04.jpg","text":"TemporaryFile(/tmp/multipartBody7902225539418090690asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540724640,"filename":"image_18082025_09_21_15_9662.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377715844","file1":"1377715840","file0":"1377715836","file4":"1377715851","file5":"1377715855","file3":"1377715848"},"map_files_photo_id_array":[{"photo_id":"1377715855","filename":"file5"},{"photo_id":"1377715844","filename":"file2"},{"photo_id":"1377715851","filename":"file4"},{"photo_id":"1377715840","filename":"file1"},{"photo_id":"1377715836","filename":"file0"},{"photo_id":"1377715848","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377715844":["hashtag1","hashtag2"]},{"1377715855":["hashtag1","hashtag2"]},{"1377715840":["hashtag1","hashtag2"]},{"1377715851":["hashtag1","hashtag2"]},{"1377715848":["hashtag1","hashtag2"]},{"1377715836":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377715844, 1377715855, 1377715840, 1377715851, 1377715848, 1377715836)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.527774810791016 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:11:47.428539
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/11/image_18082025_20_11_44_9679.jpg', 2), ('/home/nano/Desktop/images/18082025/20/11/image_18082025_20_11_34_9730.jpg', 2), ('/home/nano/Desktop/images/18082025/20/11/image_18082025_20_11_25_9715.jpg', 2), ('/home/nano/Desktop/images/18082025/20/11/image_18082025_20_11_15_10754.jpg', 2), ('/home/nano/Desktop/images/18082025/20/10/image_18082025_20_11_04_9714.jpg', 2), ('/home/nano/Desktop/images/18082025/20/10/image_18082025_20_10_55_9636.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/11/image_18082025_20_11_44_9679.jpg', '/home/nano/Desktop/images/18082025/20/11/image_18082025_20_11_34_9730.jpg', '/home/nano/Desktop/images/18082025/20/11/image_18082025_20_11_25_9715.jpg', '/home/nano/Desktop/images/18082025/20/11/image_18082025_20_11_15_10754.jpg', '/home/nano/Desktop/images/18082025/20/10/image_18082025_20_11_04_9714.jpg', '/home/nano/Desktop/images/18082025/20/10/image_18082025_20_10_55_9636.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/11/image_18082025_20_11_44_9679.jpg
/home/nano/Desktop/images/18082025/20/11/image_18082025_20_11_34_9730.jpg
/home/nano/Desktop/images/18082025/20/11/image_18082025_20_11_25_9715.jpg
/home/nano/Desktop/images/18082025/20/11/image_18082025_20_11_15_10754.jpg
/home/nano/Desktop/images/18082025/20/10/image_18082025_20_11_04_9714.jpg
/home/nano/Desktop/images/18082025/20/10/image_18082025_20_10_55_9636.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377715862","1377715871","1377715867","1377715864","1377715875","1377715860"],"photo_ids_order":["1377715860","1377715862","1377715864","1377715867","1377715871","1377715875"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0d6cc4205d384c051fe747d9dfdd86a0.jpg","text":"TemporaryFile(/tmp/multipartBody2126100148674649990asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540769376,"filename":"image_18082025_20_11_34_9730.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a00756b09f729fc6587639e2bb1cd3fa.jpg","text":"TemporaryFile(/tmp/multipartBody6509507642499485334asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540769376,"filename":"image_18082025_20_11_04_9714.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/956be2d8303a6b67858cc77935b15e7f.jpg","text":"TemporaryFile(/tmp/multipartBody2437690429884147096asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540769376,"filename":"image_18082025_20_11_15_10754.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fb0286f6d813afc1d775ff90fb174640.jpg","text":"TemporaryFile(/tmp/multipartBody2354999673600809365asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540769376,"filename":"image_18082025_20_11_25_9715.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0c275e76b29ad5a8452be3d49aeca1df.jpg","text":"TemporaryFile(/tmp/multipartBody8637918265709051713asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540769376,"filename":"image_18082025_20_10_55_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5855c41c8d1f40dd4a5d954ebe30203c.jpg","text":"TemporaryFile(/tmp/multipartBody3153766628528863279asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540769376,"filename":"image_18082025_20_11_44_9679.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377715864","file1":"1377715862","file0":"1377715860","file4":"1377715871","file5":"1377715875","file3":"1377715867"},"map_files_photo_id_array":[{"photo_id":"1377715875","filename":"file5"},{"photo_id":"1377715864","filename":"file2"},{"photo_id":"1377715871","filename":"file4"},{"photo_id":"1377715862","filename":"file1"},{"photo_id":"1377715860","filename":"file0"},{"photo_id":"1377715867","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377715862":["hashtag1","hashtag2"]},{"1377715871":["hashtag1","hashtag2"]},{"1377715867":["hashtag1","hashtag2"]},{"1377715864":["hashtag1","hashtag2"]},{"1377715875":["hashtag1","hashtag2"]},{"1377715860":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377715862, 1377715871, 1377715867, 1377715864, 1377715875, 1377715860)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.60766386985779 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:12:32.563769
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/12/image_18082025_20_12_44_9717.jpg', 2), ('/home/nano/Desktop/images/18082025/20/12/image_18082025_20_12_35_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/20/12/image_18082025_20_12_25_10609.jpg', 2), ('/home/nano/Desktop/images/18082025/20/12/image_18082025_20_12_14_9733.jpg', 2), ('/home/nano/Desktop/images/18082025/20/11/image_18082025_20_12_05_9718.jpg', 2), ('/home/nano/Desktop/images/18082025/20/11/image_18082025_20_11_55_10729.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/12/image_18082025_20_12_44_9717.jpg', '/home/nano/Desktop/images/18082025/20/12/image_18082025_20_12_35_9646.jpg', '/home/nano/Desktop/images/18082025/20/12/image_18082025_20_12_25_10609.jpg', '/home/nano/Desktop/images/18082025/20/12/image_18082025_20_12_14_9733.jpg', '/home/nano/Desktop/images/18082025/20/11/image_18082025_20_12_05_9718.jpg', '/home/nano/Desktop/images/18082025/20/11/image_18082025_20_11_55_10729.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/12/image_18082025_20_12_44_9717.jpg
/home/nano/Desktop/images/18082025/20/12/image_18082025_20_12_35_9646.jpg
/home/nano/Desktop/images/18082025/20/12/image_18082025_20_12_25_10609.jpg
/home/nano/Desktop/images/18082025/20/12/image_18082025_20_12_14_9733.jpg
/home/nano/Desktop/images/18082025/20/11/image_18082025_20_12_05_9718.jpg
/home/nano/Desktop/images/18082025/20/11/image_18082025_20_11_55_10729.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377715889","1377715891","1377715885","1377715893","1377715887","1377715892"],"photo_ids_order":["1377715885","1377715887","1377715889","1377715891","1377715892","1377715893"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5759e8faa457a6b371124147d998b737.jpg","text":"TemporaryFile(/tmp/multipartBody8956934457098999704asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540814233,"filename":"image_18082025_20_12_25_10609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9443e314c436a2b137dc2e30ce63f1c4.jpg","text":"TemporaryFile(/tmp/multipartBody8605591833311440344asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540814233,"filename":"image_18082025_20_12_14_9733.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e5ae7770f3d5a557b4ec4d4233b428dd.jpg","text":"TemporaryFile(/tmp/multipartBody387901276092733157asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540814233,"filename":"image_18082025_20_12_44_9717.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1c33aadb0dbdd19c78bc999e936a9180.jpg","text":"TemporaryFile(/tmp/multipartBody2767486532307170095asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540814233,"filename":"image_18082025_20_11_55_10729.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c9a5261aa8af2da79cb09bc7c5b71d82.jpg","text":"TemporaryFile(/tmp/multipartBody1839773332827674894asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540814233,"filename":"image_18082025_20_12_35_9646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/95776e6d996924b7e43895fbff30368c.jpg","text":"TemporaryFile(/tmp/multipartBody8296930322092975450asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540814233,"filename":"image_18082025_20_12_05_9718.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377715889","file1":"1377715887","file0":"1377715885","file4":"1377715892","file5":"1377715893","file3":"1377715891"},"map_files_photo_id_array":[{"photo_id":"1377715893","filename":"file5"},{"photo_id":"1377715889","filename":"file2"},{"photo_id":"1377715892","filename":"file4"},{"photo_id":"1377715887","filename":"file1"},{"photo_id":"1377715885","filename":"file0"},{"photo_id":"1377715891","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377715889":["hashtag1","hashtag2"]},{"1377715891":["hashtag1","hashtag2"]},{"1377715885":["hashtag1","hashtag2"]},{"1377715893":["hashtag1","hashtag2"]},{"1377715887":["hashtag1","hashtag2"]},{"1377715892":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377715889, 1377715891, 1377715885, 1377715893, 1377715887, 1377715892)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.12743854522705 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:13:17.635663
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/13/image_18082025_20_13_44_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/20/13/image_18082025_20_13_34_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/20/13/image_18082025_20_13_25_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/20/13/image_18082025_20_13_14_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/20/12/image_18082025_20_13_05_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/20/12/image_18082025_20_12_55_10645.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/13/image_18082025_20_13_44_9632.jpg', '/home/nano/Desktop/images/18082025/20/13/image_18082025_20_13_34_9617.jpg', '/home/nano/Desktop/images/18082025/20/13/image_18082025_20_13_25_10631.jpg', '/home/nano/Desktop/images/18082025/20/13/image_18082025_20_13_14_9649.jpg', '/home/nano/Desktop/images/18082025/20/12/image_18082025_20_13_05_9637.jpg', '/home/nano/Desktop/images/18082025/20/12/image_18082025_20_12_55_10645.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/13/image_18082025_20_13_44_9632.jpg
/home/nano/Desktop/images/18082025/20/13/image_18082025_20_13_34_9617.jpg
/home/nano/Desktop/images/18082025/20/13/image_18082025_20_13_25_10631.jpg
/home/nano/Desktop/images/18082025/20/13/image_18082025_20_13_14_9649.jpg
/home/nano/Desktop/images/18082025/20/12/image_18082025_20_13_05_9637.jpg
/home/nano/Desktop/images/18082025/20/12/image_18082025_20_12_55_10645.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377715911","1377715905","1377715908","1377715910","1377715909","1377715902"],"photo_ids_order":["1377715902","1377715905","1377715908","1377715909","1377715910","1377715911"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/731bfb055de649e1e6b74a009cb8799e.jpg","text":"TemporaryFile(/tmp/multipartBody6678111441397741981asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540859027,"filename":"image_18082025_20_12_55_10645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7d5dd92887cdf5efeed609b0c8f794a5.jpg","text":"TemporaryFile(/tmp/multipartBody655839406179405222asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540859027,"filename":"image_18082025_20_13_34_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a3a0a82489e3e4b55ac82be00651746c.jpg","text":"TemporaryFile(/tmp/multipartBody6153159100868430927asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540859027,"filename":"image_18082025_20_13_25_10631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e5f4296550ae3f4acce51e5cd2da451d.jpg","text":"TemporaryFile(/tmp/multipartBody2090938380628869964asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540859027,"filename":"image_18082025_20_13_05_9637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/718ea5824417a19c2b1760fd0414e50a.jpg","text":"TemporaryFile(/tmp/multipartBody2813983557737540425asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540859027,"filename":"image_18082025_20_13_14_9649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9f49a5c609182fee86a4a04417202886.jpg","text":"TemporaryFile(/tmp/multipartBody8398548871736894529asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540859027,"filename":"image_18082025_20_13_44_9632.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377715908","file1":"1377715905","file0":"1377715902","file4":"1377715910","file5":"1377715911","file3":"1377715909"},"map_files_photo_id_array":[{"photo_id":"1377715911","filename":"file5"},{"photo_id":"1377715908","filename":"file2"},{"photo_id":"1377715910","filename":"file4"},{"photo_id":"1377715905","filename":"file1"},{"photo_id":"1377715902","filename":"file0"},{"photo_id":"1377715909","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377715911":["hashtag1","hashtag2"]},{"1377715905":["hashtag1","hashtag2"]},{"1377715908":["hashtag1","hashtag2"]},{"1377715910":["hashtag1","hashtag2"]},{"1377715909":["hashtag1","hashtag2"]},{"1377715902":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377715911, 1377715905, 1377715908, 1377715910, 1377715909, 1377715902)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.195727825164795 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:14:03.777167
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/20/image_18082025_09_20_15_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/09/19/image_18082025_09_20_05_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/09/19/image_18082025_09_19_54_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/09/19/image_18082025_09_19_45_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/09/19/image_18082025_09_19_35_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/09/19/image_18082025_09_19_24_9643.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/20/image_18082025_09_20_15_9649.jpg', '/home/nano/Desktop/images/18082025/09/19/image_18082025_09_20_05_10632.jpg', '/home/nano/Desktop/images/18082025/09/19/image_18082025_09_19_54_9631.jpg', '/home/nano/Desktop/images/18082025/09/19/image_18082025_09_19_45_9646.jpg', '/home/nano/Desktop/images/18082025/09/19/image_18082025_09_19_35_10656.jpg', '/home/nano/Desktop/images/18082025/09/19/image_18082025_09_19_24_9643.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/20/image_18082025_09_20_15_9649.jpg
/home/nano/Desktop/images/18082025/09/19/image_18082025_09_20_05_10632.jpg
/home/nano/Desktop/images/18082025/09/19/image_18082025_09_19_54_9631.jpg
/home/nano/Desktop/images/18082025/09/19/image_18082025_09_19_45_9646.jpg
/home/nano/Desktop/images/18082025/09/19/image_18082025_09_19_35_10656.jpg
/home/nano/Desktop/images/18082025/09/19/image_18082025_09_19_24_9643.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377715926","1377715928","1377715922","1377715930","1377715924","1377715918"],"photo_ids_order":["1377715918","1377715922","1377715924","1377715926","1377715928","1377715930"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e484a6371247431027dbcceb1bcd2516.jpg","text":"TemporaryFile(/tmp/multipartBody7331447040583178477asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540905304,"filename":"image_18082025_09_19_45_9646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f834d3c10f66c54ef403f3c364336407.jpg","text":"TemporaryFile(/tmp/multipartBody4440347863772596346asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540905304,"filename":"image_18082025_09_19_35_10656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/00cfb0b2bb57e7dc3fee650800817126.jpg","text":"TemporaryFile(/tmp/multipartBody7479328109336797082asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540905304,"filename":"image_18082025_09_20_05_10632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/839dfa84e4881ffc6de01375d49da641.jpg","text":"TemporaryFile(/tmp/multipartBody6779312113772879212asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540905304,"filename":"image_18082025_09_19_24_9643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/52899b189fddfb2ad839112aff72a5ad.jpg","text":"TemporaryFile(/tmp/multipartBody1760214736102485844asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540905304,"filename":"image_18082025_09_19_54_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6c36c14c3f8e744c5d900ef7793763f0.jpg","text":"TemporaryFile(/tmp/multipartBody3004940067484078563asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540905304,"filename":"image_18082025_09_20_15_9649.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377715924","file1":"1377715922","file0":"1377715918","file4":"1377715928","file5":"1377715930","file3":"1377715926"},"map_files_photo_id_array":[{"photo_id":"1377715930","filename":"file5"},{"photo_id":"1377715924","filename":"file2"},{"photo_id":"1377715928","filename":"file4"},{"photo_id":"1377715922","filename":"file1"},{"photo_id":"1377715918","filename":"file0"},{"photo_id":"1377715926","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377715926":["hashtag1","hashtag2"]},{"1377715928":["hashtag1","hashtag2"]},{"1377715922":["hashtag1","hashtag2"]},{"1377715930":["hashtag1","hashtag2"]},{"1377715924":["hashtag1","hashtag2"]},{"1377715918":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377715926, 1377715928, 1377715922, 1377715930, 1377715924, 1377715918)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.080405473709106 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:14:47.738546
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/14/image_18082025_20_14_45_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/20/14/image_18082025_20_14_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/20/14/image_18082025_20_14_25_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/20/14/image_18082025_20_14_15_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/20/13/image_18082025_20_14_04_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/20/13/image_18082025_20_13_55_10661.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/14/image_18082025_20_14_45_10650.jpg', '/home/nano/Desktop/images/18082025/20/14/image_18082025_20_14_34_9640.jpg', '/home/nano/Desktop/images/18082025/20/14/image_18082025_20_14_25_9646.jpg', '/home/nano/Desktop/images/18082025/20/14/image_18082025_20_14_15_10651.jpg', '/home/nano/Desktop/images/18082025/20/13/image_18082025_20_14_04_9635.jpg', '/home/nano/Desktop/images/18082025/20/13/image_18082025_20_13_55_10661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/14/image_18082025_20_14_45_10650.jpg
/home/nano/Desktop/images/18082025/20/14/image_18082025_20_14_34_9640.jpg
/home/nano/Desktop/images/18082025/20/14/image_18082025_20_14_25_9646.jpg
/home/nano/Desktop/images/18082025/20/14/image_18082025_20_14_15_10651.jpg
/home/nano/Desktop/images/18082025/20/13/image_18082025_20_14_04_9635.jpg
/home/nano/Desktop/images/18082025/20/13/image_18082025_20_13_55_10661.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377715940","1377715942","1377715939","1377715950","1377715947","1377715944"],"photo_ids_order":["1377715939","1377715940","1377715942","1377715944","1377715947","1377715950"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a642ab942d4466f5581831b6ac06dc88.jpg","text":"TemporaryFile(/tmp/multipartBody4430470411554702945asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540949531,"filename":"image_18082025_20_14_34_9640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/511c4b9a07c368d2e9c8b8bcc8ad79bc.jpg","text":"TemporaryFile(/tmp/multipartBody3736145175417257407asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540949531,"filename":"image_18082025_20_14_25_9646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6fc9c34444d2e45a11a19d27c0ef5246.jpg","text":"TemporaryFile(/tmp/multipartBody7121015180738709722asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540949531,"filename":"image_18082025_20_14_45_10650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/98441842f1d61b4882f54eaac9a9d8ed.jpg","text":"TemporaryFile(/tmp/multipartBody408118554652003091asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540949531,"filename":"image_18082025_20_13_55_10661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fbc0141bdc158ab09a99eeec24923c71.jpg","text":"TemporaryFile(/tmp/multipartBody6499558619221184007asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540949531,"filename":"image_18082025_20_14_04_9635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dd9af1091795dc5cf256ac1983132ca7.jpg","text":"TemporaryFile(/tmp/multipartBody7841579349074698508asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540949531,"filename":"image_18082025_20_14_15_10651.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377715942","file1":"1377715940","file0":"1377715939","file4":"1377715947","file5":"1377715950","file3":"1377715944"},"map_files_photo_id_array":[{"photo_id":"1377715950","filename":"file5"},{"photo_id":"1377715942","filename":"file2"},{"photo_id":"1377715947","filename":"file4"},{"photo_id":"1377715940","filename":"file1"},{"photo_id":"1377715939","filename":"file0"},{"photo_id":"1377715944","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377715940":["hashtag1","hashtag2"]},{"1377715942":["hashtag1","hashtag2"]},{"1377715939":["hashtag1","hashtag2"]},{"1377715950":["hashtag1","hashtag2"]},{"1377715947":["hashtag1","hashtag2"]},{"1377715944":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377715940, 1377715942, 1377715939, 1377715950, 1377715947, 1377715944)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.909220218658447 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:15:31.798932
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/15/image_18082025_20_15_45_10695.jpg', 2), ('/home/nano/Desktop/images/18082025/20/15/image_18082025_20_15_34_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/20/15/image_18082025_20_15_25_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/20/15/image_18082025_20_15_15_10692.jpg', 2), ('/home/nano/Desktop/images/18082025/20/14/image_18082025_20_15_04_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/20/14/image_18082025_20_14_55_9631.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/15/image_18082025_20_15_45_10695.jpg', '/home/nano/Desktop/images/18082025/20/15/image_18082025_20_15_34_9636.jpg', '/home/nano/Desktop/images/18082025/20/15/image_18082025_20_15_25_9639.jpg', '/home/nano/Desktop/images/18082025/20/15/image_18082025_20_15_15_10692.jpg', '/home/nano/Desktop/images/18082025/20/14/image_18082025_20_15_04_9654.jpg', '/home/nano/Desktop/images/18082025/20/14/image_18082025_20_14_55_9631.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/15/image_18082025_20_15_45_10695.jpg
/home/nano/Desktop/images/18082025/20/15/image_18082025_20_15_34_9636.jpg
/home/nano/Desktop/images/18082025/20/15/image_18082025_20_15_25_9639.jpg
/home/nano/Desktop/images/18082025/20/15/image_18082025_20_15_15_10692.jpg
/home/nano/Desktop/images/18082025/20/14/image_18082025_20_15_04_9654.jpg
/home/nano/Desktop/images/18082025/20/14/image_18082025_20_14_55_9631.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377715973","1377715970","1377715967","1377715975","1377715969","1377715977"],"photo_ids_order":["1377715967","1377715969","1377715970","1377715973","1377715975","1377715977"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0d18f5f3fa477d7b3d7d6fdfe56b4fe5.jpg","text":"TemporaryFile(/tmp/multipartBody7070828394364829068asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540993640,"filename":"image_18082025_20_15_15_10692.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ae43b7e83cbe06ef253653ed3a8ab14b.jpg","text":"TemporaryFile(/tmp/multipartBody3838526799612271787asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540993640,"filename":"image_18082025_20_15_25_9639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8632db63f7e755dd7afe23d4921a80d4.jpg","text":"TemporaryFile(/tmp/multipartBody5241756097527551222asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540993640,"filename":"image_18082025_20_15_45_10695.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6db06173af204ad6db8fac4bbee4f510.jpg","text":"TemporaryFile(/tmp/multipartBody5939735128966129753asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540993640,"filename":"image_18082025_20_15_04_9654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8c52c16ef00b19c5c73813cafd71b0c7.jpg","text":"TemporaryFile(/tmp/multipartBody854773020633788212asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540993640,"filename":"image_18082025_20_15_34_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/641561c0005915780198e74250fa7df9.jpg","text":"TemporaryFile(/tmp/multipartBody7964902833162567525asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755540993640,"filename":"image_18082025_20_14_55_9631.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377715970","file1":"1377715969","file0":"1377715967","file4":"1377715975","file5":"1377715977","file3":"1377715973"},"map_files_photo_id_array":[{"photo_id":"1377715977","filename":"file5"},{"photo_id":"1377715970","filename":"file2"},{"photo_id":"1377715975","filename":"file4"},{"photo_id":"1377715969","filename":"file1"},{"photo_id":"1377715967","filename":"file0"},{"photo_id":"1377715973","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377715973":["hashtag1","hashtag2"]},{"1377715970":["hashtag1","hashtag2"]},{"1377715967":["hashtag1","hashtag2"]},{"1377715975":["hashtag1","hashtag2"]},{"1377715969":["hashtag1","hashtag2"]},{"1377715977":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377715973, 1377715970, 1377715967, 1377715975, 1377715969, 1377715977)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.676016569137573 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:16:16.908149
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/16/image_18082025_20_16_45_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/20/16/image_18082025_20_16_34_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/20/16/image_18082025_20_16_25_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/20/16/image_18082025_20_16_15_10678.jpg', 2), ('/home/nano/Desktop/images/18082025/20/15/image_18082025_20_16_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/20/15/image_18082025_20_15_55_9637.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/16/image_18082025_20_16_45_10663.jpg', '/home/nano/Desktop/images/18082025/20/16/image_18082025_20_16_34_9632.jpg', '/home/nano/Desktop/images/18082025/20/16/image_18082025_20_16_25_9656.jpg', '/home/nano/Desktop/images/18082025/20/16/image_18082025_20_16_15_10678.jpg', '/home/nano/Desktop/images/18082025/20/15/image_18082025_20_16_04_9651.jpg', '/home/nano/Desktop/images/18082025/20/15/image_18082025_20_15_55_9637.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/16/image_18082025_20_16_45_10663.jpg
/home/nano/Desktop/images/18082025/20/16/image_18082025_20_16_34_9632.jpg
/home/nano/Desktop/images/18082025/20/16/image_18082025_20_16_25_9656.jpg
/home/nano/Desktop/images/18082025/20/16/image_18082025_20_16_15_10678.jpg
/home/nano/Desktop/images/18082025/20/15/image_18082025_20_16_04_9651.jpg
/home/nano/Desktop/images/18082025/20/15/image_18082025_20_15_55_9637.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.5392875671386719 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:16:31.939131
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/16/image_18082025_20_16_45_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/20/16/image_18082025_20_16_34_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/20/16/image_18082025_20_16_25_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/20/16/image_18082025_20_16_15_10678.jpg', 2), ('/home/nano/Desktop/images/18082025/20/15/image_18082025_20_16_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/20/15/image_18082025_20_15_55_9637.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/16/image_18082025_20_16_45_10663.jpg', '/home/nano/Desktop/images/18082025/20/16/image_18082025_20_16_34_9632.jpg', '/home/nano/Desktop/images/18082025/20/16/image_18082025_20_16_25_9656.jpg', '/home/nano/Desktop/images/18082025/20/16/image_18082025_20_16_15_10678.jpg', '/home/nano/Desktop/images/18082025/20/15/image_18082025_20_16_04_9651.jpg', '/home/nano/Desktop/images/18082025/20/15/image_18082025_20_15_55_9637.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/16/image_18082025_20_16_45_10663.jpg
/home/nano/Desktop/images/18082025/20/16/image_18082025_20_16_34_9632.jpg
/home/nano/Desktop/images/18082025/20/16/image_18082025_20_16_25_9656.jpg
/home/nano/Desktop/images/18082025/20/16/image_18082025_20_16_15_10678.jpg
/home/nano/Desktop/images/18082025/20/15/image_18082025_20_16_04_9651.jpg
/home/nano/Desktop/images/18082025/20/15/image_18082025_20_15_55_9637.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377716000","1377716002","1377716005","1377715995","1377716004","1377716007"],"photo_ids_order":["1377715995","1377716000","1377716002","1377716004","1377716005","1377716007"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/12df41be5c0425eb37d848ebbe52958b.jpg","text":"TemporaryFile(/tmp/multipartBody5423040575735368496asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541053534,"filename":"image_18082025_20_16_34_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bfec4607c038e486b35ece6d532a0f96.jpg","text":"TemporaryFile(/tmp/multipartBody4843859379945503006asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541053534,"filename":"image_18082025_20_16_25_9656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/947355bd4da15dd4612419dade409948.jpg","text":"TemporaryFile(/tmp/multipartBody5117979012479998727asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541053534,"filename":"image_18082025_20_16_04_9651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/08e8993a4ed1061a933acb8b1b1d13f7.jpg","text":"TemporaryFile(/tmp/multipartBody5747881157030187050asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541053534,"filename":"image_18082025_20_16_45_10663.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/66731ff82531bc50a315e9d5ec9da47b.jpg","text":"TemporaryFile(/tmp/multipartBody8279164809381799607asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541053534,"filename":"image_18082025_20_16_15_10678.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/010a10ca5ed1c435d0371a0072f3e793.jpg","text":"TemporaryFile(/tmp/multipartBody3366573929644073508asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541053534,"filename":"image_18082025_20_15_55_9637.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377716002","file1":"1377716000","file0":"1377715995","file4":"1377716005","file5":"1377716007","file3":"1377716004"},"map_files_photo_id_array":[{"photo_id":"1377716007","filename":"file5"},{"photo_id":"1377716002","filename":"file2"},{"photo_id":"1377716005","filename":"file4"},{"photo_id":"1377716000","filename":"file1"},{"photo_id":"1377715995","filename":"file0"},{"photo_id":"1377716004","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377716000":["hashtag1","hashtag2"]},{"1377716002":["hashtag1","hashtag2"]},{"1377716005":["hashtag1","hashtag2"]},{"1377715995":["hashtag1","hashtag2"]},{"1377716004":["hashtag1","hashtag2"]},{"1377716007":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377716000, 1377716002, 1377716005, 1377715995, 1377716004, 1377716007)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.99506664276123 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:17:17.000434
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/17/image_18082025_20_17_45_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/20/17/image_18082025_20_17_34_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/20/17/image_18082025_20_17_25_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/20/17/image_18082025_20_17_15_10714.jpg', 2), ('/home/nano/Desktop/images/18082025/20/16/image_18082025_20_17_04_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/20/16/image_18082025_20_16_55_9646.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/17/image_18082025_20_17_45_10618.jpg', '/home/nano/Desktop/images/18082025/20/17/image_18082025_20_17_34_9667.jpg', '/home/nano/Desktop/images/18082025/20/17/image_18082025_20_17_25_9658.jpg', '/home/nano/Desktop/images/18082025/20/17/image_18082025_20_17_15_10714.jpg', '/home/nano/Desktop/images/18082025/20/16/image_18082025_20_17_04_9648.jpg', '/home/nano/Desktop/images/18082025/20/16/image_18082025_20_16_55_9646.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/17/image_18082025_20_17_45_10618.jpg
/home/nano/Desktop/images/18082025/20/17/image_18082025_20_17_34_9667.jpg
/home/nano/Desktop/images/18082025/20/17/image_18082025_20_17_25_9658.jpg
/home/nano/Desktop/images/18082025/20/17/image_18082025_20_17_15_10714.jpg
/home/nano/Desktop/images/18082025/20/16/image_18082025_20_17_04_9648.jpg
/home/nano/Desktop/images/18082025/20/16/image_18082025_20_16_55_9646.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377716024","1377716027","1377716021","1377716029","1377716032","1377716034"],"photo_ids_order":["1377716021","1377716024","1377716027","1377716029","1377716032","1377716034"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2d6cf6793be86991fc086e9e34ad7914.jpg","text":"TemporaryFile(/tmp/multipartBody8104661093972589397asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541098726,"filename":"image_18082025_20_17_34_9667.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9f3f657ee9192207a019638e4939a474.jpg","text":"TemporaryFile(/tmp/multipartBody2501818892101708625asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541098726,"filename":"image_18082025_20_17_25_9658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/767f9d976f8b4a4ed5901fe5893f78c7.jpg","text":"TemporaryFile(/tmp/multipartBody5465380675838700902asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541098726,"filename":"image_18082025_20_17_45_10618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0537fef9befeccb19d6a72795f026640.jpg","text":"TemporaryFile(/tmp/multipartBody8602848591207473197asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541098726,"filename":"image_18082025_20_17_15_10714.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/75a063f34a6369deb2e106919b29955a.jpg","text":"TemporaryFile(/tmp/multipartBody1926635336899397505asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541098726,"filename":"image_18082025_20_17_04_9648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0419c57a51a8f152fd2f678b8431661f.jpg","text":"TemporaryFile(/tmp/multipartBody623656670310596577asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541098726,"filename":"image_18082025_20_16_55_9646.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377716027","file1":"1377716024","file0":"1377716021","file4":"1377716032","file5":"1377716034","file3":"1377716029"},"map_files_photo_id_array":[{"photo_id":"1377716034","filename":"file5"},{"photo_id":"1377716027","filename":"file2"},{"photo_id":"1377716032","filename":"file4"},{"photo_id":"1377716024","filename":"file1"},{"photo_id":"1377716021","filename":"file0"},{"photo_id":"1377716029","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377716024":["hashtag1","hashtag2"]},{"1377716027":["hashtag1","hashtag2"]},{"1377716021":["hashtag1","hashtag2"]},{"1377716029":["hashtag1","hashtag2"]},{"1377716032":["hashtag1","hashtag2"]},{"1377716034":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377716024, 1377716027, 1377716021, 1377716029, 1377716032, 1377716034)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.44491171836853 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:18:02.603315
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/19/image_18082025_09_19_15_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/09/18/image_18082025_09_19_05_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/09/18/image_18082025_09_18_54_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/09/18/image_18082025_09_18_45_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/09/18/image_18082025_09_18_35_10675.jpg', 2), ('/home/nano/Desktop/images/18082025/09/18/image_18082025_09_18_24_9662.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/19/image_18082025_09_19_15_9669.jpg', '/home/nano/Desktop/images/18082025/09/18/image_18082025_09_19_05_10663.jpg', '/home/nano/Desktop/images/18082025/09/18/image_18082025_09_18_54_9669.jpg', '/home/nano/Desktop/images/18082025/09/18/image_18082025_09_18_45_9656.jpg', '/home/nano/Desktop/images/18082025/09/18/image_18082025_09_18_35_10675.jpg', '/home/nano/Desktop/images/18082025/09/18/image_18082025_09_18_24_9662.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/19/image_18082025_09_19_15_9669.jpg
/home/nano/Desktop/images/18082025/09/18/image_18082025_09_19_05_10663.jpg
/home/nano/Desktop/images/18082025/09/18/image_18082025_09_18_54_9669.jpg
/home/nano/Desktop/images/18082025/09/18/image_18082025_09_18_45_9656.jpg
/home/nano/Desktop/images/18082025/09/18/image_18082025_09_18_35_10675.jpg
/home/nano/Desktop/images/18082025/09/18/image_18082025_09_18_24_9662.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377716063","1377716051","1377716058","1377716046","1377716055","1377716060"],"photo_ids_order":["1377716046","1377716051","1377716055","1377716058","1377716060","1377716063"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a944d2b5dba047a58224d6d973ad9c9e.jpg","text":"TemporaryFile(/tmp/multipartBody4507280189693171779asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541144140,"filename":"image_18082025_09_18_24_9662.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/28b30b7c470ee5cf518e4af199b54653.jpg","text":"TemporaryFile(/tmp/multipartBody1847881065430740017asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541144140,"filename":"image_18082025_09_19_05_10663.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3fd6c9e89185b858597680e5e9c1c6b5.jpg","text":"TemporaryFile(/tmp/multipartBody4097644905866589033asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541144140,"filename":"image_18082025_09_18_45_9656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8d00528e0ee72d3be4a1ab9a2918233f.jpg","text":"TemporaryFile(/tmp/multipartBody909819191558083294asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541144140,"filename":"image_18082025_09_19_15_9669.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5c1f8acd54de7211761e894be20b44fb.jpg","text":"TemporaryFile(/tmp/multipartBody6781511657213255917asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541144140,"filename":"image_18082025_09_18_54_9669.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6197558ffa360772dc72cff3ec800dea.jpg","text":"TemporaryFile(/tmp/multipartBody1778778344411383865asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541144140,"filename":"image_18082025_09_18_35_10675.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377716055","file1":"1377716051","file0":"1377716046","file4":"1377716060","file5":"1377716063","file3":"1377716058"},"map_files_photo_id_array":[{"photo_id":"1377716063","filename":"file5"},{"photo_id":"1377716055","filename":"file2"},{"photo_id":"1377716060","filename":"file4"},{"photo_id":"1377716051","filename":"file1"},{"photo_id":"1377716046","filename":"file0"},{"photo_id":"1377716058","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377716063":["hashtag1","hashtag2"]},{"1377716051":["hashtag1","hashtag2"]},{"1377716058":["hashtag1","hashtag2"]},{"1377716046":["hashtag1","hashtag2"]},{"1377716055":["hashtag1","hashtag2"]},{"1377716060":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377716063, 1377716051, 1377716058, 1377716046, 1377716055, 1377716060)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.580225706100464 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:18:47.108405
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/18/image_18082025_20_18_45_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/20/18/image_18082025_20_18_35_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/20/18/image_18082025_20_18_24_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/20/18/image_18082025_20_18_15_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/20/17/image_18082025_20_18_04_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/20/17/image_18082025_20_17_54_9613.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/18/image_18082025_20_18_45_9627.jpg', '/home/nano/Desktop/images/18082025/20/18/image_18082025_20_18_35_10644.jpg', '/home/nano/Desktop/images/18082025/20/18/image_18082025_20_18_24_9628.jpg', '/home/nano/Desktop/images/18082025/20/18/image_18082025_20_18_15_10663.jpg', '/home/nano/Desktop/images/18082025/20/17/image_18082025_20_18_04_9640.jpg', '/home/nano/Desktop/images/18082025/20/17/image_18082025_20_17_54_9613.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/18/image_18082025_20_18_45_9627.jpg
/home/nano/Desktop/images/18082025/20/18/image_18082025_20_18_35_10644.jpg
/home/nano/Desktop/images/18082025/20/18/image_18082025_20_18_24_9628.jpg
/home/nano/Desktop/images/18082025/20/18/image_18082025_20_18_15_10663.jpg
/home/nano/Desktop/images/18082025/20/17/image_18082025_20_18_04_9640.jpg
/home/nano/Desktop/images/18082025/20/17/image_18082025_20_17_54_9613.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377716092","1377716088","1377716082","1377716076","1377716085","1377716079"],"photo_ids_order":["1377716076","1377716079","1377716082","1377716085","1377716088","1377716092"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f2a7a87569bcea2ef4e2c8eb2183af5b.jpg","text":"TemporaryFile(/tmp/multipartBody8190052098730677771asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541188566,"filename":"image_18082025_20_17_54_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/31963aecca3f1037efb3ca90abf8ecc4.jpg","text":"TemporaryFile(/tmp/multipartBody8427232048031520052asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541188566,"filename":"image_18082025_20_18_04_9640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3d8e292db2c90b342eeb89df1667434a.jpg","text":"TemporaryFile(/tmp/multipartBody7975773514268643164asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541188566,"filename":"image_18082025_20_18_24_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f23c501319e6a35313be744844bc9880.jpg","text":"TemporaryFile(/tmp/multipartBody8907339519608930334asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541188566,"filename":"image_18082025_20_18_45_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/942f4e1fa8a8a968475f1ca507c5a763.jpg","text":"TemporaryFile(/tmp/multipartBody3341707709326438512asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541188566,"filename":"image_18082025_20_18_15_10663.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0bfaaf9fdf922f46312c1e6fa2c2b4f2.jpg","text":"TemporaryFile(/tmp/multipartBody9008740102535542080asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541188566,"filename":"image_18082025_20_18_35_10644.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377716082","file1":"1377716079","file0":"1377716076","file4":"1377716088","file5":"1377716092","file3":"1377716085"},"map_files_photo_id_array":[{"photo_id":"1377716092","filename":"file5"},{"photo_id":"1377716082","filename":"file2"},{"photo_id":"1377716088","filename":"file4"},{"photo_id":"1377716079","filename":"file1"},{"photo_id":"1377716076","filename":"file0"},{"photo_id":"1377716085","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377716092":["hashtag1","hashtag2"]},{"1377716088":["hashtag1","hashtag2"]},{"1377716082":["hashtag1","hashtag2"]},{"1377716076":["hashtag1","hashtag2"]},{"1377716085":["hashtag1","hashtag2"]},{"1377716079":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377716092, 1377716088, 1377716082, 1377716076, 1377716085, 1377716079)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.100486755371094 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:19:32.195921
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/19/image_18082025_20_19_45_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/20/19/image_18082025_20_19_35_10706.jpg', 2), ('/home/nano/Desktop/images/18082025/20/19/image_18082025_20_19_24_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/20/19/image_18082025_20_19_15_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/20/18/image_18082025_20_19_05_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/20/18/image_18082025_20_18_54_9628.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/19/image_18082025_20_19_45_9626.jpg', '/home/nano/Desktop/images/18082025/20/19/image_18082025_20_19_35_10706.jpg', '/home/nano/Desktop/images/18082025/20/19/image_18082025_20_19_24_9620.jpg', '/home/nano/Desktop/images/18082025/20/19/image_18082025_20_19_15_9651.jpg', '/home/nano/Desktop/images/18082025/20/18/image_18082025_20_19_05_10628.jpg', '/home/nano/Desktop/images/18082025/20/18/image_18082025_20_18_54_9628.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/19/image_18082025_20_19_45_9626.jpg
/home/nano/Desktop/images/18082025/20/19/image_18082025_20_19_35_10706.jpg
/home/nano/Desktop/images/18082025/20/19/image_18082025_20_19_24_9620.jpg
/home/nano/Desktop/images/18082025/20/19/image_18082025_20_19_15_9651.jpg
/home/nano/Desktop/images/18082025/20/18/image_18082025_20_19_05_10628.jpg
/home/nano/Desktop/images/18082025/20/18/image_18082025_20_18_54_9628.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377716111","1377716105","1377716108","1377716125","1377716112","1377716124"],"photo_ids_order":["1377716105","1377716108","1377716111","1377716112","1377716124","1377716125"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/97155bb6584b7362c299771bab7aa59b.jpg","text":"TemporaryFile(/tmp/multipartBody1233437898036313367asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541233633,"filename":"image_18082025_20_19_24_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c8a3be6b8d839737bc55a3e9a90a8a20.jpg","text":"TemporaryFile(/tmp/multipartBody1912759012491310350asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541233633,"filename":"image_18082025_20_19_45_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d00b800eb49305f0483d152f4c33395a.jpg","text":"TemporaryFile(/tmp/multipartBody5172996564364767643asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541233633,"filename":"image_18082025_20_19_35_10706.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/560087b10c2d2b1e85f4d1e211987186.jpg","text":"TemporaryFile(/tmp/multipartBody5666810560286069225asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541233633,"filename":"image_18082025_20_18_54_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fcd49e4678a56722411664d3412fd317.jpg","text":"TemporaryFile(/tmp/multipartBody4503703469578159844asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541233633,"filename":"image_18082025_20_19_15_9651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/123ec9d85b48cb0008098e768af76dd4.jpg","text":"TemporaryFile(/tmp/multipartBody8991873767351388171asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541233633,"filename":"image_18082025_20_19_05_10628.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377716111","file1":"1377716108","file0":"1377716105","file4":"1377716124","file5":"1377716125","file3":"1377716112"},"map_files_photo_id_array":[{"photo_id":"1377716125","filename":"file5"},{"photo_id":"1377716111","filename":"file2"},{"photo_id":"1377716124","filename":"file4"},{"photo_id":"1377716108","filename":"file1"},{"photo_id":"1377716105","filename":"file0"},{"photo_id":"1377716112","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377716111":["hashtag1","hashtag2"]},{"1377716105":["hashtag1","hashtag2"]},{"1377716108":["hashtag1","hashtag2"]},{"1377716125":["hashtag1","hashtag2"]},{"1377716112":["hashtag1","hashtag2"]},{"1377716124":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377716111, 1377716105, 1377716108, 1377716125, 1377716112, 1377716124)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.44785761833191 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:20:17.309443
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/20/image_18082025_20_20_44_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/20/20/image_18082025_20_20_35_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/20/20/image_18082025_20_20_24_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/20/20/image_18082025_20_20_14_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/20/19/image_18082025_20_20_05_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/20/19/image_18082025_20_19_54_9638.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/20/image_18082025_20_20_44_9651.jpg', '/home/nano/Desktop/images/18082025/20/20/image_18082025_20_20_35_10626.jpg', '/home/nano/Desktop/images/18082025/20/20/image_18082025_20_20_24_9649.jpg', '/home/nano/Desktop/images/18082025/20/20/image_18082025_20_20_14_9668.jpg', '/home/nano/Desktop/images/18082025/20/19/image_18082025_20_20_05_10647.jpg', '/home/nano/Desktop/images/18082025/20/19/image_18082025_20_19_54_9638.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/20/image_18082025_20_20_44_9651.jpg
/home/nano/Desktop/images/18082025/20/20/image_18082025_20_20_35_10626.jpg
/home/nano/Desktop/images/18082025/20/20/image_18082025_20_20_24_9649.jpg
/home/nano/Desktop/images/18082025/20/20/image_18082025_20_20_14_9668.jpg
/home/nano/Desktop/images/18082025/20/19/image_18082025_20_20_05_10647.jpg
/home/nano/Desktop/images/18082025/20/19/image_18082025_20_19_54_9638.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377716144","1377716147","1377716152","1377716140","1377716151","1377716154"],"photo_ids_order":["1377716140","1377716144","1377716147","1377716151","1377716152","1377716154"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c82449c2b89fe25bcb4a342017dc83bb.jpg","text":"TemporaryFile(/tmp/multipartBody5297520807506144548asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541278917,"filename":"image_18082025_20_20_35_10626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/389463632cee7c49db470e8f5316ac0e.jpg","text":"TemporaryFile(/tmp/multipartBody8002389546739963560asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541278917,"filename":"image_18082025_20_20_24_9649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4eb5861ff5cfe07f33bf183528aa7d6c.jpg","text":"TemporaryFile(/tmp/multipartBody5784907762547113320asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541278917,"filename":"image_18082025_20_20_05_10647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/214c701dcee9c281d580843d9ea451ef.jpg","text":"TemporaryFile(/tmp/multipartBody4113890660684276507asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541278917,"filename":"image_18082025_20_20_44_9651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d311928e2e4e98c7672a358f3b772ae3.jpg","text":"TemporaryFile(/tmp/multipartBody6890658515221056247asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541278917,"filename":"image_18082025_20_20_14_9668.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3038f67dadc9bf02260db68daff9b761.jpg","text":"TemporaryFile(/tmp/multipartBody1617238594148153532asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541278917,"filename":"image_18082025_20_19_54_9638.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377716147","file1":"1377716144","file0":"1377716140","file4":"1377716152","file5":"1377716154","file3":"1377716151"},"map_files_photo_id_array":[{"photo_id":"1377716154","filename":"file5"},{"photo_id":"1377716147","filename":"file2"},{"photo_id":"1377716152","filename":"file4"},{"photo_id":"1377716144","filename":"file1"},{"photo_id":"1377716140","filename":"file0"},{"photo_id":"1377716151","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377716144":["hashtag1","hashtag2"]},{"1377716147":["hashtag1","hashtag2"]},{"1377716152":["hashtag1","hashtag2"]},{"1377716140":["hashtag1","hashtag2"]},{"1377716151":["hashtag1","hashtag2"]},{"1377716154":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377716144, 1377716147, 1377716152, 1377716140, 1377716151, 1377716154)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.288092613220215 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:21:03.200522
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/18/image_18082025_09_18_15_9702.jpg', 2), ('/home/nano/Desktop/images/18082025/09/17/image_18082025_09_18_05_10691.jpg', 2), ('/home/nano/Desktop/images/18082025/09/17/image_18082025_09_17_54_9665.jpg', 2), ('/home/nano/Desktop/images/18082025/09/17/image_18082025_09_17_45_9673.jpg', 2), ('/home/nano/Desktop/images/18082025/09/17/image_18082025_09_17_35_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/09/17/image_18082025_09_17_24_9662.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/18/image_18082025_09_18_15_9702.jpg', '/home/nano/Desktop/images/18082025/09/17/image_18082025_09_18_05_10691.jpg', '/home/nano/Desktop/images/18082025/09/17/image_18082025_09_17_54_9665.jpg', '/home/nano/Desktop/images/18082025/09/17/image_18082025_09_17_45_9673.jpg', '/home/nano/Desktop/images/18082025/09/17/image_18082025_09_17_35_10668.jpg', '/home/nano/Desktop/images/18082025/09/17/image_18082025_09_17_24_9662.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/18/image_18082025_09_18_15_9702.jpg
/home/nano/Desktop/images/18082025/09/17/image_18082025_09_18_05_10691.jpg
/home/nano/Desktop/images/18082025/09/17/image_18082025_09_17_54_9665.jpg
/home/nano/Desktop/images/18082025/09/17/image_18082025_09_17_45_9673.jpg
/home/nano/Desktop/images/18082025/09/17/image_18082025_09_17_35_10668.jpg
/home/nano/Desktop/images/18082025/09/17/image_18082025_09_17_24_9662.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377716162","1377716176","1377716166","1377716171","1377716174","1377716168"],"photo_ids_order":["1377716162","1377716166","1377716168","1377716171","1377716174","1377716176"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6a121ab83ebac6c12bdf947b42f6e950.jpg","text":"TemporaryFile(/tmp/multipartBody2450491265293928548asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541324778,"filename":"image_18082025_09_18_15_9702.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a2cf3c506f143637aa14d55186a3f2ee.jpg","text":"TemporaryFile(/tmp/multipartBody7006151753730716118asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541324778,"filename":"image_18082025_09_17_24_9662.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e1559c279eff2743b3b045aabeaeae2f.jpg","text":"TemporaryFile(/tmp/multipartBody6112350720036205630asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541324778,"filename":"image_18082025_09_18_05_10691.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/804498eea9df3addebf1bf1efd2ae82d.jpg","text":"TemporaryFile(/tmp/multipartBody5012284818776255883asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541324778,"filename":"image_18082025_09_17_45_9673.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bedf046b342469e1fe7a3bb8a6c8deb4.jpg","text":"TemporaryFile(/tmp/multipartBody4207347223856979713asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541324778,"filename":"image_18082025_09_17_35_10668.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6855b0478f5af3a8012222f4e3755ddf.jpg","text":"TemporaryFile(/tmp/multipartBody6106297611403845262asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541324778,"filename":"image_18082025_09_17_54_9665.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377716168","file1":"1377716166","file0":"1377716162","file4":"1377716174","file5":"1377716176","file3":"1377716171"},"map_files_photo_id_array":[{"photo_id":"1377716176","filename":"file5"},{"photo_id":"1377716168","filename":"file2"},{"photo_id":"1377716174","filename":"file4"},{"photo_id":"1377716166","filename":"file1"},{"photo_id":"1377716162","filename":"file0"},{"photo_id":"1377716171","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377716162":["hashtag1","hashtag2"]},{"1377716176":["hashtag1","hashtag2"]},{"1377716166":["hashtag1","hashtag2"]},{"1377716171":["hashtag1","hashtag2"]},{"1377716174":["hashtag1","hashtag2"]},{"1377716168":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377716162, 1377716176, 1377716166, 1377716171, 1377716174, 1377716168)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.12057566642761 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:21:47.413715
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/21/image_18082025_20_21_44_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/20/21/image_18082025_20_21_35_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/20/21/image_18082025_20_21_25_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/20/21/image_18082025_20_21_14_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/20/20/image_18082025_20_21_05_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/20/20/image_18082025_20_20_55_10651.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/21/image_18082025_20_21_44_9609.jpg', '/home/nano/Desktop/images/18082025/20/21/image_18082025_20_21_35_9633.jpg', '/home/nano/Desktop/images/18082025/20/21/image_18082025_20_21_25_10647.jpg', '/home/nano/Desktop/images/18082025/20/21/image_18082025_20_21_14_9643.jpg', '/home/nano/Desktop/images/18082025/20/20/image_18082025_20_21_05_9612.jpg', '/home/nano/Desktop/images/18082025/20/20/image_18082025_20_20_55_10651.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/21/image_18082025_20_21_44_9609.jpg
/home/nano/Desktop/images/18082025/20/21/image_18082025_20_21_35_9633.jpg
/home/nano/Desktop/images/18082025/20/21/image_18082025_20_21_25_10647.jpg
/home/nano/Desktop/images/18082025/20/21/image_18082025_20_21_14_9643.jpg
/home/nano/Desktop/images/18082025/20/20/image_18082025_20_21_05_9612.jpg
/home/nano/Desktop/images/18082025/20/20/image_18082025_20_20_55_10651.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377716188","1377716193","1377716187","1377716190","1377716186","1377716189"],"photo_ids_order":["1377716186","1377716187","1377716188","1377716189","1377716190","1377716193"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/50ab6b036f9b44329877bb568af1e709.jpg","text":"TemporaryFile(/tmp/multipartBody1078884581977971083asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541368753,"filename":"image_18082025_20_21_25_10647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c4b093b8cffe15061511e5143f3ba339.jpg","text":"TemporaryFile(/tmp/multipartBody2626346810324855231asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541368753,"filename":"image_18082025_20_20_55_10651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8a73fb0c0445f091afcbbe9a4f3017d0.jpg","text":"TemporaryFile(/tmp/multipartBody1173273623979649689asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541368753,"filename":"image_18082025_20_21_35_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/422dd9f27eaefee947b60857413fef3b.jpg","text":"TemporaryFile(/tmp/multipartBody9094837645442795545asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541368753,"filename":"image_18082025_20_21_05_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5b2b0b38f59da33f435f8d71c64aeb14.jpg","text":"TemporaryFile(/tmp/multipartBody3134965108223714294asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541368753,"filename":"image_18082025_20_21_44_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b2209341dec24dcbcf353368801dfafe.jpg","text":"TemporaryFile(/tmp/multipartBody1885826661115639458asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541368753,"filename":"image_18082025_20_21_14_9643.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377716188","file1":"1377716187","file0":"1377716186","file4":"1377716190","file5":"1377716193","file3":"1377716189"},"map_files_photo_id_array":[{"photo_id":"1377716193","filename":"file5"},{"photo_id":"1377716188","filename":"file2"},{"photo_id":"1377716190","filename":"file4"},{"photo_id":"1377716187","filename":"file1"},{"photo_id":"1377716186","filename":"file0"},{"photo_id":"1377716189","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377716188":["hashtag1","hashtag2"]},{"1377716193":["hashtag1","hashtag2"]},{"1377716187":["hashtag1","hashtag2"]},{"1377716190":["hashtag1","hashtag2"]},{"1377716186":["hashtag1","hashtag2"]},{"1377716189":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377716188, 1377716193, 1377716187, 1377716190, 1377716186, 1377716189)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.746588230133057 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:22:32.521097
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/22/image_18082025_20_22_45_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/20/22/image_18082025_20_22_34_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/20/22/image_18082025_20_22_25_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/20/22/image_18082025_20_22_14_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/20/21/image_18082025_20_22_04_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/20/21/image_18082025_20_21_55_10621.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/22/image_18082025_20_22_45_10629.jpg', '/home/nano/Desktop/images/18082025/20/22/image_18082025_20_22_34_9612.jpg', '/home/nano/Desktop/images/18082025/20/22/image_18082025_20_22_25_10647.jpg', '/home/nano/Desktop/images/18082025/20/22/image_18082025_20_22_14_9638.jpg', '/home/nano/Desktop/images/18082025/20/21/image_18082025_20_22_04_9643.jpg', '/home/nano/Desktop/images/18082025/20/21/image_18082025_20_21_55_10621.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/22/image_18082025_20_22_45_10629.jpg
/home/nano/Desktop/images/18082025/20/22/image_18082025_20_22_34_9612.jpg
/home/nano/Desktop/images/18082025/20/22/image_18082025_20_22_25_10647.jpg
/home/nano/Desktop/images/18082025/20/22/image_18082025_20_22_14_9638.jpg
/home/nano/Desktop/images/18082025/20/21/image_18082025_20_22_04_9643.jpg
/home/nano/Desktop/images/18082025/20/21/image_18082025_20_21_55_10621.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377716225","1377716227","1377716223","1377716220","1377716214","1377716217"],"photo_ids_order":["1377716214","1377716217","1377716220","1377716223","1377716225","1377716227"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4ff23c3de28889774ebc870574a75e91.jpg","text":"TemporaryFile(/tmp/multipartBody5465959639400460847asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541413953,"filename":"image_18082025_20_22_04_9643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/edc5c737e163b2a0c5daf17fe16b66eb.jpg","text":"TemporaryFile(/tmp/multipartBody6413680279081841314asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541413953,"filename":"image_18082025_20_21_55_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/517518a03b0e29020722f7b945372cab.jpg","text":"TemporaryFile(/tmp/multipartBody7652813961570897796asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541413953,"filename":"image_18082025_20_22_14_9638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d22edf4d09d8dd6ab6fed753da435c4e.jpg","text":"TemporaryFile(/tmp/multipartBody7878857972245780734asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541413953,"filename":"image_18082025_20_22_25_10647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/81dfdd6c88b7f6cf33ad3de0b3cc3a02.jpg","text":"TemporaryFile(/tmp/multipartBody4461179058633477129asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541413953,"filename":"image_18082025_20_22_45_10629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cf9754b55f6bfe91596c8d5eb5321f47.jpg","text":"TemporaryFile(/tmp/multipartBody2025610119817490116asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541413953,"filename":"image_18082025_20_22_34_9612.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377716220","file1":"1377716217","file0":"1377716214","file4":"1377716225","file5":"1377716227","file3":"1377716223"},"map_files_photo_id_array":[{"photo_id":"1377716227","filename":"file5"},{"photo_id":"1377716220","filename":"file2"},{"photo_id":"1377716225","filename":"file4"},{"photo_id":"1377716217","filename":"file1"},{"photo_id":"1377716214","filename":"file0"},{"photo_id":"1377716223","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377716225":["hashtag1","hashtag2"]},{"1377716227":["hashtag1","hashtag2"]},{"1377716223":["hashtag1","hashtag2"]},{"1377716220":["hashtag1","hashtag2"]},{"1377716214":["hashtag1","hashtag2"]},{"1377716217":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377716225, 1377716227, 1377716223, 1377716220, 1377716214, 1377716217)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.062418937683105 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:23:17.610945
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/23/image_18082025_20_23_45_10622.jpg', 2), ('/home/nano/Desktop/images/18082025/20/23/image_18082025_20_23_34_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/20/23/image_18082025_20_23_24_9613.jpg', 2), ('/home/nano/Desktop/images/18082025/20/23/image_18082025_20_23_15_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/20/22/image_18082025_20_23_04_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/20/22/image_18082025_20_22_55_9618.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/23/image_18082025_20_23_45_10622.jpg', '/home/nano/Desktop/images/18082025/20/23/image_18082025_20_23_34_9629.jpg', '/home/nano/Desktop/images/18082025/20/23/image_18082025_20_23_24_9613.jpg', '/home/nano/Desktop/images/18082025/20/23/image_18082025_20_23_15_10656.jpg', '/home/nano/Desktop/images/18082025/20/22/image_18082025_20_23_04_9618.jpg', '/home/nano/Desktop/images/18082025/20/22/image_18082025_20_22_55_9618.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/23/image_18082025_20_23_45_10622.jpg
/home/nano/Desktop/images/18082025/20/23/image_18082025_20_23_34_9629.jpg
/home/nano/Desktop/images/18082025/20/23/image_18082025_20_23_24_9613.jpg
/home/nano/Desktop/images/18082025/20/23/image_18082025_20_23_15_10656.jpg
/home/nano/Desktop/images/18082025/20/22/image_18082025_20_23_04_9618.jpg
/home/nano/Desktop/images/18082025/20/22/image_18082025_20_22_55_9618.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377716240","1377716243","1377716246","1377716248","1377716250","1377716252"],"photo_ids_order":["1377716240","1377716243","1377716246","1377716248","1377716250","1377716252"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/68c05309c16fde41a716b071390fd573.jpg","text":"TemporaryFile(/tmp/multipartBody7652354823301882157asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541458873,"filename":"image_18082025_20_23_45_10622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2b7cd96b4512094589950f4fca8c9938.jpg","text":"TemporaryFile(/tmp/multipartBody3053320965506036600asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541458873,"filename":"image_18082025_20_23_34_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3aab3d856ed59736d3c5795505861e11.jpg","text":"TemporaryFile(/tmp/multipartBody8312019530561697728asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541458873,"filename":"image_18082025_20_23_24_9613.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6f339d6b63ce04943a9509904f87f95a.jpg","text":"TemporaryFile(/tmp/multipartBody7569822133781088599asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541458873,"filename":"image_18082025_20_23_15_10656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a8c2547f86ede16fce16659f6a21bf01.jpg","text":"TemporaryFile(/tmp/multipartBody5194370504927365934asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541458873,"filename":"image_18082025_20_23_04_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1300986bf3c84cfdc59fd279f25f8cd7.jpg","text":"TemporaryFile(/tmp/multipartBody5429630512387346580asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541458873,"filename":"image_18082025_20_22_55_9618.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377716246","file1":"1377716243","file0":"1377716240","file4":"1377716250","file5":"1377716252","file3":"1377716248"},"map_files_photo_id_array":[{"photo_id":"1377716252","filename":"file5"},{"photo_id":"1377716246","filename":"file2"},{"photo_id":"1377716250","filename":"file4"},{"photo_id":"1377716243","filename":"file1"},{"photo_id":"1377716240","filename":"file0"},{"photo_id":"1377716248","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377716240":["hashtag1","hashtag2"]},{"1377716243":["hashtag1","hashtag2"]},{"1377716246":["hashtag1","hashtag2"]},{"1377716248":["hashtag1","hashtag2"]},{"1377716250":["hashtag1","hashtag2"]},{"1377716252":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377716240, 1377716243, 1377716246, 1377716248, 1377716250, 1377716252)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.270535707473755 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:24:03.501413
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/17/image_18082025_09_17_15_9677.jpg', 2), ('/home/nano/Desktop/images/18082025/09/16/image_18082025_09_17_05_10677.jpg', 2), ('/home/nano/Desktop/images/18082025/09/16/image_18082025_09_16_54_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/09/16/image_18082025_09_16_45_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/09/16/image_18082025_09_16_35_10664.jpg', 2), ('/home/nano/Desktop/images/18082025/09/16/image_18082025_09_16_24_9662.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/17/image_18082025_09_17_15_9677.jpg', '/home/nano/Desktop/images/18082025/09/16/image_18082025_09_17_05_10677.jpg', '/home/nano/Desktop/images/18082025/09/16/image_18082025_09_16_54_9661.jpg', '/home/nano/Desktop/images/18082025/09/16/image_18082025_09_16_45_9654.jpg', '/home/nano/Desktop/images/18082025/09/16/image_18082025_09_16_35_10664.jpg', '/home/nano/Desktop/images/18082025/09/16/image_18082025_09_16_24_9662.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/17/image_18082025_09_17_15_9677.jpg
/home/nano/Desktop/images/18082025/09/16/image_18082025_09_17_05_10677.jpg
/home/nano/Desktop/images/18082025/09/16/image_18082025_09_16_54_9661.jpg
/home/nano/Desktop/images/18082025/09/16/image_18082025_09_16_45_9654.jpg
/home/nano/Desktop/images/18082025/09/16/image_18082025_09_16_35_10664.jpg
/home/nano/Desktop/images/18082025/09/16/image_18082025_09_16_24_9662.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377716275","1377716272","1377716268","1377716262","1377716265","1377716270"],"photo_ids_order":["1377716262","1377716265","1377716268","1377716270","1377716272","1377716275"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0d82f96617b1417ffd989f53a771bfe3.jpg","text":"TemporaryFile(/tmp/multipartBody2053244083556106578asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541505444,"filename":"image_18082025_09_16_24_9662.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/53491a30ed98333b4e83bc1dce622b66.jpg","text":"TemporaryFile(/tmp/multipartBody8852869310113413164asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541505444,"filename":"image_18082025_09_16_35_10664.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3f4fd74f7263648582286c703f33d2db.jpg","text":"TemporaryFile(/tmp/multipartBody1070891759251717921asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541505444,"filename":"image_18082025_09_16_54_9661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/047f0942e930dc6a72002d7dbbd702d8.jpg","text":"TemporaryFile(/tmp/multipartBody5895344758877550895asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541505444,"filename":"image_18082025_09_17_15_9677.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4e3889057d15c5eaeed4680e36528c4b.jpg","text":"TemporaryFile(/tmp/multipartBody4429626128370144236asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541505444,"filename":"image_18082025_09_17_05_10677.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/85ace6eb51f8fd782fb4d7ac0511812d.jpg","text":"TemporaryFile(/tmp/multipartBody7705326116954696485asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541505444,"filename":"image_18082025_09_16_45_9654.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377716268","file1":"1377716265","file0":"1377716262","file4":"1377716272","file5":"1377716275","file3":"1377716270"},"map_files_photo_id_array":[{"photo_id":"1377716275","filename":"file5"},{"photo_id":"1377716268","filename":"file2"},{"photo_id":"1377716272","filename":"file4"},{"photo_id":"1377716265","filename":"file1"},{"photo_id":"1377716262","filename":"file0"},{"photo_id":"1377716270","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377716275":["hashtag1","hashtag2"]},{"1377716272":["hashtag1","hashtag2"]},{"1377716268":["hashtag1","hashtag2"]},{"1377716262":["hashtag1","hashtag2"]},{"1377716265":["hashtag1","hashtag2"]},{"1377716270":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377716275, 1377716272, 1377716268, 1377716262, 1377716265, 1377716270)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.997548818588257 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:24:47.758214
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/24/image_18082025_20_24_45_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/20/24/image_18082025_20_24_35_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/20/24/image_18082025_20_24_24_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/20/24/image_18082025_20_24_15_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/20/23/image_18082025_20_24_05_10625.jpg', 2), ('/home/nano/Desktop/images/18082025/20/23/image_18082025_20_23_54_9615.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/24/image_18082025_20_24_45_9622.jpg', '/home/nano/Desktop/images/18082025/20/24/image_18082025_20_24_35_10625.jpg', '/home/nano/Desktop/images/18082025/20/24/image_18082025_20_24_24_9622.jpg', '/home/nano/Desktop/images/18082025/20/24/image_18082025_20_24_15_9661.jpg', '/home/nano/Desktop/images/18082025/20/23/image_18082025_20_24_05_10625.jpg', '/home/nano/Desktop/images/18082025/20/23/image_18082025_20_23_54_9615.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/24/image_18082025_20_24_45_9622.jpg
/home/nano/Desktop/images/18082025/20/24/image_18082025_20_24_35_10625.jpg
/home/nano/Desktop/images/18082025/20/24/image_18082025_20_24_24_9622.jpg
/home/nano/Desktop/images/18082025/20/24/image_18082025_20_24_15_9661.jpg
/home/nano/Desktop/images/18082025/20/23/image_18082025_20_24_05_10625.jpg
/home/nano/Desktop/images/18082025/20/23/image_18082025_20_23_54_9615.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377716282","1377716290","1377716284","1377716287","1377716283","1377716285"],"photo_ids_order":["1377716282","1377716283","1377716284","1377716285","1377716287","1377716290"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fb064025ad7cd0de5bc0c170bff52ac1.jpg","text":"TemporaryFile(/tmp/multipartBody115125489184276352asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541549260,"filename":"image_18082025_20_24_45_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/094b266bb1028102cd33cc9099eca67d.jpg","text":"TemporaryFile(/tmp/multipartBody8804692378505639328asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541549260,"filename":"image_18082025_20_23_54_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b0356e70af667cc28a7d3fb2eddf1ec9.jpg","text":"TemporaryFile(/tmp/multipartBody7768839550892143867asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541549260,"filename":"image_18082025_20_24_24_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/291509040542c5ca40363344b3a3c9da.jpg","text":"TemporaryFile(/tmp/multipartBody8535512070284060987asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541549260,"filename":"image_18082025_20_24_05_10625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/be1d8ca2bb319841cef1559d68f5b00c.jpg","text":"TemporaryFile(/tmp/multipartBody7066437738271928703asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541549260,"filename":"image_18082025_20_24_35_10625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/580fe20996082de62f5161388b27f450.jpg","text":"TemporaryFile(/tmp/multipartBody880447742340011984asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541549260,"filename":"image_18082025_20_24_15_9661.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377716284","file1":"1377716283","file0":"1377716282","file4":"1377716287","file5":"1377716290","file3":"1377716285"},"map_files_photo_id_array":[{"photo_id":"1377716290","filename":"file5"},{"photo_id":"1377716284","filename":"file2"},{"photo_id":"1377716287","filename":"file4"},{"photo_id":"1377716283","filename":"file1"},{"photo_id":"1377716282","filename":"file0"},{"photo_id":"1377716285","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377716282":["hashtag1","hashtag2"]},{"1377716290":["hashtag1","hashtag2"]},{"1377716284":["hashtag1","hashtag2"]},{"1377716287":["hashtag1","hashtag2"]},{"1377716283":["hashtag1","hashtag2"]},{"1377716285":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377716282, 1377716290, 1377716284, 1377716287, 1377716283, 1377716285)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.02590990066528 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:25:31.929945
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/25/image_18082025_20_25_44_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/20/25/image_18082025_20_25_35_9610.jpg', 2), ('/home/nano/Desktop/images/18082025/20/25/image_18082025_20_25_25_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/20/25/image_18082025_20_25_14_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/20/24/image_18082025_20_25_05_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/20/24/image_18082025_20_24_54_9614.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/25/image_18082025_20_25_44_9619.jpg', '/home/nano/Desktop/images/18082025/20/25/image_18082025_20_25_35_9610.jpg', '/home/nano/Desktop/images/18082025/20/25/image_18082025_20_25_25_10623.jpg', '/home/nano/Desktop/images/18082025/20/25/image_18082025_20_25_14_9635.jpg', '/home/nano/Desktop/images/18082025/20/24/image_18082025_20_25_05_10646.jpg', '/home/nano/Desktop/images/18082025/20/24/image_18082025_20_24_54_9614.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/25/image_18082025_20_25_44_9619.jpg
/home/nano/Desktop/images/18082025/20/25/image_18082025_20_25_35_9610.jpg
/home/nano/Desktop/images/18082025/20/25/image_18082025_20_25_25_10623.jpg
/home/nano/Desktop/images/18082025/20/25/image_18082025_20_25_14_9635.jpg
/home/nano/Desktop/images/18082025/20/24/image_18082025_20_25_05_10646.jpg
/home/nano/Desktop/images/18082025/20/24/image_18082025_20_24_54_9614.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377716303","1377716305","1377716310","1377716304","1377716313","1377716307"],"photo_ids_order":["1377716303","1377716304","1377716305","1377716307","1377716310","1377716313"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f4169092b536a42526cba54fb454df51.jpg","text":"TemporaryFile(/tmp/multipartBody5058267085622024498asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541593309,"filename":"image_18082025_20_25_44_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3be7eab6e3aa45f37021387aa05be32e.jpg","text":"TemporaryFile(/tmp/multipartBody6196060885900181198asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541593309,"filename":"image_18082025_20_25_25_10623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/755b09efc9d32340bb1788ec807a0b6c.jpg","text":"TemporaryFile(/tmp/multipartBody7500420002120666672asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541593309,"filename":"image_18082025_20_25_05_10646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3c398231751f84faee8cfbf968380223.jpg","text":"TemporaryFile(/tmp/multipartBody3053136261845820574asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541593309,"filename":"image_18082025_20_25_35_9610.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0272d6625e05742ff0fc6d3b1e5e5c7f.jpg","text":"TemporaryFile(/tmp/multipartBody986708391306716090asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541593309,"filename":"image_18082025_20_24_54_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f462435f21d1bb1390935260bd12d9cf.jpg","text":"TemporaryFile(/tmp/multipartBody5291391750299255068asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541593309,"filename":"image_18082025_20_25_14_9635.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377716305","file1":"1377716304","file0":"1377716303","file4":"1377716310","file5":"1377716313","file3":"1377716307"},"map_files_photo_id_array":[{"photo_id":"1377716313","filename":"file5"},{"photo_id":"1377716305","filename":"file2"},{"photo_id":"1377716310","filename":"file4"},{"photo_id":"1377716304","filename":"file1"},{"photo_id":"1377716303","filename":"file0"},{"photo_id":"1377716307","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377716303":["hashtag1","hashtag2"]},{"1377716305":["hashtag1","hashtag2"]},{"1377716310":["hashtag1","hashtag2"]},{"1377716304":["hashtag1","hashtag2"]},{"1377716313":["hashtag1","hashtag2"]},{"1377716307":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377716303, 1377716305, 1377716310, 1377716304, 1377716313, 1377716307)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.982131719589233 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:26:16.963556
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/26/image_18082025_20_26_25_10671.jpg', 2), ('/home/nano/Desktop/images/18082025/20/26/image_18082025_20_26_14_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/20/25/image_18082025_20_26_05_9599.jpg', 2), ('/home/nano/Desktop/images/18082025/20/25/image_18082025_20_25_55_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/09/16/image_18082025_09_16_15_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/09/15/image_18082025_09_16_05_10633.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/26/image_18082025_20_26_25_10671.jpg', '/home/nano/Desktop/images/18082025/20/26/image_18082025_20_26_14_9633.jpg', '/home/nano/Desktop/images/18082025/20/25/image_18082025_20_26_05_9599.jpg', '/home/nano/Desktop/images/18082025/20/25/image_18082025_20_25_55_10635.jpg', '/home/nano/Desktop/images/18082025/09/16/image_18082025_09_16_15_9634.jpg', '/home/nano/Desktop/images/18082025/09/15/image_18082025_09_16_05_10633.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/26/image_18082025_20_26_25_10671.jpg
/home/nano/Desktop/images/18082025/20/26/image_18082025_20_26_14_9633.jpg
/home/nano/Desktop/images/18082025/20/25/image_18082025_20_26_05_9599.jpg
/home/nano/Desktop/images/18082025/20/25/image_18082025_20_25_55_10635.jpg
/home/nano/Desktop/images/18082025/09/16/image_18082025_09_16_15_9634.jpg
/home/nano/Desktop/images/18082025/09/15/image_18082025_09_16_05_10633.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377716333","1377716336","1377716330","1377716327","1377716323","1377716325"],"photo_ids_order":["1377716323","1377716325","1377716327","1377716330","1377716333","1377716336"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cae20f064af071f53e0c729b6f4aa8c0.jpg","text":"TemporaryFile(/tmp/multipartBody3568840080684281431asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541638127,"filename":"image_18082025_09_16_15_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/21cb5991cf5e1ec90f8bfafa75de6ee3.jpg","text":"TemporaryFile(/tmp/multipartBody12570541354196184asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541638127,"filename":"image_18082025_09_16_05_10633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4f1e86eb28e96f8f6f3c50d5c424fe09.jpg","text":"TemporaryFile(/tmp/multipartBody785409786836296800asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541638127,"filename":"image_18082025_20_25_55_10635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/20f226e7e86f972be567a3fd797b42cb.jpg","text":"TemporaryFile(/tmp/multipartBody2298732483049968830asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541638127,"filename":"image_18082025_20_26_05_9599.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b50d75bc3a99b320a295fd59aafbe5c0.jpg","text":"TemporaryFile(/tmp/multipartBody8255718805902352879asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541638127,"filename":"image_18082025_20_26_25_10671.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b0295afa4f75d60e1b1f61640423322c.jpg","text":"TemporaryFile(/tmp/multipartBody6897217059405956424asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541638127,"filename":"image_18082025_20_26_14_9633.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377716327","file1":"1377716325","file0":"1377716323","file4":"1377716333","file5":"1377716336","file3":"1377716330"},"map_files_photo_id_array":[{"photo_id":"1377716336","filename":"file5"},{"photo_id":"1377716327","filename":"file2"},{"photo_id":"1377716333","filename":"file4"},{"photo_id":"1377716325","filename":"file1"},{"photo_id":"1377716323","filename":"file0"},{"photo_id":"1377716330","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377716333":["hashtag1","hashtag2"]},{"1377716336":["hashtag1","hashtag2"]},{"1377716330":["hashtag1","hashtag2"]},{"1377716327":["hashtag1","hashtag2"]},{"1377716323":["hashtag1","hashtag2"]},{"1377716325":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377716333, 1377716336, 1377716330, 1377716327, 1377716323, 1377716325)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.99010419845581 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:27:02.831534
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/15/image_18082025_09_15_54_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/09/15/image_18082025_09_15_45_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/09/15/image_18082025_09_15_34_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/15/image_18082025_09_15_25_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/09/15/image_18082025_09_15_15_10662.jpg', 2), ('/home/nano/Desktop/images/18082025/09/14/image_18082025_09_15_04_9638.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/15/image_18082025_09_15_54_9619.jpg', '/home/nano/Desktop/images/18082025/09/15/image_18082025_09_15_45_10632.jpg', '/home/nano/Desktop/images/18082025/09/15/image_18082025_09_15_34_9616.jpg', '/home/nano/Desktop/images/18082025/09/15/image_18082025_09_15_25_9626.jpg', '/home/nano/Desktop/images/18082025/09/15/image_18082025_09_15_15_10662.jpg', '/home/nano/Desktop/images/18082025/09/14/image_18082025_09_15_04_9638.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/15/image_18082025_09_15_54_9619.jpg
/home/nano/Desktop/images/18082025/09/15/image_18082025_09_15_45_10632.jpg
/home/nano/Desktop/images/18082025/09/15/image_18082025_09_15_34_9616.jpg
/home/nano/Desktop/images/18082025/09/15/image_18082025_09_15_25_9626.jpg
/home/nano/Desktop/images/18082025/09/15/image_18082025_09_15_15_10662.jpg
/home/nano/Desktop/images/18082025/09/14/image_18082025_09_15_04_9638.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377716357","1377716353","1377716347","1377716361","1377716349","1377716364"],"photo_ids_order":["1377716347","1377716349","1377716353","1377716357","1377716361","1377716364"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b60d452526f1a8d2a0a2ff425df86e7b.jpg","text":"TemporaryFile(/tmp/multipartBody550550519878809878asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541684240,"filename":"image_18082025_09_15_25_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6bf61a45246adde62184a910e75092a4.jpg","text":"TemporaryFile(/tmp/multipartBody8946053148121632725asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541684240,"filename":"image_18082025_09_15_34_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d272530904bea0896370e718acae877b.jpg","text":"TemporaryFile(/tmp/multipartBody744696767236077283asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541684240,"filename":"image_18082025_09_15_54_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7473b5c82ed870b67ede728628101744.jpg","text":"TemporaryFile(/tmp/multipartBody6859501529894038016asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541684240,"filename":"image_18082025_09_15_15_10662.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/82bf05d9bb7a84c460ac9f03c775fee2.jpg","text":"TemporaryFile(/tmp/multipartBody5792944752144445397asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541684240,"filename":"image_18082025_09_15_45_10632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/615ff7d724e773020d9232423e4851e0.jpg","text":"TemporaryFile(/tmp/multipartBody6328228408578971423asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541684240,"filename":"image_18082025_09_15_04_9638.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377716353","file1":"1377716349","file0":"1377716347","file4":"1377716361","file5":"1377716364","file3":"1377716357"},"map_files_photo_id_array":[{"photo_id":"1377716364","filename":"file5"},{"photo_id":"1377716353","filename":"file2"},{"photo_id":"1377716361","filename":"file4"},{"photo_id":"1377716349","filename":"file1"},{"photo_id":"1377716347","filename":"file0"},{"photo_id":"1377716357","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377716357":["hashtag1","hashtag2"]},{"1377716353":["hashtag1","hashtag2"]},{"1377716347":["hashtag1","hashtag2"]},{"1377716361":["hashtag1","hashtag2"]},{"1377716349":["hashtag1","hashtag2"]},{"1377716364":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377716357, 1377716353, 1377716347, 1377716361, 1377716349, 1377716364)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.45571827888489 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:27:47.129380
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/27/image_18082025_20_27_45_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/20/27/image_18082025_20_27_34_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/20/27/image_18082025_20_27_25_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/20/27/image_18082025_20_27_15_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/20/26/image_18082025_20_27_04_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/20/26/image_18082025_20_26_34_9628.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/27/image_18082025_20_27_45_10641.jpg', '/home/nano/Desktop/images/18082025/20/27/image_18082025_20_27_34_9628.jpg', '/home/nano/Desktop/images/18082025/20/27/image_18082025_20_27_25_9630.jpg', '/home/nano/Desktop/images/18082025/20/27/image_18082025_20_27_15_10668.jpg', '/home/nano/Desktop/images/18082025/20/26/image_18082025_20_27_04_9635.jpg', '/home/nano/Desktop/images/18082025/20/26/image_18082025_20_26_34_9628.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/27/image_18082025_20_27_45_10641.jpg
/home/nano/Desktop/images/18082025/20/27/image_18082025_20_27_34_9628.jpg
/home/nano/Desktop/images/18082025/20/27/image_18082025_20_27_25_9630.jpg
/home/nano/Desktop/images/18082025/20/27/image_18082025_20_27_15_10668.jpg
/home/nano/Desktop/images/18082025/20/26/image_18082025_20_27_04_9635.jpg
/home/nano/Desktop/images/18082025/20/26/image_18082025_20_26_34_9628.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377716381","1377716374","1377716377","1377716368","1377716370","1377716372"],"photo_ids_order":["1377716368","1377716370","1377716372","1377716374","1377716377","1377716381"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/94d61695674b2ee91516d9aabc1c87a2.jpg","text":"TemporaryFile(/tmp/multipartBody692295598635197913asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541728969,"filename":"image_18082025_20_26_34_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/33ebddf3ac7c875394f9f77404b6031a.jpg","text":"TemporaryFile(/tmp/multipartBody8891568098983093146asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541728969,"filename":"image_18082025_20_27_15_10668.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bf231691342f70afc989fa23ccd7db79.jpg","text":"TemporaryFile(/tmp/multipartBody3684276564535067099asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541728969,"filename":"image_18082025_20_27_04_9635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/19a459ec1e791e28e161b9765aedc55c.jpg","text":"TemporaryFile(/tmp/multipartBody5834792848695005450asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541728969,"filename":"image_18082025_20_27_45_10641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9d2d57d289c8ae0ceef20a70de5a9223.jpg","text":"TemporaryFile(/tmp/multipartBody8129909130442923739asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541728969,"filename":"image_18082025_20_27_34_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b5d487bbd9dd7967d515fc2e31beb7dd.jpg","text":"TemporaryFile(/tmp/multipartBody430029222166984880asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541728969,"filename":"image_18082025_20_27_25_9630.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377716372","file1":"1377716370","file0":"1377716368","file4":"1377716377","file5":"1377716381","file3":"1377716374"},"map_files_photo_id_array":[{"photo_id":"1377716381","filename":"file5"},{"photo_id":"1377716372","filename":"file2"},{"photo_id":"1377716377","filename":"file4"},{"photo_id":"1377716370","filename":"file1"},{"photo_id":"1377716368","filename":"file0"},{"photo_id":"1377716374","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377716381":["hashtag1","hashtag2"]},{"1377716374":["hashtag1","hashtag2"]},{"1377716377":["hashtag1","hashtag2"]},{"1377716368":["hashtag1","hashtag2"]},{"1377716370":["hashtag1","hashtag2"]},{"1377716372":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377716381, 1377716374, 1377716377, 1377716368, 1377716370, 1377716372)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.358094453811646 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:28:32.245109
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/28/image_18082025_20_28_45_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/20/28/image_18082025_20_28_34_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/20/28/image_18082025_20_28_24_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/20/28/image_18082025_20_28_15_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/20/27/image_18082025_20_28_04_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/20/27/image_18082025_20_27_55_9631.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/28/image_18082025_20_28_45_10660.jpg', '/home/nano/Desktop/images/18082025/20/28/image_18082025_20_28_34_9628.jpg', '/home/nano/Desktop/images/18082025/20/28/image_18082025_20_28_24_9631.jpg', '/home/nano/Desktop/images/18082025/20/28/image_18082025_20_28_15_10660.jpg', '/home/nano/Desktop/images/18082025/20/27/image_18082025_20_28_04_9632.jpg', '/home/nano/Desktop/images/18082025/20/27/image_18082025_20_27_55_9631.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/28/image_18082025_20_28_45_10660.jpg
/home/nano/Desktop/images/18082025/20/28/image_18082025_20_28_34_9628.jpg
/home/nano/Desktop/images/18082025/20/28/image_18082025_20_28_24_9631.jpg
/home/nano/Desktop/images/18082025/20/28/image_18082025_20_28_15_10660.jpg
/home/nano/Desktop/images/18082025/20/27/image_18082025_20_28_04_9632.jpg
/home/nano/Desktop/images/18082025/20/27/image_18082025_20_27_55_9631.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377716395","1377716398","1377716391","1377716397","1377716399","1377716393"],"photo_ids_order":["1377716391","1377716393","1377716395","1377716397","1377716398","1377716399"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5a030a3303323dc89ac1a13cc3fdc9c0.jpg","text":"TemporaryFile(/tmp/multipartBody6133681811289740470asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541773744,"filename":"image_18082025_20_28_24_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b5724faa69a2f2e4221b146211af2c35.jpg","text":"TemporaryFile(/tmp/multipartBody549964311362462524asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541773744,"filename":"image_18082025_20_28_04_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/519d8fc02c5df39d7321b5a3f4266fd5.jpg","text":"TemporaryFile(/tmp/multipartBody173182395338289402asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541773744,"filename":"image_18082025_20_28_45_10660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a811685b6c01125a0bd8c92ac874d87e.jpg","text":"TemporaryFile(/tmp/multipartBody8379395963379801462asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541773744,"filename":"image_18082025_20_28_15_10660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/424cfedcb7f9980bf8f82bebe3fdc4f1.jpg","text":"TemporaryFile(/tmp/multipartBody7262287249262792924asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541773744,"filename":"image_18082025_20_27_55_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8edb1863fe3fcef667a62808ef044e0f.jpg","text":"TemporaryFile(/tmp/multipartBody1752526719336977493asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541773744,"filename":"image_18082025_20_28_34_9628.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377716395","file1":"1377716393","file0":"1377716391","file4":"1377716398","file5":"1377716399","file3":"1377716397"},"map_files_photo_id_array":[{"photo_id":"1377716399","filename":"file5"},{"photo_id":"1377716395","filename":"file2"},{"photo_id":"1377716398","filename":"file4"},{"photo_id":"1377716393","filename":"file1"},{"photo_id":"1377716391","filename":"file0"},{"photo_id":"1377716397","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377716395":["hashtag1","hashtag2"]},{"1377716398":["hashtag1","hashtag2"]},{"1377716391":["hashtag1","hashtag2"]},{"1377716397":["hashtag1","hashtag2"]},{"1377716399":["hashtag1","hashtag2"]},{"1377716393":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377716395, 1377716398, 1377716391, 1377716397, 1377716399, 1377716393)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.725820064544678 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:29:17.358507
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/29/image_18082025_20_29_15_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/20/28/image_18082025_20_28_54_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/09/14/image_18082025_09_14_55_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/09/14/image_18082025_09_14_45_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/09/14/image_18082025_09_14_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/09/14/image_18082025_09_14_25_9632.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/29/image_18082025_20_29_15_9639.jpg', '/home/nano/Desktop/images/18082025/20/28/image_18082025_20_28_54_9633.jpg', '/home/nano/Desktop/images/18082025/09/14/image_18082025_09_14_55_9642.jpg', '/home/nano/Desktop/images/18082025/09/14/image_18082025_09_14_45_10650.jpg', '/home/nano/Desktop/images/18082025/09/14/image_18082025_09_14_34_9640.jpg', '/home/nano/Desktop/images/18082025/09/14/image_18082025_09_14_25_9632.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/29/image_18082025_20_29_15_9639.jpg
/home/nano/Desktop/images/18082025/20/28/image_18082025_20_28_54_9633.jpg
/home/nano/Desktop/images/18082025/09/14/image_18082025_09_14_55_9642.jpg
/home/nano/Desktop/images/18082025/09/14/image_18082025_09_14_45_10650.jpg
/home/nano/Desktop/images/18082025/09/14/image_18082025_09_14_34_9640.jpg
/home/nano/Desktop/images/18082025/09/14/image_18082025_09_14_25_9632.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377716411","1377716405","1377716413","1377716407","1377716415","1377716409"],"photo_ids_order":["1377716405","1377716407","1377716409","1377716411","1377716413","1377716415"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e6543e92d12443df3d3548d4d12f3f49.jpg","text":"TemporaryFile(/tmp/multipartBody3649139543001809377asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541818678,"filename":"image_18082025_09_14_45_10650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/492b51c680a2cc8b6e33f03e116a36b3.jpg","text":"TemporaryFile(/tmp/multipartBody2256252439131630733asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541818678,"filename":"image_18082025_20_29_15_9639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3553d50bed18b22a957d066957c04a79.jpg","text":"TemporaryFile(/tmp/multipartBody6230839637794326206asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541818678,"filename":"image_18082025_09_14_34_9640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/807a22bfe6c7fc6207ae5efb1a8cbf93.jpg","text":"TemporaryFile(/tmp/multipartBody1955620510490772173asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541818678,"filename":"image_18082025_20_28_54_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/72c402278229544e6399d53fdbdc03e2.jpg","text":"TemporaryFile(/tmp/multipartBody7568710538294556477asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541818678,"filename":"image_18082025_09_14_25_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/67e7b96318b9cafbe746d5f9c7a0c422.jpg","text":"TemporaryFile(/tmp/multipartBody5981525632207152338asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541818678,"filename":"image_18082025_09_14_55_9642.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377716409","file1":"1377716407","file0":"1377716405","file4":"1377716413","file5":"1377716415","file3":"1377716411"},"map_files_photo_id_array":[{"photo_id":"1377716415","filename":"file5"},{"photo_id":"1377716409","filename":"file2"},{"photo_id":"1377716413","filename":"file4"},{"photo_id":"1377716407","filename":"file1"},{"photo_id":"1377716405","filename":"file0"},{"photo_id":"1377716411","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377716411":["hashtag1","hashtag2"]},{"1377716405":["hashtag1","hashtag2"]},{"1377716413":["hashtag1","hashtag2"]},{"1377716407":["hashtag1","hashtag2"]},{"1377716415":["hashtag1","hashtag2"]},{"1377716409":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377716411, 1377716405, 1377716413, 1377716407, 1377716415, 1377716409)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.77419829368591 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:30:03.136187
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/14/image_18082025_09_14_15_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/09/13/image_18082025_09_14_04_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/09/13/image_18082025_09_13_55_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/09/13/image_18082025_09_13_44_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/09/13/image_18082025_09_13_34_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/09/13/image_18082025_09_13_25_10645.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/14/image_18082025_09_14_15_10655.jpg', '/home/nano/Desktop/images/18082025/09/13/image_18082025_09_14_04_9640.jpg', '/home/nano/Desktop/images/18082025/09/13/image_18082025_09_13_55_10624.jpg', '/home/nano/Desktop/images/18082025/09/13/image_18082025_09_13_44_9628.jpg', '/home/nano/Desktop/images/18082025/09/13/image_18082025_09_13_34_9626.jpg', '/home/nano/Desktop/images/18082025/09/13/image_18082025_09_13_25_10645.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/14/image_18082025_09_14_15_10655.jpg
/home/nano/Desktop/images/18082025/09/13/image_18082025_09_14_04_9640.jpg
/home/nano/Desktop/images/18082025/09/13/image_18082025_09_13_55_10624.jpg
/home/nano/Desktop/images/18082025/09/13/image_18082025_09_13_44_9628.jpg
/home/nano/Desktop/images/18082025/09/13/image_18082025_09_13_34_9626.jpg
/home/nano/Desktop/images/18082025/09/13/image_18082025_09_13_25_10645.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377716441","1377716435","1377716438","1377716443","1377716440","1377716439"],"photo_ids_order":["1377716435","1377716438","1377716439","1377716440","1377716441","1377716443"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/30d735d7c03a8e41233bb7e984f4319e.jpg","text":"TemporaryFile(/tmp/multipartBody6866790832516086152asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541864481,"filename":"image_18082025_09_13_34_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/07117bbc4d99f8406f2537597009e0c1.jpg","text":"TemporaryFile(/tmp/multipartBody8521172230662279777asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541864481,"filename":"image_18082025_09_14_15_10655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ccfdd950197788711da156d548296ca3.jpg","text":"TemporaryFile(/tmp/multipartBody3839619668214671894asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541864481,"filename":"image_18082025_09_14_04_9640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/825a4e913f8921d2594b593ec475dd71.jpg","text":"TemporaryFile(/tmp/multipartBody7867654328940451142asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541864481,"filename":"image_18082025_09_13_25_10645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bd6f0ba056ca3910d2a9bce8d1920e71.jpg","text":"TemporaryFile(/tmp/multipartBody9167928063676808365asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541864481,"filename":"image_18082025_09_13_44_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9d6b3c91efde2d94bcbc7df7e983e805.jpg","text":"TemporaryFile(/tmp/multipartBody3090401346944877058asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541864481,"filename":"image_18082025_09_13_55_10624.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377716439","file1":"1377716438","file0":"1377716435","file4":"1377716441","file5":"1377716443","file3":"1377716440"},"map_files_photo_id_array":[{"photo_id":"1377716443","filename":"file5"},{"photo_id":"1377716439","filename":"file2"},{"photo_id":"1377716441","filename":"file4"},{"photo_id":"1377716438","filename":"file1"},{"photo_id":"1377716435","filename":"file0"},{"photo_id":"1377716440","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377716441":["hashtag1","hashtag2"]},{"1377716435":["hashtag1","hashtag2"]},{"1377716438":["hashtag1","hashtag2"]},{"1377716443":["hashtag1","hashtag2"]},{"1377716440":["hashtag1","hashtag2"]},{"1377716439":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377716441, 1377716435, 1377716438, 1377716443, 1377716440, 1377716439)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.69042730331421 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:30:47.471932
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/30/image_18082025_20_30_44_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/20/30/image_18082025_20_30_35_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/20/30/image_18082025_20_30_24_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/20/30/image_18082025_20_30_15_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/20/29/image_18082025_20_30_05_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/20/29/image_18082025_20_29_24_9631.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/30/image_18082025_20_30_44_9625.jpg', '/home/nano/Desktop/images/18082025/20/30/image_18082025_20_30_35_10639.jpg', '/home/nano/Desktop/images/18082025/20/30/image_18082025_20_30_24_9634.jpg', '/home/nano/Desktop/images/18082025/20/30/image_18082025_20_30_15_9651.jpg', '/home/nano/Desktop/images/18082025/20/29/image_18082025_20_30_05_10638.jpg', '/home/nano/Desktop/images/18082025/20/29/image_18082025_20_29_24_9631.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/30/image_18082025_20_30_44_9625.jpg
/home/nano/Desktop/images/18082025/20/30/image_18082025_20_30_35_10639.jpg
/home/nano/Desktop/images/18082025/20/30/image_18082025_20_30_24_9634.jpg
/home/nano/Desktop/images/18082025/20/30/image_18082025_20_30_15_9651.jpg
/home/nano/Desktop/images/18082025/20/29/image_18082025_20_30_05_10638.jpg
/home/nano/Desktop/images/18082025/20/29/image_18082025_20_29_24_9631.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377716453","1377716455","1377716464","1377716458","1377716460","1377716457"],"photo_ids_order":["1377716453","1377716455","1377716457","1377716458","1377716460","1377716464"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/64f8659bfc32d374267fc91e62a5c902.jpg","text":"TemporaryFile(/tmp/multipartBody8197977964157744121asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541909098,"filename":"image_18082025_20_30_44_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d195e189ceec6fc0ba79c9b1f914237c.jpg","text":"TemporaryFile(/tmp/multipartBody2468542363140985944asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541909098,"filename":"image_18082025_20_30_35_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a597084bdf887127f6fbcf938e9d0138.jpg","text":"TemporaryFile(/tmp/multipartBody5225983518987652612asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541909098,"filename":"image_18082025_20_29_24_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ee02fd20ec106463c90dafce7ea3abad.jpg","text":"TemporaryFile(/tmp/multipartBody1458078939185424670asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541909098,"filename":"image_18082025_20_30_15_9651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4f559a7123be3fe94028be288f3b47c8.jpg","text":"TemporaryFile(/tmp/multipartBody1115545838686920211asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541909098,"filename":"image_18082025_20_30_05_10638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4a0a0c37798770da49306e819e749b81.jpg","text":"TemporaryFile(/tmp/multipartBody6630372881307062922asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541909098,"filename":"image_18082025_20_30_24_9634.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377716457","file1":"1377716455","file0":"1377716453","file4":"1377716460","file5":"1377716464","file3":"1377716458"},"map_files_photo_id_array":[{"photo_id":"1377716464","filename":"file5"},{"photo_id":"1377716457","filename":"file2"},{"photo_id":"1377716460","filename":"file4"},{"photo_id":"1377716455","filename":"file1"},{"photo_id":"1377716453","filename":"file0"},{"photo_id":"1377716458","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377716453":["hashtag1","hashtag2"]},{"1377716455":["hashtag1","hashtag2"]},{"1377716464":["hashtag1","hashtag2"]},{"1377716458":["hashtag1","hashtag2"]},{"1377716460":["hashtag1","hashtag2"]},{"1377716457":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377716453, 1377716455, 1377716464, 1377716458, 1377716460, 1377716457)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.56147789955139 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:31:32.564761
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/31/image_18082025_20_31_35_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/20/31/image_18082025_20_31_25_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/20/31/image_18082025_20_31_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/20/30/image_18082025_20_31_05_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/20/30/image_18082025_20_30_55_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/09/13/image_18082025_09_13_14_9651.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/31/image_18082025_20_31_35_9631.jpg', '/home/nano/Desktop/images/18082025/20/31/image_18082025_20_31_25_10642.jpg', '/home/nano/Desktop/images/18082025/20/31/image_18082025_20_31_14_9656.jpg', '/home/nano/Desktop/images/18082025/20/30/image_18082025_20_31_05_9635.jpg', '/home/nano/Desktop/images/18082025/20/30/image_18082025_20_30_55_10638.jpg', '/home/nano/Desktop/images/18082025/09/13/image_18082025_09_13_14_9651.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/31/image_18082025_20_31_35_9631.jpg
/home/nano/Desktop/images/18082025/20/31/image_18082025_20_31_25_10642.jpg
/home/nano/Desktop/images/18082025/20/31/image_18082025_20_31_14_9656.jpg
/home/nano/Desktop/images/18082025/20/30/image_18082025_20_31_05_9635.jpg
/home/nano/Desktop/images/18082025/20/30/image_18082025_20_30_55_10638.jpg
/home/nano/Desktop/images/18082025/09/13/image_18082025_09_13_14_9651.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377716479","1377716484","1377716487","1377716481","1377716489","1377716477"],"photo_ids_order":["1377716477","1377716479","1377716481","1377716484","1377716487","1377716489"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7fe901c0556258555255433bec82b0e7.jpg","text":"TemporaryFile(/tmp/multipartBody1523939951073291191asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541954044,"filename":"image_18082025_20_31_25_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e6eeb0ca0eddf249cc1ecdf821f09813.jpg","text":"TemporaryFile(/tmp/multipartBody8151571106431046332asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541954044,"filename":"image_18082025_20_31_05_9635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5b993617103d560b29954c6c556813bd.jpg","text":"TemporaryFile(/tmp/multipartBody4888974268406885004asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541954044,"filename":"image_18082025_20_30_55_10638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8800db3ff834912046ac683a69bf79fa.jpg","text":"TemporaryFile(/tmp/multipartBody2603891489540563979asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541954044,"filename":"image_18082025_20_31_14_9656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2f7ef6f50da03f3e2936ba7eedd63898.jpg","text":"TemporaryFile(/tmp/multipartBody8899388401837215838asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541954044,"filename":"image_18082025_09_13_14_9651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4e27a952c4dbdb9aaaf4345c5e8e7332.jpg","text":"TemporaryFile(/tmp/multipartBody1914823991485609659asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755541954044,"filename":"image_18082025_20_31_35_9631.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377716481","file1":"1377716479","file0":"1377716477","file4":"1377716487","file5":"1377716489","file3":"1377716484"},"map_files_photo_id_array":[{"photo_id":"1377716489","filename":"file5"},{"photo_id":"1377716481","filename":"file2"},{"photo_id":"1377716487","filename":"file4"},{"photo_id":"1377716479","filename":"file1"},{"photo_id":"1377716477","filename":"file0"},{"photo_id":"1377716484","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377716479":["hashtag1","hashtag2"]},{"1377716484":["hashtag1","hashtag2"]},{"1377716487":["hashtag1","hashtag2"]},{"1377716481":["hashtag1","hashtag2"]},{"1377716489":["hashtag1","hashtag2"]},{"1377716477":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377716479, 1377716484, 1377716487, 1377716481, 1377716489, 1377716477)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.990024089813232 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:32:16.772911
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/32/image_18082025_20_32_44_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/20/32/image_18082025_20_32_34_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/20/32/image_18082025_20_32_25_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/20/31/image_18082025_20_32_05_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/20/31/image_18082025_20_31_55_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/09/12/image_18082025_09_13_05_9644.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/32/image_18082025_20_32_44_9626.jpg', '/home/nano/Desktop/images/18082025/20/32/image_18082025_20_32_34_9632.jpg', '/home/nano/Desktop/images/18082025/20/32/image_18082025_20_32_25_10640.jpg', '/home/nano/Desktop/images/18082025/20/31/image_18082025_20_32_05_9642.jpg', '/home/nano/Desktop/images/18082025/20/31/image_18082025_20_31_55_10641.jpg', '/home/nano/Desktop/images/18082025/09/12/image_18082025_09_13_05_9644.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/32/image_18082025_20_32_44_9626.jpg
/home/nano/Desktop/images/18082025/20/32/image_18082025_20_32_34_9632.jpg
/home/nano/Desktop/images/18082025/20/32/image_18082025_20_32_25_10640.jpg
/home/nano/Desktop/images/18082025/20/31/image_18082025_20_32_05_9642.jpg
/home/nano/Desktop/images/18082025/20/31/image_18082025_20_31_55_10641.jpg
/home/nano/Desktop/images/18082025/09/12/image_18082025_09_13_05_9644.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.1771066188812256 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:32:31.784074
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/32/image_18082025_20_32_44_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/20/32/image_18082025_20_32_34_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/20/32/image_18082025_20_32_25_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/20/31/image_18082025_20_32_05_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/20/31/image_18082025_20_31_55_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/09/12/image_18082025_09_13_05_9644.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/32/image_18082025_20_32_44_9626.jpg', '/home/nano/Desktop/images/18082025/20/32/image_18082025_20_32_34_9632.jpg', '/home/nano/Desktop/images/18082025/20/32/image_18082025_20_32_25_10640.jpg', '/home/nano/Desktop/images/18082025/20/31/image_18082025_20_32_05_9642.jpg', '/home/nano/Desktop/images/18082025/20/31/image_18082025_20_31_55_10641.jpg', '/home/nano/Desktop/images/18082025/09/12/image_18082025_09_13_05_9644.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/32/image_18082025_20_32_44_9626.jpg
/home/nano/Desktop/images/18082025/20/32/image_18082025_20_32_34_9632.jpg
/home/nano/Desktop/images/18082025/20/32/image_18082025_20_32_25_10640.jpg
/home/nano/Desktop/images/18082025/20/31/image_18082025_20_32_05_9642.jpg
/home/nano/Desktop/images/18082025/20/31/image_18082025_20_31_55_10641.jpg
/home/nano/Desktop/images/18082025/09/12/image_18082025_09_13_05_9644.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377716507","1377716510","1377716502","1377716511","1377716505","1377716508"],"photo_ids_order":["1377716502","1377716505","1377716507","1377716508","1377716510","1377716511"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/62a5948ee7b8a4afb7188f04dee6e419.jpg","text":"TemporaryFile(/tmp/multipartBody1662663181789001046asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542013139,"filename":"image_18082025_20_32_25_10640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9e517a9d804cd1e0d016fdefc7abc9b1.jpg","text":"TemporaryFile(/tmp/multipartBody1810351258121220390asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542013139,"filename":"image_18082025_20_31_55_10641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d1b4ca783d7e9485715628eeed8ce49e.jpg","text":"TemporaryFile(/tmp/multipartBody8242396490878382905asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542013139,"filename":"image_18082025_20_32_44_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/690953a078620db706b89ab4d1ea4515.jpg","text":"TemporaryFile(/tmp/multipartBody623373157277832033asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542013139,"filename":"image_18082025_09_13_05_9644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/92a06b0819cd7b8ccdbf265a59cdd141.jpg","text":"TemporaryFile(/tmp/multipartBody6010358743645154782asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542013139,"filename":"image_18082025_20_32_34_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/337ae92b1820ac5c4efc90a0fc18d54c.jpg","text":"TemporaryFile(/tmp/multipartBody972965929992312710asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542013139,"filename":"image_18082025_20_32_05_9642.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377716507","file1":"1377716505","file0":"1377716502","file4":"1377716510","file5":"1377716511","file3":"1377716508"},"map_files_photo_id_array":[{"photo_id":"1377716511","filename":"file5"},{"photo_id":"1377716507","filename":"file2"},{"photo_id":"1377716510","filename":"file4"},{"photo_id":"1377716505","filename":"file1"},{"photo_id":"1377716502","filename":"file0"},{"photo_id":"1377716508","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377716507":["hashtag1","hashtag2"]},{"1377716510":["hashtag1","hashtag2"]},{"1377716502":["hashtag1","hashtag2"]},{"1377716511":["hashtag1","hashtag2"]},{"1377716505":["hashtag1","hashtag2"]},{"1377716508":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377716507, 1377716510, 1377716502, 1377716511, 1377716505, 1377716508)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.472185373306274 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:33:16.875207
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/33/image_18082025_20_33_45_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/20/33/image_18082025_20_33_34_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/20/33/image_18082025_20_33_25_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/20/33/image_18082025_20_33_15_10676.jpg', 2), ('/home/nano/Desktop/images/18082025/20/32/image_18082025_20_32_55_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/09/12/image_18082025_09_12_55_10625.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/33/image_18082025_20_33_45_10639.jpg', '/home/nano/Desktop/images/18082025/20/33/image_18082025_20_33_34_9632.jpg', '/home/nano/Desktop/images/18082025/20/33/image_18082025_20_33_25_9627.jpg', '/home/nano/Desktop/images/18082025/20/33/image_18082025_20_33_15_10676.jpg', '/home/nano/Desktop/images/18082025/20/32/image_18082025_20_32_55_10640.jpg', '/home/nano/Desktop/images/18082025/09/12/image_18082025_09_12_55_10625.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/33/image_18082025_20_33_45_10639.jpg
/home/nano/Desktop/images/18082025/20/33/image_18082025_20_33_34_9632.jpg
/home/nano/Desktop/images/18082025/20/33/image_18082025_20_33_25_9627.jpg
/home/nano/Desktop/images/18082025/20/33/image_18082025_20_33_15_10676.jpg
/home/nano/Desktop/images/18082025/20/32/image_18082025_20_32_55_10640.jpg
/home/nano/Desktop/images/18082025/09/12/image_18082025_09_12_55_10625.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377716522","1377716519","1377716524","1377716521","1377716523","1377716517"],"photo_ids_order":["1377716517","1377716519","1377716521","1377716522","1377716523","1377716524"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d7ad60c6a4c04f5a144b366eaaec66ae.jpg","text":"TemporaryFile(/tmp/multipartBody1326903891360100725asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542058119,"filename":"image_18082025_20_33_15_10676.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f9066953ee3e66a945e9f438c435ae2a.jpg","text":"TemporaryFile(/tmp/multipartBody7919795525167798482asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542058119,"filename":"image_18082025_20_33_34_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f892af9e1a33965f7b90f488c8bcd5d4.jpg","text":"TemporaryFile(/tmp/multipartBody6162323361962214304asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542058119,"filename":"image_18082025_09_12_55_10625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9e98325c18d07996f3ff283a5760c762.jpg","text":"TemporaryFile(/tmp/multipartBody8983485402088749307asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542058119,"filename":"image_18082025_20_33_25_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a85fbbd33afcdbe765574dd0eab3a716.jpg","text":"TemporaryFile(/tmp/multipartBody8631156038773599137asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542058119,"filename":"image_18082025_20_32_55_10640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2c38e191c9b96728601f55d91e2c8bae.jpg","text":"TemporaryFile(/tmp/multipartBody148898021472213724asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542058119,"filename":"image_18082025_20_33_45_10639.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377716521","file1":"1377716519","file0":"1377716517","file4":"1377716523","file5":"1377716524","file3":"1377716522"},"map_files_photo_id_array":[{"photo_id":"1377716524","filename":"file5"},{"photo_id":"1377716521","filename":"file2"},{"photo_id":"1377716523","filename":"file4"},{"photo_id":"1377716519","filename":"file1"},{"photo_id":"1377716517","filename":"file0"},{"photo_id":"1377716522","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377716522":["hashtag1","hashtag2"]},{"1377716519":["hashtag1","hashtag2"]},{"1377716524":["hashtag1","hashtag2"]},{"1377716521":["hashtag1","hashtag2"]},{"1377716523":["hashtag1","hashtag2"]},{"1377716517":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377716522, 1377716519, 1377716524, 1377716521, 1377716523, 1377716517)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.21421027183533 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:34:02.943959
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/12/image_18082025_09_12_44_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/09/12/image_18082025_09_12_35_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/09/12/image_18082025_09_12_25_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/09/12/image_18082025_09_12_14_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/09/11/image_18082025_09_12_05_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/09/11/image_18082025_09_11_54_9619.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/12/image_18082025_09_12_44_9622.jpg', '/home/nano/Desktop/images/18082025/09/12/image_18082025_09_12_35_9617.jpg', '/home/nano/Desktop/images/18082025/09/12/image_18082025_09_12_25_10652.jpg', '/home/nano/Desktop/images/18082025/09/12/image_18082025_09_12_14_9649.jpg', '/home/nano/Desktop/images/18082025/09/11/image_18082025_09_12_05_10644.jpg', '/home/nano/Desktop/images/18082025/09/11/image_18082025_09_11_54_9619.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/12/image_18082025_09_12_44_9622.jpg
/home/nano/Desktop/images/18082025/09/12/image_18082025_09_12_35_9617.jpg
/home/nano/Desktop/images/18082025/09/12/image_18082025_09_12_25_10652.jpg
/home/nano/Desktop/images/18082025/09/12/image_18082025_09_12_14_9649.jpg
/home/nano/Desktop/images/18082025/09/11/image_18082025_09_12_05_10644.jpg
/home/nano/Desktop/images/18082025/09/11/image_18082025_09_11_54_9619.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377716531","1377716537","1377716539","1377716541","1377716535","1377716544"],"photo_ids_order":["1377716531","1377716535","1377716537","1377716539","1377716541","1377716544"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/87988672a78d7108227d15dfd02b7a55.jpg","text":"TemporaryFile(/tmp/multipartBody3788841036559497104asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542104143,"filename":"image_18082025_09_12_44_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e7a5fb5bc5499a1d5e866c41da5f1c46.jpg","text":"TemporaryFile(/tmp/multipartBody7622650216946710739asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542104143,"filename":"image_18082025_09_12_25_10652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9ea0fb0190395d8a851851fef4ca2fc9.jpg","text":"TemporaryFile(/tmp/multipartBody4845525614081300698asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542104143,"filename":"image_18082025_09_12_14_9649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/423888a3d4bfe0fc96e7da03ab4b7aff.jpg","text":"TemporaryFile(/tmp/multipartBody6629072623887191790asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542104143,"filename":"image_18082025_09_12_05_10644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2fc27e02d0e3d30f59cf0cb27b7e1942.jpg","text":"TemporaryFile(/tmp/multipartBody6967102589482360366asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542104143,"filename":"image_18082025_09_12_35_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e46aaa29ffde2def5b2edb7e9c151114.jpg","text":"TemporaryFile(/tmp/multipartBody1720058257622439116asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542104143,"filename":"image_18082025_09_11_54_9619.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377716537","file1":"1377716535","file0":"1377716531","file4":"1377716541","file5":"1377716544","file3":"1377716539"},"map_files_photo_id_array":[{"photo_id":"1377716544","filename":"file5"},{"photo_id":"1377716537","filename":"file2"},{"photo_id":"1377716541","filename":"file4"},{"photo_id":"1377716535","filename":"file1"},{"photo_id":"1377716531","filename":"file0"},{"photo_id":"1377716539","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377716531":["hashtag1","hashtag2"]},{"1377716537":["hashtag1","hashtag2"]},{"1377716539":["hashtag1","hashtag2"]},{"1377716541":["hashtag1","hashtag2"]},{"1377716535":["hashtag1","hashtag2"]},{"1377716544":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377716531, 1377716537, 1377716539, 1377716541, 1377716535, 1377716544)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.30834650993347 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:34:46.994160
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/34/image_18082025_20_34_45_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/20/34/image_18082025_20_34_34_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/20/34/image_18082025_20_34_15_10702.jpg', 2), ('/home/nano/Desktop/images/18082025/20/33/image_18082025_20_34_04_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/20/33/image_18082025_20_33_55_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/09/11/image_18082025_09_11_44_9619.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/34/image_18082025_20_34_45_10637.jpg', '/home/nano/Desktop/images/18082025/20/34/image_18082025_20_34_34_9632.jpg', '/home/nano/Desktop/images/18082025/20/34/image_18082025_20_34_15_10702.jpg', '/home/nano/Desktop/images/18082025/20/33/image_18082025_20_34_04_9649.jpg', '/home/nano/Desktop/images/18082025/20/33/image_18082025_20_33_55_9627.jpg', '/home/nano/Desktop/images/18082025/09/11/image_18082025_09_11_44_9619.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/34/image_18082025_20_34_45_10637.jpg
/home/nano/Desktop/images/18082025/20/34/image_18082025_20_34_34_9632.jpg
/home/nano/Desktop/images/18082025/20/34/image_18082025_20_34_15_10702.jpg
/home/nano/Desktop/images/18082025/20/33/image_18082025_20_34_04_9649.jpg
/home/nano/Desktop/images/18082025/20/33/image_18082025_20_33_55_9627.jpg
/home/nano/Desktop/images/18082025/09/11/image_18082025_09_11_44_9619.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.4433810710906982 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:35:02.656761
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/34/image_18082025_20_34_45_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/20/34/image_18082025_20_34_34_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/20/34/image_18082025_20_34_15_10702.jpg', 2), ('/home/nano/Desktop/images/18082025/20/33/image_18082025_20_34_04_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/20/33/image_18082025_20_33_55_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/09/11/image_18082025_09_11_44_9619.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/34/image_18082025_20_34_45_10637.jpg', '/home/nano/Desktop/images/18082025/20/34/image_18082025_20_34_34_9632.jpg', '/home/nano/Desktop/images/18082025/20/34/image_18082025_20_34_15_10702.jpg', '/home/nano/Desktop/images/18082025/20/33/image_18082025_20_34_04_9649.jpg', '/home/nano/Desktop/images/18082025/20/33/image_18082025_20_33_55_9627.jpg', '/home/nano/Desktop/images/18082025/09/11/image_18082025_09_11_44_9619.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/34/image_18082025_20_34_45_10637.jpg
/home/nano/Desktop/images/18082025/20/34/image_18082025_20_34_34_9632.jpg
/home/nano/Desktop/images/18082025/20/34/image_18082025_20_34_15_10702.jpg
/home/nano/Desktop/images/18082025/20/33/image_18082025_20_34_04_9649.jpg
/home/nano/Desktop/images/18082025/20/33/image_18082025_20_33_55_9627.jpg
/home/nano/Desktop/images/18082025/09/11/image_18082025_09_11_44_9619.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377716567","1377716555","1377716563","1377716565","1377716559","1377716561"],"photo_ids_order":["1377716555","1377716559","1377716561","1377716563","1377716565","1377716567"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/730e3f0e6da2820db0b8856116895c89.jpg","text":"TemporaryFile(/tmp/multipartBody5935537765929440332asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542164020,"filename":"image_18082025_09_11_44_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3f660a38895c05b7eb54be93ac11c5c4.jpg","text":"TemporaryFile(/tmp/multipartBody2531810957074041251asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542164020,"filename":"image_18082025_20_34_45_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/acca389dd1031deafb8db8e62073be00.jpg","text":"TemporaryFile(/tmp/multipartBody7909722758802770313asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542164020,"filename":"image_18082025_20_34_04_9649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4d1f6d514b2c20823f4dcbacf828213d.jpg","text":"TemporaryFile(/tmp/multipartBody1816918589118978312asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542164020,"filename":"image_18082025_20_33_55_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/306728a748227f6d2d8ae1b476298682.jpg","text":"TemporaryFile(/tmp/multipartBody8022634222669607326asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542164020,"filename":"image_18082025_20_34_34_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/004f454a97dfbdb91ea8cab64614a2d4.jpg","text":"TemporaryFile(/tmp/multipartBody5749083281700215664asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542164020,"filename":"image_18082025_20_34_15_10702.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377716561","file1":"1377716559","file0":"1377716555","file4":"1377716565","file5":"1377716567","file3":"1377716563"},"map_files_photo_id_array":[{"photo_id":"1377716567","filename":"file5"},{"photo_id":"1377716561","filename":"file2"},{"photo_id":"1377716565","filename":"file4"},{"photo_id":"1377716559","filename":"file1"},{"photo_id":"1377716555","filename":"file0"},{"photo_id":"1377716563","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377716567":["hashtag1","hashtag2"]},{"1377716555":["hashtag1","hashtag2"]},{"1377716563":["hashtag1","hashtag2"]},{"1377716565":["hashtag1","hashtag2"]},{"1377716559":["hashtag1","hashtag2"]},{"1377716561":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377716567, 1377716555, 1377716563, 1377716565, 1377716559, 1377716561)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.733819484710693 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:35:47.075011
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/35/image_18082025_20_35_45_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/20/35/image_18082025_20_35_35_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/20/35/image_18082025_20_35_24_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/20/35/image_18082025_20_35_15_10664.jpg', 2), ('/home/nano/Desktop/images/18082025/20/34/image_18082025_20_35_04_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/20/34/image_18082025_20_34_54_9629.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/35/image_18082025_20_35_45_9632.jpg', '/home/nano/Desktop/images/18082025/20/35/image_18082025_20_35_35_10640.jpg', '/home/nano/Desktop/images/18082025/20/35/image_18082025_20_35_24_9626.jpg', '/home/nano/Desktop/images/18082025/20/35/image_18082025_20_35_15_10664.jpg', '/home/nano/Desktop/images/18082025/20/34/image_18082025_20_35_04_9648.jpg', '/home/nano/Desktop/images/18082025/20/34/image_18082025_20_34_54_9629.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/35/image_18082025_20_35_45_9632.jpg
/home/nano/Desktop/images/18082025/20/35/image_18082025_20_35_35_10640.jpg
/home/nano/Desktop/images/18082025/20/35/image_18082025_20_35_24_9626.jpg
/home/nano/Desktop/images/18082025/20/35/image_18082025_20_35_15_10664.jpg
/home/nano/Desktop/images/18082025/20/34/image_18082025_20_35_04_9648.jpg
/home/nano/Desktop/images/18082025/20/34/image_18082025_20_34_54_9629.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377716573","1377716578","1377716571","1377716580","1377716574","1377716576"],"photo_ids_order":["1377716571","1377716573","1377716574","1377716576","1377716578","1377716580"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6d1c54aec44d605b3645ef00929e8440.jpg","text":"TemporaryFile(/tmp/multipartBody8052917504155332529asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542208431,"filename":"image_18082025_20_35_35_10640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2c2161fba20b769003cd1938201d5488.jpg","text":"TemporaryFile(/tmp/multipartBody1681343816031804401asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542208431,"filename":"image_18082025_20_35_04_9648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/09ab27e2b61af69baee5899d5a8cd7a9.jpg","text":"TemporaryFile(/tmp/multipartBody3477100157864918157asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542208431,"filename":"image_18082025_20_35_45_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b64cd51943ed11c0cb612d35ef9fb023.jpg","text":"TemporaryFile(/tmp/multipartBody8747203090834211922asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542208431,"filename":"image_18082025_20_34_54_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/aa67ce7c6f2a65f20de5d9aa097c0f8a.jpg","text":"TemporaryFile(/tmp/multipartBody6702809969185464738asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542208431,"filename":"image_18082025_20_35_24_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b32c2ec4fed9bd7ce3fa01695718d9e0.jpg","text":"TemporaryFile(/tmp/multipartBody6445638892007137994asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542208431,"filename":"image_18082025_20_35_15_10664.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377716574","file1":"1377716573","file0":"1377716571","file4":"1377716578","file5":"1377716580","file3":"1377716576"},"map_files_photo_id_array":[{"photo_id":"1377716580","filename":"file5"},{"photo_id":"1377716574","filename":"file2"},{"photo_id":"1377716578","filename":"file4"},{"photo_id":"1377716573","filename":"file1"},{"photo_id":"1377716571","filename":"file0"},{"photo_id":"1377716576","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377716573":["hashtag1","hashtag2"]},{"1377716578":["hashtag1","hashtag2"]},{"1377716571":["hashtag1","hashtag2"]},{"1377716580":["hashtag1","hashtag2"]},{"1377716574":["hashtag1","hashtag2"]},{"1377716576":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377716573, 1377716578, 1377716571, 1377716580, 1377716574, 1377716576)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.47543740272522 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:36:32.181770
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/36/image_18082025_20_36_44_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/20/36/image_18082025_20_36_35_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/20/36/image_18082025_20_36_24_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/20/36/image_18082025_20_36_15_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/20/35/image_18082025_20_36_05_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/20/35/image_18082025_20_35_54_9627.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/36/image_18082025_20_36_44_9631.jpg', '/home/nano/Desktop/images/18082025/20/36/image_18082025_20_36_35_10639.jpg', '/home/nano/Desktop/images/18082025/20/36/image_18082025_20_36_24_9629.jpg', '/home/nano/Desktop/images/18082025/20/36/image_18082025_20_36_15_9656.jpg', '/home/nano/Desktop/images/18082025/20/35/image_18082025_20_36_05_10649.jpg', '/home/nano/Desktop/images/18082025/20/35/image_18082025_20_35_54_9627.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/36/image_18082025_20_36_44_9631.jpg
/home/nano/Desktop/images/18082025/20/36/image_18082025_20_36_35_10639.jpg
/home/nano/Desktop/images/18082025/20/36/image_18082025_20_36_24_9629.jpg
/home/nano/Desktop/images/18082025/20/36/image_18082025_20_36_15_9656.jpg
/home/nano/Desktop/images/18082025/20/35/image_18082025_20_36_05_10649.jpg
/home/nano/Desktop/images/18082025/20/35/image_18082025_20_35_54_9627.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377716596","1377716598","1377716594","1377716588","1377716591","1377716585"],"photo_ids_order":["1377716585","1377716588","1377716591","1377716594","1377716596","1377716598"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0f9bc3cea581efe3f9a4a71a00ca7d67.jpg","text":"TemporaryFile(/tmp/multipartBody3177346390005404218asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542253521,"filename":"image_18082025_20_36_05_10649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/86ef997e846d6f1c35d2213d44eb1986.jpg","text":"TemporaryFile(/tmp/multipartBody2190690165601508265asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542253521,"filename":"image_18082025_20_35_54_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/35978294982000ba752661fd3fbd4a25.jpg","text":"TemporaryFile(/tmp/multipartBody497168875347483801asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542253521,"filename":"image_18082025_20_36_15_9656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2102329ed6a0d6de1c4a639762aa6b6d.jpg","text":"TemporaryFile(/tmp/multipartBody7370769261917595549asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542253521,"filename":"image_18082025_20_36_35_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/88dec0d67f86d64dd3d5f007a02300a9.jpg","text":"TemporaryFile(/tmp/multipartBody3479839098628055779asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542253521,"filename":"image_18082025_20_36_24_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d2c9d6321186d7689af79048bd7fe448.jpg","text":"TemporaryFile(/tmp/multipartBody7257981333449898640asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542253521,"filename":"image_18082025_20_36_44_9631.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377716591","file1":"1377716588","file0":"1377716585","file4":"1377716596","file5":"1377716598","file3":"1377716594"},"map_files_photo_id_array":[{"photo_id":"1377716598","filename":"file5"},{"photo_id":"1377716591","filename":"file2"},{"photo_id":"1377716596","filename":"file4"},{"photo_id":"1377716588","filename":"file1"},{"photo_id":"1377716585","filename":"file0"},{"photo_id":"1377716594","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377716596":["hashtag1","hashtag2"]},{"1377716598":["hashtag1","hashtag2"]},{"1377716594":["hashtag1","hashtag2"]},{"1377716588":["hashtag1","hashtag2"]},{"1377716591":["hashtag1","hashtag2"]},{"1377716585":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377716596, 1377716598, 1377716594, 1377716588, 1377716591, 1377716585)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.853195905685425 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:37:17.285089
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/37/image_18082025_20_37_35_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/20/37/image_18082025_20_37_24_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/20/37/image_18082025_20_37_14_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/20/36/image_18082025_20_36_54_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/09/11/image_18082025_09_11_35_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/09/11/image_18082025_09_11_24_9619.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/37/image_18082025_20_37_35_10642.jpg', '/home/nano/Desktop/images/18082025/20/37/image_18082025_20_37_24_9629.jpg', '/home/nano/Desktop/images/18082025/20/37/image_18082025_20_37_14_9652.jpg', '/home/nano/Desktop/images/18082025/20/36/image_18082025_20_36_54_9627.jpg', '/home/nano/Desktop/images/18082025/09/11/image_18082025_09_11_35_10636.jpg', '/home/nano/Desktop/images/18082025/09/11/image_18082025_09_11_24_9619.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/37/image_18082025_20_37_35_10642.jpg
/home/nano/Desktop/images/18082025/20/37/image_18082025_20_37_24_9629.jpg
/home/nano/Desktop/images/18082025/20/37/image_18082025_20_37_14_9652.jpg
/home/nano/Desktop/images/18082025/20/36/image_18082025_20_36_54_9627.jpg
/home/nano/Desktop/images/18082025/09/11/image_18082025_09_11_35_10636.jpg
/home/nano/Desktop/images/18082025/09/11/image_18082025_09_11_24_9619.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377716612","1377716614","1377716608","1377716610","1377716613","1377716607"],"photo_ids_order":["1377716607","1377716608","1377716610","1377716612","1377716613","1377716614"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/95555a74a4ab54b9e99221a9934f5b7c.jpg","text":"TemporaryFile(/tmp/multipartBody3673272362249768777asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542298734,"filename":"image_18082025_20_36_54_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/70bbe8ae67fd36ce2de49bfd186ee4fe.jpg","text":"TemporaryFile(/tmp/multipartBody6605996526545656193asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542298734,"filename":"image_18082025_09_11_24_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fcb5afbd23fbfb966bde32cc93262e19.jpg","text":"TemporaryFile(/tmp/multipartBody246856978819662275asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542298734,"filename":"image_18082025_20_37_24_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/301fecd95b57cfdb097c6a13a46480f4.jpg","text":"TemporaryFile(/tmp/multipartBody6275583978568551864asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542298734,"filename":"image_18082025_20_37_14_9652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/664d392e248b0c5163798764a8b953b6.jpg","text":"TemporaryFile(/tmp/multipartBody6706259501197668144asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542298734,"filename":"image_18082025_09_11_35_10636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dc08090f712254b4c73ecacbb8279584.jpg","text":"TemporaryFile(/tmp/multipartBody5892064441860126798asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542298734,"filename":"image_18082025_20_37_35_10642.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377716610","file1":"1377716608","file0":"1377716607","file4":"1377716613","file5":"1377716614","file3":"1377716612"},"map_files_photo_id_array":[{"photo_id":"1377716614","filename":"file5"},{"photo_id":"1377716610","filename":"file2"},{"photo_id":"1377716613","filename":"file4"},{"photo_id":"1377716608","filename":"file1"},{"photo_id":"1377716607","filename":"file0"},{"photo_id":"1377716612","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377716612":["hashtag1","hashtag2"]},{"1377716614":["hashtag1","hashtag2"]},{"1377716608":["hashtag1","hashtag2"]},{"1377716610":["hashtag1","hashtag2"]},{"1377716613":["hashtag1","hashtag2"]},{"1377716607":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377716612, 1377716614, 1377716608, 1377716610, 1377716613, 1377716607)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.514655113220215 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:38:02.847706
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/11/image_18082025_09_11_15_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/09/10/image_18082025_09_11_05_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/09/10/image_18082025_09_10_54_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/09/10/image_18082025_09_10_45_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/09/10/image_18082025_09_10_35_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/09/10/image_18082025_09_10_24_9620.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/11/image_18082025_09_11_15_9643.jpg', '/home/nano/Desktop/images/18082025/09/10/image_18082025_09_11_05_10644.jpg', '/home/nano/Desktop/images/18082025/09/10/image_18082025_09_10_54_9626.jpg', '/home/nano/Desktop/images/18082025/09/10/image_18082025_09_10_45_9635.jpg', '/home/nano/Desktop/images/18082025/09/10/image_18082025_09_10_35_10658.jpg', '/home/nano/Desktop/images/18082025/09/10/image_18082025_09_10_24_9620.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/11/image_18082025_09_11_15_9643.jpg
/home/nano/Desktop/images/18082025/09/10/image_18082025_09_11_05_10644.jpg
/home/nano/Desktop/images/18082025/09/10/image_18082025_09_10_54_9626.jpg
/home/nano/Desktop/images/18082025/09/10/image_18082025_09_10_45_9635.jpg
/home/nano/Desktop/images/18082025/09/10/image_18082025_09_10_35_10658.jpg
/home/nano/Desktop/images/18082025/09/10/image_18082025_09_10_24_9620.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377716624","1377716627","1377716626","1377716620","1377716628","1377716625"],"photo_ids_order":["1377716620","1377716624","1377716625","1377716626","1377716627","1377716628"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0ec22f169b338efa80b875a879d0f9b1.jpg","text":"TemporaryFile(/tmp/multipartBody400619724950005264asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542344283,"filename":"image_18082025_09_11_05_10644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2dc738d79a22b8a55c803b94b6bdf940.jpg","text":"TemporaryFile(/tmp/multipartBody5897593910013168864asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542344283,"filename":"image_18082025_09_10_35_10658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/083c33868f5103cfe7e490cb7295a7b9.jpg","text":"TemporaryFile(/tmp/multipartBody7020306128107571890asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542344283,"filename":"image_18082025_09_10_45_9635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c916d75f741aecbac5d58863c9ff689c.jpg","text":"TemporaryFile(/tmp/multipartBody6137085079088834515asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542344283,"filename":"image_18082025_09_11_15_9643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1651c40ad9f3d3ab7ab14bc19e047c66.jpg","text":"TemporaryFile(/tmp/multipartBody1211530889322605365asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542344283,"filename":"image_18082025_09_10_24_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/19d329f9a387e170166f619b8630ee32.jpg","text":"TemporaryFile(/tmp/multipartBody7063299371011361940asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542344283,"filename":"image_18082025_09_10_54_9626.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377716625","file1":"1377716624","file0":"1377716620","file4":"1377716627","file5":"1377716628","file3":"1377716626"},"map_files_photo_id_array":[{"photo_id":"1377716628","filename":"file5"},{"photo_id":"1377716625","filename":"file2"},{"photo_id":"1377716627","filename":"file4"},{"photo_id":"1377716624","filename":"file1"},{"photo_id":"1377716620","filename":"file0"},{"photo_id":"1377716626","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377716624":["hashtag1","hashtag2"]},{"1377716627":["hashtag1","hashtag2"]},{"1377716626":["hashtag1","hashtag2"]},{"1377716620":["hashtag1","hashtag2"]},{"1377716628":["hashtag1","hashtag2"]},{"1377716625":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377716624, 1377716627, 1377716626, 1377716620, 1377716628, 1377716625)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.749373197555542 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:38:47.366420
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/38/image_18082025_20_38_25_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/20/38/image_18082025_20_38_14_9666.jpg', 2), ('/home/nano/Desktop/images/18082025/20/37/image_18082025_20_38_05_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/20/37/image_18082025_20_37_44_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/09/10/image_18082025_09_10_15_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/09/09/image_18082025_09_10_04_9621.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/38/image_18082025_20_38_25_10640.jpg', '/home/nano/Desktop/images/18082025/20/38/image_18082025_20_38_14_9666.jpg', '/home/nano/Desktop/images/18082025/20/37/image_18082025_20_38_05_9650.jpg', '/home/nano/Desktop/images/18082025/20/37/image_18082025_20_37_44_9637.jpg', '/home/nano/Desktop/images/18082025/09/10/image_18082025_09_10_15_10658.jpg', '/home/nano/Desktop/images/18082025/09/09/image_18082025_09_10_04_9621.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/38/image_18082025_20_38_25_10640.jpg
/home/nano/Desktop/images/18082025/20/38/image_18082025_20_38_14_9666.jpg
/home/nano/Desktop/images/18082025/20/37/image_18082025_20_38_05_9650.jpg
/home/nano/Desktop/images/18082025/20/37/image_18082025_20_37_44_9637.jpg
/home/nano/Desktop/images/18082025/09/10/image_18082025_09_10_15_10658.jpg
/home/nano/Desktop/images/18082025/09/09/image_18082025_09_10_04_9621.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377716645","1377716639","1377716648","1377716641","1377716643","1377716637"],"photo_ids_order":["1377716637","1377716639","1377716641","1377716643","1377716645","1377716648"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/38ad9b4d5ba40463409310e0cfd6a9e2.jpg","text":"TemporaryFile(/tmp/multipartBody1549321456735721021asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542388655,"filename":"image_18082025_09_10_15_10658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f543415028e20a8feff31b12cbc73e25.jpg","text":"TemporaryFile(/tmp/multipartBody7386243475205837758asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542388655,"filename":"image_18082025_20_38_14_9666.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d63204261538224dc7ce1a360e489fd3.jpg","text":"TemporaryFile(/tmp/multipartBody3478175930509890879asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542388655,"filename":"image_18082025_09_10_04_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/29645a888329749cfc0113c3d4e7e8d7.jpg","text":"TemporaryFile(/tmp/multipartBody733137099347896255asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542388655,"filename":"image_18082025_20_38_05_9650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6da19e446921b00bfd2c6b03b5775967.jpg","text":"TemporaryFile(/tmp/multipartBody8237141077176725322asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542388655,"filename":"image_18082025_20_37_44_9637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1b88da3cfa8eeb92b4e2d2ff846f51dc.jpg","text":"TemporaryFile(/tmp/multipartBody4092231574865418651asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542388655,"filename":"image_18082025_20_38_25_10640.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377716641","file1":"1377716639","file0":"1377716637","file4":"1377716645","file5":"1377716648","file3":"1377716643"},"map_files_photo_id_array":[{"photo_id":"1377716648","filename":"file5"},{"photo_id":"1377716641","filename":"file2"},{"photo_id":"1377716645","filename":"file4"},{"photo_id":"1377716639","filename":"file1"},{"photo_id":"1377716637","filename":"file0"},{"photo_id":"1377716643","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377716645":["hashtag1","hashtag2"]},{"1377716639":["hashtag1","hashtag2"]},{"1377716648":["hashtag1","hashtag2"]},{"1377716641":["hashtag1","hashtag2"]},{"1377716643":["hashtag1","hashtag2"]},{"1377716637":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377716645, 1377716639, 1377716648, 1377716641, 1377716643, 1377716637)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.12269639968872 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:39:32.461084
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/39/image_18082025_20_39_45_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/20/39/image_18082025_20_39_25_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/20/39/image_18082025_20_39_14_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/20/38/image_18082025_20_38_55_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/09/09/image_18082025_09_09_54_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/09/09/image_18082025_09_09_45_10631.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/39/image_18082025_20_39_45_10640.jpg', '/home/nano/Desktop/images/18082025/20/39/image_18082025_20_39_25_10637.jpg', '/home/nano/Desktop/images/18082025/20/39/image_18082025_20_39_14_9657.jpg', '/home/nano/Desktop/images/18082025/20/38/image_18082025_20_38_55_10640.jpg', '/home/nano/Desktop/images/18082025/09/09/image_18082025_09_09_54_9620.jpg', '/home/nano/Desktop/images/18082025/09/09/image_18082025_09_09_45_10631.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/39/image_18082025_20_39_45_10640.jpg
/home/nano/Desktop/images/18082025/20/39/image_18082025_20_39_25_10637.jpg
/home/nano/Desktop/images/18082025/20/39/image_18082025_20_39_14_9657.jpg
/home/nano/Desktop/images/18082025/20/38/image_18082025_20_38_55_10640.jpg
/home/nano/Desktop/images/18082025/09/09/image_18082025_09_09_54_9620.jpg
/home/nano/Desktop/images/18082025/09/09/image_18082025_09_09_45_10631.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377716654","1377716674","1377716673","1377716655","1377716660","1377716657"],"photo_ids_order":["1377716654","1377716655","1377716657","1377716660","1377716673","1377716674"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/08bc31e91055c529763a57c461b6530f.jpg","text":"TemporaryFile(/tmp/multipartBody4371226826528559896asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542433876,"filename":"image_18082025_20_39_45_10640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a2292b1348b6099f0b6177605aabe299.jpg","text":"TemporaryFile(/tmp/multipartBody9216046190868249257asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542433876,"filename":"image_18082025_09_09_45_10631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/adffda6925b3fa117438abd13f4275d1.jpg","text":"TemporaryFile(/tmp/multipartBody9133704715042449437asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542433876,"filename":"image_18082025_09_09_54_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/763e4184a9b6a9daa53a18268efd2d22.jpg","text":"TemporaryFile(/tmp/multipartBody3227462346261807062asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542433876,"filename":"image_18082025_20_39_25_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dda4d2fc4bb6cf4e4e872dc89672b91a.jpg","text":"TemporaryFile(/tmp/multipartBody235870286945437872asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542433876,"filename":"image_18082025_20_38_55_10640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5ffa45620fcf05105a71fa0228c4ea78.jpg","text":"TemporaryFile(/tmp/multipartBody2526055243896663324asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542433876,"filename":"image_18082025_20_39_14_9657.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377716657","file1":"1377716655","file0":"1377716654","file4":"1377716673","file5":"1377716674","file3":"1377716660"},"map_files_photo_id_array":[{"photo_id":"1377716674","filename":"file5"},{"photo_id":"1377716657","filename":"file2"},{"photo_id":"1377716673","filename":"file4"},{"photo_id":"1377716655","filename":"file1"},{"photo_id":"1377716654","filename":"file0"},{"photo_id":"1377716660","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377716654":["hashtag1","hashtag2"]},{"1377716674":["hashtag1","hashtag2"]},{"1377716673":["hashtag1","hashtag2"]},{"1377716655":["hashtag1","hashtag2"]},{"1377716660":["hashtag1","hashtag2"]},{"1377716657":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377716654, 1377716674, 1377716673, 1377716655, 1377716660, 1377716657)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.809722185134888 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:40:17.580460
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/40/image_18082025_20_40_45_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/20/40/image_18082025_20_40_34_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/20/40/image_18082025_20_40_25_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/20/39/image_18082025_20_39_55_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/09/09/image_18082025_09_09_34_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/09/09/image_18082025_09_09_25_9620.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/40/image_18082025_20_40_45_10641.jpg', '/home/nano/Desktop/images/18082025/20/40/image_18082025_20_40_34_9625.jpg', '/home/nano/Desktop/images/18082025/20/40/image_18082025_20_40_25_9631.jpg', '/home/nano/Desktop/images/18082025/20/39/image_18082025_20_39_55_9636.jpg', '/home/nano/Desktop/images/18082025/09/09/image_18082025_09_09_34_9622.jpg', '/home/nano/Desktop/images/18082025/09/09/image_18082025_09_09_25_9620.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/40/image_18082025_20_40_45_10641.jpg
/home/nano/Desktop/images/18082025/20/40/image_18082025_20_40_34_9625.jpg
/home/nano/Desktop/images/18082025/20/40/image_18082025_20_40_25_9631.jpg
/home/nano/Desktop/images/18082025/20/39/image_18082025_20_39_55_9636.jpg
/home/nano/Desktop/images/18082025/09/09/image_18082025_09_09_34_9622.jpg
/home/nano/Desktop/images/18082025/09/09/image_18082025_09_09_25_9620.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.4227726459503174 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:40:32.576474
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/40/image_18082025_20_40_45_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/20/40/image_18082025_20_40_34_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/20/40/image_18082025_20_40_25_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/20/39/image_18082025_20_39_55_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/09/09/image_18082025_09_09_34_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/09/09/image_18082025_09_09_25_9620.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/40/image_18082025_20_40_45_10641.jpg', '/home/nano/Desktop/images/18082025/20/40/image_18082025_20_40_34_9625.jpg', '/home/nano/Desktop/images/18082025/20/40/image_18082025_20_40_25_9631.jpg', '/home/nano/Desktop/images/18082025/20/39/image_18082025_20_39_55_9636.jpg', '/home/nano/Desktop/images/18082025/09/09/image_18082025_09_09_34_9622.jpg', '/home/nano/Desktop/images/18082025/09/09/image_18082025_09_09_25_9620.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/40/image_18082025_20_40_45_10641.jpg
/home/nano/Desktop/images/18082025/20/40/image_18082025_20_40_34_9625.jpg
/home/nano/Desktop/images/18082025/20/40/image_18082025_20_40_25_9631.jpg
/home/nano/Desktop/images/18082025/20/39/image_18082025_20_39_55_9636.jpg
/home/nano/Desktop/images/18082025/09/09/image_18082025_09_09_34_9622.jpg
/home/nano/Desktop/images/18082025/09/09/image_18082025_09_09_25_9620.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377716705","1377716702","1377716697","1377716693","1377716706","1377716699"],"photo_ids_order":["1377716693","1377716697","1377716699","1377716702","1377716705","1377716706"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6a102928670661ee9c4aeff798901a2b.jpg","text":"TemporaryFile(/tmp/multipartBody8428766528099681296asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542493770,"filename":"image_18082025_09_09_34_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/84776fd55b8989a2023c23ee4eecf91f.jpg","text":"TemporaryFile(/tmp/multipartBody4253175715321545616asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542493770,"filename":"image_18082025_20_39_55_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e34fb88c479fd2f2dd5fa2dec23ae30a.jpg","text":"TemporaryFile(/tmp/multipartBody1431384178830326970asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542493770,"filename":"image_18082025_20_40_34_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/26d9eca21f4969968b0fb9a8e2c0fb5a.jpg","text":"TemporaryFile(/tmp/multipartBody4426273735777198323asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542493770,"filename":"image_18082025_20_40_45_10641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c36eb907fbbb2cae6e117de98d5283c4.jpg","text":"TemporaryFile(/tmp/multipartBody2395663629460812303asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542493770,"filename":"image_18082025_09_09_25_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/48fe583d04416262b7f04fda235fd46d.jpg","text":"TemporaryFile(/tmp/multipartBody1312331008883573737asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542493770,"filename":"image_18082025_20_40_25_9631.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377716699","file1":"1377716697","file0":"1377716693","file4":"1377716705","file5":"1377716706","file3":"1377716702"},"map_files_photo_id_array":[{"photo_id":"1377716706","filename":"file5"},{"photo_id":"1377716699","filename":"file2"},{"photo_id":"1377716705","filename":"file4"},{"photo_id":"1377716697","filename":"file1"},{"photo_id":"1377716693","filename":"file0"},{"photo_id":"1377716702","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377716705":["hashtag1","hashtag2"]},{"1377716702":["hashtag1","hashtag2"]},{"1377716697":["hashtag1","hashtag2"]},{"1377716693":["hashtag1","hashtag2"]},{"1377716706":["hashtag1","hashtag2"]},{"1377716699":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377716705, 1377716702, 1377716697, 1377716693, 1377716706, 1377716699)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.238378047943115 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:41:17.728848
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/41/image_18082025_20_41_45_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/20/41/image_18082025_20_41_34_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/20/41/image_18082025_20_41_24_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/20/41/image_18082025_20_41_15_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/20/40/image_18082025_20_40_55_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/09/09/image_18082025_09_09_15_10682.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/41/image_18082025_20_41_45_10638.jpg', '/home/nano/Desktop/images/18082025/20/41/image_18082025_20_41_34_9644.jpg', '/home/nano/Desktop/images/18082025/20/41/image_18082025_20_41_24_9628.jpg', '/home/nano/Desktop/images/18082025/20/41/image_18082025_20_41_15_10660.jpg', '/home/nano/Desktop/images/18082025/20/40/image_18082025_20_40_55_9630.jpg', '/home/nano/Desktop/images/18082025/09/09/image_18082025_09_09_15_10682.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/41/image_18082025_20_41_45_10638.jpg
/home/nano/Desktop/images/18082025/20/41/image_18082025_20_41_34_9644.jpg
/home/nano/Desktop/images/18082025/20/41/image_18082025_20_41_24_9628.jpg
/home/nano/Desktop/images/18082025/20/41/image_18082025_20_41_15_10660.jpg
/home/nano/Desktop/images/18082025/20/40/image_18082025_20_40_55_9630.jpg
/home/nano/Desktop/images/18082025/09/09/image_18082025_09_09_15_10682.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377716714","1377716717","1377716719","1377716715","1377716718","1377716712"],"photo_ids_order":["1377716712","1377716714","1377716715","1377716717","1377716718","1377716719"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1413e513f4500d8d80d0752652c669a6.jpg","text":"TemporaryFile(/tmp/multipartBody8960566264220055262asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542538905,"filename":"image_18082025_20_41_34_9644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/19132340546803ceafa29b3a5bb4c54b.jpg","text":"TemporaryFile(/tmp/multipartBody5217466331844160386asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542538905,"filename":"image_18082025_20_41_15_10660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/40ce8605f80d92fc069aa8bb694ccbc4.jpg","text":"TemporaryFile(/tmp/multipartBody2242635940398560830asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542538905,"filename":"image_18082025_09_09_15_10682.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0a43402c183b56a8d1fa401104631851.jpg","text":"TemporaryFile(/tmp/multipartBody3344326999487213726asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542538905,"filename":"image_18082025_20_41_24_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3be9c27404339185f4757d5b9dbbf7c5.jpg","text":"TemporaryFile(/tmp/multipartBody606055373227518033asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542538905,"filename":"image_18082025_20_40_55_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ab6f49373f65ad4629c36f63346c80fa.jpg","text":"TemporaryFile(/tmp/multipartBody7708314865818574488asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542538905,"filename":"image_18082025_20_41_45_10638.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377716715","file1":"1377716714","file0":"1377716712","file4":"1377716718","file5":"1377716719","file3":"1377716717"},"map_files_photo_id_array":[{"photo_id":"1377716719","filename":"file5"},{"photo_id":"1377716715","filename":"file2"},{"photo_id":"1377716718","filename":"file4"},{"photo_id":"1377716714","filename":"file1"},{"photo_id":"1377716712","filename":"file0"},{"photo_id":"1377716717","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377716714":["hashtag1","hashtag2"]},{"1377716717":["hashtag1","hashtag2"]},{"1377716719":["hashtag1","hashtag2"]},{"1377716715":["hashtag1","hashtag2"]},{"1377716718":["hashtag1","hashtag2"]},{"1377716712":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377716714, 1377716717, 1377716719, 1377716715, 1377716718, 1377716712)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.429601907730103 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:42:02.148506
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/08/image_18082025_09_09_04_9667.jpg', 2), ('/home/nano/Desktop/images/18082025/09/08/image_18082025_09_08_55_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/09/08/image_18082025_09_08_45_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/09/08/image_18082025_09_08_34_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/08/image_18082025_09_08_25_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/09/08/image_18082025_09_08_14_9654.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/08/image_18082025_09_09_04_9667.jpg', '/home/nano/Desktop/images/18082025/09/08/image_18082025_09_08_55_9618.jpg', '/home/nano/Desktop/images/18082025/09/08/image_18082025_09_08_45_10627.jpg', '/home/nano/Desktop/images/18082025/09/08/image_18082025_09_08_34_9616.jpg', '/home/nano/Desktop/images/18082025/09/08/image_18082025_09_08_25_10624.jpg', '/home/nano/Desktop/images/18082025/09/08/image_18082025_09_08_14_9654.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/08/image_18082025_09_09_04_9667.jpg
/home/nano/Desktop/images/18082025/09/08/image_18082025_09_08_55_9618.jpg
/home/nano/Desktop/images/18082025/09/08/image_18082025_09_08_45_10627.jpg
/home/nano/Desktop/images/18082025/09/08/image_18082025_09_08_34_9616.jpg
/home/nano/Desktop/images/18082025/09/08/image_18082025_09_08_25_10624.jpg
/home/nano/Desktop/images/18082025/09/08/image_18082025_09_08_14_9654.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377716732","1377716731","1377716725","1377716728","1377716733","1377716730"],"photo_ids_order":["1377716725","1377716728","1377716730","1377716731","1377716732","1377716733"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c61dcf4798e11eab0b997a50b2801f18.jpg","text":"TemporaryFile(/tmp/multipartBody5886876253828391706asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542583578,"filename":"image_18082025_09_08_25_10624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2879da2acb4b043b44663b4dd0ef27b0.jpg","text":"TemporaryFile(/tmp/multipartBody621722408304449674asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542583578,"filename":"image_18082025_09_08_34_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/41993100188efacf0771ecea472df5e4.jpg","text":"TemporaryFile(/tmp/multipartBody7404021767819231507asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542583578,"filename":"image_18082025_09_09_04_9667.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3c7a6d12f693a61c2bb5f6eb6d49e788.jpg","text":"TemporaryFile(/tmp/multipartBody5383196086181887839asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542583578,"filename":"image_18082025_09_08_55_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/50e6f91bca4af2d4fffde30853f39255.jpg","text":"TemporaryFile(/tmp/multipartBody1885599541868046907asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542583578,"filename":"image_18082025_09_08_14_9654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f5f206247197e5275dec36997061cc5f.jpg","text":"TemporaryFile(/tmp/multipartBody5121015675830158801asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542583578,"filename":"image_18082025_09_08_45_10627.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377716730","file1":"1377716728","file0":"1377716725","file4":"1377716732","file5":"1377716733","file3":"1377716731"},"map_files_photo_id_array":[{"photo_id":"1377716733","filename":"file5"},{"photo_id":"1377716730","filename":"file2"},{"photo_id":"1377716732","filename":"file4"},{"photo_id":"1377716728","filename":"file1"},{"photo_id":"1377716725","filename":"file0"},{"photo_id":"1377716731","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377716732":["hashtag1","hashtag2"]},{"1377716731":["hashtag1","hashtag2"]},{"1377716725":["hashtag1","hashtag2"]},{"1377716728":["hashtag1","hashtag2"]},{"1377716733":["hashtag1","hashtag2"]},{"1377716730":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377716732, 1377716731, 1377716725, 1377716728, 1377716733, 1377716730)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.59066605567932 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:42:46.763579
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/42/image_18082025_20_42_45_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/20/42/image_18082025_20_42_35_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/20/42/image_18082025_20_42_15_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/20/41/image_18082025_20_41_54_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/09/07/image_18082025_09_08_04_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/07/image_18082025_09_07_55_10649.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/42/image_18082025_20_42_45_9629.jpg', '/home/nano/Desktop/images/18082025/20/42/image_18082025_20_42_35_10636.jpg', '/home/nano/Desktop/images/18082025/20/42/image_18082025_20_42_15_9654.jpg', '/home/nano/Desktop/images/18082025/20/41/image_18082025_20_41_54_9630.jpg', '/home/nano/Desktop/images/18082025/09/07/image_18082025_09_08_04_9616.jpg', '/home/nano/Desktop/images/18082025/09/07/image_18082025_09_07_55_10649.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/42/image_18082025_20_42_45_9629.jpg
/home/nano/Desktop/images/18082025/20/42/image_18082025_20_42_35_10636.jpg
/home/nano/Desktop/images/18082025/20/42/image_18082025_20_42_15_9654.jpg
/home/nano/Desktop/images/18082025/20/41/image_18082025_20_41_54_9630.jpg
/home/nano/Desktop/images/18082025/09/07/image_18082025_09_08_04_9616.jpg
/home/nano/Desktop/images/18082025/09/07/image_18082025_09_07_55_10649.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.1124167442321777 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:43:02.481136
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/42/image_18082025_20_42_45_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/20/42/image_18082025_20_42_35_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/20/42/image_18082025_20_42_15_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/20/41/image_18082025_20_41_54_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/09/07/image_18082025_09_08_04_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/07/image_18082025_09_07_55_10649.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/42/image_18082025_20_42_45_9629.jpg', '/home/nano/Desktop/images/18082025/20/42/image_18082025_20_42_35_10636.jpg', '/home/nano/Desktop/images/18082025/20/42/image_18082025_20_42_15_9654.jpg', '/home/nano/Desktop/images/18082025/20/41/image_18082025_20_41_54_9630.jpg', '/home/nano/Desktop/images/18082025/09/07/image_18082025_09_08_04_9616.jpg', '/home/nano/Desktop/images/18082025/09/07/image_18082025_09_07_55_10649.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/42/image_18082025_20_42_45_9629.jpg
/home/nano/Desktop/images/18082025/20/42/image_18082025_20_42_35_10636.jpg
/home/nano/Desktop/images/18082025/20/42/image_18082025_20_42_15_9654.jpg
/home/nano/Desktop/images/18082025/20/41/image_18082025_20_41_54_9630.jpg
/home/nano/Desktop/images/18082025/09/07/image_18082025_09_08_04_9616.jpg
/home/nano/Desktop/images/18082025/09/07/image_18082025_09_07_55_10649.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377716747","1377716749","1377716743","1377716751","1377716754","1377716748"],"photo_ids_order":["1377716743","1377716747","1377716748","1377716749","1377716751","1377716754"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bb74dd3b6f0418ae398a3372b3bec253.jpg","text":"TemporaryFile(/tmp/multipartBody2767679241497069623asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542643882,"filename":"image_18082025_20_42_35_10636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/23c300f6c5fe936dbb0458dba82a28f5.jpg","text":"TemporaryFile(/tmp/multipartBody6710071194060919762asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542643882,"filename":"image_18082025_20_41_54_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6f4785a5b0af38a30f4a14b669479716.jpg","text":"TemporaryFile(/tmp/multipartBody1277472108792268290asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542643882,"filename":"image_18082025_20_42_45_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f9f491e7db47102f4cc3784171aa9f4b.jpg","text":"TemporaryFile(/tmp/multipartBody1440088111896985298asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542643882,"filename":"image_18082025_09_08_04_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8e6123e08217d717dea2809b79eff628.jpg","text":"TemporaryFile(/tmp/multipartBody9129456843793629918asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542643882,"filename":"image_18082025_09_07_55_10649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ac14850e8a27e5c4ae6d0ff4f016a519.jpg","text":"TemporaryFile(/tmp/multipartBody1307468233300003967asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542643882,"filename":"image_18082025_20_42_15_9654.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377716748","file1":"1377716747","file0":"1377716743","file4":"1377716751","file5":"1377716754","file3":"1377716749"},"map_files_photo_id_array":[{"photo_id":"1377716754","filename":"file5"},{"photo_id":"1377716748","filename":"file2"},{"photo_id":"1377716751","filename":"file4"},{"photo_id":"1377716747","filename":"file1"},{"photo_id":"1377716743","filename":"file0"},{"photo_id":"1377716749","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377716747":["hashtag1","hashtag2"]},{"1377716749":["hashtag1","hashtag2"]},{"1377716743":["hashtag1","hashtag2"]},{"1377716751":["hashtag1","hashtag2"]},{"1377716754":["hashtag1","hashtag2"]},{"1377716748":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377716747, 1377716749, 1377716743, 1377716751, 1377716754, 1377716748)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.50375580787659 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:43:46.873826
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/43/image_18082025_20_43_44_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/20/43/image_18082025_20_43_35_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/20/43/image_18082025_20_43_24_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/20/43/image_18082025_20_43_15_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/20/42/image_18082025_20_43_05_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/20/42/image_18082025_20_42_54_9632.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/43/image_18082025_20_43_44_9625.jpg', '/home/nano/Desktop/images/18082025/20/43/image_18082025_20_43_35_10635.jpg', '/home/nano/Desktop/images/18082025/20/43/image_18082025_20_43_24_9648.jpg', '/home/nano/Desktop/images/18082025/20/43/image_18082025_20_43_15_9633.jpg', '/home/nano/Desktop/images/18082025/20/42/image_18082025_20_43_05_10673.jpg', '/home/nano/Desktop/images/18082025/20/42/image_18082025_20_42_54_9632.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/43/image_18082025_20_43_44_9625.jpg
/home/nano/Desktop/images/18082025/20/43/image_18082025_20_43_35_10635.jpg
/home/nano/Desktop/images/18082025/20/43/image_18082025_20_43_24_9648.jpg
/home/nano/Desktop/images/18082025/20/43/image_18082025_20_43_15_9633.jpg
/home/nano/Desktop/images/18082025/20/42/image_18082025_20_43_05_10673.jpg
/home/nano/Desktop/images/18082025/20/42/image_18082025_20_42_54_9632.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377716765","1377716767","1377716764","1377716772","1377716766","1377716769"],"photo_ids_order":["1377716764","1377716765","1377716766","1377716767","1377716769","1377716772"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3864bb0c6f5a410c3fc3493416b6ef73.jpg","text":"TemporaryFile(/tmp/multipartBody7303748637263722379asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542688398,"filename":"image_18082025_20_43_35_10635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b5634158f584a01980e31c93dc2d92f9.jpg","text":"TemporaryFile(/tmp/multipartBody4921838287604163533asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542688398,"filename":"image_18082025_20_43_15_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5ee036f645d29395f13e09ac8c32eef4.jpg","text":"TemporaryFile(/tmp/multipartBody2047389685480259565asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542688398,"filename":"image_18082025_20_43_44_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/30e603c6ec55be15e688f09e2ffedc19.jpg","text":"TemporaryFile(/tmp/multipartBody5124336682517713692asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542688398,"filename":"image_18082025_20_42_54_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8659e7a6c44efc887d82f417225dfbfc.jpg","text":"TemporaryFile(/tmp/multipartBody31108378623197889asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542688398,"filename":"image_18082025_20_43_24_9648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/613c13b4cf8a893148787f77e40f4803.jpg","text":"TemporaryFile(/tmp/multipartBody1103770673771191779asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542688398,"filename":"image_18082025_20_43_05_10673.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377716766","file1":"1377716765","file0":"1377716764","file4":"1377716769","file5":"1377716772","file3":"1377716767"},"map_files_photo_id_array":[{"photo_id":"1377716772","filename":"file5"},{"photo_id":"1377716766","filename":"file2"},{"photo_id":"1377716769","filename":"file4"},{"photo_id":"1377716765","filename":"file1"},{"photo_id":"1377716764","filename":"file0"},{"photo_id":"1377716767","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377716765":["hashtag1","hashtag2"]},{"1377716767":["hashtag1","hashtag2"]},{"1377716764":["hashtag1","hashtag2"]},{"1377716772":["hashtag1","hashtag2"]},{"1377716766":["hashtag1","hashtag2"]},{"1377716769":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377716765, 1377716767, 1377716764, 1377716772, 1377716766, 1377716769)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.823573350906372 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:44:32.008198
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/44/image_18082025_20_44_14_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/20/43/image_18082025_20_44_05_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/20/43/image_18082025_20_43_55_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/09/07/image_18082025_09_07_44_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/09/07/image_18082025_09_07_35_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/09/07/image_18082025_09_07_25_10632.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/44/image_18082025_20_44_14_9657.jpg', '/home/nano/Desktop/images/18082025/20/43/image_18082025_20_44_05_9657.jpg', '/home/nano/Desktop/images/18082025/20/43/image_18082025_20_43_55_10641.jpg', '/home/nano/Desktop/images/18082025/09/07/image_18082025_09_07_44_9646.jpg', '/home/nano/Desktop/images/18082025/09/07/image_18082025_09_07_35_9620.jpg', '/home/nano/Desktop/images/18082025/09/07/image_18082025_09_07_25_10632.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/44/image_18082025_20_44_14_9657.jpg
/home/nano/Desktop/images/18082025/20/43/image_18082025_20_44_05_9657.jpg
/home/nano/Desktop/images/18082025/20/43/image_18082025_20_43_55_10641.jpg
/home/nano/Desktop/images/18082025/09/07/image_18082025_09_07_44_9646.jpg
/home/nano/Desktop/images/18082025/09/07/image_18082025_09_07_35_9620.jpg
/home/nano/Desktop/images/18082025/09/07/image_18082025_09_07_25_10632.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377716779","1377716782","1377716784","1377716778","1377716786","1377716780"],"photo_ids_order":["1377716778","1377716779","1377716780","1377716782","1377716784","1377716786"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4269b0786a3b847c0d657884a2d02e26.jpg","text":"TemporaryFile(/tmp/multipartBody7286350427289754729asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542733389,"filename":"image_18082025_20_44_05_9657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/24fb7436ced9cfba0b3757e77482dc56.jpg","text":"TemporaryFile(/tmp/multipartBody4837497205140428412asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542733389,"filename":"image_18082025_09_07_44_9646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b9183ddd43cc0f3b70122a4a307de46c.jpg","text":"TemporaryFile(/tmp/multipartBody828691824016924113asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542733389,"filename":"image_18082025_09_07_35_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cf9248fd0c57a1b58a51ade804d428f8.jpg","text":"TemporaryFile(/tmp/multipartBody8387772689018785530asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542733389,"filename":"image_18082025_20_44_14_9657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d5683de6fa80462add5a1b114a8b4be1.jpg","text":"TemporaryFile(/tmp/multipartBody2088749473502406780asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542733389,"filename":"image_18082025_09_07_25_10632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2ec1ff2f075bc7122e0ff1afd1ff60eb.jpg","text":"TemporaryFile(/tmp/multipartBody3752293034639292884asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542733389,"filename":"image_18082025_20_43_55_10641.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377716780","file1":"1377716779","file0":"1377716778","file4":"1377716784","file5":"1377716786","file3":"1377716782"},"map_files_photo_id_array":[{"photo_id":"1377716786","filename":"file5"},{"photo_id":"1377716780","filename":"file2"},{"photo_id":"1377716784","filename":"file4"},{"photo_id":"1377716779","filename":"file1"},{"photo_id":"1377716778","filename":"file0"},{"photo_id":"1377716782","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377716779":["hashtag1","hashtag2"]},{"1377716782":["hashtag1","hashtag2"]},{"1377716784":["hashtag1","hashtag2"]},{"1377716778":["hashtag1","hashtag2"]},{"1377716786":["hashtag1","hashtag2"]},{"1377716780":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377716779, 1377716782, 1377716784, 1377716778, 1377716786, 1377716780)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.436920404434204 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:45:17.074704
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/45/image_18082025_20_45_44_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/20/45/image_18082025_20_45_14_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/20/44/image_18082025_20_45_05_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/20/44/image_18082025_20_44_25_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/09/07/image_18082025_09_07_14_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/09/06/image_18082025_09_07_05_9637.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/45/image_18082025_20_45_44_9625.jpg', '/home/nano/Desktop/images/18082025/20/45/image_18082025_20_45_14_9649.jpg', '/home/nano/Desktop/images/18082025/20/44/image_18082025_20_45_05_9629.jpg', '/home/nano/Desktop/images/18082025/20/44/image_18082025_20_44_25_10663.jpg', '/home/nano/Desktop/images/18082025/09/07/image_18082025_09_07_14_9650.jpg', '/home/nano/Desktop/images/18082025/09/06/image_18082025_09_07_05_9637.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/45/image_18082025_20_45_44_9625.jpg
/home/nano/Desktop/images/18082025/20/45/image_18082025_20_45_14_9649.jpg
/home/nano/Desktop/images/18082025/20/44/image_18082025_20_45_05_9629.jpg
/home/nano/Desktop/images/18082025/20/44/image_18082025_20_44_25_10663.jpg
/home/nano/Desktop/images/18082025/09/07/image_18082025_09_07_14_9650.jpg
/home/nano/Desktop/images/18082025/09/06/image_18082025_09_07_05_9637.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377716791","1377716794","1377716796","1377716800","1377716792","1377716798"],"photo_ids_order":["1377716791","1377716792","1377716794","1377716796","1377716798","1377716800"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ffcd7bfc6cfe61a74edba048c00d3345.jpg","text":"TemporaryFile(/tmp/multipartBody4428672056932100182asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542778337,"filename":"image_18082025_20_45_44_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9ce39ef5b530bb7f7d930aaac44a1b5a.jpg","text":"TemporaryFile(/tmp/multipartBody7184820375298757069asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542778337,"filename":"image_18082025_20_45_05_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c76f30d556f0556d8a305e5b0a11627d.jpg","text":"TemporaryFile(/tmp/multipartBody8264963702453644307asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542778337,"filename":"image_18082025_20_44_25_10663.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9a8db365c19d8a50e8d0fd09101d2b9e.jpg","text":"TemporaryFile(/tmp/multipartBody7107532335547812398asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542778337,"filename":"image_18082025_09_07_05_9637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/69e87c8f8984d1449eb1053757d13d35.jpg","text":"TemporaryFile(/tmp/multipartBody625537776027573277asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542778337,"filename":"image_18082025_20_45_14_9649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/27a89107cb8213916e1c94df9b7644d4.jpg","text":"TemporaryFile(/tmp/multipartBody312634714497415329asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542778337,"filename":"image_18082025_09_07_14_9650.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377716794","file1":"1377716792","file0":"1377716791","file4":"1377716798","file5":"1377716800","file3":"1377716796"},"map_files_photo_id_array":[{"photo_id":"1377716800","filename":"file5"},{"photo_id":"1377716794","filename":"file2"},{"photo_id":"1377716798","filename":"file4"},{"photo_id":"1377716792","filename":"file1"},{"photo_id":"1377716791","filename":"file0"},{"photo_id":"1377716796","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377716791":["hashtag1","hashtag2"]},{"1377716794":["hashtag1","hashtag2"]},{"1377716796":["hashtag1","hashtag2"]},{"1377716800":["hashtag1","hashtag2"]},{"1377716792":["hashtag1","hashtag2"]},{"1377716798":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377716791, 1377716794, 1377716796, 1377716800, 1377716792, 1377716798)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.297025203704834 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:46:02.798557
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_55_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_44_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_35_10617.jpg', 2), ('/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_24_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_15_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/09/05/image_18082025_09_06_05_10629.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_55_10628.jpg', '/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_44_9624.jpg', '/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_35_10617.jpg', '/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_24_9621.jpg', '/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_15_9632.jpg', '/home/nano/Desktop/images/18082025/09/05/image_18082025_09_06_05_10629.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_55_10628.jpg
/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_44_9624.jpg
/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_35_10617.jpg
/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_24_9621.jpg
/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_15_9632.jpg
/home/nano/Desktop/images/18082025/09/05/image_18082025_09_06_05_10629.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.128751277923584 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:46:17.163487
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/46/image_18082025_20_46_45_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/20/46/image_18082025_20_46_34_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/20/46/image_18082025_20_46_25_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/20/46/image_18082025_20_46_14_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/20/45/image_18082025_20_46_04_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/20/45/image_18082025_20_45_55_10646.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/46/image_18082025_20_46_45_10636.jpg', '/home/nano/Desktop/images/18082025/20/46/image_18082025_20_46_34_9629.jpg', '/home/nano/Desktop/images/18082025/20/46/image_18082025_20_46_25_10638.jpg', '/home/nano/Desktop/images/18082025/20/46/image_18082025_20_46_14_9663.jpg', '/home/nano/Desktop/images/18082025/20/45/image_18082025_20_46_04_9638.jpg', '/home/nano/Desktop/images/18082025/20/45/image_18082025_20_45_55_10646.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/46/image_18082025_20_46_45_10636.jpg
/home/nano/Desktop/images/18082025/20/46/image_18082025_20_46_34_9629.jpg
/home/nano/Desktop/images/18082025/20/46/image_18082025_20_46_25_10638.jpg
/home/nano/Desktop/images/18082025/20/46/image_18082025_20_46_14_9663.jpg
/home/nano/Desktop/images/18082025/20/45/image_18082025_20_46_04_9638.jpg
/home/nano/Desktop/images/18082025/20/45/image_18082025_20_45_55_10646.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377716828","1377716830","1377716824","1377716826","1377716829","1377716820"],"photo_ids_order":["1377716820","1377716824","1377716826","1377716828","1377716829","1377716830"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/989448042fe872b291da5953793b6a69.jpg","text":"TemporaryFile(/tmp/multipartBody3483851830745508934asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542838267,"filename":"image_18082025_20_46_14_9663.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/97c8abea14be6a873e0c98f48a4e727a.jpg","text":"TemporaryFile(/tmp/multipartBody6541108309546805344asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542838267,"filename":"image_18082025_20_45_55_10646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0a9a48d6405e1817988bfb0523ab1153.jpg","text":"TemporaryFile(/tmp/multipartBody7411764969354144483asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542838267,"filename":"image_18082025_20_46_34_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/74c6ceaa7e02d37e225d11562d8831db.jpg","text":"TemporaryFile(/tmp/multipartBody3798412216062951976asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542838267,"filename":"image_18082025_20_46_25_10638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0deebb56bb97a38f460251243014bb81.jpg","text":"TemporaryFile(/tmp/multipartBody6926388839943028920asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542838267,"filename":"image_18082025_20_46_04_9638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/88d0df6463af38499fe0740f829398c9.jpg","text":"TemporaryFile(/tmp/multipartBody6827571555040258006asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542838267,"filename":"image_18082025_20_46_45_10636.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377716826","file1":"1377716824","file0":"1377716820","file4":"1377716829","file5":"1377716830","file3":"1377716828"},"map_files_photo_id_array":[{"photo_id":"1377716830","filename":"file5"},{"photo_id":"1377716826","filename":"file2"},{"photo_id":"1377716829","filename":"file4"},{"photo_id":"1377716824","filename":"file1"},{"photo_id":"1377716820","filename":"file0"},{"photo_id":"1377716828","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377716828":["hashtag1","hashtag2"]},{"1377716830":["hashtag1","hashtag2"]},{"1377716824":["hashtag1","hashtag2"]},{"1377716826":["hashtag1","hashtag2"]},{"1377716829":["hashtag1","hashtag2"]},{"1377716820":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377716828, 1377716830, 1377716824, 1377716826, 1377716829, 1377716820)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.0539333820343 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:47:02.971181
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_55_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_44_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_35_10617.jpg', 2), ('/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_24_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_15_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/09/05/image_18082025_09_06_05_10629.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_55_10628.jpg', '/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_44_9624.jpg', '/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_35_10617.jpg', '/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_24_9621.jpg', '/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_15_9632.jpg', '/home/nano/Desktop/images/18082025/09/05/image_18082025_09_06_05_10629.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_55_10628.jpg
/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_44_9624.jpg
/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_35_10617.jpg
/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_24_9621.jpg
/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_15_9632.jpg
/home/nano/Desktop/images/18082025/09/05/image_18082025_09_06_05_10629.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.3033640384674072 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:47:17.287234
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/47/image_18082025_20_47_25_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/20/47/image_18082025_20_47_15_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/20/46/image_18082025_20_47_04_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/20/46/image_18082025_20_46_55_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_55_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_44_9624.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/47/image_18082025_20_47_25_9628.jpg', '/home/nano/Desktop/images/18082025/20/47/image_18082025_20_47_15_10658.jpg', '/home/nano/Desktop/images/18082025/20/46/image_18082025_20_47_04_9634.jpg', '/home/nano/Desktop/images/18082025/20/46/image_18082025_20_46_55_9626.jpg', '/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_55_10628.jpg', '/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_44_9624.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/47/image_18082025_20_47_25_9628.jpg
/home/nano/Desktop/images/18082025/20/47/image_18082025_20_47_15_10658.jpg
/home/nano/Desktop/images/18082025/20/46/image_18082025_20_47_04_9634.jpg
/home/nano/Desktop/images/18082025/20/46/image_18082025_20_46_55_9626.jpg
/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_55_10628.jpg
/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_44_9624.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377716852","1377716857","1377716859","1377716850","1377716861","1377716855"],"photo_ids_order":["1377716850","1377716852","1377716855","1377716857","1377716859","1377716861"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6186f212ee011bf2184bf781a522ef13.jpg","text":"TemporaryFile(/tmp/multipartBody8632634705518137648asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542898417,"filename":"image_18082025_20_47_15_10658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a7658dc9b13498ed56c7c2b8e29f1fca.jpg","text":"TemporaryFile(/tmp/multipartBody1851132327493242474asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542898417,"filename":"image_18082025_20_46_55_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/72d592c7237db1cfddfb6121ce6221c4.jpg","text":"TemporaryFile(/tmp/multipartBody7583896938189185595asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542898417,"filename":"image_18082025_09_06_55_10628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7507702513f2d2054a49e391a33196bb.jpg","text":"TemporaryFile(/tmp/multipartBody5493787918741280493asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542898417,"filename":"image_18082025_20_47_25_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b3c5d1aa3f044de2951e1e151af7b2a8.jpg","text":"TemporaryFile(/tmp/multipartBody9100721823328729385asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542898417,"filename":"image_18082025_09_06_44_9624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4e03d2a44646f7bbdf255190290cccb6.jpg","text":"TemporaryFile(/tmp/multipartBody3774287343878526441asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542898417,"filename":"image_18082025_20_47_04_9634.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377716855","file1":"1377716852","file0":"1377716850","file4":"1377716859","file5":"1377716861","file3":"1377716857"},"map_files_photo_id_array":[{"photo_id":"1377716861","filename":"file5"},{"photo_id":"1377716855","filename":"file2"},{"photo_id":"1377716859","filename":"file4"},{"photo_id":"1377716852","filename":"file1"},{"photo_id":"1377716850","filename":"file0"},{"photo_id":"1377716857","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377716852":["hashtag1","hashtag2"]},{"1377716857":["hashtag1","hashtag2"]},{"1377716859":["hashtag1","hashtag2"]},{"1377716850":["hashtag1","hashtag2"]},{"1377716861":["hashtag1","hashtag2"]},{"1377716855":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377716852, 1377716857, 1377716859, 1377716850, 1377716861, 1377716855)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.20242476463318 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:48:02.945578
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_35_10617.jpg', 2), ('/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_24_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_15_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/09/05/image_18082025_09_06_05_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/09/05/image_18082025_09_05_54_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/09/05/image_18082025_09_05_45_9612.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_35_10617.jpg', '/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_24_9621.jpg', '/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_15_9632.jpg', '/home/nano/Desktop/images/18082025/09/05/image_18082025_09_06_05_10629.jpg', '/home/nano/Desktop/images/18082025/09/05/image_18082025_09_05_54_9614.jpg', '/home/nano/Desktop/images/18082025/09/05/image_18082025_09_05_45_9612.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_35_10617.jpg
/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_24_9621.jpg
/home/nano/Desktop/images/18082025/09/06/image_18082025_09_06_15_9632.jpg
/home/nano/Desktop/images/18082025/09/05/image_18082025_09_06_05_10629.jpg
/home/nano/Desktop/images/18082025/09/05/image_18082025_09_05_54_9614.jpg
/home/nano/Desktop/images/18082025/09/05/image_18082025_09_05_45_9612.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377716870","1377716878","1377716881","1377716880","1377716873","1377716876"],"photo_ids_order":["1377716870","1377716873","1377716876","1377716878","1377716880","1377716881"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0d0e4ba0551d9bc1e30af688882f635d.jpg","text":"TemporaryFile(/tmp/multipartBody5709300315473758146asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542944098,"filename":"image_18082025_09_06_35_10617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/13f00e0a82e0260c1763105f5f32f022.jpg","text":"TemporaryFile(/tmp/multipartBody2026740317764707329asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542944098,"filename":"image_18082025_09_06_05_10629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/69c03adecd08a461d09f3230b2970330.jpg","text":"TemporaryFile(/tmp/multipartBody3364657258061500153asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542944098,"filename":"image_18082025_09_05_45_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/539df047706dd98a39a7a9ab08a90029.jpg","text":"TemporaryFile(/tmp/multipartBody6568774229280432456asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542944098,"filename":"image_18082025_09_05_54_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dc675130bbb47e8f15b32b9a42e02fdb.jpg","text":"TemporaryFile(/tmp/multipartBody8681787958002154201asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542944098,"filename":"image_18082025_09_06_24_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/223f88b2603a887f53070d833f8990a8.jpg","text":"TemporaryFile(/tmp/multipartBody5216943945245797513asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542944098,"filename":"image_18082025_09_06_15_9632.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377716876","file1":"1377716873","file0":"1377716870","file4":"1377716880","file5":"1377716881","file3":"1377716878"},"map_files_photo_id_array":[{"photo_id":"1377716881","filename":"file5"},{"photo_id":"1377716876","filename":"file2"},{"photo_id":"1377716880","filename":"file4"},{"photo_id":"1377716873","filename":"file1"},{"photo_id":"1377716870","filename":"file0"},{"photo_id":"1377716878","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377716870":["hashtag1","hashtag2"]},{"1377716878":["hashtag1","hashtag2"]},{"1377716881":["hashtag1","hashtag2"]},{"1377716880":["hashtag1","hashtag2"]},{"1377716873":["hashtag1","hashtag2"]},{"1377716876":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377716870, 1377716878, 1377716881, 1377716880, 1377716873, 1377716876)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.93831205368042 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:48:47.414441
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/48/image_18082025_20_48_35_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/20/48/image_18082025_20_48_24_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/20/48/image_18082025_20_48_15_10657.jpg', 2), ('/home/nano/Desktop/images/18082025/20/47/image_18082025_20_48_04_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/20/47/image_18082025_20_47_34_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/09/05/image_18082025_09_05_35_10635.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/48/image_18082025_20_48_35_10642.jpg', '/home/nano/Desktop/images/18082025/20/48/image_18082025_20_48_24_9627.jpg', '/home/nano/Desktop/images/18082025/20/48/image_18082025_20_48_15_10657.jpg', '/home/nano/Desktop/images/18082025/20/47/image_18082025_20_48_04_9636.jpg', '/home/nano/Desktop/images/18082025/20/47/image_18082025_20_47_34_9647.jpg', '/home/nano/Desktop/images/18082025/09/05/image_18082025_09_05_35_10635.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/48/image_18082025_20_48_35_10642.jpg
/home/nano/Desktop/images/18082025/20/48/image_18082025_20_48_24_9627.jpg
/home/nano/Desktop/images/18082025/20/48/image_18082025_20_48_15_10657.jpg
/home/nano/Desktop/images/18082025/20/47/image_18082025_20_48_04_9636.jpg
/home/nano/Desktop/images/18082025/20/47/image_18082025_20_47_34_9647.jpg
/home/nano/Desktop/images/18082025/09/05/image_18082025_09_05_35_10635.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377716896","1377716890","1377716893","1377716886","1377716891","1377716888"],"photo_ids_order":["1377716886","1377716888","1377716890","1377716891","1377716893","1377716896"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2a45f9ee9c76a026510c46fc11c242f3.jpg","text":"TemporaryFile(/tmp/multipartBody7968073746499688998asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542988865,"filename":"image_18082025_09_05_35_10635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/57094a4424df09937c3f74ef4f5e0b40.jpg","text":"TemporaryFile(/tmp/multipartBody5251051905761009189asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542988865,"filename":"image_18082025_20_48_15_10657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6ab7760f1c32f569894f8f55981f9540.jpg","text":"TemporaryFile(/tmp/multipartBody5250158885110120224asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542988865,"filename":"image_18082025_20_47_34_9647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/873365d9459de7c8f90010ab8804c40d.jpg","text":"TemporaryFile(/tmp/multipartBody5226116219272754681asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542988865,"filename":"image_18082025_20_48_35_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4c13f25844dbaae522c75950ea8b177f.jpg","text":"TemporaryFile(/tmp/multipartBody4638805618468665360asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542988865,"filename":"image_18082025_20_48_04_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/861368018a13ed1140aeb22958edcc92.jpg","text":"TemporaryFile(/tmp/multipartBody5400498251185546619asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755542988865,"filename":"image_18082025_20_48_24_9627.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377716890","file1":"1377716888","file0":"1377716886","file4":"1377716893","file5":"1377716896","file3":"1377716891"},"map_files_photo_id_array":[{"photo_id":"1377716896","filename":"file5"},{"photo_id":"1377716890","filename":"file2"},{"photo_id":"1377716893","filename":"file4"},{"photo_id":"1377716888","filename":"file1"},{"photo_id":"1377716886","filename":"file0"},{"photo_id":"1377716891","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377716896":["hashtag1","hashtag2"]},{"1377716890":["hashtag1","hashtag2"]},{"1377716893":["hashtag1","hashtag2"]},{"1377716886":["hashtag1","hashtag2"]},{"1377716891":["hashtag1","hashtag2"]},{"1377716888":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377716896, 1377716890, 1377716893, 1377716886, 1377716891, 1377716888)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.521355867385864 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:49:32.546592
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/49/image_18082025_20_49_35_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/20/49/image_18082025_20_49_24_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/20/48/image_18082025_20_49_05_10643.jpg', 2), ('/home/nano/Desktop/images/18082025/20/48/image_18082025_20_48_45_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/09/05/image_18082025_09_05_24_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/09/05/image_18082025_09_05_15_10622.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/49/image_18082025_20_49_35_10641.jpg', '/home/nano/Desktop/images/18082025/20/49/image_18082025_20_49_24_9627.jpg', '/home/nano/Desktop/images/18082025/20/48/image_18082025_20_49_05_10643.jpg', '/home/nano/Desktop/images/18082025/20/48/image_18082025_20_48_45_9632.jpg', '/home/nano/Desktop/images/18082025/09/05/image_18082025_09_05_24_9622.jpg', '/home/nano/Desktop/images/18082025/09/05/image_18082025_09_05_15_10622.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/49/image_18082025_20_49_35_10641.jpg
/home/nano/Desktop/images/18082025/20/49/image_18082025_20_49_24_9627.jpg
/home/nano/Desktop/images/18082025/20/48/image_18082025_20_49_05_10643.jpg
/home/nano/Desktop/images/18082025/20/48/image_18082025_20_48_45_9632.jpg
/home/nano/Desktop/images/18082025/09/05/image_18082025_09_05_24_9622.jpg
/home/nano/Desktop/images/18082025/09/05/image_18082025_09_05_15_10622.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377716918","1377716906","1377716900","1377716917","1377716902","1377716904"],"photo_ids_order":["1377716900","1377716902","1377716904","1377716906","1377716917","1377716918"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cac20d5f24f6d5c89694f197aa4be7ff.jpg","text":"TemporaryFile(/tmp/multipartBody3582276077058917086asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543034092,"filename":"image_18082025_09_05_15_10622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a9318bc3bf67de83d42995bcdb80c73e.jpg","text":"TemporaryFile(/tmp/multipartBody4150303298740290830asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543034092,"filename":"image_18082025_20_48_45_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0eab1025ed8e07c366bab7ada6800e02.jpg","text":"TemporaryFile(/tmp/multipartBody3078230861201101063asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543034092,"filename":"image_18082025_20_49_35_10641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/be1a72c1f49007dc20058c12f117daae.jpg","text":"TemporaryFile(/tmp/multipartBody8996711190520361649asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543034092,"filename":"image_18082025_09_05_24_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d53b699dce4286b71c4a4c4104080afb.jpg","text":"TemporaryFile(/tmp/multipartBody479981384090559333asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543034092,"filename":"image_18082025_20_49_24_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3407d557cc9ccbbf4c826bb3f2627b74.jpg","text":"TemporaryFile(/tmp/multipartBody9056232179997694929asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543034092,"filename":"image_18082025_20_49_05_10643.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377716904","file1":"1377716902","file0":"1377716900","file4":"1377716917","file5":"1377716918","file3":"1377716906"},"map_files_photo_id_array":[{"photo_id":"1377716918","filename":"file5"},{"photo_id":"1377716904","filename":"file2"},{"photo_id":"1377716917","filename":"file4"},{"photo_id":"1377716902","filename":"file1"},{"photo_id":"1377716900","filename":"file0"},{"photo_id":"1377716906","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377716918":["hashtag1","hashtag2"]},{"1377716906":["hashtag1","hashtag2"]},{"1377716900":["hashtag1","hashtag2"]},{"1377716917":["hashtag1","hashtag2"]},{"1377716902":["hashtag1","hashtag2"]},{"1377716904":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377716918, 1377716906, 1377716900, 1377716917, 1377716902, 1377716904)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.75071382522583 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:50:17.642978
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/50/image_18082025_20_50_44_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/20/50/image_18082025_20_50_35_10643.jpg', 2), ('/home/nano/Desktop/images/18082025/20/50/image_18082025_20_50_24_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/20/50/image_18082025_20_50_14_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/20/49/image_18082025_20_49_44_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/09/04/image_18082025_09_05_04_9651.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/50/image_18082025_20_50_44_9631.jpg', '/home/nano/Desktop/images/18082025/20/50/image_18082025_20_50_35_10643.jpg', '/home/nano/Desktop/images/18082025/20/50/image_18082025_20_50_24_9645.jpg', '/home/nano/Desktop/images/18082025/20/50/image_18082025_20_50_14_9659.jpg', '/home/nano/Desktop/images/18082025/20/49/image_18082025_20_49_44_9629.jpg', '/home/nano/Desktop/images/18082025/09/04/image_18082025_09_05_04_9651.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/50/image_18082025_20_50_44_9631.jpg
/home/nano/Desktop/images/18082025/20/50/image_18082025_20_50_35_10643.jpg
/home/nano/Desktop/images/18082025/20/50/image_18082025_20_50_24_9645.jpg
/home/nano/Desktop/images/18082025/20/50/image_18082025_20_50_14_9659.jpg
/home/nano/Desktop/images/18082025/20/49/image_18082025_20_49_44_9629.jpg
/home/nano/Desktop/images/18082025/09/04/image_18082025_09_05_04_9651.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377716939","1377716930","1377716933","1377716935","1377716937","1377716928"],"photo_ids_order":["1377716928","1377716930","1377716933","1377716935","1377716937","1377716939"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a0d436c6d5bf2ce300d078beea85f490.jpg","text":"TemporaryFile(/tmp/multipartBody5828432015955198207asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543079131,"filename":"image_18082025_09_05_04_9651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1010bcf3668c76a8a6fe31554849a539.jpg","text":"TemporaryFile(/tmp/multipartBody7216582281742320060asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543079131,"filename":"image_18082025_20_50_35_10643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0bc79aa22fa853fd6277102b891167e7.jpg","text":"TemporaryFile(/tmp/multipartBody2435976459714372067asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543079131,"filename":"image_18082025_20_50_24_9645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1e374b1a9a680fa11f02b532f74eec74.jpg","text":"TemporaryFile(/tmp/multipartBody732185493020155896asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543079131,"filename":"image_18082025_20_50_14_9659.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ec924f2596308b79f04d2da6fb232d3c.jpg","text":"TemporaryFile(/tmp/multipartBody9208947583724691143asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543079131,"filename":"image_18082025_20_49_44_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/66ec96b4ca0e2bf9654f26b0dc8524e0.jpg","text":"TemporaryFile(/tmp/multipartBody3881016959857706750asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543079131,"filename":"image_18082025_20_50_44_9631.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377716933","file1":"1377716930","file0":"1377716928","file4":"1377716937","file5":"1377716939","file3":"1377716935"},"map_files_photo_id_array":[{"photo_id":"1377716939","filename":"file5"},{"photo_id":"1377716933","filename":"file2"},{"photo_id":"1377716937","filename":"file4"},{"photo_id":"1377716930","filename":"file1"},{"photo_id":"1377716928","filename":"file0"},{"photo_id":"1377716935","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377716939":["hashtag1","hashtag2"]},{"1377716930":["hashtag1","hashtag2"]},{"1377716933":["hashtag1","hashtag2"]},{"1377716935":["hashtag1","hashtag2"]},{"1377716937":["hashtag1","hashtag2"]},{"1377716928":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377716939, 1377716930, 1377716933, 1377716935, 1377716937, 1377716928)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.59055137634277 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:51:03.283638
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/04/image_18082025_09_04_55_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/09/04/image_18082025_09_04_45_10615.jpg', 2), ('/home/nano/Desktop/images/18082025/09/04/image_18082025_09_04_34_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/04/image_18082025_09_04_25_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/09/04/image_18082025_09_04_15_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/09/03/image_18082025_09_04_04_9607.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/04/image_18082025_09_04_55_9619.jpg', '/home/nano/Desktop/images/18082025/09/04/image_18082025_09_04_45_10615.jpg', '/home/nano/Desktop/images/18082025/09/04/image_18082025_09_04_34_9616.jpg', '/home/nano/Desktop/images/18082025/09/04/image_18082025_09_04_25_9631.jpg', '/home/nano/Desktop/images/18082025/09/04/image_18082025_09_04_15_10644.jpg', '/home/nano/Desktop/images/18082025/09/03/image_18082025_09_04_04_9607.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/04/image_18082025_09_04_55_9619.jpg
/home/nano/Desktop/images/18082025/09/04/image_18082025_09_04_45_10615.jpg
/home/nano/Desktop/images/18082025/09/04/image_18082025_09_04_34_9616.jpg
/home/nano/Desktop/images/18082025/09/04/image_18082025_09_04_25_9631.jpg
/home/nano/Desktop/images/18082025/09/04/image_18082025_09_04_15_10644.jpg
/home/nano/Desktop/images/18082025/09/03/image_18082025_09_04_04_9607.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377716957","1377716945","1377716950","1377716952","1377716954","1377716948"],"photo_ids_order":["1377716945","1377716948","1377716950","1377716952","1377716954","1377716957"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e795fcd6582de094f6d50657d6bbcbf1.jpg","text":"TemporaryFile(/tmp/multipartBody8737325872162202947asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543124384,"filename":"image_18082025_09_04_04_9607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/469538ed40c936d3b744b020f0bb6907.jpg","text":"TemporaryFile(/tmp/multipartBody7979261617829635954asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543124384,"filename":"image_18082025_09_04_55_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dec6b103fe8d9a04ec578927b9a0d4e6.jpg","text":"TemporaryFile(/tmp/multipartBody3351734375019357932asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543124384,"filename":"image_18082025_09_04_34_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/233fa059fc7ddb354443f295434a8b11.jpg","text":"TemporaryFile(/tmp/multipartBody1476329324962989467asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543124384,"filename":"image_18082025_09_04_25_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9b1c8d11e922be581098eec058261b5e.jpg","text":"TemporaryFile(/tmp/multipartBody3052462807967311858asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543124384,"filename":"image_18082025_09_04_15_10644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b7336853945fa8ac57a369ab05a7bf9d.jpg","text":"TemporaryFile(/tmp/multipartBody298235001768247696asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543124384,"filename":"image_18082025_09_04_45_10615.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377716950","file1":"1377716948","file0":"1377716945","file4":"1377716954","file5":"1377716957","file3":"1377716952"},"map_files_photo_id_array":[{"photo_id":"1377716957","filename":"file5"},{"photo_id":"1377716950","filename":"file2"},{"photo_id":"1377716954","filename":"file4"},{"photo_id":"1377716948","filename":"file1"},{"photo_id":"1377716945","filename":"file0"},{"photo_id":"1377716952","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377716957":["hashtag1","hashtag2"]},{"1377716945":["hashtag1","hashtag2"]},{"1377716950":["hashtag1","hashtag2"]},{"1377716952":["hashtag1","hashtag2"]},{"1377716954":["hashtag1","hashtag2"]},{"1377716948":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377716957, 1377716945, 1377716950, 1377716952, 1377716954, 1377716948)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.422282457351685 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:51:47.685371
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/50/image_18082025_20_50_55_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/09/03/image_18082025_09_03_55_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/09/03/image_18082025_09_03_44_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/09/03/image_18082025_09_03_35_9703.jpg', 2), ('/home/nano/Desktop/images/18082025/09/03/image_18082025_09_03_25_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/09/03/image_18082025_09_03_14_9789.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/50/image_18082025_20_50_55_10637.jpg', '/home/nano/Desktop/images/18082025/09/03/image_18082025_09_03_55_10632.jpg', '/home/nano/Desktop/images/18082025/09/03/image_18082025_09_03_44_9628.jpg', '/home/nano/Desktop/images/18082025/09/03/image_18082025_09_03_35_9703.jpg', '/home/nano/Desktop/images/18082025/09/03/image_18082025_09_03_25_10627.jpg', '/home/nano/Desktop/images/18082025/09/03/image_18082025_09_03_14_9789.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/50/image_18082025_20_50_55_10637.jpg
/home/nano/Desktop/images/18082025/09/03/image_18082025_09_03_55_10632.jpg
/home/nano/Desktop/images/18082025/09/03/image_18082025_09_03_44_9628.jpg
/home/nano/Desktop/images/18082025/09/03/image_18082025_09_03_35_9703.jpg
/home/nano/Desktop/images/18082025/09/03/image_18082025_09_03_25_10627.jpg
/home/nano/Desktop/images/18082025/09/03/image_18082025_09_03_14_9789.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377716971","1377716965","1377716974","1377716964","1377716967","1377716966"],"photo_ids_order":["1377716964","1377716965","1377716966","1377716967","1377716971","1377716974"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/28a7e1d8da1f5533ca4b90b5f74b6a57.jpg","text":"TemporaryFile(/tmp/multipartBody8527011474088243262asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543169153,"filename":"image_18082025_09_03_25_10627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5b1395db7646a7924b078eec45669f78.jpg","text":"TemporaryFile(/tmp/multipartBody34678809864858120asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543169153,"filename":"image_18082025_09_03_55_10632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8a2860cf7b79601c56e672614504f688.jpg","text":"TemporaryFile(/tmp/multipartBody4812677350753183469asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543169153,"filename":"image_18082025_09_03_14_9789.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/48c2b834d3b509787a8062efb25f34b2.jpg","text":"TemporaryFile(/tmp/multipartBody7323469126305684959asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543169153,"filename":"image_18082025_20_50_55_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f160198fcf5f68badf524dccba6752c3.jpg","text":"TemporaryFile(/tmp/multipartBody6684352710301406761asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543169153,"filename":"image_18082025_09_03_35_9703.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f207114ce2cb88d2310996df6e220274.jpg","text":"TemporaryFile(/tmp/multipartBody4829054899023074339asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543169153,"filename":"image_18082025_09_03_44_9628.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377716966","file1":"1377716965","file0":"1377716964","file4":"1377716971","file5":"1377716974","file3":"1377716967"},"map_files_photo_id_array":[{"photo_id":"1377716974","filename":"file5"},{"photo_id":"1377716966","filename":"file2"},{"photo_id":"1377716971","filename":"file4"},{"photo_id":"1377716965","filename":"file1"},{"photo_id":"1377716964","filename":"file0"},{"photo_id":"1377716967","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377716971":["hashtag1","hashtag2"]},{"1377716965":["hashtag1","hashtag2"]},{"1377716974":["hashtag1","hashtag2"]},{"1377716964":["hashtag1","hashtag2"]},{"1377716967":["hashtag1","hashtag2"]},{"1377716966":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377716971, 1377716965, 1377716974, 1377716964, 1377716967, 1377716966)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.92753005027771 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:52:31.806656
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/52/image_18082025_20_52_45_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/20/52/image_18082025_20_52_25_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/20/52/image_18082025_20_52_14_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/20/51/image_18082025_20_52_04_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/20/50/image_18082025_20_51_05_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/09/02/image_18082025_09_03_04_9627.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/52/image_18082025_20_52_45_10667.jpg', '/home/nano/Desktop/images/18082025/20/52/image_18082025_20_52_25_10637.jpg', '/home/nano/Desktop/images/18082025/20/52/image_18082025_20_52_14_9648.jpg', '/home/nano/Desktop/images/18082025/20/51/image_18082025_20_52_04_9644.jpg', '/home/nano/Desktop/images/18082025/20/50/image_18082025_20_51_05_9652.jpg', '/home/nano/Desktop/images/18082025/09/02/image_18082025_09_03_04_9627.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/52/image_18082025_20_52_45_10667.jpg
/home/nano/Desktop/images/18082025/20/52/image_18082025_20_52_25_10637.jpg
/home/nano/Desktop/images/18082025/20/52/image_18082025_20_52_14_9648.jpg
/home/nano/Desktop/images/18082025/20/51/image_18082025_20_52_04_9644.jpg
/home/nano/Desktop/images/18082025/20/50/image_18082025_20_51_05_9652.jpg
/home/nano/Desktop/images/18082025/09/02/image_18082025_09_03_04_9627.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.2251195907592773 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:52:46.800997
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/52/image_18082025_20_52_45_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/20/52/image_18082025_20_52_25_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/20/52/image_18082025_20_52_14_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/20/51/image_18082025_20_52_04_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/20/50/image_18082025_20_51_05_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/09/02/image_18082025_09_03_04_9627.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/52/image_18082025_20_52_45_10667.jpg', '/home/nano/Desktop/images/18082025/20/52/image_18082025_20_52_25_10637.jpg', '/home/nano/Desktop/images/18082025/20/52/image_18082025_20_52_14_9648.jpg', '/home/nano/Desktop/images/18082025/20/51/image_18082025_20_52_04_9644.jpg', '/home/nano/Desktop/images/18082025/20/50/image_18082025_20_51_05_9652.jpg', '/home/nano/Desktop/images/18082025/09/02/image_18082025_09_03_04_9627.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/52/image_18082025_20_52_45_10667.jpg
/home/nano/Desktop/images/18082025/20/52/image_18082025_20_52_25_10637.jpg
/home/nano/Desktop/images/18082025/20/52/image_18082025_20_52_14_9648.jpg
/home/nano/Desktop/images/18082025/20/51/image_18082025_20_52_04_9644.jpg
/home/nano/Desktop/images/18082025/20/50/image_18082025_20_51_05_9652.jpg
/home/nano/Desktop/images/18082025/09/02/image_18082025_09_03_04_9627.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377716994","1377716997","1377717003","1377716996","1377716999","1377716990"],"photo_ids_order":["1377716990","1377716994","1377716996","1377716997","1377716999","1377717003"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ed29601da68cfb6cd9c6c828dc364ac6.jpg","text":"TemporaryFile(/tmp/multipartBody6401504275742225636asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543228174,"filename":"image_18082025_20_52_25_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/501efcf31b779675f46650c521069fe4.jpg","text":"TemporaryFile(/tmp/multipartBody1823748974764700756asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543228174,"filename":"image_18082025_20_52_04_9644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1d4d93cb79c85827bfc4c6880210eaef.jpg","text":"TemporaryFile(/tmp/multipartBody2811144434884522618asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543228174,"filename":"image_18082025_09_03_04_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/924fc78a23bbe9614adfce4d26c3cccc.jpg","text":"TemporaryFile(/tmp/multipartBody3578945133727398272asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543228174,"filename":"image_18082025_20_52_14_9648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2e2425c3577574c44b895cf7bd456261.jpg","text":"TemporaryFile(/tmp/multipartBody6752291871871629267asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543228174,"filename":"image_18082025_20_51_05_9652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/66184e9118558713c709cd85ac93292d.jpg","text":"TemporaryFile(/tmp/multipartBody3902568944257811382asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543228174,"filename":"image_18082025_20_52_45_10667.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377716996","file1":"1377716994","file0":"1377716990","file4":"1377716999","file5":"1377717003","file3":"1377716997"},"map_files_photo_id_array":[{"photo_id":"1377717003","filename":"file5"},{"photo_id":"1377716996","filename":"file2"},{"photo_id":"1377716999","filename":"file4"},{"photo_id":"1377716994","filename":"file1"},{"photo_id":"1377716990","filename":"file0"},{"photo_id":"1377716997","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377716994":["hashtag1","hashtag2"]},{"1377716997":["hashtag1","hashtag2"]},{"1377717003":["hashtag1","hashtag2"]},{"1377716996":["hashtag1","hashtag2"]},{"1377716999":["hashtag1","hashtag2"]},{"1377716990":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377716994, 1377716997, 1377717003, 1377716996, 1377716999, 1377716990)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.766470909118652 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:53:31.919324
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/53/image_18082025_20_53_45_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/20/53/image_18082025_20_53_34_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/20/53/image_18082025_20_53_25_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/20/52/image_18082025_20_52_55_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/09/02/image_18082025_09_02_55_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/09/02/image_18082025_09_02_44_9725.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/53/image_18082025_20_53_45_10640.jpg', '/home/nano/Desktop/images/18082025/20/53/image_18082025_20_53_34_9629.jpg', '/home/nano/Desktop/images/18082025/20/53/image_18082025_20_53_25_9630.jpg', '/home/nano/Desktop/images/18082025/20/52/image_18082025_20_52_55_9631.jpg', '/home/nano/Desktop/images/18082025/09/02/image_18082025_09_02_55_10641.jpg', '/home/nano/Desktop/images/18082025/09/02/image_18082025_09_02_44_9725.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/53/image_18082025_20_53_45_10640.jpg
/home/nano/Desktop/images/18082025/20/53/image_18082025_20_53_34_9629.jpg
/home/nano/Desktop/images/18082025/20/53/image_18082025_20_53_25_9630.jpg
/home/nano/Desktop/images/18082025/20/52/image_18082025_20_52_55_9631.jpg
/home/nano/Desktop/images/18082025/09/02/image_18082025_09_02_55_10641.jpg
/home/nano/Desktop/images/18082025/09/02/image_18082025_09_02_44_9725.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377717011","1377717014","1377717013","1377717019","1377717009","1377717017"],"photo_ids_order":["1377717009","1377717011","1377717013","1377717014","1377717017","1377717019"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/80d5dca0a12dc34ce5c16020f8a4f3a0.jpg","text":"TemporaryFile(/tmp/multipartBody486817403110507701asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543273639,"filename":"image_18082025_20_53_34_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/26be09b73e3f2fc9d7b2e8bc23de2531.jpg","text":"TemporaryFile(/tmp/multipartBody666103499651593540asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543273639,"filename":"image_18082025_20_52_55_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ccead3c972178794d4c65a14d0c21018.jpg","text":"TemporaryFile(/tmp/multipartBody7133896730969061316asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543273639,"filename":"image_18082025_20_53_25_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/816df1881a0120db33e204ccf8310ee6.jpg","text":"TemporaryFile(/tmp/multipartBody9111549350244664443asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543273639,"filename":"image_18082025_09_02_44_9725.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0e4d8f6e1feb8a01731a9c5a6aab7838.jpg","text":"TemporaryFile(/tmp/multipartBody8336747072371459914asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543273639,"filename":"image_18082025_20_53_45_10640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0357712b9aa58c9b300c6c4eca69089a.jpg","text":"TemporaryFile(/tmp/multipartBody8751659518176876867asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543273639,"filename":"image_18082025_09_02_55_10641.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377717013","file1":"1377717011","file0":"1377717009","file4":"1377717017","file5":"1377717019","file3":"1377717014"},"map_files_photo_id_array":[{"photo_id":"1377717019","filename":"file5"},{"photo_id":"1377717013","filename":"file2"},{"photo_id":"1377717017","filename":"file4"},{"photo_id":"1377717011","filename":"file1"},{"photo_id":"1377717009","filename":"file0"},{"photo_id":"1377717014","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377717011":["hashtag1","hashtag2"]},{"1377717014":["hashtag1","hashtag2"]},{"1377717013":["hashtag1","hashtag2"]},{"1377717019":["hashtag1","hashtag2"]},{"1377717009":["hashtag1","hashtag2"]},{"1377717017":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377717011, 1377717014, 1377717013, 1377717019, 1377717009, 1377717017)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.257527351379395 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:54:17.040031
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/54/image_18082025_20_54_24_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/20/54/image_18082025_20_54_15_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/20/53/image_18082025_20_54_04_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/20/53/image_18082025_20_53_55_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/09/02/image_18082025_09_02_34_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/09/02/image_18082025_09_02_25_10626.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/54/image_18082025_20_54_24_9655.jpg', '/home/nano/Desktop/images/18082025/20/54/image_18082025_20_54_15_10668.jpg', '/home/nano/Desktop/images/18082025/20/53/image_18082025_20_54_04_9628.jpg', '/home/nano/Desktop/images/18082025/20/53/image_18082025_20_53_55_9651.jpg', '/home/nano/Desktop/images/18082025/09/02/image_18082025_09_02_34_9649.jpg', '/home/nano/Desktop/images/18082025/09/02/image_18082025_09_02_25_10626.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/54/image_18082025_20_54_24_9655.jpg
/home/nano/Desktop/images/18082025/20/54/image_18082025_20_54_15_10668.jpg
/home/nano/Desktop/images/18082025/20/53/image_18082025_20_54_04_9628.jpg
/home/nano/Desktop/images/18082025/20/53/image_18082025_20_53_55_9651.jpg
/home/nano/Desktop/images/18082025/09/02/image_18082025_09_02_34_9649.jpg
/home/nano/Desktop/images/18082025/09/02/image_18082025_09_02_25_10626.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377717040","1377717036","1377717030","1377717033","1377717041","1377717038"],"photo_ids_order":["1377717030","1377717033","1377717036","1377717038","1377717040","1377717041"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cad2a0c52db9f3a655c556fa15056348.jpg","text":"TemporaryFile(/tmp/multipartBody6875816747965452224asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543318575,"filename":"image_18082025_09_02_34_9649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d3bc717dfa4b18f99ebc3362f7640f47.jpg","text":"TemporaryFile(/tmp/multipartBody5275356521255486066asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543318575,"filename":"image_18082025_20_54_04_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c295b80f04c2f1ab02dd90082466d4c4.jpg","text":"TemporaryFile(/tmp/multipartBody7606231476646487161asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543318575,"filename":"image_18082025_20_54_24_9655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/130127a3c3d2d1e6cf0b8267311c33ae.jpg","text":"TemporaryFile(/tmp/multipartBody8764679162953774199asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543318575,"filename":"image_18082025_20_54_15_10668.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/06ba3a81aa7b2708f0c1b7a59962fef5.jpg","text":"TemporaryFile(/tmp/multipartBody3120783540778896522asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543318575,"filename":"image_18082025_09_02_25_10626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/71a752cee6a5c6afa125518414ff3c9a.jpg","text":"TemporaryFile(/tmp/multipartBody3450939113222096746asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543318575,"filename":"image_18082025_20_53_55_9651.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377717036","file1":"1377717033","file0":"1377717030","file4":"1377717040","file5":"1377717041","file3":"1377717038"},"map_files_photo_id_array":[{"photo_id":"1377717041","filename":"file5"},{"photo_id":"1377717036","filename":"file2"},{"photo_id":"1377717040","filename":"file4"},{"photo_id":"1377717033","filename":"file1"},{"photo_id":"1377717030","filename":"file0"},{"photo_id":"1377717038","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377717040":["hashtag1","hashtag2"]},{"1377717036":["hashtag1","hashtag2"]},{"1377717030":["hashtag1","hashtag2"]},{"1377717033":["hashtag1","hashtag2"]},{"1377717041":["hashtag1","hashtag2"]},{"1377717038":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377717040, 1377717036, 1377717030, 1377717033, 1377717041, 1377717038)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.937596082687378 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:55:02.935061
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/09/02/image_18082025_09_02_14_9774.jpg', 2), ('/home/nano/Desktop/images/18082025/09/01/image_18082025_09_02_04_9788.jpg', 2), ('/home/nano/Desktop/images/18082025/09/01/image_18082025_09_01_55_9717.jpg', 2), ('/home/nano/Desktop/images/18082025/09/01/image_18082025_09_01_45_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/09/01/image_18082025_09_01_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/09/01/image_18082025_09_01_25_9639.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/09/02/image_18082025_09_02_14_9774.jpg', '/home/nano/Desktop/images/18082025/09/01/image_18082025_09_02_04_9788.jpg', '/home/nano/Desktop/images/18082025/09/01/image_18082025_09_01_55_9717.jpg', '/home/nano/Desktop/images/18082025/09/01/image_18082025_09_01_45_10618.jpg', '/home/nano/Desktop/images/18082025/09/01/image_18082025_09_01_34_9640.jpg', '/home/nano/Desktop/images/18082025/09/01/image_18082025_09_01_25_9639.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/09/02/image_18082025_09_02_14_9774.jpg
/home/nano/Desktop/images/18082025/09/01/image_18082025_09_02_04_9788.jpg
/home/nano/Desktop/images/18082025/09/01/image_18082025_09_01_55_9717.jpg
/home/nano/Desktop/images/18082025/09/01/image_18082025_09_01_45_10618.jpg
/home/nano/Desktop/images/18082025/09/01/image_18082025_09_01_34_9640.jpg
/home/nano/Desktop/images/18082025/09/01/image_18082025_09_01_25_9639.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377717052","1377717055","1377717049","1377717051","1377717053","1377717050"],"photo_ids_order":["1377717049","1377717050","1377717051","1377717052","1377717053","1377717055"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/603db47077651ade00237f282335c820.jpg","text":"TemporaryFile(/tmp/multipartBody7005227103114688418asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543364913,"filename":"image_18082025_09_01_45_10618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4c1ab1bcc1c96f232288b6ad66dbfd99.jpg","text":"TemporaryFile(/tmp/multipartBody489493636454452920asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543364913,"filename":"image_18082025_09_01_25_9639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7897e62ce507edbfd30bcb7ee2d77708.jpg","text":"TemporaryFile(/tmp/multipartBody7270361257475851491asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543364913,"filename":"image_18082025_09_02_14_9774.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6dbd5c1fdb1ad71a6a0bde6056b261a8.jpg","text":"TemporaryFile(/tmp/multipartBody1475048365189262597asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543364913,"filename":"image_18082025_09_01_55_9717.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d7c240adfdd97a3aeb179e8c5227e6c5.jpg","text":"TemporaryFile(/tmp/multipartBody823026481765393472asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543364913,"filename":"image_18082025_09_01_34_9640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/891621145ee95a43c10fbc1f8e4b41bc.jpg","text":"TemporaryFile(/tmp/multipartBody2760625201181649345asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543364913,"filename":"image_18082025_09_02_04_9788.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377717051","file1":"1377717050","file0":"1377717049","file4":"1377717053","file5":"1377717055","file3":"1377717052"},"map_files_photo_id_array":[{"photo_id":"1377717055","filename":"file5"},{"photo_id":"1377717051","filename":"file2"},{"photo_id":"1377717053","filename":"file4"},{"photo_id":"1377717050","filename":"file1"},{"photo_id":"1377717049","filename":"file0"},{"photo_id":"1377717052","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377717052":["hashtag1","hashtag2"]},{"1377717055":["hashtag1","hashtag2"]},{"1377717049":["hashtag1","hashtag2"]},{"1377717051":["hashtag1","hashtag2"]},{"1377717053":["hashtag1","hashtag2"]},{"1377717050":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377717052, 1377717055, 1377717049, 1377717051, 1377717053, 1377717050)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.097341775894165 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:55:47.243630
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/55/image_18082025_20_55_45_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/20/55/image_18082025_20_55_35_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/20/55/image_18082025_20_55_15_9677.jpg', 2), ('/home/nano/Desktop/images/18082025/20/54/image_18082025_20_55_05_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/20/54/image_18082025_20_54_34_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/09/01/image_18082025_09_01_15_10684.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/55/image_18082025_20_55_45_9624.jpg', '/home/nano/Desktop/images/18082025/20/55/image_18082025_20_55_35_10656.jpg', '/home/nano/Desktop/images/18082025/20/55/image_18082025_20_55_15_9677.jpg', '/home/nano/Desktop/images/18082025/20/54/image_18082025_20_55_05_10642.jpg', '/home/nano/Desktop/images/18082025/20/54/image_18082025_20_54_34_9627.jpg', '/home/nano/Desktop/images/18082025/09/01/image_18082025_09_01_15_10684.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/55/image_18082025_20_55_45_9624.jpg
/home/nano/Desktop/images/18082025/20/55/image_18082025_20_55_35_10656.jpg
/home/nano/Desktop/images/18082025/20/55/image_18082025_20_55_15_9677.jpg
/home/nano/Desktop/images/18082025/20/54/image_18082025_20_55_05_10642.jpg
/home/nano/Desktop/images/18082025/20/54/image_18082025_20_54_34_9627.jpg
/home/nano/Desktop/images/18082025/09/01/image_18082025_09_01_15_10684.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377717076","1377717070","1377717067","1377717072","1377717063","1377717065"],"photo_ids_order":["1377717063","1377717065","1377717067","1377717070","1377717072","1377717076"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c96ad87faef4e86f9a30c7fcfe54121f.jpg","text":"TemporaryFile(/tmp/multipartBody891149995223294543asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543408784,"filename":"image_18082025_09_01_15_10684.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8abd7fa462089ffcdd16838f2ebd1e43.jpg","text":"TemporaryFile(/tmp/multipartBody77798825713183102asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543408784,"filename":"image_18082025_20_55_05_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ee7c5d42aa7ab127ab7a53a9bba93577.jpg","text":"TemporaryFile(/tmp/multipartBody7779267483493040976asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543408784,"filename":"image_18082025_20_55_15_9677.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/88780813a6cb0c89fed6595f63f35e42.jpg","text":"TemporaryFile(/tmp/multipartBody5990438483695565849asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543408784,"filename":"image_18082025_20_54_34_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/304180e0e03e240b31d16276eb2322f7.jpg","text":"TemporaryFile(/tmp/multipartBody8486340985219148186asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543408784,"filename":"image_18082025_20_55_45_9624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/deaced863506cb8523ee571ca131a31d.jpg","text":"TemporaryFile(/tmp/multipartBody1418870096253576463asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543408784,"filename":"image_18082025_20_55_35_10656.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377717067","file1":"1377717065","file0":"1377717063","file4":"1377717072","file5":"1377717076","file3":"1377717070"},"map_files_photo_id_array":[{"photo_id":"1377717076","filename":"file5"},{"photo_id":"1377717067","filename":"file2"},{"photo_id":"1377717072","filename":"file4"},{"photo_id":"1377717065","filename":"file1"},{"photo_id":"1377717063","filename":"file0"},{"photo_id":"1377717070","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377717076":["hashtag1","hashtag2"]},{"1377717070":["hashtag1","hashtag2"]},{"1377717067":["hashtag1","hashtag2"]},{"1377717072":["hashtag1","hashtag2"]},{"1377717063":["hashtag1","hashtag2"]},{"1377717065":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377717076, 1377717070, 1377717067, 1377717072, 1377717063, 1377717065)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.46472668647766 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:56:32.377931
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/56/image_18082025_20_56_35_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/20/56/image_18082025_20_56_24_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/20/56/image_18082025_20_56_15_9671.jpg', 2), ('/home/nano/Desktop/images/18082025/20/55/image_18082025_20_56_05_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/20/55/image_18082025_20_55_54_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/09/00/image_18082025_09_01_04_9640.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/56/image_18082025_20_56_35_10636.jpg', '/home/nano/Desktop/images/18082025/20/56/image_18082025_20_56_24_9628.jpg', '/home/nano/Desktop/images/18082025/20/56/image_18082025_20_56_15_9671.jpg', '/home/nano/Desktop/images/18082025/20/55/image_18082025_20_56_05_10642.jpg', '/home/nano/Desktop/images/18082025/20/55/image_18082025_20_55_54_9628.jpg', '/home/nano/Desktop/images/18082025/09/00/image_18082025_09_01_04_9640.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/56/image_18082025_20_56_35_10636.jpg
/home/nano/Desktop/images/18082025/20/56/image_18082025_20_56_24_9628.jpg
/home/nano/Desktop/images/18082025/20/56/image_18082025_20_56_15_9671.jpg
/home/nano/Desktop/images/18082025/20/55/image_18082025_20_56_05_10642.jpg
/home/nano/Desktop/images/18082025/20/55/image_18082025_20_55_54_9628.jpg
/home/nano/Desktop/images/18082025/09/00/image_18082025_09_01_04_9640.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377717088","1377717091","1377717084","1377717092","1377717086","1377717089"],"photo_ids_order":["1377717084","1377717086","1377717088","1377717089","1377717091","1377717092"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a5453abbe37916cc9f5c3fb5b2bdda17.jpg","text":"TemporaryFile(/tmp/multipartBody1399133045216871771asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543454002,"filename":"image_18082025_20_56_15_9671.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7e999c4a67e77fecbe75f1ed7ab51282.jpg","text":"TemporaryFile(/tmp/multipartBody6424962526371279401asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543454002,"filename":"image_18082025_20_55_54_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3bc4b93d7c3cae35c90769c29d6b2ffb.jpg","text":"TemporaryFile(/tmp/multipartBody669867367022622724asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543454002,"filename":"image_18082025_20_56_35_10636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/49dc1a1d9ee998c8de48222ed1784f5a.jpg","text":"TemporaryFile(/tmp/multipartBody148069147211806055asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543454002,"filename":"image_18082025_09_01_04_9640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7120fcc645aace00f5b269f93b67b3b7.jpg","text":"TemporaryFile(/tmp/multipartBody552195549547024754asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543454002,"filename":"image_18082025_20_56_24_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/888f21fae52724658f0809243885f2e9.jpg","text":"TemporaryFile(/tmp/multipartBody7569327853960125877asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543454002,"filename":"image_18082025_20_56_05_10642.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377717088","file1":"1377717086","file0":"1377717084","file4":"1377717091","file5":"1377717092","file3":"1377717089"},"map_files_photo_id_array":[{"photo_id":"1377717092","filename":"file5"},{"photo_id":"1377717088","filename":"file2"},{"photo_id":"1377717091","filename":"file4"},{"photo_id":"1377717086","filename":"file1"},{"photo_id":"1377717084","filename":"file0"},{"photo_id":"1377717089","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377717088":["hashtag1","hashtag2"]},{"1377717091":["hashtag1","hashtag2"]},{"1377717084":["hashtag1","hashtag2"]},{"1377717092":["hashtag1","hashtag2"]},{"1377717086":["hashtag1","hashtag2"]},{"1377717089":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377717088, 1377717091, 1377717084, 1377717092, 1377717086, 1377717089)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.316282987594604 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:57:17.435242
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/57/image_18082025_20_57_35_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/20/56/image_18082025_20_56_54_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/09/00/image_18082025_09_00_55_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/09/00/image_18082025_09_00_45_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/09/00/image_18082025_09_00_34_9616.jpg', 2), ('/home/nano/Desktop/images/18082025/09/00/image_18082025_09_00_25_10624.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/57/image_18082025_20_57_35_9631.jpg', '/home/nano/Desktop/images/18082025/20/56/image_18082025_20_56_54_9630.jpg', '/home/nano/Desktop/images/18082025/09/00/image_18082025_09_00_55_9636.jpg', '/home/nano/Desktop/images/18082025/09/00/image_18082025_09_00_45_10629.jpg', '/home/nano/Desktop/images/18082025/09/00/image_18082025_09_00_34_9616.jpg', '/home/nano/Desktop/images/18082025/09/00/image_18082025_09_00_25_10624.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/57/image_18082025_20_57_35_9631.jpg
/home/nano/Desktop/images/18082025/20/56/image_18082025_20_56_54_9630.jpg
/home/nano/Desktop/images/18082025/09/00/image_18082025_09_00_55_9636.jpg
/home/nano/Desktop/images/18082025/09/00/image_18082025_09_00_45_10629.jpg
/home/nano/Desktop/images/18082025/09/00/image_18082025_09_00_34_9616.jpg
/home/nano/Desktop/images/18082025/09/00/image_18082025_09_00_25_10624.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377717104","1377717106","1377717099","1377717103","1377717105","1377717101"],"photo_ids_order":["1377717099","1377717101","1377717103","1377717104","1377717105","1377717106"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f4b24131b1d39bb4ec3855fbe2b9dca7.jpg","text":"TemporaryFile(/tmp/multipartBody1731606503382979303asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543498847,"filename":"image_18082025_09_00_45_10629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/98ab616125b093dfe7e8f19fd19bce3f.jpg","text":"TemporaryFile(/tmp/multipartBody4496570299443710656asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543498847,"filename":"image_18082025_09_00_25_10624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ca43ce1c05b8686351cb76d5f2890126.jpg","text":"TemporaryFile(/tmp/multipartBody6906689461821599952asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543498847,"filename":"image_18082025_20_57_35_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e7280d4670aa1649e61b106f0997a4d4.jpg","text":"TemporaryFile(/tmp/multipartBody491711678634488678asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543498847,"filename":"image_18082025_09_00_55_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/efb5b8145176d3595ea0a4bf1a352913.jpg","text":"TemporaryFile(/tmp/multipartBody2699850840612940625asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543498847,"filename":"image_18082025_09_00_34_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9ee11ccb972466eb4828800bdcd62582.jpg","text":"TemporaryFile(/tmp/multipartBody4632165174748986455asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543498847,"filename":"image_18082025_20_56_54_9630.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377717103","file1":"1377717101","file0":"1377717099","file4":"1377717105","file5":"1377717106","file3":"1377717104"},"map_files_photo_id_array":[{"photo_id":"1377717106","filename":"file5"},{"photo_id":"1377717103","filename":"file2"},{"photo_id":"1377717105","filename":"file4"},{"photo_id":"1377717101","filename":"file1"},{"photo_id":"1377717099","filename":"file0"},{"photo_id":"1377717104","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377717104":["hashtag1","hashtag2"]},{"1377717106":["hashtag1","hashtag2"]},{"1377717099":["hashtag1","hashtag2"]},{"1377717103":["hashtag1","hashtag2"]},{"1377717105":["hashtag1","hashtag2"]},{"1377717101":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377717104, 1377717106, 1377717099, 1377717103, 1377717105, 1377717101)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.70872974395752 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:59:03.037000
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/58/image_18082025_20_58_44_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/20/58/image_18082025_20_58_35_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/20/58/image_18082025_20_58_14_9670.jpg', 2), ('/home/nano/Desktop/images/18082025/20/57/image_18082025_20_58_05_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/20/57/image_18082025_20_57_55_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/09/00/image_18082025_09_00_14_9655.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/58/image_18082025_20_58_44_9632.jpg', '/home/nano/Desktop/images/18082025/20/58/image_18082025_20_58_35_9631.jpg', '/home/nano/Desktop/images/18082025/20/58/image_18082025_20_58_14_9670.jpg', '/home/nano/Desktop/images/18082025/20/57/image_18082025_20_58_05_9638.jpg', '/home/nano/Desktop/images/18082025/20/57/image_18082025_20_57_55_10642.jpg', '/home/nano/Desktop/images/18082025/09/00/image_18082025_09_00_14_9655.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/58/image_18082025_20_58_44_9632.jpg
/home/nano/Desktop/images/18082025/20/58/image_18082025_20_58_35_9631.jpg
/home/nano/Desktop/images/18082025/20/58/image_18082025_20_58_14_9670.jpg
/home/nano/Desktop/images/18082025/20/57/image_18082025_20_58_05_9638.jpg
/home/nano/Desktop/images/18082025/20/57/image_18082025_20_57_55_10642.jpg
/home/nano/Desktop/images/18082025/09/00/image_18082025_09_00_14_9655.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377717125","1377717119","1377717127","1377717123","1377717117","1377717129"],"photo_ids_order":["1377717117","1377717119","1377717123","1377717125","1377717127","1377717129"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3ecf867140155a38dd9c5ee9a45e7ba7.jpg","text":"TemporaryFile(/tmp/multipartBody4157043901115515479asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543604451,"filename":"image_18082025_20_58_05_9638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c31f4bfab79cb1e1ae302600b8cbe7b6.jpg","text":"TemporaryFile(/tmp/multipartBody3595962746662387165asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543604451,"filename":"image_18082025_20_58_35_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4a225c1d178312676da66b35f569e1d7.jpg","text":"TemporaryFile(/tmp/multipartBody2837926153276533411asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543604451,"filename":"image_18082025_20_57_55_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/86572f7d23acd4a6d4dec3a137a5212e.jpg","text":"TemporaryFile(/tmp/multipartBody2761761691944016607asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543604451,"filename":"image_18082025_20_58_14_9670.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c7eb2cc51d36ed982a9513d716c8c0be.jpg","text":"TemporaryFile(/tmp/multipartBody7277204302692254411asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543604451,"filename":"image_18082025_20_58_44_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3eb64ff154a3ab8caba87fccb730fede.jpg","text":"TemporaryFile(/tmp/multipartBody8219551609184994217asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543604451,"filename":"image_18082025_09_00_14_9655.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377717123","file1":"1377717119","file0":"1377717117","file4":"1377717127","file5":"1377717129","file3":"1377717125"},"map_files_photo_id_array":[{"photo_id":"1377717129","filename":"file5"},{"photo_id":"1377717123","filename":"file2"},{"photo_id":"1377717127","filename":"file4"},{"photo_id":"1377717119","filename":"file1"},{"photo_id":"1377717117","filename":"file0"},{"photo_id":"1377717125","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377717125":["hashtag1","hashtag2"]},{"1377717119":["hashtag1","hashtag2"]},{"1377717127":["hashtag1","hashtag2"]},{"1377717123":["hashtag1","hashtag2"]},{"1377717117":["hashtag1","hashtag2"]},{"1377717129":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377717125, 1377717119, 1377717127, 1377717123, 1377717117, 1377717129)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.629236459732056 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 20:59:47.008565
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/20/59/image_18082025_20_59_34_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/20/59/image_18082025_20_59_25_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/20/59/image_18082025_20_59_14_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/20/58/image_18082025_20_59_04_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/20/58/image_18082025_20_58_55_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/08/59/image_18082025_09_00_04_9629.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/20/59/image_18082025_20_59_34_9627.jpg', '/home/nano/Desktop/images/18082025/20/59/image_18082025_20_59_25_10639.jpg', '/home/nano/Desktop/images/18082025/20/59/image_18082025_20_59_14_9649.jpg', '/home/nano/Desktop/images/18082025/20/58/image_18082025_20_59_04_9636.jpg', '/home/nano/Desktop/images/18082025/20/58/image_18082025_20_58_55_10656.jpg', '/home/nano/Desktop/images/18082025/08/59/image_18082025_09_00_04_9629.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/20/59/image_18082025_20_59_34_9627.jpg
/home/nano/Desktop/images/18082025/20/59/image_18082025_20_59_25_10639.jpg
/home/nano/Desktop/images/18082025/20/59/image_18082025_20_59_14_9649.jpg
/home/nano/Desktop/images/18082025/20/58/image_18082025_20_59_04_9636.jpg
/home/nano/Desktop/images/18082025/20/58/image_18082025_20_58_55_10656.jpg
/home/nano/Desktop/images/18082025/08/59/image_18082025_09_00_04_9629.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377717151","1377717153","1377717156","1377717147","1377717146","1377717149"],"photo_ids_order":["1377717146","1377717147","1377717149","1377717151","1377717153","1377717156"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bda345b17d3f35dab52172378efe2b17.jpg","text":"TemporaryFile(/tmp/multipartBody6066125591525412271asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543648564,"filename":"image_18082025_20_59_04_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bf315e66f28ef7cea241dcaa7b399f6f.jpg","text":"TemporaryFile(/tmp/multipartBody436347309187246930asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543648564,"filename":"image_18082025_20_58_55_10656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fb05bb85354d24a927f4be2bee3b7a83.jpg","text":"TemporaryFile(/tmp/multipartBody2971649117659553790asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543648564,"filename":"image_18082025_09_00_04_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8a159a5f29fae1d5ed3ed994910c22b4.jpg","text":"TemporaryFile(/tmp/multipartBody2862604330405365824asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543648564,"filename":"image_18082025_20_59_25_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f1fc027d23374f2cbb11de3c0479e61a.jpg","text":"TemporaryFile(/tmp/multipartBody1409458376561275732asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543648564,"filename":"image_18082025_20_59_34_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2a790c20b04e7590afa4ad1add866aec.jpg","text":"TemporaryFile(/tmp/multipartBody3653293732227514688asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543648564,"filename":"image_18082025_20_59_14_9649.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377717149","file1":"1377717147","file0":"1377717146","file4":"1377717153","file5":"1377717156","file3":"1377717151"},"map_files_photo_id_array":[{"photo_id":"1377717156","filename":"file5"},{"photo_id":"1377717149","filename":"file2"},{"photo_id":"1377717153","filename":"file4"},{"photo_id":"1377717147","filename":"file1"},{"photo_id":"1377717146","filename":"file0"},{"photo_id":"1377717151","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377717151":["hashtag1","hashtag2"]},{"1377717153":["hashtag1","hashtag2"]},{"1377717156":["hashtag1","hashtag2"]},{"1377717147":["hashtag1","hashtag2"]},{"1377717146":["hashtag1","hashtag2"]},{"1377717149":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377717151, 1377717153, 1377717156, 1377717147, 1377717146, 1377717149)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.49134063720703 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:00:32.136890
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/00/image_18082025_21_00_45_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/21/00/image_18082025_21_00_34_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/21/00/image_18082025_21_00_25_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/21/00/image_18082025_21_00_15_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/20/59/image_18082025_21_00_04_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/20/59/image_18082025_20_59_55_9626.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/00/image_18082025_21_00_45_10636.jpg', '/home/nano/Desktop/images/18082025/21/00/image_18082025_21_00_34_9628.jpg', '/home/nano/Desktop/images/18082025/21/00/image_18082025_21_00_25_9626.jpg', '/home/nano/Desktop/images/18082025/21/00/image_18082025_21_00_15_10658.jpg', '/home/nano/Desktop/images/18082025/20/59/image_18082025_21_00_04_9632.jpg', '/home/nano/Desktop/images/18082025/20/59/image_18082025_20_59_55_9626.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/00/image_18082025_21_00_45_10636.jpg
/home/nano/Desktop/images/18082025/21/00/image_18082025_21_00_34_9628.jpg
/home/nano/Desktop/images/18082025/21/00/image_18082025_21_00_25_9626.jpg
/home/nano/Desktop/images/18082025/21/00/image_18082025_21_00_15_10658.jpg
/home/nano/Desktop/images/18082025/20/59/image_18082025_21_00_04_9632.jpg
/home/nano/Desktop/images/18082025/20/59/image_18082025_20_59_55_9626.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377717172","1377717166","1377717171","1377717168","1377717170","1377717164"],"photo_ids_order":["1377717164","1377717166","1377717168","1377717170","1377717171","1377717172"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1992bbe32da2ac8dd25560bce43721f3.jpg","text":"TemporaryFile(/tmp/multipartBody7951452785585503819asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543693148,"filename":"image_18082025_20_59_55_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/50c7b10f917e8a792afc3e1b923f24c1.jpg","text":"TemporaryFile(/tmp/multipartBody3981106368732065042asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543693148,"filename":"image_18082025_21_00_34_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/960c09f9f178001e4e37114670fb7b26.jpg","text":"TemporaryFile(/tmp/multipartBody6620190702412882480asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543693148,"filename":"image_18082025_21_00_04_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/214127185269fcbd6a99210af8bc5d4b.jpg","text":"TemporaryFile(/tmp/multipartBody3848376951396113316asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543693148,"filename":"image_18082025_21_00_25_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1f6f398199bbf1472844494aef5e9791.jpg","text":"TemporaryFile(/tmp/multipartBody7135809933181336536asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543693148,"filename":"image_18082025_21_00_15_10658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f25c62c61323385e5319e683c731cef0.jpg","text":"TemporaryFile(/tmp/multipartBody2518738081854965953asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543693148,"filename":"image_18082025_21_00_45_10636.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377717168","file1":"1377717166","file0":"1377717164","file4":"1377717171","file5":"1377717172","file3":"1377717170"},"map_files_photo_id_array":[{"photo_id":"1377717172","filename":"file5"},{"photo_id":"1377717168","filename":"file2"},{"photo_id":"1377717171","filename":"file4"},{"photo_id":"1377717166","filename":"file1"},{"photo_id":"1377717164","filename":"file0"},{"photo_id":"1377717170","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377717172":["hashtag1","hashtag2"]},{"1377717166":["hashtag1","hashtag2"]},{"1377717171":["hashtag1","hashtag2"]},{"1377717168":["hashtag1","hashtag2"]},{"1377717170":["hashtag1","hashtag2"]},{"1377717164":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377717172, 1377717166, 1377717171, 1377717168, 1377717170, 1377717164)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.692679405212402 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:01:17.203362
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/01/image_18082025_21_01_45_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/21/01/image_18082025_21_01_35_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/21/01/image_18082025_21_01_24_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/21/01/image_18082025_21_01_15_10657.jpg', 2), ('/home/nano/Desktop/images/18082025/21/00/image_18082025_21_01_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/21/00/image_18082025_21_00_54_9627.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/01/image_18082025_21_01_45_9631.jpg', '/home/nano/Desktop/images/18082025/21/01/image_18082025_21_01_35_10642.jpg', '/home/nano/Desktop/images/18082025/21/01/image_18082025_21_01_24_9624.jpg', '/home/nano/Desktop/images/18082025/21/01/image_18082025_21_01_15_10657.jpg', '/home/nano/Desktop/images/18082025/21/00/image_18082025_21_01_04_9639.jpg', '/home/nano/Desktop/images/18082025/21/00/image_18082025_21_00_54_9627.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/01/image_18082025_21_01_45_9631.jpg
/home/nano/Desktop/images/18082025/21/01/image_18082025_21_01_35_10642.jpg
/home/nano/Desktop/images/18082025/21/01/image_18082025_21_01_24_9624.jpg
/home/nano/Desktop/images/18082025/21/01/image_18082025_21_01_15_10657.jpg
/home/nano/Desktop/images/18082025/21/00/image_18082025_21_01_04_9639.jpg
/home/nano/Desktop/images/18082025/21/00/image_18082025_21_00_54_9627.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377717187","1377717178","1377717180","1377717183","1377717182","1377717185"],"photo_ids_order":["1377717178","1377717180","1377717182","1377717183","1377717185","1377717187"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9c19fffc50789267ef6428b4397393fa.jpg","text":"TemporaryFile(/tmp/multipartBody6517969511779791679asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543738684,"filename":"image_18082025_21_00_54_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/323b471589eb4dd21a92bfdbb7e52ffb.jpg","text":"TemporaryFile(/tmp/multipartBody7489758784819203720asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543738684,"filename":"image_18082025_21_01_45_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/653cc92e3f28f70c36ee5d96fbc7f9ac.jpg","text":"TemporaryFile(/tmp/multipartBody53968881527370682asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543738684,"filename":"image_18082025_21_01_35_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b89a7d7e257d301b1363137c1684458f.jpg","text":"TemporaryFile(/tmp/multipartBody603325391126728084asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543738684,"filename":"image_18082025_21_01_15_10657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e0206474fbfbc5bcc411dad9c9d05120.jpg","text":"TemporaryFile(/tmp/multipartBody8594877028183676783asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543738684,"filename":"image_18082025_21_01_24_9624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/09a2e934d1fd410f266e27675444c449.jpg","text":"TemporaryFile(/tmp/multipartBody8306866284943856364asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543738684,"filename":"image_18082025_21_01_04_9639.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377717182","file1":"1377717180","file0":"1377717178","file4":"1377717185","file5":"1377717187","file3":"1377717183"},"map_files_photo_id_array":[{"photo_id":"1377717187","filename":"file5"},{"photo_id":"1377717182","filename":"file2"},{"photo_id":"1377717185","filename":"file4"},{"photo_id":"1377717180","filename":"file1"},{"photo_id":"1377717178","filename":"file0"},{"photo_id":"1377717183","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377717187":["hashtag1","hashtag2"]},{"1377717178":["hashtag1","hashtag2"]},{"1377717180":["hashtag1","hashtag2"]},{"1377717183":["hashtag1","hashtag2"]},{"1377717182":["hashtag1","hashtag2"]},{"1377717185":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377717187, 1377717178, 1377717180, 1377717183, 1377717182, 1377717185)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.92923092842102 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:02:02.859556
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/02/image_18082025_21_02_35_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/08/59/image_18082025_08_59_55_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/08/59/image_18082025_08_59_44_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/08/59/image_18082025_08_59_35_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/08/59/image_18082025_08_59_25_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/08/59/image_18082025_08_59_14_9638.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/02/image_18082025_21_02_35_10641.jpg', '/home/nano/Desktop/images/18082025/08/59/image_18082025_08_59_55_10623.jpg', '/home/nano/Desktop/images/18082025/08/59/image_18082025_08_59_44_9618.jpg', '/home/nano/Desktop/images/18082025/08/59/image_18082025_08_59_35_9609.jpg', '/home/nano/Desktop/images/18082025/08/59/image_18082025_08_59_25_10621.jpg', '/home/nano/Desktop/images/18082025/08/59/image_18082025_08_59_14_9638.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/02/image_18082025_21_02_35_10641.jpg
/home/nano/Desktop/images/18082025/08/59/image_18082025_08_59_55_10623.jpg
/home/nano/Desktop/images/18082025/08/59/image_18082025_08_59_44_9618.jpg
/home/nano/Desktop/images/18082025/08/59/image_18082025_08_59_35_9609.jpg
/home/nano/Desktop/images/18082025/08/59/image_18082025_08_59_25_10621.jpg
/home/nano/Desktop/images/18082025/08/59/image_18082025_08_59_14_9638.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377717199","1377717211","1377717214","1377717208","1377717195","1377717204"],"photo_ids_order":["1377717195","1377717199","1377717204","1377717208","1377717211","1377717214"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8953532b339db254b0c249cecca7205f.jpg","text":"TemporaryFile(/tmp/multipartBody2110357180930891370asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543784434,"filename":"image_18082025_08_59_55_10623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/012acef01500bcd71d5ec5fe11996a08.jpg","text":"TemporaryFile(/tmp/multipartBody1801816851475144490asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543784434,"filename":"image_18082025_08_59_25_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b77ce1282c4e5a1c9670b842541737be.jpg","text":"TemporaryFile(/tmp/multipartBody6878695910788924082asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543784434,"filename":"image_18082025_08_59_14_9638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4ce45b515a8863c4a7b79eb2536c0f83.jpg","text":"TemporaryFile(/tmp/multipartBody4853937741674608746asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543784434,"filename":"image_18082025_08_59_35_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1c846230f5d25fbe8a9104d0ab4c77c5.jpg","text":"TemporaryFile(/tmp/multipartBody8827028479415602499asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543784434,"filename":"image_18082025_21_02_35_10641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/248dff4c4b596eed528cc4be0b6b8062.jpg","text":"TemporaryFile(/tmp/multipartBody7696214515632953114asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543784434,"filename":"image_18082025_08_59_44_9618.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377717204","file1":"1377717199","file0":"1377717195","file4":"1377717211","file5":"1377717214","file3":"1377717208"},"map_files_photo_id_array":[{"photo_id":"1377717214","filename":"file5"},{"photo_id":"1377717204","filename":"file2"},{"photo_id":"1377717211","filename":"file4"},{"photo_id":"1377717199","filename":"file1"},{"photo_id":"1377717195","filename":"file0"},{"photo_id":"1377717208","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377717199":["hashtag1","hashtag2"]},{"1377717211":["hashtag1","hashtag2"]},{"1377717214":["hashtag1","hashtag2"]},{"1377717208":["hashtag1","hashtag2"]},{"1377717195":["hashtag1","hashtag2"]},{"1377717204":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377717199, 1377717211, 1377717214, 1377717208, 1377717195, 1377717204)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.32686400413513 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:02:47.325136
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/02/image_18082025_21_02_15_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/21/01/image_18082025_21_02_05_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/21/01/image_18082025_21_01_54_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/08/58/image_18082025_08_59_05_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/08/58/image_18082025_08_58_54_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/08/58/image_18082025_08_58_44_9611.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/02/image_18082025_21_02_15_9669.jpg', '/home/nano/Desktop/images/18082025/21/01/image_18082025_21_02_05_10654.jpg', '/home/nano/Desktop/images/18082025/21/01/image_18082025_21_01_54_9628.jpg', '/home/nano/Desktop/images/18082025/08/58/image_18082025_08_59_05_10645.jpg', '/home/nano/Desktop/images/18082025/08/58/image_18082025_08_58_54_9612.jpg', '/home/nano/Desktop/images/18082025/08/58/image_18082025_08_58_44_9611.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/02/image_18082025_21_02_15_9669.jpg
/home/nano/Desktop/images/18082025/21/01/image_18082025_21_02_05_10654.jpg
/home/nano/Desktop/images/18082025/21/01/image_18082025_21_01_54_9628.jpg
/home/nano/Desktop/images/18082025/08/58/image_18082025_08_59_05_10645.jpg
/home/nano/Desktop/images/18082025/08/58/image_18082025_08_58_54_9612.jpg
/home/nano/Desktop/images/18082025/08/58/image_18082025_08_58_44_9611.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377717218","1377717223","1377717226","1377717220","1377717231","1377717221"],"photo_ids_order":["1377717218","1377717220","1377717221","1377717223","1377717226","1377717231"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3e11af440408128da704be0589fe33b9.jpg","text":"TemporaryFile(/tmp/multipartBody8575531983129688315asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543828647,"filename":"image_18082025_21_02_15_9669.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/59b8bc9024f02ee7d72c08493c2ae9a5.jpg","text":"TemporaryFile(/tmp/multipartBody7811200041151665447asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543828647,"filename":"image_18082025_08_59_05_10645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5a9414a959214c15daca2859bd3ce8fa.jpg","text":"TemporaryFile(/tmp/multipartBody4023439380227135238asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543828647,"filename":"image_18082025_08_58_54_9612.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/97165f2078db693bc19b9e47c811de66.jpg","text":"TemporaryFile(/tmp/multipartBody8116916657267842116asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543828647,"filename":"image_18082025_21_02_05_10654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5c7ca490afb3633746d19e25f2e348b5.jpg","text":"TemporaryFile(/tmp/multipartBody613548487767957438asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543828647,"filename":"image_18082025_08_58_44_9611.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5c1ea5c4a7b5ef70b4a652f3517ef5bb.jpg","text":"TemporaryFile(/tmp/multipartBody2136376381607151847asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543828647,"filename":"image_18082025_21_01_54_9628.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377717221","file1":"1377717220","file0":"1377717218","file4":"1377717226","file5":"1377717231","file3":"1377717223"},"map_files_photo_id_array":[{"photo_id":"1377717231","filename":"file5"},{"photo_id":"1377717221","filename":"file2"},{"photo_id":"1377717226","filename":"file4"},{"photo_id":"1377717220","filename":"file1"},{"photo_id":"1377717218","filename":"file0"},{"photo_id":"1377717223","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377717218":["hashtag1","hashtag2"]},{"1377717223":["hashtag1","hashtag2"]},{"1377717226":["hashtag1","hashtag2"]},{"1377717220":["hashtag1","hashtag2"]},{"1377717231":["hashtag1","hashtag2"]},{"1377717221":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377717218, 1377717223, 1377717226, 1377717220, 1377717231, 1377717221)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.14400887489319 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:03:32.434969
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/03/image_18082025_21_03_44_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/21/03/image_18082025_21_03_35_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/21/03/image_18082025_21_03_14_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/21/02/image_18082025_21_02_24_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/08/58/image_18082025_08_58_35_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/08/58/image_18082025_08_58_24_9602.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/03/image_18082025_21_03_44_9630.jpg', '/home/nano/Desktop/images/18082025/21/03/image_18082025_21_03_35_10645.jpg', '/home/nano/Desktop/images/18082025/21/03/image_18082025_21_03_14_9652.jpg', '/home/nano/Desktop/images/18082025/21/02/image_18082025_21_02_24_9625.jpg', '/home/nano/Desktop/images/18082025/08/58/image_18082025_08_58_35_10627.jpg', '/home/nano/Desktop/images/18082025/08/58/image_18082025_08_58_24_9602.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/03/image_18082025_21_03_44_9630.jpg
/home/nano/Desktop/images/18082025/21/03/image_18082025_21_03_35_10645.jpg
/home/nano/Desktop/images/18082025/21/03/image_18082025_21_03_14_9652.jpg
/home/nano/Desktop/images/18082025/21/02/image_18082025_21_02_24_9625.jpg
/home/nano/Desktop/images/18082025/08/58/image_18082025_08_58_35_10627.jpg
/home/nano/Desktop/images/18082025/08/58/image_18082025_08_58_24_9602.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377717256","1377717250","1377717253","1377717247","1377717255","1377717257"],"photo_ids_order":["1377717247","1377717250","1377717253","1377717255","1377717256","1377717257"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/38e05d16b8a021482709e7a2649b36b0.jpg","text":"TemporaryFile(/tmp/multipartBody5219447245840469044asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543873751,"filename":"image_18082025_08_58_35_10627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5c6c0421a6866449c4106e46a1053102.jpg","text":"TemporaryFile(/tmp/multipartBody4639198612628203807asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543873751,"filename":"image_18082025_21_03_35_10645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0c445c4a1a9c99cff0bfe0b57061f63e.jpg","text":"TemporaryFile(/tmp/multipartBody8298281898971268105asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543873751,"filename":"image_18082025_21_03_14_9652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/98155cd7d9e4147cf8c05c9445127d16.jpg","text":"TemporaryFile(/tmp/multipartBody6478059200738255704asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543873751,"filename":"image_18082025_21_03_44_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fc0c14c82a664fa89ba91c0cee7f2e42.jpg","text":"TemporaryFile(/tmp/multipartBody8014776122699731718asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543873751,"filename":"image_18082025_21_02_24_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d4458f4b85c87934632618cdb5c32584.jpg","text":"TemporaryFile(/tmp/multipartBody3413725388111752753asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543873751,"filename":"image_18082025_08_58_24_9602.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377717253","file1":"1377717250","file0":"1377717247","file4":"1377717256","file5":"1377717257","file3":"1377717255"},"map_files_photo_id_array":[{"photo_id":"1377717257","filename":"file5"},{"photo_id":"1377717253","filename":"file2"},{"photo_id":"1377717256","filename":"file4"},{"photo_id":"1377717250","filename":"file1"},{"photo_id":"1377717247","filename":"file0"},{"photo_id":"1377717255","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377717256":["hashtag1","hashtag2"]},{"1377717250":["hashtag1","hashtag2"]},{"1377717253":["hashtag1","hashtag2"]},{"1377717247":["hashtag1","hashtag2"]},{"1377717255":["hashtag1","hashtag2"]},{"1377717257":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377717256, 1377717250, 1377717253, 1377717247, 1377717255, 1377717257)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.609590530395508 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:04:17.573163
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/04/image_18082025_21_04_44_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/21/04/image_18082025_21_04_25_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/21/04/image_18082025_21_04_14_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/21/03/image_18082025_21_04_05_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/21/03/image_18082025_21_03_55_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/08/58/image_18082025_08_58_15_9667.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/04/image_18082025_21_04_44_9647.jpg', '/home/nano/Desktop/images/18082025/21/04/image_18082025_21_04_25_10656.jpg', '/home/nano/Desktop/images/18082025/21/04/image_18082025_21_04_14_9654.jpg', '/home/nano/Desktop/images/18082025/21/03/image_18082025_21_04_05_9630.jpg', '/home/nano/Desktop/images/18082025/21/03/image_18082025_21_03_55_10635.jpg', '/home/nano/Desktop/images/18082025/08/58/image_18082025_08_58_15_9667.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/04/image_18082025_21_04_44_9647.jpg
/home/nano/Desktop/images/18082025/21/04/image_18082025_21_04_25_10656.jpg
/home/nano/Desktop/images/18082025/21/04/image_18082025_21_04_14_9654.jpg
/home/nano/Desktop/images/18082025/21/03/image_18082025_21_04_05_9630.jpg
/home/nano/Desktop/images/18082025/21/03/image_18082025_21_03_55_10635.jpg
/home/nano/Desktop/images/18082025/08/58/image_18082025_08_58_15_9667.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377717274","1377717262","1377717271","1377717265","1377717276","1377717269"],"photo_ids_order":["1377717262","1377717265","1377717269","1377717271","1377717274","1377717276"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c79d054fde90ef6acd2b711bec82f91c.jpg","text":"TemporaryFile(/tmp/multipartBody2945437128998667360asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543919113,"filename":"image_18082025_21_03_55_10635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5e2aed727c78d7ae29eeac0716baa9fc.jpg","text":"TemporaryFile(/tmp/multipartBody5042087004975594886asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543919113,"filename":"image_18082025_21_04_44_9647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dadf473ab43b47fdb0aa544b8f75f386.jpg","text":"TemporaryFile(/tmp/multipartBody3742137753366573013asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543919113,"filename":"image_18082025_21_04_05_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3e480d0c1bb1debcd3a5095f7e42c63d.jpg","text":"TemporaryFile(/tmp/multipartBody5439869013397112945asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543919113,"filename":"image_18082025_21_04_25_10656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/512f7265f03a8cc59fd9cdd07ee15d92.jpg","text":"TemporaryFile(/tmp/multipartBody744086416560574594asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543919113,"filename":"image_18082025_08_58_15_9667.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/35d32a151200a0b0e9e10566077e31ce.jpg","text":"TemporaryFile(/tmp/multipartBody1809705134823712526asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543919113,"filename":"image_18082025_21_04_14_9654.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377717269","file1":"1377717265","file0":"1377717262","file4":"1377717274","file5":"1377717276","file3":"1377717271"},"map_files_photo_id_array":[{"photo_id":"1377717276","filename":"file5"},{"photo_id":"1377717269","filename":"file2"},{"photo_id":"1377717274","filename":"file4"},{"photo_id":"1377717265","filename":"file1"},{"photo_id":"1377717262","filename":"file0"},{"photo_id":"1377717271","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377717274":["hashtag1","hashtag2"]},{"1377717262":["hashtag1","hashtag2"]},{"1377717271":["hashtag1","hashtag2"]},{"1377717265":["hashtag1","hashtag2"]},{"1377717276":["hashtag1","hashtag2"]},{"1377717269":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377717274, 1377717262, 1377717271, 1377717265, 1377717276, 1377717269)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.80188727378845 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:05:03.433320
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/57/image_18082025_08_58_05_10623.jpg', 2), ('/home/nano/Desktop/images/18082025/08/57/image_18082025_08_57_54_9602.jpg', 2), ('/home/nano/Desktop/images/18082025/08/57/image_18082025_08_57_45_10617.jpg', 2), ('/home/nano/Desktop/images/18082025/08/57/image_18082025_08_57_34_9603.jpg', 2), ('/home/nano/Desktop/images/18082025/08/57/image_18082025_08_57_25_9604.jpg', 2), ('/home/nano/Desktop/images/18082025/08/57/image_18082025_08_57_15_10716.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/08/57/image_18082025_08_58_05_10623.jpg', '/home/nano/Desktop/images/18082025/08/57/image_18082025_08_57_54_9602.jpg', '/home/nano/Desktop/images/18082025/08/57/image_18082025_08_57_45_10617.jpg', '/home/nano/Desktop/images/18082025/08/57/image_18082025_08_57_34_9603.jpg', '/home/nano/Desktop/images/18082025/08/57/image_18082025_08_57_25_9604.jpg', '/home/nano/Desktop/images/18082025/08/57/image_18082025_08_57_15_10716.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/08/57/image_18082025_08_58_05_10623.jpg
/home/nano/Desktop/images/18082025/08/57/image_18082025_08_57_54_9602.jpg
/home/nano/Desktop/images/18082025/08/57/image_18082025_08_57_45_10617.jpg
/home/nano/Desktop/images/18082025/08/57/image_18082025_08_57_34_9603.jpg
/home/nano/Desktop/images/18082025/08/57/image_18082025_08_57_25_9604.jpg
/home/nano/Desktop/images/18082025/08/57/image_18082025_08_57_15_10716.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.246006965637207 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:05:17.670673
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/05/image_18082025_21_05_44_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/21/05/image_18082025_21_05_34_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/21/05/image_18082025_21_05_25_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/21/05/image_18082025_21_05_14_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/21/04/image_18082025_21_04_55_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/08/57/image_18082025_08_58_05_10623.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/05/image_18082025_21_05_44_9628.jpg', '/home/nano/Desktop/images/18082025/21/05/image_18082025_21_05_34_9645.jpg', '/home/nano/Desktop/images/18082025/21/05/image_18082025_21_05_25_10655.jpg', '/home/nano/Desktop/images/18082025/21/05/image_18082025_21_05_14_9654.jpg', '/home/nano/Desktop/images/18082025/21/04/image_18082025_21_04_55_10635.jpg', '/home/nano/Desktop/images/18082025/08/57/image_18082025_08_58_05_10623.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/05/image_18082025_21_05_44_9628.jpg
/home/nano/Desktop/images/18082025/21/05/image_18082025_21_05_34_9645.jpg
/home/nano/Desktop/images/18082025/21/05/image_18082025_21_05_25_10655.jpg
/home/nano/Desktop/images/18082025/21/05/image_18082025_21_05_14_9654.jpg
/home/nano/Desktop/images/18082025/21/04/image_18082025_21_04_55_10635.jpg
/home/nano/Desktop/images/18082025/08/57/image_18082025_08_58_05_10623.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377717298","1377717297","1377717291","1377717294","1377717296","1377717299"],"photo_ids_order":["1377717291","1377717294","1377717296","1377717297","1377717298","1377717299"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/399b00375d8be434e6b1b76b329e0a16.jpg","text":"TemporaryFile(/tmp/multipartBody1256085193391658361asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543979041,"filename":"image_18082025_21_04_55_10635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dfe23c9bbb7125c1bac5132be6363a05.jpg","text":"TemporaryFile(/tmp/multipartBody4481985233091374809asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543979041,"filename":"image_18082025_21_05_14_9654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7d468babc254fdf28b92f3218e4372d8.jpg","text":"TemporaryFile(/tmp/multipartBody2827497642591619833asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543979041,"filename":"image_18082025_21_05_44_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1f2dbab2f4458d3e7dbc982c542654b4.jpg","text":"TemporaryFile(/tmp/multipartBody6151687208471471047asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543979041,"filename":"image_18082025_21_05_34_9645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/64c6569eb9fbb8389a9ea997526f6c43.jpg","text":"TemporaryFile(/tmp/multipartBody4202259096287290757asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543979041,"filename":"image_18082025_21_05_25_10655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/eda68405098e4c74297eb3669f6f4940.jpg","text":"TemporaryFile(/tmp/multipartBody3769012842795286769asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755543979041,"filename":"image_18082025_08_58_05_10623.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377717296","file1":"1377717294","file0":"1377717291","file4":"1377717298","file5":"1377717299","file3":"1377717297"},"map_files_photo_id_array":[{"photo_id":"1377717299","filename":"file5"},{"photo_id":"1377717296","filename":"file2"},{"photo_id":"1377717298","filename":"file4"},{"photo_id":"1377717294","filename":"file1"},{"photo_id":"1377717291","filename":"file0"},{"photo_id":"1377717297","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377717298":["hashtag1","hashtag2"]},{"1377717297":["hashtag1","hashtag2"]},{"1377717291":["hashtag1","hashtag2"]},{"1377717294":["hashtag1","hashtag2"]},{"1377717296":["hashtag1","hashtag2"]},{"1377717299":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377717298, 1377717297, 1377717291, 1377717294, 1377717296, 1377717299)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.130945205688477 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:06:02.216115
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/57/image_18082025_08_57_54_9602.jpg', 2), ('/home/nano/Desktop/images/18082025/08/57/image_18082025_08_57_45_10617.jpg', 2), ('/home/nano/Desktop/images/18082025/08/57/image_18082025_08_57_34_9603.jpg', 2), ('/home/nano/Desktop/images/18082025/08/57/image_18082025_08_57_25_9604.jpg', 2), ('/home/nano/Desktop/images/18082025/08/57/image_18082025_08_57_15_10716.jpg', 2), ('/home/nano/Desktop/images/18082025/08/56/image_18082025_08_57_04_9657.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/08/57/image_18082025_08_57_54_9602.jpg', '/home/nano/Desktop/images/18082025/08/57/image_18082025_08_57_45_10617.jpg', '/home/nano/Desktop/images/18082025/08/57/image_18082025_08_57_34_9603.jpg', '/home/nano/Desktop/images/18082025/08/57/image_18082025_08_57_25_9604.jpg', '/home/nano/Desktop/images/18082025/08/57/image_18082025_08_57_15_10716.jpg', '/home/nano/Desktop/images/18082025/08/56/image_18082025_08_57_04_9657.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/08/57/image_18082025_08_57_54_9602.jpg
/home/nano/Desktop/images/18082025/08/57/image_18082025_08_57_45_10617.jpg
/home/nano/Desktop/images/18082025/08/57/image_18082025_08_57_34_9603.jpg
/home/nano/Desktop/images/18082025/08/57/image_18082025_08_57_25_9604.jpg
/home/nano/Desktop/images/18082025/08/57/image_18082025_08_57_15_10716.jpg
/home/nano/Desktop/images/18082025/08/56/image_18082025_08_57_04_9657.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377717317","1377717316","1377717318","1377717312","1377717314","1377717308"],"photo_ids_order":["1377717308","1377717312","1377717314","1377717316","1377717317","1377717318"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9c493841f9272313aefacbf7d4dc0c9b.jpg","text":"TemporaryFile(/tmp/multipartBody2564715930105039182asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544023579,"filename":"image_18082025_08_57_15_10716.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fcb70075166d456ffb9f990145cb85bc.jpg","text":"TemporaryFile(/tmp/multipartBody623827489946586993asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544023579,"filename":"image_18082025_08_57_25_9604.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0b18c29e7010bf677203a7aeac5f9c7e.jpg","text":"TemporaryFile(/tmp/multipartBody8161866782415117479asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544023579,"filename":"image_18082025_08_57_04_9657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/673be0ba2747535b31fbc452647aa0ed.jpg","text":"TemporaryFile(/tmp/multipartBody1359500882235309411asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544023579,"filename":"image_18082025_08_57_45_10617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/973213d122e80f75d1a8068a52657add.jpg","text":"TemporaryFile(/tmp/multipartBody3682715653531712802asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544023579,"filename":"image_18082025_08_57_34_9603.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d6633aa021c72e3356c36a5fb42d4955.jpg","text":"TemporaryFile(/tmp/multipartBody3223520372540737750asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544023579,"filename":"image_18082025_08_57_54_9602.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377717314","file1":"1377717312","file0":"1377717308","file4":"1377717317","file5":"1377717318","file3":"1377717316"},"map_files_photo_id_array":[{"photo_id":"1377717318","filename":"file5"},{"photo_id":"1377717314","filename":"file2"},{"photo_id":"1377717317","filename":"file4"},{"photo_id":"1377717312","filename":"file1"},{"photo_id":"1377717308","filename":"file0"},{"photo_id":"1377717316","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377717317":["hashtag1","hashtag2"]},{"1377717316":["hashtag1","hashtag2"]},{"1377717318":["hashtag1","hashtag2"]},{"1377717312":["hashtag1","hashtag2"]},{"1377717314":["hashtag1","hashtag2"]},{"1377717308":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377717317, 1377717316, 1377717318, 1377717312, 1377717314, 1377717308)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.229320764541626 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:06:46.796234
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/05/image_18082025_21_05_55_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/08/56/image_18082025_08_56_55_9736.jpg', 2), ('/home/nano/Desktop/images/18082025/08/56/image_18082025_08_56_45_9738.jpg', 2), ('/home/nano/Desktop/images/18082025/08/56/image_18082025_08_56_35_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/08/56/image_18082025_08_56_24_9736.jpg', 2), ('/home/nano/Desktop/images/18082025/08/56/image_18082025_08_56_15_9702.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/05/image_18082025_21_05_55_10635.jpg', '/home/nano/Desktop/images/18082025/08/56/image_18082025_08_56_55_9736.jpg', '/home/nano/Desktop/images/18082025/08/56/image_18082025_08_56_45_9738.jpg', '/home/nano/Desktop/images/18082025/08/56/image_18082025_08_56_35_10660.jpg', '/home/nano/Desktop/images/18082025/08/56/image_18082025_08_56_24_9736.jpg', '/home/nano/Desktop/images/18082025/08/56/image_18082025_08_56_15_9702.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/05/image_18082025_21_05_55_10635.jpg
/home/nano/Desktop/images/18082025/08/56/image_18082025_08_56_55_9736.jpg
/home/nano/Desktop/images/18082025/08/56/image_18082025_08_56_45_9738.jpg
/home/nano/Desktop/images/18082025/08/56/image_18082025_08_56_35_10660.jpg
/home/nano/Desktop/images/18082025/08/56/image_18082025_08_56_24_9736.jpg
/home/nano/Desktop/images/18082025/08/56/image_18082025_08_56_15_9702.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377717325","1377717328","1377717330","1377717327","1377717332","1377717326"],"photo_ids_order":["1377717325","1377717326","1377717327","1377717328","1377717330","1377717332"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e58ef86b6db025a2cffb03a05ac6a091.jpg","text":"TemporaryFile(/tmp/multipartBody3202280145163315588asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544068239,"filename":"image_18082025_21_05_55_10635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/47abd3232e3ffff4fd5c50dbc497291c.jpg","text":"TemporaryFile(/tmp/multipartBody1586852604401368291asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544068239,"filename":"image_18082025_08_56_35_10660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/41abb5f84a25379e38452efbbca88348.jpg","text":"TemporaryFile(/tmp/multipartBody5662795150938206883asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544068239,"filename":"image_18082025_08_56_24_9736.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6660ab9eb48d18affe288e25506676f1.jpg","text":"TemporaryFile(/tmp/multipartBody2828364010676405865asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544068239,"filename":"image_18082025_08_56_45_9738.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6e909d834c86206c0cf47b55717d7dce.jpg","text":"TemporaryFile(/tmp/multipartBody2589658166916610886asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544068239,"filename":"image_18082025_08_56_15_9702.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7103c89414cd2346c5e2e30d6306437a.jpg","text":"TemporaryFile(/tmp/multipartBody4292830387143746476asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544068239,"filename":"image_18082025_08_56_55_9736.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377717327","file1":"1377717326","file0":"1377717325","file4":"1377717330","file5":"1377717332","file3":"1377717328"},"map_files_photo_id_array":[{"photo_id":"1377717332","filename":"file5"},{"photo_id":"1377717327","filename":"file2"},{"photo_id":"1377717330","filename":"file4"},{"photo_id":"1377717326","filename":"file1"},{"photo_id":"1377717325","filename":"file0"},{"photo_id":"1377717328","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377717325":["hashtag1","hashtag2"]},{"1377717328":["hashtag1","hashtag2"]},{"1377717330":["hashtag1","hashtag2"]},{"1377717327":["hashtag1","hashtag2"]},{"1377717332":["hashtag1","hashtag2"]},{"1377717326":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377717325, 1377717328, 1377717330, 1377717327, 1377717332, 1377717326)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.031596660614014 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:07:31.913254
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/07/image_18082025_21_07_45_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/21/07/image_18082025_21_07_34_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/21/07/image_18082025_21_07_24_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/21/07/image_18082025_21_07_15_10676.jpg', 2), ('/home/nano/Desktop/images/18082025/21/05/image_18082025_21_06_04_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/08/55/image_18082025_08_56_05_10681.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/07/image_18082025_21_07_45_10637.jpg', '/home/nano/Desktop/images/18082025/21/07/image_18082025_21_07_34_9626.jpg', '/home/nano/Desktop/images/18082025/21/07/image_18082025_21_07_24_9629.jpg', '/home/nano/Desktop/images/18082025/21/07/image_18082025_21_07_15_10676.jpg', '/home/nano/Desktop/images/18082025/21/05/image_18082025_21_06_04_9624.jpg', '/home/nano/Desktop/images/18082025/08/55/image_18082025_08_56_05_10681.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/07/image_18082025_21_07_45_10637.jpg
/home/nano/Desktop/images/18082025/21/07/image_18082025_21_07_34_9626.jpg
/home/nano/Desktop/images/18082025/21/07/image_18082025_21_07_24_9629.jpg
/home/nano/Desktop/images/18082025/21/07/image_18082025_21_07_15_10676.jpg
/home/nano/Desktop/images/18082025/21/05/image_18082025_21_06_04_9624.jpg
/home/nano/Desktop/images/18082025/08/55/image_18082025_08_56_05_10681.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377717340","1377717343","1377717345","1377717339","1377717347","1377717341"],"photo_ids_order":["1377717339","1377717340","1377717341","1377717343","1377717345","1377717347"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/93b52d6bd4036651286dfefab150aa77.jpg","text":"TemporaryFile(/tmp/multipartBody1720208617739370661asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544113407,"filename":"image_18082025_21_07_34_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7e16054fa8522eff4acdc27bd2df5718.jpg","text":"TemporaryFile(/tmp/multipartBody116455096557271967asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544113407,"filename":"image_18082025_21_07_15_10676.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d6d3074c48a51195d5d970dce317852b.jpg","text":"TemporaryFile(/tmp/multipartBody2407808351919705301asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544113407,"filename":"image_18082025_21_06_04_9624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f8489e3f8139bf9e0cb230e751bd0514.jpg","text":"TemporaryFile(/tmp/multipartBody4474788223443304436asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544113407,"filename":"image_18082025_21_07_45_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/466ac6112c972c85c9f2f358ad39b51a.jpg","text":"TemporaryFile(/tmp/multipartBody247817863237696961asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544113407,"filename":"image_18082025_08_56_05_10681.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6fa2b6dfad0f7588b5867cbcf9f58dcc.jpg","text":"TemporaryFile(/tmp/multipartBody5103534349154010133asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544113407,"filename":"image_18082025_21_07_24_9629.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377717341","file1":"1377717340","file0":"1377717339","file4":"1377717345","file5":"1377717347","file3":"1377717343"},"map_files_photo_id_array":[{"photo_id":"1377717347","filename":"file5"},{"photo_id":"1377717341","filename":"file2"},{"photo_id":"1377717345","filename":"file4"},{"photo_id":"1377717340","filename":"file1"},{"photo_id":"1377717339","filename":"file0"},{"photo_id":"1377717343","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377717340":["hashtag1","hashtag2"]},{"1377717343":["hashtag1","hashtag2"]},{"1377717345":["hashtag1","hashtag2"]},{"1377717339":["hashtag1","hashtag2"]},{"1377717347":["hashtag1","hashtag2"]},{"1377717341":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377717340, 1377717343, 1377717345, 1377717339, 1377717347, 1377717341)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.020989656448364 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:08:16.989959
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/08/image_18082025_21_08_45_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/21/08/image_18082025_21_08_35_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/21/08/image_18082025_21_08_24_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/21/07/image_18082025_21_07_54_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/08/55/image_18082025_08_55_54_9680.jpg', 2), ('/home/nano/Desktop/images/18082025/08/55/image_18082025_08_55_45_9652.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/08/image_18082025_21_08_45_9629.jpg', '/home/nano/Desktop/images/18082025/21/08/image_18082025_21_08_35_10639.jpg', '/home/nano/Desktop/images/18082025/21/08/image_18082025_21_08_24_9628.jpg', '/home/nano/Desktop/images/18082025/21/07/image_18082025_21_07_54_9630.jpg', '/home/nano/Desktop/images/18082025/08/55/image_18082025_08_55_54_9680.jpg', '/home/nano/Desktop/images/18082025/08/55/image_18082025_08_55_45_9652.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/08/image_18082025_21_08_45_9629.jpg
/home/nano/Desktop/images/18082025/21/08/image_18082025_21_08_35_10639.jpg
/home/nano/Desktop/images/18082025/21/08/image_18082025_21_08_24_9628.jpg
/home/nano/Desktop/images/18082025/21/07/image_18082025_21_07_54_9630.jpg
/home/nano/Desktop/images/18082025/08/55/image_18082025_08_55_54_9680.jpg
/home/nano/Desktop/images/18082025/08/55/image_18082025_08_55_45_9652.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377717367","1377717361","1377717364","1377717358","1377717354","1377717356"],"photo_ids_order":["1377717354","1377717356","1377717358","1377717361","1377717364","1377717367"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bf458b86377e899ee15b208438843e4c.jpg","text":"TemporaryFile(/tmp/multipartBody4232247751535197748asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544158493,"filename":"image_18082025_08_55_45_9652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/faddd0d7f7ada653802dcdc44d21f309.jpg","text":"TemporaryFile(/tmp/multipartBody3483786707763433177asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544158493,"filename":"image_18082025_21_07_54_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fe51abf6ce85d82fdabd3061ace7bb70.jpg","text":"TemporaryFile(/tmp/multipartBody5543151575399518392asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544158493,"filename":"image_18082025_08_55_54_9680.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e8e83ab7c664f6e40a91ad23f24d340c.jpg","text":"TemporaryFile(/tmp/multipartBody7806020166573345281asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544158493,"filename":"image_18082025_21_08_24_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/075b9c96a89b80d86519edcd67e8d6f2.jpg","text":"TemporaryFile(/tmp/multipartBody8893126243995958005asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544158493,"filename":"image_18082025_21_08_45_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/43b76cf788fe409beb27c6545e9be8c1.jpg","text":"TemporaryFile(/tmp/multipartBody15776421999365744asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544158493,"filename":"image_18082025_21_08_35_10639.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377717358","file1":"1377717356","file0":"1377717354","file4":"1377717364","file5":"1377717367","file3":"1377717361"},"map_files_photo_id_array":[{"photo_id":"1377717367","filename":"file5"},{"photo_id":"1377717358","filename":"file2"},{"photo_id":"1377717364","filename":"file4"},{"photo_id":"1377717356","filename":"file1"},{"photo_id":"1377717354","filename":"file0"},{"photo_id":"1377717361","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377717367":["hashtag1","hashtag2"]},{"1377717361":["hashtag1","hashtag2"]},{"1377717364":["hashtag1","hashtag2"]},{"1377717358":["hashtag1","hashtag2"]},{"1377717354":["hashtag1","hashtag2"]},{"1377717356":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377717367, 1377717361, 1377717364, 1377717358, 1377717354, 1377717356)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.30576705932617 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:09:03.172941
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/55/image_18082025_08_55_35_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/08/55/image_18082025_08_55_24_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/08/55/image_18082025_08_55_15_9675.jpg', 2), ('/home/nano/Desktop/images/18082025/08/54/image_18082025_08_55_05_10634.jpg', 2), ('/home/nano/Desktop/images/18082025/08/54/image_18082025_08_54_54_9607.jpg', 2), ('/home/nano/Desktop/images/18082025/08/54/image_18082025_08_54_45_10625.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/08/55/image_18082025_08_55_35_10627.jpg', '/home/nano/Desktop/images/18082025/08/55/image_18082025_08_55_24_9615.jpg', '/home/nano/Desktop/images/18082025/08/55/image_18082025_08_55_15_9675.jpg', '/home/nano/Desktop/images/18082025/08/54/image_18082025_08_55_05_10634.jpg', '/home/nano/Desktop/images/18082025/08/54/image_18082025_08_54_54_9607.jpg', '/home/nano/Desktop/images/18082025/08/54/image_18082025_08_54_45_10625.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/08/55/image_18082025_08_55_35_10627.jpg
/home/nano/Desktop/images/18082025/08/55/image_18082025_08_55_24_9615.jpg
/home/nano/Desktop/images/18082025/08/55/image_18082025_08_55_15_9675.jpg
/home/nano/Desktop/images/18082025/08/54/image_18082025_08_55_05_10634.jpg
/home/nano/Desktop/images/18082025/08/54/image_18082025_08_54_54_9607.jpg
/home/nano/Desktop/images/18082025/08/54/image_18082025_08_54_45_10625.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377717382","1377717376","1377717378","1377717372","1377717380","1377717374"],"photo_ids_order":["1377717372","1377717374","1377717376","1377717378","1377717380","1377717382"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9c697ddd75666f99b73bcd0e97966b6b.jpg","text":"TemporaryFile(/tmp/multipartBody2594896964346857760asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544204849,"filename":"image_18082025_08_54_45_10625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5528651d9258f541f841bb853a5b7a95.jpg","text":"TemporaryFile(/tmp/multipartBody8130298911173539079asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544204849,"filename":"image_18082025_08_55_15_9675.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/811bc898011231b1b837d6467a59abf7.jpg","text":"TemporaryFile(/tmp/multipartBody5483979279450659184asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544204849,"filename":"image_18082025_08_55_05_10634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8eee3e4e490149073dd9f04d927c75bc.jpg","text":"TemporaryFile(/tmp/multipartBody3347240685587403898asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544204849,"filename":"image_18082025_08_55_35_10627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d6b891b5837af947a577895a616fce07.jpg","text":"TemporaryFile(/tmp/multipartBody8643632671097168306asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544204849,"filename":"image_18082025_08_54_54_9607.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/628c1f6c94af08d0c06e682e484cc995.jpg","text":"TemporaryFile(/tmp/multipartBody2326165148526822290asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544204849,"filename":"image_18082025_08_55_24_9615.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377717376","file1":"1377717374","file0":"1377717372","file4":"1377717380","file5":"1377717382","file3":"1377717378"},"map_files_photo_id_array":[{"photo_id":"1377717382","filename":"file5"},{"photo_id":"1377717376","filename":"file2"},{"photo_id":"1377717380","filename":"file4"},{"photo_id":"1377717374","filename":"file1"},{"photo_id":"1377717372","filename":"file0"},{"photo_id":"1377717378","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377717382":["hashtag1","hashtag2"]},{"1377717376":["hashtag1","hashtag2"]},{"1377717378":["hashtag1","hashtag2"]},{"1377717372":["hashtag1","hashtag2"]},{"1377717380":["hashtag1","hashtag2"]},{"1377717374":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377717382, 1377717376, 1377717378, 1377717372, 1377717380, 1377717374)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.545130729675293 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:09:47.219696
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/09/image_18082025_21_09_35_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/21/09/image_18082025_21_09_24_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/21/09/image_18082025_21_09_15_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/21/08/image_18082025_21_09_05_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/21/08/image_18082025_21_08_54_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/08/54/image_18082025_08_54_34_9619.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/09/image_18082025_21_09_35_10637.jpg', '/home/nano/Desktop/images/18082025/21/09/image_18082025_21_09_24_9633.jpg', '/home/nano/Desktop/images/18082025/21/09/image_18082025_21_09_15_9644.jpg', '/home/nano/Desktop/images/18082025/21/08/image_18082025_21_09_05_10652.jpg', '/home/nano/Desktop/images/18082025/21/08/image_18082025_21_08_54_9629.jpg', '/home/nano/Desktop/images/18082025/08/54/image_18082025_08_54_34_9619.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/09/image_18082025_21_09_35_10637.jpg
/home/nano/Desktop/images/18082025/21/09/image_18082025_21_09_24_9633.jpg
/home/nano/Desktop/images/18082025/21/09/image_18082025_21_09_15_9644.jpg
/home/nano/Desktop/images/18082025/21/08/image_18082025_21_09_05_10652.jpg
/home/nano/Desktop/images/18082025/21/08/image_18082025_21_08_54_9629.jpg
/home/nano/Desktop/images/18082025/08/54/image_18082025_08_54_34_9619.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377717397","1377717403","1377717412","1377717400","1377717408","1377717405"],"photo_ids_order":["1377717397","1377717400","1377717403","1377717405","1377717408","1377717412"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ce0b1b687796e8a4cf93e48a7dcc7317.jpg","text":"TemporaryFile(/tmp/multipartBody6118925613181303296asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544248966,"filename":"image_18082025_21_09_35_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/454e927f6c19b194e58ff100dd4c2374.jpg","text":"TemporaryFile(/tmp/multipartBody796675407899544149asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544248966,"filename":"image_18082025_21_09_15_9644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1a7e3741f8bd5335627d3c4fdc3f5eab.jpg","text":"TemporaryFile(/tmp/multipartBody4188877062992038437asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544248966,"filename":"image_18082025_08_54_34_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ef49bf7d2a64e7743dfca4141f401b1e.jpg","text":"TemporaryFile(/tmp/multipartBody189291860558876122asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544248966,"filename":"image_18082025_21_09_24_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4304cdaf5ea15e65c265385aaea14db6.jpg","text":"TemporaryFile(/tmp/multipartBody3294052736441710811asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544248966,"filename":"image_18082025_21_08_54_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9bf65246c78cd07a270446c589910f8e.jpg","text":"TemporaryFile(/tmp/multipartBody303619000473591712asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544248966,"filename":"image_18082025_21_09_05_10652.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377717403","file1":"1377717400","file0":"1377717397","file4":"1377717408","file5":"1377717412","file3":"1377717405"},"map_files_photo_id_array":[{"photo_id":"1377717412","filename":"file5"},{"photo_id":"1377717403","filename":"file2"},{"photo_id":"1377717408","filename":"file4"},{"photo_id":"1377717400","filename":"file1"},{"photo_id":"1377717397","filename":"file0"},{"photo_id":"1377717405","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377717397":["hashtag1","hashtag2"]},{"1377717403":["hashtag1","hashtag2"]},{"1377717412":["hashtag1","hashtag2"]},{"1377717400":["hashtag1","hashtag2"]},{"1377717408":["hashtag1","hashtag2"]},{"1377717405":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377717397, 1377717403, 1377717412, 1377717400, 1377717408, 1377717405)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.89236855506897 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:10:32.341225
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/10/image_18082025_21_10_44_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/21/10/image_18082025_21_10_25_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/21/10/image_18082025_21_10_14_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/21/09/image_18082025_21_10_05_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/21/09/image_18082025_21_09_55_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/08/54/image_18082025_08_54_25_9616.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/10/image_18082025_21_10_44_9630.jpg', '/home/nano/Desktop/images/18082025/21/10/image_18082025_21_10_25_10650.jpg', '/home/nano/Desktop/images/18082025/21/10/image_18082025_21_10_14_9652.jpg', '/home/nano/Desktop/images/18082025/21/09/image_18082025_21_10_05_9639.jpg', '/home/nano/Desktop/images/18082025/21/09/image_18082025_21_09_55_10658.jpg', '/home/nano/Desktop/images/18082025/08/54/image_18082025_08_54_25_9616.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/10/image_18082025_21_10_44_9630.jpg
/home/nano/Desktop/images/18082025/21/10/image_18082025_21_10_25_10650.jpg
/home/nano/Desktop/images/18082025/21/10/image_18082025_21_10_14_9652.jpg
/home/nano/Desktop/images/18082025/21/09/image_18082025_21_10_05_9639.jpg
/home/nano/Desktop/images/18082025/21/09/image_18082025_21_09_55_10658.jpg
/home/nano/Desktop/images/18082025/08/54/image_18082025_08_54_25_9616.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377717422","1377717416","1377717424","1377717418","1377717420","1377717423"],"photo_ids_order":["1377717416","1377717418","1377717420","1377717422","1377717423","1377717424"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0374d425e09a6636edc83615d32ef0de.jpg","text":"TemporaryFile(/tmp/multipartBody7427677226650692849asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544293908,"filename":"image_18082025_21_10_05_9639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e93a30cc3cdd4a046b067ec1ef49a044.jpg","text":"TemporaryFile(/tmp/multipartBody7673488439097648164asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544293908,"filename":"image_18082025_21_10_44_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7e39dd562e76fe45d0153d4d219243ca.jpg","text":"TemporaryFile(/tmp/multipartBody1229565010628179063asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544293908,"filename":"image_18082025_08_54_25_9616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bebda15f352bac6efdd45d8282db9951.jpg","text":"TemporaryFile(/tmp/multipartBody3281580859648940064asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544293908,"filename":"image_18082025_21_10_25_10650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b61ecadd0afea46efdb91fa6279d0bb7.jpg","text":"TemporaryFile(/tmp/multipartBody8657873999205890116asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544293908,"filename":"image_18082025_21_10_14_9652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/76dab7187babd7b9d81f6ecdb36b79c0.jpg","text":"TemporaryFile(/tmp/multipartBody1576504695699297353asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544293908,"filename":"image_18082025_21_09_55_10658.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377717420","file1":"1377717418","file0":"1377717416","file4":"1377717423","file5":"1377717424","file3":"1377717422"},"map_files_photo_id_array":[{"photo_id":"1377717424","filename":"file5"},{"photo_id":"1377717420","filename":"file2"},{"photo_id":"1377717423","filename":"file4"},{"photo_id":"1377717418","filename":"file1"},{"photo_id":"1377717416","filename":"file0"},{"photo_id":"1377717422","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377717422":["hashtag1","hashtag2"]},{"1377717416":["hashtag1","hashtag2"]},{"1377717424":["hashtag1","hashtag2"]},{"1377717418":["hashtag1","hashtag2"]},{"1377717420":["hashtag1","hashtag2"]},{"1377717423":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377717422, 1377717416, 1377717424, 1377717418, 1377717420, 1377717423)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.39193630218506 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:11:17.419806
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/11/image_18082025_21_11_44_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/21/11/image_18082025_21_11_25_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/21/11/image_18082025_21_11_14_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/21/10/image_18082025_21_11_05_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/21/10/image_18082025_21_10_55_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/08/54/image_18082025_08_54_15_10652.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/11/image_18082025_21_11_44_9630.jpg', '/home/nano/Desktop/images/18082025/21/11/image_18082025_21_11_25_10640.jpg', '/home/nano/Desktop/images/18082025/21/11/image_18082025_21_11_14_9652.jpg', '/home/nano/Desktop/images/18082025/21/10/image_18082025_21_11_05_9634.jpg', '/home/nano/Desktop/images/18082025/21/10/image_18082025_21_10_55_10658.jpg', '/home/nano/Desktop/images/18082025/08/54/image_18082025_08_54_15_10652.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/11/image_18082025_21_11_44_9630.jpg
/home/nano/Desktop/images/18082025/21/11/image_18082025_21_11_25_10640.jpg
/home/nano/Desktop/images/18082025/21/11/image_18082025_21_11_14_9652.jpg
/home/nano/Desktop/images/18082025/21/10/image_18082025_21_11_05_9634.jpg
/home/nano/Desktop/images/18082025/21/10/image_18082025_21_10_55_10658.jpg
/home/nano/Desktop/images/18082025/08/54/image_18082025_08_54_15_10652.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377717436","1377717439","1377717433","1377717435","1377717438","1377717440"],"photo_ids_order":["1377717433","1377717435","1377717436","1377717438","1377717439","1377717440"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/abf1539c4c80bc869b799a7298be5b48.jpg","text":"TemporaryFile(/tmp/multipartBody3319580835641072122asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544338615,"filename":"image_18082025_21_11_14_9652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3b7d49554018ed58c97c8340b3ca9a5b.jpg","text":"TemporaryFile(/tmp/multipartBody919933144292130494asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544338615,"filename":"image_18082025_21_10_55_10658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/54f7d1c48a62155e8885b3327460e113.jpg","text":"TemporaryFile(/tmp/multipartBody8759226211167742286asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544338615,"filename":"image_18082025_21_11_44_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c0e502544059e8fc0b6ab9e398ab0f19.jpg","text":"TemporaryFile(/tmp/multipartBody8664883711473090220asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544338615,"filename":"image_18082025_21_11_25_10640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/97d96edf6d44c0c2ae3eb0769ed6e93b.jpg","text":"TemporaryFile(/tmp/multipartBody181338251266954238asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544338615,"filename":"image_18082025_21_11_05_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9188c9de17bd1fb7e3722bb42de7f18e.jpg","text":"TemporaryFile(/tmp/multipartBody1726602764925439867asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544338615,"filename":"image_18082025_08_54_15_10652.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377717436","file1":"1377717435","file0":"1377717433","file4":"1377717439","file5":"1377717440","file3":"1377717438"},"map_files_photo_id_array":[{"photo_id":"1377717440","filename":"file5"},{"photo_id":"1377717436","filename":"file2"},{"photo_id":"1377717439","filename":"file4"},{"photo_id":"1377717435","filename":"file1"},{"photo_id":"1377717433","filename":"file0"},{"photo_id":"1377717438","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377717436":["hashtag1","hashtag2"]},{"1377717439":["hashtag1","hashtag2"]},{"1377717433":["hashtag1","hashtag2"]},{"1377717435":["hashtag1","hashtag2"]},{"1377717438":["hashtag1","hashtag2"]},{"1377717440":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377717436, 1377717439, 1377717433, 1377717435, 1377717438, 1377717440)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.753324270248413 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:12:03.118936
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/53/image_18082025_08_54_04_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/08/53/image_18082025_08_53_55_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/08/53/image_18082025_08_53_45_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/08/53/image_18082025_08_53_34_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/53/image_18082025_08_53_25_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/08/53/image_18082025_08_53_14_9644.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/08/53/image_18082025_08_54_04_9622.jpg', '/home/nano/Desktop/images/18082025/08/53/image_18082025_08_53_55_9618.jpg', '/home/nano/Desktop/images/18082025/08/53/image_18082025_08_53_45_10638.jpg', '/home/nano/Desktop/images/18082025/08/53/image_18082025_08_53_34_9626.jpg', '/home/nano/Desktop/images/18082025/08/53/image_18082025_08_53_25_10628.jpg', '/home/nano/Desktop/images/18082025/08/53/image_18082025_08_53_14_9644.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/08/53/image_18082025_08_54_04_9622.jpg
/home/nano/Desktop/images/18082025/08/53/image_18082025_08_53_55_9618.jpg
/home/nano/Desktop/images/18082025/08/53/image_18082025_08_53_45_10638.jpg
/home/nano/Desktop/images/18082025/08/53/image_18082025_08_53_34_9626.jpg
/home/nano/Desktop/images/18082025/08/53/image_18082025_08_53_25_10628.jpg
/home/nano/Desktop/images/18082025/08/53/image_18082025_08_53_14_9644.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377717460","1377717454","1377717463","1377717457","1377717462","1377717450"],"photo_ids_order":["1377717450","1377717454","1377717457","1377717460","1377717462","1377717463"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5d6ae7bf288973d19e1098e2b4cfcd47.jpg","text":"TemporaryFile(/tmp/multipartBody8983305187533484806asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544384530,"filename":"image_18082025_08_53_34_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5e056ab102137c18cdfe301b34f98612.jpg","text":"TemporaryFile(/tmp/multipartBody4115024568020571739asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544384530,"filename":"image_18082025_08_53_55_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d5164b1bd5a1befe7f0b3c0a689c45ab.jpg","text":"TemporaryFile(/tmp/multipartBody5283899539090265931asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544384530,"filename":"image_18082025_08_53_14_9644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1d9deeee2bcbd733ac2f43cb424123c8.jpg","text":"TemporaryFile(/tmp/multipartBody1187117999874182535asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544384530,"filename":"image_18082025_08_53_45_10638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8c125b9935079245d15202a8bb64828b.jpg","text":"TemporaryFile(/tmp/multipartBody6949709915812023209asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544384530,"filename":"image_18082025_08_53_25_10628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4469ca6884084833ec2a571f1ab9a8b5.jpg","text":"TemporaryFile(/tmp/multipartBody3902379921992602471asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544384530,"filename":"image_18082025_08_54_04_9622.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377717457","file1":"1377717454","file0":"1377717450","file4":"1377717462","file5":"1377717463","file3":"1377717460"},"map_files_photo_id_array":[{"photo_id":"1377717463","filename":"file5"},{"photo_id":"1377717457","filename":"file2"},{"photo_id":"1377717462","filename":"file4"},{"photo_id":"1377717454","filename":"file1"},{"photo_id":"1377717450","filename":"file0"},{"photo_id":"1377717460","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377717460":["hashtag1","hashtag2"]},{"1377717454":["hashtag1","hashtag2"]},{"1377717463":["hashtag1","hashtag2"]},{"1377717457":["hashtag1","hashtag2"]},{"1377717462":["hashtag1","hashtag2"]},{"1377717450":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377717460, 1377717454, 1377717463, 1377717457, 1377717462, 1377717450)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.439902544021606 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:12:47.509532
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/12/image_18082025_21_12_45_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/21/12/image_18082025_21_12_34_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/21/12/image_18082025_21_12_25_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/21/12/image_18082025_21_12_14_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/21/11/image_18082025_21_12_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/21/11/image_18082025_21_11_55_10639.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/12/image_18082025_21_12_45_10638.jpg', '/home/nano/Desktop/images/18082025/21/12/image_18082025_21_12_34_9632.jpg', '/home/nano/Desktop/images/18082025/21/12/image_18082025_21_12_25_10639.jpg', '/home/nano/Desktop/images/18082025/21/12/image_18082025_21_12_14_9653.jpg', '/home/nano/Desktop/images/18082025/21/11/image_18082025_21_12_04_9655.jpg', '/home/nano/Desktop/images/18082025/21/11/image_18082025_21_11_55_10639.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/12/image_18082025_21_12_45_10638.jpg
/home/nano/Desktop/images/18082025/21/12/image_18082025_21_12_34_9632.jpg
/home/nano/Desktop/images/18082025/21/12/image_18082025_21_12_25_10639.jpg
/home/nano/Desktop/images/18082025/21/12/image_18082025_21_12_14_9653.jpg
/home/nano/Desktop/images/18082025/21/11/image_18082025_21_12_04_9655.jpg
/home/nano/Desktop/images/18082025/21/11/image_18082025_21_11_55_10639.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377717472","1377717483","1377717477","1377717474","1377717476","1377717479"],"photo_ids_order":["1377717472","1377717474","1377717476","1377717477","1377717479","1377717483"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/60d4c2e957e31e09ef34e275bd977180.jpg","text":"TemporaryFile(/tmp/multipartBody7203021714824559881asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544428944,"filename":"image_18082025_21_12_45_10638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/93d8bc09deef3790ec011b7619039beb.jpg","text":"TemporaryFile(/tmp/multipartBody1160555054475001366asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544428944,"filename":"image_18082025_21_11_55_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8c0aa0fbaa070fe2335386c61bb77b79.jpg","text":"TemporaryFile(/tmp/multipartBody2283438054487315531asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544428944,"filename":"image_18082025_21_12_14_9653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b1ad020c49bd3801f215c828fd0e3676.jpg","text":"TemporaryFile(/tmp/multipartBody5410959484001602647asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544428944,"filename":"image_18082025_21_12_34_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bb2e99718fb0f0827c28f10fad04c467.jpg","text":"TemporaryFile(/tmp/multipartBody5505465015710116963asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544428944,"filename":"image_18082025_21_12_25_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0d156a1290854a4b814136351e33cd32.jpg","text":"TemporaryFile(/tmp/multipartBody3881567351696669294asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544428944,"filename":"image_18082025_21_12_04_9655.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377717476","file1":"1377717474","file0":"1377717472","file4":"1377717479","file5":"1377717483","file3":"1377717477"},"map_files_photo_id_array":[{"photo_id":"1377717483","filename":"file5"},{"photo_id":"1377717476","filename":"file2"},{"photo_id":"1377717479","filename":"file4"},{"photo_id":"1377717474","filename":"file1"},{"photo_id":"1377717472","filename":"file0"},{"photo_id":"1377717477","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377717472":["hashtag1","hashtag2"]},{"1377717483":["hashtag1","hashtag2"]},{"1377717477":["hashtag1","hashtag2"]},{"1377717474":["hashtag1","hashtag2"]},{"1377717476":["hashtag1","hashtag2"]},{"1377717479":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377717472, 1377717483, 1377717477, 1377717474, 1377717476, 1377717479)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.06613636016846 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:13:32.619983
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/13/image_18082025_21_13_34_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/21/13/image_18082025_21_13_25_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/21/13/image_18082025_21_13_15_10676.jpg', 2), ('/home/nano/Desktop/images/18082025/21/12/image_18082025_21_13_04_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/21/12/image_18082025_21_12_55_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/08/52/image_18082025_08_53_05_9624.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/13/image_18082025_21_13_34_9631.jpg', '/home/nano/Desktop/images/18082025/21/13/image_18082025_21_13_25_9628.jpg', '/home/nano/Desktop/images/18082025/21/13/image_18082025_21_13_15_10676.jpg', '/home/nano/Desktop/images/18082025/21/12/image_18082025_21_13_04_9663.jpg', '/home/nano/Desktop/images/18082025/21/12/image_18082025_21_12_55_9628.jpg', '/home/nano/Desktop/images/18082025/08/52/image_18082025_08_53_05_9624.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/13/image_18082025_21_13_34_9631.jpg
/home/nano/Desktop/images/18082025/21/13/image_18082025_21_13_25_9628.jpg
/home/nano/Desktop/images/18082025/21/13/image_18082025_21_13_15_10676.jpg
/home/nano/Desktop/images/18082025/21/12/image_18082025_21_13_04_9663.jpg
/home/nano/Desktop/images/18082025/21/12/image_18082025_21_12_55_9628.jpg
/home/nano/Desktop/images/18082025/08/52/image_18082025_08_53_05_9624.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.7071688175201416 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:13:47.626968
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/13/image_18082025_21_13_34_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/21/13/image_18082025_21_13_25_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/21/13/image_18082025_21_13_15_10676.jpg', 2), ('/home/nano/Desktop/images/18082025/21/12/image_18082025_21_13_04_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/21/12/image_18082025_21_12_55_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/08/52/image_18082025_08_53_05_9624.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/13/image_18082025_21_13_34_9631.jpg', '/home/nano/Desktop/images/18082025/21/13/image_18082025_21_13_25_9628.jpg', '/home/nano/Desktop/images/18082025/21/13/image_18082025_21_13_15_10676.jpg', '/home/nano/Desktop/images/18082025/21/12/image_18082025_21_13_04_9663.jpg', '/home/nano/Desktop/images/18082025/21/12/image_18082025_21_12_55_9628.jpg', '/home/nano/Desktop/images/18082025/08/52/image_18082025_08_53_05_9624.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/13/image_18082025_21_13_34_9631.jpg
/home/nano/Desktop/images/18082025/21/13/image_18082025_21_13_25_9628.jpg
/home/nano/Desktop/images/18082025/21/13/image_18082025_21_13_15_10676.jpg
/home/nano/Desktop/images/18082025/21/12/image_18082025_21_13_04_9663.jpg
/home/nano/Desktop/images/18082025/21/12/image_18082025_21_12_55_9628.jpg
/home/nano/Desktop/images/18082025/08/52/image_18082025_08_53_05_9624.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377717511","1377717514","1377717508","1377717507","1377717504","1377717506"],"photo_ids_order":["1377717504","1377717506","1377717507","1377717508","1377717511","1377717514"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/22abae0c3c29c78855cd37d7303efdcc.jpg","text":"TemporaryFile(/tmp/multipartBody8857180129712296004asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544489308,"filename":"image_18082025_21_12_55_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a53bad45d93cc2144a9505ca34d17671.jpg","text":"TemporaryFile(/tmp/multipartBody8927530905008509760asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544489308,"filename":"image_18082025_08_53_05_9624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bc80054dad8ee5e0c4bebe3f0129f900.jpg","text":"TemporaryFile(/tmp/multipartBody8127638033691463625asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544489308,"filename":"image_18082025_21_13_04_9663.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a8c4d9c5f42fa6040bc373bb163b6d32.jpg","text":"TemporaryFile(/tmp/multipartBody7111820086698415485asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544489308,"filename":"image_18082025_21_13_15_10676.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6c8e56d0a2a8446d6ca0a901d6a82255.jpg","text":"TemporaryFile(/tmp/multipartBody2442828515424898561asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544489308,"filename":"image_18082025_21_13_34_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9c29d6f29f3318bf9b4db441256e44d0.jpg","text":"TemporaryFile(/tmp/multipartBody529367113844347405asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544489308,"filename":"image_18082025_21_13_25_9628.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377717507","file1":"1377717506","file0":"1377717504","file4":"1377717511","file5":"1377717514","file3":"1377717508"},"map_files_photo_id_array":[{"photo_id":"1377717514","filename":"file5"},{"photo_id":"1377717507","filename":"file2"},{"photo_id":"1377717511","filename":"file4"},{"photo_id":"1377717506","filename":"file1"},{"photo_id":"1377717504","filename":"file0"},{"photo_id":"1377717508","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377717511":["hashtag1","hashtag2"]},{"1377717514":["hashtag1","hashtag2"]},{"1377717508":["hashtag1","hashtag2"]},{"1377717507":["hashtag1","hashtag2"]},{"1377717504":["hashtag1","hashtag2"]},{"1377717506":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377717511, 1377717514, 1377717508, 1377717507, 1377717504, 1377717506)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.255160808563232 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:14:32.714711
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/14/image_18082025_21_14_45_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/21/14/image_18082025_21_14_35_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/21/13/image_18082025_21_14_04_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/21/13/image_18082025_21_13_45_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/08/52/image_18082025_08_52_55_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/08/52/image_18082025_08_52_44_9622.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/14/image_18082025_21_14_45_9645.jpg', '/home/nano/Desktop/images/18082025/21/14/image_18082025_21_14_35_10641.jpg', '/home/nano/Desktop/images/18082025/21/13/image_18082025_21_14_04_9644.jpg', '/home/nano/Desktop/images/18082025/21/13/image_18082025_21_13_45_10639.jpg', '/home/nano/Desktop/images/18082025/08/52/image_18082025_08_52_55_10646.jpg', '/home/nano/Desktop/images/18082025/08/52/image_18082025_08_52_44_9622.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/14/image_18082025_21_14_45_9645.jpg
/home/nano/Desktop/images/18082025/21/14/image_18082025_21_14_35_10641.jpg
/home/nano/Desktop/images/18082025/21/13/image_18082025_21_14_04_9644.jpg
/home/nano/Desktop/images/18082025/21/13/image_18082025_21_13_45_10639.jpg
/home/nano/Desktop/images/18082025/08/52/image_18082025_08_52_55_10646.jpg
/home/nano/Desktop/images/18082025/08/52/image_18082025_08_52_44_9622.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377717529","1377717526","1377717531","1377717528","1377717533","1377717527"],"photo_ids_order":["1377717526","1377717527","1377717528","1377717529","1377717531","1377717533"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/58f14c3bae16b8c669a6d18692a296f1.jpg","text":"TemporaryFile(/tmp/multipartBody4211872528858161844asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544534255,"filename":"image_18082025_21_13_45_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8002ddc3b58ab01af2d76f98c14283eb.jpg","text":"TemporaryFile(/tmp/multipartBody445652884120734085asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544534255,"filename":"image_18082025_21_14_45_9645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/88aec9ceddb3dad8e9b15f282305877e.jpg","text":"TemporaryFile(/tmp/multipartBody2903824448978401251asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544534255,"filename":"image_18082025_08_52_55_10646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0b29639e7f8ccad204a5a9533c8faf5e.jpg","text":"TemporaryFile(/tmp/multipartBody100217715014320867asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544534255,"filename":"image_18082025_21_14_04_9644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ea9d05fe4785e20e35ad126ef6429622.jpg","text":"TemporaryFile(/tmp/multipartBody3428251656110510100asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544534255,"filename":"image_18082025_08_52_44_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3b3d16f6bd80a49930616ff3a259c644.jpg","text":"TemporaryFile(/tmp/multipartBody5257879860438262239asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544534255,"filename":"image_18082025_21_14_35_10641.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377717528","file1":"1377717527","file0":"1377717526","file4":"1377717531","file5":"1377717533","file3":"1377717529"},"map_files_photo_id_array":[{"photo_id":"1377717533","filename":"file5"},{"photo_id":"1377717528","filename":"file2"},{"photo_id":"1377717531","filename":"file4"},{"photo_id":"1377717527","filename":"file1"},{"photo_id":"1377717526","filename":"file0"},{"photo_id":"1377717529","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377717529":["hashtag1","hashtag2"]},{"1377717526":["hashtag1","hashtag2"]},{"1377717531":["hashtag1","hashtag2"]},{"1377717528":["hashtag1","hashtag2"]},{"1377717533":["hashtag1","hashtag2"]},{"1377717527":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377717529, 1377717526, 1377717531, 1377717528, 1377717533, 1377717527)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.72554111480713 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:15:16.949988
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/15/image_18082025_21_15_45_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/21/15/image_18082025_21_15_15_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/21/14/image_18082025_21_15_05_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/21/14/image_18082025_21_14_54_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/52/image_18082025_08_52_35_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/08/52/image_18082025_08_52_25_10628.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/15/image_18082025_21_15_45_9628.jpg', '/home/nano/Desktop/images/18082025/21/15/image_18082025_21_15_15_9658.jpg', '/home/nano/Desktop/images/18082025/21/14/image_18082025_21_15_05_10654.jpg', '/home/nano/Desktop/images/18082025/21/14/image_18082025_21_14_54_9626.jpg', '/home/nano/Desktop/images/18082025/08/52/image_18082025_08_52_35_9621.jpg', '/home/nano/Desktop/images/18082025/08/52/image_18082025_08_52_25_10628.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/15/image_18082025_21_15_45_9628.jpg
/home/nano/Desktop/images/18082025/21/15/image_18082025_21_15_15_9658.jpg
/home/nano/Desktop/images/18082025/21/14/image_18082025_21_15_05_10654.jpg
/home/nano/Desktop/images/18082025/21/14/image_18082025_21_14_54_9626.jpg
/home/nano/Desktop/images/18082025/08/52/image_18082025_08_52_35_9621.jpg
/home/nano/Desktop/images/18082025/08/52/image_18082025_08_52_25_10628.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377717553","1377717547","1377717555","1377717549","1377717551","1377717545"],"photo_ids_order":["1377717545","1377717547","1377717549","1377717551","1377717553","1377717555"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/10d6a3bbbb9fe56d65e0b5f4b6c398df.jpg","text":"TemporaryFile(/tmp/multipartBody4547943761538520067asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544578206,"filename":"image_18082025_08_52_35_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/05f95f4aff2617aaea8700a79d6dd90f.jpg","text":"TemporaryFile(/tmp/multipartBody6339724118061496307asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544578206,"filename":"image_18082025_21_15_15_9658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/020d59919650b84af5cf2f55b98bfa05.jpg","text":"TemporaryFile(/tmp/multipartBody1277821009802445754asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544578206,"filename":"image_18082025_08_52_25_10628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f3b08ebdb364131bd693e4be02b21fc0.jpg","text":"TemporaryFile(/tmp/multipartBody943843016142665468asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544578206,"filename":"image_18082025_21_15_05_10654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f3d7e914cfbde6343d2c2ef5f3a0d0f0.jpg","text":"TemporaryFile(/tmp/multipartBody4982511426591903asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544578206,"filename":"image_18082025_21_14_54_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f88a39b8d43d4377e140b39b150ed2f0.jpg","text":"TemporaryFile(/tmp/multipartBody2069774874063794516asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544578206,"filename":"image_18082025_21_15_45_9628.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377717549","file1":"1377717547","file0":"1377717545","file4":"1377717553","file5":"1377717555","file3":"1377717551"},"map_files_photo_id_array":[{"photo_id":"1377717555","filename":"file5"},{"photo_id":"1377717549","filename":"file2"},{"photo_id":"1377717553","filename":"file4"},{"photo_id":"1377717547","filename":"file1"},{"photo_id":"1377717545","filename":"file0"},{"photo_id":"1377717551","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377717553":["hashtag1","hashtag2"]},{"1377717547":["hashtag1","hashtag2"]},{"1377717555":["hashtag1","hashtag2"]},{"1377717549":["hashtag1","hashtag2"]},{"1377717551":["hashtag1","hashtag2"]},{"1377717545":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377717553, 1377717547, 1377717555, 1377717549, 1377717551, 1377717545)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.47686743736267 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:16:02.512244
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/52/image_18082025_08_52_14_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/08/51/image_18082025_08_52_05_10621.jpg', 2), ('/home/nano/Desktop/images/18082025/08/51/image_18082025_08_51_54_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/08/51/image_18082025_08_51_44_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/08/51/image_18082025_08_51_35_10618.jpg', 2), ('/home/nano/Desktop/images/18082025/08/51/image_18082025_08_51_24_9621.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/08/52/image_18082025_08_52_14_9643.jpg', '/home/nano/Desktop/images/18082025/08/51/image_18082025_08_52_05_10621.jpg', '/home/nano/Desktop/images/18082025/08/51/image_18082025_08_51_54_9615.jpg', '/home/nano/Desktop/images/18082025/08/51/image_18082025_08_51_44_9609.jpg', '/home/nano/Desktop/images/18082025/08/51/image_18082025_08_51_35_10618.jpg', '/home/nano/Desktop/images/18082025/08/51/image_18082025_08_51_24_9621.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/08/52/image_18082025_08_52_14_9643.jpg
/home/nano/Desktop/images/18082025/08/51/image_18082025_08_52_05_10621.jpg
/home/nano/Desktop/images/18082025/08/51/image_18082025_08_51_54_9615.jpg
/home/nano/Desktop/images/18082025/08/51/image_18082025_08_51_44_9609.jpg
/home/nano/Desktop/images/18082025/08/51/image_18082025_08_51_35_10618.jpg
/home/nano/Desktop/images/18082025/08/51/image_18082025_08_51_24_9621.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377717568","1377717570","1377717564","1377717573","1377717572","1377717575"],"photo_ids_order":["1377717564","1377717568","1377717570","1377717572","1377717573","1377717575"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/22f5c1e4f790225aae57cdc8555c68f7.jpg","text":"TemporaryFile(/tmp/multipartBody3316891397729079936asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544623748,"filename":"image_18082025_08_52_05_10621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/af75d1d4bbd204f41ae479e7ade1e3c8.jpg","text":"TemporaryFile(/tmp/multipartBody4714134693616387288asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544623748,"filename":"image_18082025_08_51_54_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/68be1ecf7f53d8aab5298d70894ad2fa.jpg","text":"TemporaryFile(/tmp/multipartBody5824923486749924159asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544623748,"filename":"image_18082025_08_52_14_9643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/19c2297321f7d116fbe7444514121f27.jpg","text":"TemporaryFile(/tmp/multipartBody9019073212022506054asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544623748,"filename":"image_18082025_08_51_35_10618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ae84e25bd9c6d37c4c5e9534610ae1ca.jpg","text":"TemporaryFile(/tmp/multipartBody6986136010296175372asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544623748,"filename":"image_18082025_08_51_44_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c99a875692272dfbf60b73322c598f26.jpg","text":"TemporaryFile(/tmp/multipartBody3556098089690512603asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544623748,"filename":"image_18082025_08_51_24_9621.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377717570","file1":"1377717568","file0":"1377717564","file4":"1377717573","file5":"1377717575","file3":"1377717572"},"map_files_photo_id_array":[{"photo_id":"1377717575","filename":"file5"},{"photo_id":"1377717570","filename":"file2"},{"photo_id":"1377717573","filename":"file4"},{"photo_id":"1377717568","filename":"file1"},{"photo_id":"1377717564","filename":"file0"},{"photo_id":"1377717572","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377717568":["hashtag1","hashtag2"]},{"1377717570":["hashtag1","hashtag2"]},{"1377717564":["hashtag1","hashtag2"]},{"1377717573":["hashtag1","hashtag2"]},{"1377717572":["hashtag1","hashtag2"]},{"1377717575":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377717568, 1377717570, 1377717564, 1377717573, 1377717572, 1377717575)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.88595986366272 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:16:47.024502
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/16/image_18082025_21_16_44_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/21/16/image_18082025_21_16_35_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/21/16/image_18082025_21_16_14_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/21/15/image_18082025_21_16_05_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/21/15/image_18082025_21_15_54_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/08/51/image_18082025_08_51_15_9612.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/16/image_18082025_21_16_44_9630.jpg', '/home/nano/Desktop/images/18082025/21/16/image_18082025_21_16_35_10642.jpg', '/home/nano/Desktop/images/18082025/21/16/image_18082025_21_16_14_9644.jpg', '/home/nano/Desktop/images/18082025/21/15/image_18082025_21_16_05_10666.jpg', '/home/nano/Desktop/images/18082025/21/15/image_18082025_21_15_54_9627.jpg', '/home/nano/Desktop/images/18082025/08/51/image_18082025_08_51_15_9612.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/16/image_18082025_21_16_44_9630.jpg
/home/nano/Desktop/images/18082025/21/16/image_18082025_21_16_35_10642.jpg
/home/nano/Desktop/images/18082025/21/16/image_18082025_21_16_14_9644.jpg
/home/nano/Desktop/images/18082025/21/15/image_18082025_21_16_05_10666.jpg
/home/nano/Desktop/images/18082025/21/15/image_18082025_21_15_54_9627.jpg
/home/nano/Desktop/images/18082025/08/51/image_18082025_08_51_15_9612.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377717592","1377717586","1377717588","1377717590","1377717584","1377717595"],"photo_ids_order":["1377717584","1377717586","1377717588","1377717590","1377717592","1377717595"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6229d8057fc1a7a860d14a0b32a357f8.jpg","text":"TemporaryFile(/tmp/multipartBody5813581574699888740asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544668399,"filename":"image_18082025_21_15_54_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/822c997d117bac5ccc6292a2169d14d6.jpg","text":"TemporaryFile(/tmp/multipartBody6507729756551472665asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544668399,"filename":"image_18082025_21_16_35_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8b43c3c786ce28595c6b02480f26d2c1.jpg","text":"TemporaryFile(/tmp/multipartBody3015692435858915252asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544668399,"filename":"image_18082025_21_16_14_9644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2cc60f1d74e1672810d2dc4096ee6825.jpg","text":"TemporaryFile(/tmp/multipartBody8750219096456507292asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544668399,"filename":"image_18082025_21_16_05_10666.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7688ae7c7f9f8d93c228f2bd167beb27.jpg","text":"TemporaryFile(/tmp/multipartBody299131034666233522asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544668399,"filename":"image_18082025_21_16_44_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8536b1512fbfe84d2f3edd824b78ccab.jpg","text":"TemporaryFile(/tmp/multipartBody8668523840846360570asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544668399,"filename":"image_18082025_08_51_15_9612.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377717588","file1":"1377717586","file0":"1377717584","file4":"1377717592","file5":"1377717595","file3":"1377717590"},"map_files_photo_id_array":[{"photo_id":"1377717595","filename":"file5"},{"photo_id":"1377717588","filename":"file2"},{"photo_id":"1377717592","filename":"file4"},{"photo_id":"1377717586","filename":"file1"},{"photo_id":"1377717584","filename":"file0"},{"photo_id":"1377717590","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377717592":["hashtag1","hashtag2"]},{"1377717586":["hashtag1","hashtag2"]},{"1377717588":["hashtag1","hashtag2"]},{"1377717590":["hashtag1","hashtag2"]},{"1377717584":["hashtag1","hashtag2"]},{"1377717595":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377717592, 1377717586, 1377717588, 1377717590, 1377717584, 1377717595)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.98000621795654 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:17:32.135249
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/17/image_18082025_21_17_35_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/21/17/image_18082025_21_17_25_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/21/17/image_18082025_21_17_14_9675.jpg', 2), ('/home/nano/Desktop/images/18082025/21/16/image_18082025_21_17_05_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/21/16/image_18082025_21_16_55_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/08/50/image_18082025_08_51_05_10651.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/17/image_18082025_21_17_35_9627.jpg', '/home/nano/Desktop/images/18082025/21/17/image_18082025_21_17_25_10637.jpg', '/home/nano/Desktop/images/18082025/21/17/image_18082025_21_17_14_9675.jpg', '/home/nano/Desktop/images/18082025/21/16/image_18082025_21_17_05_9627.jpg', '/home/nano/Desktop/images/18082025/21/16/image_18082025_21_16_55_10637.jpg', '/home/nano/Desktop/images/18082025/08/50/image_18082025_08_51_05_10651.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/17/image_18082025_21_17_35_9627.jpg
/home/nano/Desktop/images/18082025/21/17/image_18082025_21_17_25_10637.jpg
/home/nano/Desktop/images/18082025/21/17/image_18082025_21_17_14_9675.jpg
/home/nano/Desktop/images/18082025/21/16/image_18082025_21_17_05_9627.jpg
/home/nano/Desktop/images/18082025/21/16/image_18082025_21_16_55_10637.jpg
/home/nano/Desktop/images/18082025/08/50/image_18082025_08_51_05_10651.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377717613","1377717622","1377717610","1377717624","1377717609","1377717617"],"photo_ids_order":["1377717609","1377717610","1377717613","1377717617","1377717622","1377717624"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/65103ea0161ed2bf6c4b5cc363ad7c66.jpg","text":"TemporaryFile(/tmp/multipartBody2279484543386413516asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544713699,"filename":"image_18082025_21_17_14_9675.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ecb38348e73b553e971d867e793aba48.jpg","text":"TemporaryFile(/tmp/multipartBody3257622751948703106asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544713699,"filename":"image_18082025_21_16_55_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2bb5d173ed5c71378c16f70144234c05.jpg","text":"TemporaryFile(/tmp/multipartBody9075489632147293884asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544713699,"filename":"image_18082025_21_17_25_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f4bcf4b04b62d258a19761aae3068e58.jpg","text":"TemporaryFile(/tmp/multipartBody3219294028844429973asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544713699,"filename":"image_18082025_08_51_05_10651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d2ecf85d3e9e955ca828828cb804cede.jpg","text":"TemporaryFile(/tmp/multipartBody4980947739448279108asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544713699,"filename":"image_18082025_21_17_35_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/aed6e0151ec8d36392156d1e63af5724.jpg","text":"TemporaryFile(/tmp/multipartBody3902818537251126387asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544713699,"filename":"image_18082025_21_17_05_9627.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377717613","file1":"1377717610","file0":"1377717609","file4":"1377717622","file5":"1377717624","file3":"1377717617"},"map_files_photo_id_array":[{"photo_id":"1377717624","filename":"file5"},{"photo_id":"1377717613","filename":"file2"},{"photo_id":"1377717622","filename":"file4"},{"photo_id":"1377717610","filename":"file1"},{"photo_id":"1377717609","filename":"file0"},{"photo_id":"1377717617","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377717613":["hashtag1","hashtag2"]},{"1377717622":["hashtag1","hashtag2"]},{"1377717610":["hashtag1","hashtag2"]},{"1377717624":["hashtag1","hashtag2"]},{"1377717609":["hashtag1","hashtag2"]},{"1377717617":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377717613, 1377717622, 1377717610, 1377717624, 1377717609, 1377717617)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.00236105918884 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:18:17.254309
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/18/image_18082025_21_18_45_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/21/18/image_18082025_21_18_34_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/21/17/image_18082025_21_17_55_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/08/50/image_18082025_08_50_54_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/08/50/image_18082025_08_50_45_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/08/50/image_18082025_08_50_34_9614.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/18/image_18082025_21_18_45_10640.jpg', '/home/nano/Desktop/images/18082025/21/18/image_18082025_21_18_34_9629.jpg', '/home/nano/Desktop/images/18082025/21/17/image_18082025_21_17_55_10635.jpg', '/home/nano/Desktop/images/18082025/08/50/image_18082025_08_50_54_9614.jpg', '/home/nano/Desktop/images/18082025/08/50/image_18082025_08_50_45_10630.jpg', '/home/nano/Desktop/images/18082025/08/50/image_18082025_08_50_34_9614.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/18/image_18082025_21_18_45_10640.jpg
/home/nano/Desktop/images/18082025/21/18/image_18082025_21_18_34_9629.jpg
/home/nano/Desktop/images/18082025/21/17/image_18082025_21_17_55_10635.jpg
/home/nano/Desktop/images/18082025/08/50/image_18082025_08_50_54_9614.jpg
/home/nano/Desktop/images/18082025/08/50/image_18082025_08_50_45_10630.jpg
/home/nano/Desktop/images/18082025/08/50/image_18082025_08_50_34_9614.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377717640","1377717643","1377717637","1377717645","1377717648","1377717647"],"photo_ids_order":["1377717637","1377717640","1377717643","1377717645","1377717647","1377717648"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ecd1b713460cbf050bc83810f667eed3.jpg","text":"TemporaryFile(/tmp/multipartBody3770878590518228149asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544758769,"filename":"image_18082025_21_18_34_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f88d3bbadf860a638a3d9940a5b58493.jpg","text":"TemporaryFile(/tmp/multipartBody437552973502877698asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544758769,"filename":"image_18082025_21_17_55_10635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/335d281ede6e3866bfee008d4aba895d.jpg","text":"TemporaryFile(/tmp/multipartBody3248840593038471999asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544758769,"filename":"image_18082025_21_18_45_10640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4b3b569a97ad1f74fd48950e8324e113.jpg","text":"TemporaryFile(/tmp/multipartBody1308567052986497012asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544758769,"filename":"image_18082025_08_50_54_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b46b20a90a789a9f061f777b76b182aa.jpg","text":"TemporaryFile(/tmp/multipartBody2462585687008480762asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544758769,"filename":"image_18082025_08_50_34_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/24414ac22173f05217bd22e21e3e9814.jpg","text":"TemporaryFile(/tmp/multipartBody4333054217156301006asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544758769,"filename":"image_18082025_08_50_45_10630.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377717643","file1":"1377717640","file0":"1377717637","file4":"1377717647","file5":"1377717648","file3":"1377717645"},"map_files_photo_id_array":[{"photo_id":"1377717648","filename":"file5"},{"photo_id":"1377717643","filename":"file2"},{"photo_id":"1377717647","filename":"file4"},{"photo_id":"1377717640","filename":"file1"},{"photo_id":"1377717637","filename":"file0"},{"photo_id":"1377717645","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377717640":["hashtag1","hashtag2"]},{"1377717643":["hashtag1","hashtag2"]},{"1377717637":["hashtag1","hashtag2"]},{"1377717645":["hashtag1","hashtag2"]},{"1377717648":["hashtag1","hashtag2"]},{"1377717647":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377717640, 1377717643, 1377717637, 1377717645, 1377717648, 1377717647)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.193129062652588 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:19:03.322620
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/50/image_18082025_08_50_24_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/08/50/image_18082025_08_50_15_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/08/49/image_18082025_08_50_04_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/08/49/image_18082025_08_49_55_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/08/49/image_18082025_08_49_45_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/08/49/image_18082025_08_49_34_9614.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/08/50/image_18082025_08_50_24_9623.jpg', '/home/nano/Desktop/images/18082025/08/50/image_18082025_08_50_15_10641.jpg', '/home/nano/Desktop/images/18082025/08/49/image_18082025_08_50_04_9637.jpg', '/home/nano/Desktop/images/18082025/08/49/image_18082025_08_49_55_9635.jpg', '/home/nano/Desktop/images/18082025/08/49/image_18082025_08_49_45_10631.jpg', '/home/nano/Desktop/images/18082025/08/49/image_18082025_08_49_34_9614.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/08/50/image_18082025_08_50_24_9623.jpg
/home/nano/Desktop/images/18082025/08/50/image_18082025_08_50_15_10641.jpg
/home/nano/Desktop/images/18082025/08/49/image_18082025_08_50_04_9637.jpg
/home/nano/Desktop/images/18082025/08/49/image_18082025_08_49_55_9635.jpg
/home/nano/Desktop/images/18082025/08/49/image_18082025_08_49_45_10631.jpg
/home/nano/Desktop/images/18082025/08/49/image_18082025_08_49_34_9614.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377717670","1377717664","1377717673","1377717667","1377717661","1377717656"],"photo_ids_order":["1377717656","1377717661","1377717664","1377717667","1377717670","1377717673"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8dcadf1e618d8f1eec349fa754651fb4.jpg","text":"TemporaryFile(/tmp/multipartBody8690514465080666773asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544804604,"filename":"image_18082025_08_49_45_10631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0d40df442f53cc0af2d93527382efcff.jpg","text":"TemporaryFile(/tmp/multipartBody4851101030069437948asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544804604,"filename":"image_18082025_08_50_04_9637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/692a6735c90ddba5ee6830ef8e527a4b.jpg","text":"TemporaryFile(/tmp/multipartBody5721837027158865109asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544804604,"filename":"image_18082025_08_49_34_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e00b2c5ab06aeacb5e046f08d6c6dfa6.jpg","text":"TemporaryFile(/tmp/multipartBody7956437511808582073asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544804604,"filename":"image_18082025_08_49_55_9635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8e282d8de9bb0664cba1de214ce86d61.jpg","text":"TemporaryFile(/tmp/multipartBody8315024080731622436asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544804604,"filename":"image_18082025_08_50_15_10641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ed8946365a7d118beede3f9274f7851e.jpg","text":"TemporaryFile(/tmp/multipartBody7597644645493760506asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544804604,"filename":"image_18082025_08_50_24_9623.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377717664","file1":"1377717661","file0":"1377717656","file4":"1377717670","file5":"1377717673","file3":"1377717667"},"map_files_photo_id_array":[{"photo_id":"1377717673","filename":"file5"},{"photo_id":"1377717664","filename":"file2"},{"photo_id":"1377717670","filename":"file4"},{"photo_id":"1377717661","filename":"file1"},{"photo_id":"1377717656","filename":"file0"},{"photo_id":"1377717667","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377717670":["hashtag1","hashtag2"]},{"1377717664":["hashtag1","hashtag2"]},{"1377717673":["hashtag1","hashtag2"]},{"1377717667":["hashtag1","hashtag2"]},{"1377717661":["hashtag1","hashtag2"]},{"1377717656":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377717670, 1377717664, 1377717673, 1377717667, 1377717661, 1377717656)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.39975929260254 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:19:47.379563
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/19/image_18082025_21_19_45_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/21/19/image_18082025_21_19_34_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/21/18/image_18082025_21_19_04_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/21/18/image_18082025_21_18_55_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/08/49/image_18082025_08_49_25_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/08/49/image_18082025_08_49_14_9665.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/19/image_18082025_21_19_45_10640.jpg', '/home/nano/Desktop/images/18082025/21/19/image_18082025_21_19_34_9626.jpg', '/home/nano/Desktop/images/18082025/21/18/image_18082025_21_19_04_9635.jpg', '/home/nano/Desktop/images/18082025/21/18/image_18082025_21_18_55_9630.jpg', '/home/nano/Desktop/images/18082025/08/49/image_18082025_08_49_25_10624.jpg', '/home/nano/Desktop/images/18082025/08/49/image_18082025_08_49_14_9665.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/19/image_18082025_21_19_45_10640.jpg
/home/nano/Desktop/images/18082025/21/19/image_18082025_21_19_34_9626.jpg
/home/nano/Desktop/images/18082025/21/18/image_18082025_21_19_04_9635.jpg
/home/nano/Desktop/images/18082025/21/18/image_18082025_21_18_55_9630.jpg
/home/nano/Desktop/images/18082025/08/49/image_18082025_08_49_25_10624.jpg
/home/nano/Desktop/images/18082025/08/49/image_18082025_08_49_14_9665.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377717691","1377717693","1377717699","1377717690","1377717695","1377717689"],"photo_ids_order":["1377717689","1377717690","1377717691","1377717693","1377717695","1377717699"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/859a03a53ba5241c2fe37163902a3e76.jpg","text":"TemporaryFile(/tmp/multipartBody2586044271648309200asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544848632,"filename":"image_18082025_21_19_04_9635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b40278beb756a9d6b67c347685a7623f.jpg","text":"TemporaryFile(/tmp/multipartBody2909847715205659142asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544848632,"filename":"image_18082025_21_18_55_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/23ba06caba266e23ff32dac4085b5e10.jpg","text":"TemporaryFile(/tmp/multipartBody4186999430389668453asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544848632,"filename":"image_18082025_08_49_14_9665.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4771232b392dbdbe940350a58a14fa79.jpg","text":"TemporaryFile(/tmp/multipartBody2675470168130459859asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544848632,"filename":"image_18082025_21_19_34_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d7783e2bb61e62449afebdb54622a8ec.jpg","text":"TemporaryFile(/tmp/multipartBody7117847548468753338asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544848632,"filename":"image_18082025_08_49_25_10624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/29d383ae838509d7c5501004374a31f0.jpg","text":"TemporaryFile(/tmp/multipartBody8830794562640209409asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544848632,"filename":"image_18082025_21_19_45_10640.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377717691","file1":"1377717690","file0":"1377717689","file4":"1377717695","file5":"1377717699","file3":"1377717693"},"map_files_photo_id_array":[{"photo_id":"1377717699","filename":"file5"},{"photo_id":"1377717691","filename":"file2"},{"photo_id":"1377717695","filename":"file4"},{"photo_id":"1377717690","filename":"file1"},{"photo_id":"1377717689","filename":"file0"},{"photo_id":"1377717693","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377717691":["hashtag1","hashtag2"]},{"1377717693":["hashtag1","hashtag2"]},{"1377717699":["hashtag1","hashtag2"]},{"1377717690":["hashtag1","hashtag2"]},{"1377717695":["hashtag1","hashtag2"]},{"1377717689":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377717691, 1377717693, 1377717699, 1377717690, 1377717695, 1377717689)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.85879921913147 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:20:32.482078
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/20/image_18082025_21_20_54_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/21/20/image_18082025_21_20_34_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/21/20/image_18082025_21_20_24_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/21/20/image_18082025_21_20_15_10671.jpg', 2), ('/home/nano/Desktop/images/18082025/21/19/image_18082025_21_20_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/21/19/image_18082025_21_19_55_9631.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/20/image_18082025_21_20_54_9632.jpg', '/home/nano/Desktop/images/18082025/21/20/image_18082025_21_20_34_9626.jpg', '/home/nano/Desktop/images/18082025/21/20/image_18082025_21_20_24_9632.jpg', '/home/nano/Desktop/images/18082025/21/20/image_18082025_21_20_15_10671.jpg', '/home/nano/Desktop/images/18082025/21/19/image_18082025_21_20_04_9651.jpg', '/home/nano/Desktop/images/18082025/21/19/image_18082025_21_19_55_9631.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/20/image_18082025_21_20_54_9632.jpg
/home/nano/Desktop/images/18082025/21/20/image_18082025_21_20_34_9626.jpg
/home/nano/Desktop/images/18082025/21/20/image_18082025_21_20_24_9632.jpg
/home/nano/Desktop/images/18082025/21/20/image_18082025_21_20_15_10671.jpg
/home/nano/Desktop/images/18082025/21/19/image_18082025_21_20_04_9651.jpg
/home/nano/Desktop/images/18082025/21/19/image_18082025_21_19_55_9631.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377717713","1377717721","1377717715","1377717714","1377717717","1377717719"],"photo_ids_order":["1377717713","1377717714","1377717715","1377717717","1377717719","1377717721"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9bcbe623cacbf68adf5eec49186cc8ae.jpg","text":"TemporaryFile(/tmp/multipartBody4488677591125071077asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544893825,"filename":"image_18082025_21_20_54_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9fce869f894f59b648179d21ee531d4d.jpg","text":"TemporaryFile(/tmp/multipartBody6613992567643141070asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544893825,"filename":"image_18082025_21_19_55_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f2566f761a85e2f8e4d707bf89d6ae29.jpg","text":"TemporaryFile(/tmp/multipartBody4101780277693156333asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544893825,"filename":"image_18082025_21_20_24_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fafb726f99d7d07433f090d9cf22bd26.jpg","text":"TemporaryFile(/tmp/multipartBody1850264708958665218asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544893825,"filename":"image_18082025_21_20_34_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/566983b29c750aed97170082d6c49df2.jpg","text":"TemporaryFile(/tmp/multipartBody49467173073476343asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544893825,"filename":"image_18082025_21_20_15_10671.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/23ca44849f4867d7507af8c00df426ff.jpg","text":"TemporaryFile(/tmp/multipartBody6372192799789184764asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544893825,"filename":"image_18082025_21_20_04_9651.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377717715","file1":"1377717714","file0":"1377717713","file4":"1377717719","file5":"1377717721","file3":"1377717717"},"map_files_photo_id_array":[{"photo_id":"1377717721","filename":"file5"},{"photo_id":"1377717715","filename":"file2"},{"photo_id":"1377717719","filename":"file4"},{"photo_id":"1377717714","filename":"file1"},{"photo_id":"1377717713","filename":"file0"},{"photo_id":"1377717717","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377717713":["hashtag1","hashtag2"]},{"1377717721":["hashtag1","hashtag2"]},{"1377717715":["hashtag1","hashtag2"]},{"1377717714":["hashtag1","hashtag2"]},{"1377717717":["hashtag1","hashtag2"]},{"1377717719":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377717713, 1377717721, 1377717715, 1377717714, 1377717717, 1377717719)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.59993839263916 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:21:17.603599
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/21/image_18082025_21_21_45_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/21/21/image_18082025_21_21_35_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/21/21/image_18082025_21_21_15_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/21/20/image_18082025_21_21_05_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/21/20/image_18082025_21_20_45_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/08/48/image_18082025_08_49_04_9623.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/21/image_18082025_21_21_45_9645.jpg', '/home/nano/Desktop/images/18082025/21/21/image_18082025_21_21_35_10639.jpg', '/home/nano/Desktop/images/18082025/21/21/image_18082025_21_21_15_9647.jpg', '/home/nano/Desktop/images/18082025/21/20/image_18082025_21_21_05_10667.jpg', '/home/nano/Desktop/images/18082025/21/20/image_18082025_21_20_45_10649.jpg', '/home/nano/Desktop/images/18082025/08/48/image_18082025_08_49_04_9623.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/21/image_18082025_21_21_45_9645.jpg
/home/nano/Desktop/images/18082025/21/21/image_18082025_21_21_35_10639.jpg
/home/nano/Desktop/images/18082025/21/21/image_18082025_21_21_15_9647.jpg
/home/nano/Desktop/images/18082025/21/20/image_18082025_21_21_05_10667.jpg
/home/nano/Desktop/images/18082025/21/20/image_18082025_21_20_45_10649.jpg
/home/nano/Desktop/images/18082025/08/48/image_18082025_08_49_04_9623.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377717739","1377717733","1377717736","1377717741","1377717729","1377717731"],"photo_ids_order":["1377717729","1377717731","1377717733","1377717736","1377717739","1377717741"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b7ca37c3e8324d0a1c1ec74a335faa17.jpg","text":"TemporaryFile(/tmp/multipartBody5897347998836558322asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544938823,"filename":"image_18082025_21_20_45_10649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/615c352c9b309725cd0abc1ca2612895.jpg","text":"TemporaryFile(/tmp/multipartBody8542838982241810298asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544938823,"filename":"image_18082025_21_21_15_9647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e09f34afc84344cd4ae3eb4cc7529886.jpg","text":"TemporaryFile(/tmp/multipartBody6051306856619967735asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544938823,"filename":"image_18082025_21_21_05_10667.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1f05027d490f57fa256fccdbba062da7.jpg","text":"TemporaryFile(/tmp/multipartBody7025550650788346254asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544938823,"filename":"image_18082025_08_49_04_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1b43cea1e023260b15c4fbe277eb27da.jpg","text":"TemporaryFile(/tmp/multipartBody3879729995055213204asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544938823,"filename":"image_18082025_21_21_45_9645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b6737ad1f8703cff371160c720929f6f.jpg","text":"TemporaryFile(/tmp/multipartBody166552074909194714asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544938823,"filename":"image_18082025_21_21_35_10639.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377717733","file1":"1377717731","file0":"1377717729","file4":"1377717739","file5":"1377717741","file3":"1377717736"},"map_files_photo_id_array":[{"photo_id":"1377717741","filename":"file5"},{"photo_id":"1377717733","filename":"file2"},{"photo_id":"1377717739","filename":"file4"},{"photo_id":"1377717731","filename":"file1"},{"photo_id":"1377717729","filename":"file0"},{"photo_id":"1377717736","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377717739":["hashtag1","hashtag2"]},{"1377717733":["hashtag1","hashtag2"]},{"1377717736":["hashtag1","hashtag2"]},{"1377717741":["hashtag1","hashtag2"]},{"1377717729":["hashtag1","hashtag2"]},{"1377717731":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377717739, 1377717733, 1377717736, 1377717741, 1377717729, 1377717731)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.46263313293457 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:22:03.224795
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/48/image_18082025_08_48_55_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/08/48/image_18082025_08_48_44_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/48/image_18082025_08_48_35_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/08/48/image_18082025_08_48_25_10624.jpg', 2), ('/home/nano/Desktop/images/18082025/08/48/image_18082025_08_48_14_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/08/47/image_18082025_08_48_05_9621.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/08/48/image_18082025_08_48_55_10638.jpg', '/home/nano/Desktop/images/18082025/08/48/image_18082025_08_48_44_9626.jpg', '/home/nano/Desktop/images/18082025/08/48/image_18082025_08_48_35_9624.jpg', '/home/nano/Desktop/images/18082025/08/48/image_18082025_08_48_25_10624.jpg', '/home/nano/Desktop/images/18082025/08/48/image_18082025_08_48_14_9650.jpg', '/home/nano/Desktop/images/18082025/08/47/image_18082025_08_48_05_9621.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/08/48/image_18082025_08_48_55_10638.jpg
/home/nano/Desktop/images/18082025/08/48/image_18082025_08_48_44_9626.jpg
/home/nano/Desktop/images/18082025/08/48/image_18082025_08_48_35_9624.jpg
/home/nano/Desktop/images/18082025/08/48/image_18082025_08_48_25_10624.jpg
/home/nano/Desktop/images/18082025/08/48/image_18082025_08_48_14_9650.jpg
/home/nano/Desktop/images/18082025/08/47/image_18082025_08_48_05_9621.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377717756","1377717750","1377717753","1377717747","1377717761","1377717758"],"photo_ids_order":["1377717747","1377717750","1377717753","1377717756","1377717758","1377717761"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b69399f724bea167677c42ca45808aa1.jpg","text":"TemporaryFile(/tmp/multipartBody9179562219265541093asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544984392,"filename":"image_18082025_08_48_25_10624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/888ecfb87d5d9cf2cf7249b3913d24e7.jpg","text":"TemporaryFile(/tmp/multipartBody7033221118818157039asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544984392,"filename":"image_18082025_08_48_44_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3e7a2e798f6a4bfba3005ab80c140f23.jpg","text":"TemporaryFile(/tmp/multipartBody3848385162494059076asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544984392,"filename":"image_18082025_08_48_35_9624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0c72f0c37e3d575d442b581414b9615a.jpg","text":"TemporaryFile(/tmp/multipartBody1454581703445632845asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544984392,"filename":"image_18082025_08_48_55_10638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cf1de45733bbbdca97b3bfde5cf72de8.jpg","text":"TemporaryFile(/tmp/multipartBody4856820951940123158asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544984392,"filename":"image_18082025_08_48_05_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/50926d633924c637ec848871bf2f2e5a.jpg","text":"TemporaryFile(/tmp/multipartBody155202525092760173asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755544984392,"filename":"image_18082025_08_48_14_9650.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377717753","file1":"1377717750","file0":"1377717747","file4":"1377717758","file5":"1377717761","file3":"1377717756"},"map_files_photo_id_array":[{"photo_id":"1377717761","filename":"file5"},{"photo_id":"1377717753","filename":"file2"},{"photo_id":"1377717758","filename":"file4"},{"photo_id":"1377717750","filename":"file1"},{"photo_id":"1377717747","filename":"file0"},{"photo_id":"1377717756","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377717756":["hashtag1","hashtag2"]},{"1377717750":["hashtag1","hashtag2"]},{"1377717753":["hashtag1","hashtag2"]},{"1377717747":["hashtag1","hashtag2"]},{"1377717761":["hashtag1","hashtag2"]},{"1377717758":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377717756, 1377717750, 1377717753, 1377717747, 1377717761, 1377717758)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.978737354278564 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:22:47.766484
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/22/image_18082025_21_22_35_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/21/22/image_18082025_21_22_24_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/21/22/image_18082025_21_22_15_9663.jpg', 2), ('/home/nano/Desktop/images/18082025/21/21/image_18082025_21_22_05_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/21/21/image_18082025_21_21_54_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/08/47/image_18082025_08_47_55_10623.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/22/image_18082025_21_22_35_10636.jpg', '/home/nano/Desktop/images/18082025/21/22/image_18082025_21_22_24_9655.jpg', '/home/nano/Desktop/images/18082025/21/22/image_18082025_21_22_15_9663.jpg', '/home/nano/Desktop/images/18082025/21/21/image_18082025_21_22_05_10642.jpg', '/home/nano/Desktop/images/18082025/21/21/image_18082025_21_21_54_9629.jpg', '/home/nano/Desktop/images/18082025/08/47/image_18082025_08_47_55_10623.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/22/image_18082025_21_22_35_10636.jpg
/home/nano/Desktop/images/18082025/21/22/image_18082025_21_22_24_9655.jpg
/home/nano/Desktop/images/18082025/21/22/image_18082025_21_22_15_9663.jpg
/home/nano/Desktop/images/18082025/21/21/image_18082025_21_22_05_10642.jpg
/home/nano/Desktop/images/18082025/21/21/image_18082025_21_21_54_9629.jpg
/home/nano/Desktop/images/18082025/08/47/image_18082025_08_47_55_10623.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377717775","1377717772","1377717774","1377717783","1377717777","1377717779"],"photo_ids_order":["1377717772","1377717774","1377717775","1377717777","1377717779","1377717783"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c569c6f43228ecd6e0e0e065d541bbad.jpg","text":"TemporaryFile(/tmp/multipartBody2714479344885104987asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545029183,"filename":"image_18082025_21_22_15_9663.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/586fcbe6cb6a6ce1c3eb763d2e96b3c3.jpg","text":"TemporaryFile(/tmp/multipartBody8228446462485102549asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545029183,"filename":"image_18082025_21_22_35_10636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/543120a0dd7e1b3378bfb98adffb7b31.jpg","text":"TemporaryFile(/tmp/multipartBody1403089887891877526asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545029183,"filename":"image_18082025_21_22_24_9655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bbbf6cce00a412f07f4122b75c89bdca.jpg","text":"TemporaryFile(/tmp/multipartBody5698778251970679001asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545029183,"filename":"image_18082025_08_47_55_10623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c0e0b15ea7db5d1c502539cac7b9528c.jpg","text":"TemporaryFile(/tmp/multipartBody2066476960262794805asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545029183,"filename":"image_18082025_21_22_05_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/888402d4799b03fa17707182bc97477b.jpg","text":"TemporaryFile(/tmp/multipartBody7091498017104185690asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545029183,"filename":"image_18082025_21_21_54_9629.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377717775","file1":"1377717774","file0":"1377717772","file4":"1377717779","file5":"1377717783","file3":"1377717777"},"map_files_photo_id_array":[{"photo_id":"1377717783","filename":"file5"},{"photo_id":"1377717775","filename":"file2"},{"photo_id":"1377717779","filename":"file4"},{"photo_id":"1377717774","filename":"file1"},{"photo_id":"1377717772","filename":"file0"},{"photo_id":"1377717777","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377717775":["hashtag1","hashtag2"]},{"1377717772":["hashtag1","hashtag2"]},{"1377717774":["hashtag1","hashtag2"]},{"1377717783":["hashtag1","hashtag2"]},{"1377717777":["hashtag1","hashtag2"]},{"1377717779":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377717775, 1377717772, 1377717774, 1377717783, 1377717777, 1377717779)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.03888201713562 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:23:31.862029
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/23/image_18082025_21_23_14_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/21/22/image_18082025_21_23_05_10662.jpg', 2), ('/home/nano/Desktop/images/18082025/21/22/image_18082025_21_22_44_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/08/47/image_18082025_08_47_44_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/08/47/image_18082025_08_47_35_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/08/47/image_18082025_08_47_24_9638.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/23/image_18082025_21_23_14_9654.jpg', '/home/nano/Desktop/images/18082025/21/22/image_18082025_21_23_05_10662.jpg', '/home/nano/Desktop/images/18082025/21/22/image_18082025_21_22_44_9625.jpg', '/home/nano/Desktop/images/18082025/08/47/image_18082025_08_47_44_9623.jpg', '/home/nano/Desktop/images/18082025/08/47/image_18082025_08_47_35_10630.jpg', '/home/nano/Desktop/images/18082025/08/47/image_18082025_08_47_24_9638.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/23/image_18082025_21_23_14_9654.jpg
/home/nano/Desktop/images/18082025/21/22/image_18082025_21_23_05_10662.jpg
/home/nano/Desktop/images/18082025/21/22/image_18082025_21_22_44_9625.jpg
/home/nano/Desktop/images/18082025/08/47/image_18082025_08_47_44_9623.jpg
/home/nano/Desktop/images/18082025/08/47/image_18082025_08_47_35_10630.jpg
/home/nano/Desktop/images/18082025/08/47/image_18082025_08_47_24_9638.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377717796","1377717799","1377717805","1377717807","1377717801","1377717803"],"photo_ids_order":["1377717796","1377717799","1377717801","1377717803","1377717805","1377717807"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b22cb70286569c1a8ce3e01038e00fda.jpg","text":"TemporaryFile(/tmp/multipartBody513759653433720784asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545073373,"filename":"image_18082025_21_23_14_9654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d5d2270a6391da073596c403c63fa4a2.jpg","text":"TemporaryFile(/tmp/multipartBody5697976265769785363asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545073373,"filename":"image_18082025_21_23_05_10662.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5019d55f03a0df7bc4ade292c0109e36.jpg","text":"TemporaryFile(/tmp/multipartBody3567029669293710410asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545073373,"filename":"image_18082025_08_47_35_10630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/57a88ca71c3dd755d4e8e2d3a0d32cce.jpg","text":"TemporaryFile(/tmp/multipartBody3700770429648573329asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545073373,"filename":"image_18082025_08_47_24_9638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/207ab0c9c9dfb47f7447d00cb392be37.jpg","text":"TemporaryFile(/tmp/multipartBody7492088117956530064asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545073373,"filename":"image_18082025_21_22_44_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cdc575b1007d001b1bd3a613137fd0d6.jpg","text":"TemporaryFile(/tmp/multipartBody4258091527172974309asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545073373,"filename":"image_18082025_08_47_44_9623.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377717801","file1":"1377717799","file0":"1377717796","file4":"1377717805","file5":"1377717807","file3":"1377717803"},"map_files_photo_id_array":[{"photo_id":"1377717807","filename":"file5"},{"photo_id":"1377717801","filename":"file2"},{"photo_id":"1377717805","filename":"file4"},{"photo_id":"1377717799","filename":"file1"},{"photo_id":"1377717796","filename":"file0"},{"photo_id":"1377717803","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377717796":["hashtag1","hashtag2"]},{"1377717799":["hashtag1","hashtag2"]},{"1377717805":["hashtag1","hashtag2"]},{"1377717807":["hashtag1","hashtag2"]},{"1377717801":["hashtag1","hashtag2"]},{"1377717803":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377717796, 1377717799, 1377717805, 1377717807, 1377717801, 1377717803)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.286354064941406 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:24:17.021016
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/24/image_18082025_21_24_44_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/21/24/image_18082025_21_24_35_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/21/24/image_18082025_21_24_25_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/21/24/image_18082025_21_24_14_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/21/23/image_18082025_21_24_05_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/21/23/image_18082025_21_23_55_10640.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/24/image_18082025_21_24_44_9626.jpg', '/home/nano/Desktop/images/18082025/21/24/image_18082025_21_24_35_9647.jpg', '/home/nano/Desktop/images/18082025/21/24/image_18082025_21_24_25_10642.jpg', '/home/nano/Desktop/images/18082025/21/24/image_18082025_21_24_14_9647.jpg', '/home/nano/Desktop/images/18082025/21/23/image_18082025_21_24_05_9636.jpg', '/home/nano/Desktop/images/18082025/21/23/image_18082025_21_23_55_10640.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/24/image_18082025_21_24_44_9626.jpg
/home/nano/Desktop/images/18082025/21/24/image_18082025_21_24_35_9647.jpg
/home/nano/Desktop/images/18082025/21/24/image_18082025_21_24_25_10642.jpg
/home/nano/Desktop/images/18082025/21/24/image_18082025_21_24_14_9647.jpg
/home/nano/Desktop/images/18082025/21/23/image_18082025_21_24_05_9636.jpg
/home/nano/Desktop/images/18082025/21/23/image_18082025_21_23_55_10640.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377717826","1377717819","1377717816","1377717827","1377717821","1377717824"],"photo_ids_order":["1377717816","1377717819","1377717821","1377717824","1377717826","1377717827"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/451521c0e8100c727258d36b666b73d8.jpg","text":"TemporaryFile(/tmp/multipartBody8679096032145452919asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545118478,"filename":"image_18082025_21_24_05_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2353a9ff0a00f2f28d64906ee5f1b0fc.jpg","text":"TemporaryFile(/tmp/multipartBody6298626636884112572asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545118478,"filename":"image_18082025_21_24_35_9647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cdf3ffea6596fca2d83b37159af27de5.jpg","text":"TemporaryFile(/tmp/multipartBody2832892735809869702asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545118478,"filename":"image_18082025_21_24_44_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7f2f1026e2d0ee0dfeef4b2cd109100a.jpg","text":"TemporaryFile(/tmp/multipartBody6434709020714980173asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545118478,"filename":"image_18082025_21_23_55_10640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3eee8504b1805197f314bcd69f4c82c4.jpg","text":"TemporaryFile(/tmp/multipartBody2852163511378231655asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545118478,"filename":"image_18082025_21_24_25_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5cc3e4932bd7f245c707758290e70ed8.jpg","text":"TemporaryFile(/tmp/multipartBody7724051335309236339asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545118478,"filename":"image_18082025_21_24_14_9647.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377717821","file1":"1377717819","file0":"1377717816","file4":"1377717826","file5":"1377717827","file3":"1377717824"},"map_files_photo_id_array":[{"photo_id":"1377717827","filename":"file5"},{"photo_id":"1377717821","filename":"file2"},{"photo_id":"1377717826","filename":"file4"},{"photo_id":"1377717819","filename":"file1"},{"photo_id":"1377717816","filename":"file0"},{"photo_id":"1377717824","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377717826":["hashtag1","hashtag2"]},{"1377717819":["hashtag1","hashtag2"]},{"1377717816":["hashtag1","hashtag2"]},{"1377717827":["hashtag1","hashtag2"]},{"1377717821":["hashtag1","hashtag2"]},{"1377717824":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377717826, 1377717819, 1377717816, 1377717827, 1377717821, 1377717824)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.59075975418091 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:25:02.882180
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/47/image_18082025_08_47_14_9671.jpg', 2), ('/home/nano/Desktop/images/18082025/08/46/image_18082025_08_47_05_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/08/46/image_18082025_08_46_54_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/08/46/image_18082025_08_46_45_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/08/46/image_18082025_08_46_35_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/08/46/image_18082025_08_46_24_9629.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/08/47/image_18082025_08_47_14_9671.jpg', '/home/nano/Desktop/images/18082025/08/46/image_18082025_08_47_05_10652.jpg', '/home/nano/Desktop/images/18082025/08/46/image_18082025_08_46_54_9622.jpg', '/home/nano/Desktop/images/18082025/08/46/image_18082025_08_46_45_9624.jpg', '/home/nano/Desktop/images/18082025/08/46/image_18082025_08_46_35_10635.jpg', '/home/nano/Desktop/images/18082025/08/46/image_18082025_08_46_24_9629.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/08/47/image_18082025_08_47_14_9671.jpg
/home/nano/Desktop/images/18082025/08/46/image_18082025_08_47_05_10652.jpg
/home/nano/Desktop/images/18082025/08/46/image_18082025_08_46_54_9622.jpg
/home/nano/Desktop/images/18082025/08/46/image_18082025_08_46_45_9624.jpg
/home/nano/Desktop/images/18082025/08/46/image_18082025_08_46_35_10635.jpg
/home/nano/Desktop/images/18082025/08/46/image_18082025_08_46_24_9629.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377717844","1377717838","1377717847","1377717840","1377717842","1377717836"],"photo_ids_order":["1377717836","1377717838","1377717840","1377717842","1377717844","1377717847"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5f36213e3c9778ae5faa04c7be4cca6b.jpg","text":"TemporaryFile(/tmp/multipartBody912808418305476029asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545164227,"filename":"image_18082025_08_46_35_10635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5fdbc1c3dd51081f238d694957be01e4.jpg","text":"TemporaryFile(/tmp/multipartBody944089463638009102asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545164227,"filename":"image_18082025_08_47_05_10652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/376269db26836493425e7e26f487b913.jpg","text":"TemporaryFile(/tmp/multipartBody7039780595752772273asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545164227,"filename":"image_18082025_08_46_24_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f815073dd638d5f14feff6b4c1c32c47.jpg","text":"TemporaryFile(/tmp/multipartBody8453637728879922603asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545164227,"filename":"image_18082025_08_46_54_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f687342a68e5f8d30a622db195426368.jpg","text":"TemporaryFile(/tmp/multipartBody6605586111678013685asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545164227,"filename":"image_18082025_08_46_45_9624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/81bb8a8ee24b48ed15a7d36f88b5d5b9.jpg","text":"TemporaryFile(/tmp/multipartBody6457231691509901465asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545164227,"filename":"image_18082025_08_47_14_9671.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377717840","file1":"1377717838","file0":"1377717836","file4":"1377717844","file5":"1377717847","file3":"1377717842"},"map_files_photo_id_array":[{"photo_id":"1377717847","filename":"file5"},{"photo_id":"1377717840","filename":"file2"},{"photo_id":"1377717844","filename":"file4"},{"photo_id":"1377717838","filename":"file1"},{"photo_id":"1377717836","filename":"file0"},{"photo_id":"1377717842","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377717844":["hashtag1","hashtag2"]},{"1377717838":["hashtag1","hashtag2"]},{"1377717847":["hashtag1","hashtag2"]},{"1377717840":["hashtag1","hashtag2"]},{"1377717842":["hashtag1","hashtag2"]},{"1377717836":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377717844, 1377717838, 1377717847, 1377717840, 1377717842, 1377717836)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.110530614852905 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:25:47.101497
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/25/image_18082025_21_25_45_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/21/25/image_18082025_21_25_25_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/21/24/image_18082025_21_25_04_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/21/24/image_18082025_21_24_55_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/08/46/image_18082025_08_46_15_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/08/45/image_18082025_08_46_05_10646.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/25/image_18082025_21_25_45_10639.jpg', '/home/nano/Desktop/images/18082025/21/25/image_18082025_21_25_25_10641.jpg', '/home/nano/Desktop/images/18082025/21/24/image_18082025_21_25_04_9649.jpg', '/home/nano/Desktop/images/18082025/21/24/image_18082025_21_24_55_10647.jpg', '/home/nano/Desktop/images/18082025/08/46/image_18082025_08_46_15_9649.jpg', '/home/nano/Desktop/images/18082025/08/45/image_18082025_08_46_05_10646.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/25/image_18082025_21_25_45_10639.jpg
/home/nano/Desktop/images/18082025/21/25/image_18082025_21_25_25_10641.jpg
/home/nano/Desktop/images/18082025/21/24/image_18082025_21_25_04_9649.jpg
/home/nano/Desktop/images/18082025/21/24/image_18082025_21_24_55_10647.jpg
/home/nano/Desktop/images/18082025/08/46/image_18082025_08_46_15_9649.jpg
/home/nano/Desktop/images/18082025/08/45/image_18082025_08_46_05_10646.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377717862","1377717856","1377717855","1377717858","1377717866","1377717860"],"photo_ids_order":["1377717855","1377717856","1377717858","1377717860","1377717862","1377717866"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ba8524526fd58177bf2483750e708698.jpg","text":"TemporaryFile(/tmp/multipartBody2652493422141080515asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545208382,"filename":"image_18082025_08_46_15_9649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/77e6f83bdbf92b2b42c220ce10b84fad.jpg","text":"TemporaryFile(/tmp/multipartBody1849058905701486367asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545208382,"filename":"image_18082025_21_25_25_10641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1e62f5d09011a02cf943f3abcdbdc0d2.jpg","text":"TemporaryFile(/tmp/multipartBody3792915569980824851asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545208382,"filename":"image_18082025_21_25_45_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b89b9ec6cca297e50ffb627bc91fa30d.jpg","text":"TemporaryFile(/tmp/multipartBody3816481166458895278asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545208382,"filename":"image_18082025_21_25_04_9649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f7b0c485306b348014709c64a682d543.jpg","text":"TemporaryFile(/tmp/multipartBody125788046676225467asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545208382,"filename":"image_18082025_08_46_05_10646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5e67dde2557b91017a617893a53ac147.jpg","text":"TemporaryFile(/tmp/multipartBody1607739984786350156asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545208382,"filename":"image_18082025_21_24_55_10647.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377717858","file1":"1377717856","file0":"1377717855","file4":"1377717862","file5":"1377717866","file3":"1377717860"},"map_files_photo_id_array":[{"photo_id":"1377717866","filename":"file5"},{"photo_id":"1377717858","filename":"file2"},{"photo_id":"1377717862","filename":"file4"},{"photo_id":"1377717856","filename":"file1"},{"photo_id":"1377717855","filename":"file0"},{"photo_id":"1377717860","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377717862":["hashtag1","hashtag2"]},{"1377717856":["hashtag1","hashtag2"]},{"1377717855":["hashtag1","hashtag2"]},{"1377717858":["hashtag1","hashtag2"]},{"1377717866":["hashtag1","hashtag2"]},{"1377717860":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377717862, 1377717856, 1377717855, 1377717858, 1377717866, 1377717860)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.53116202354431 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:26:32.217288
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/26/image_18082025_21_26_45_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/21/26/image_18082025_21_26_34_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/21/26/image_18082025_21_26_25_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/21/26/image_18082025_21_26_15_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/21/25/image_18082025_21_26_04_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/21/25/image_18082025_21_25_55_9629.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/26/image_18082025_21_26_45_10635.jpg', '/home/nano/Desktop/images/18082025/21/26/image_18082025_21_26_34_9635.jpg', '/home/nano/Desktop/images/18082025/21/26/image_18082025_21_26_25_9633.jpg', '/home/nano/Desktop/images/18082025/21/26/image_18082025_21_26_15_10661.jpg', '/home/nano/Desktop/images/18082025/21/25/image_18082025_21_26_04_9642.jpg', '/home/nano/Desktop/images/18082025/21/25/image_18082025_21_25_55_9629.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/26/image_18082025_21_26_45_10635.jpg
/home/nano/Desktop/images/18082025/21/26/image_18082025_21_26_34_9635.jpg
/home/nano/Desktop/images/18082025/21/26/image_18082025_21_26_25_9633.jpg
/home/nano/Desktop/images/18082025/21/26/image_18082025_21_26_15_10661.jpg
/home/nano/Desktop/images/18082025/21/25/image_18082025_21_26_04_9642.jpg
/home/nano/Desktop/images/18082025/21/25/image_18082025_21_25_55_9629.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377717889","1377717883","1377717891","1377717885","1377717894","1377717884"],"photo_ids_order":["1377717883","1377717884","1377717885","1377717889","1377717891","1377717894"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/50f3bae93ca3bb5438c13a71a0415acf.jpg","text":"TemporaryFile(/tmp/multipartBody1503462816530240735asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545253514,"filename":"image_18082025_21_26_15_10661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3f7945b1eeb6d8fe96f90ec82fa96173.jpg","text":"TemporaryFile(/tmp/multipartBody5592976377112081703asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545253514,"filename":"image_18082025_21_26_45_10635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6620ed89bde2a36296d90d801c37a413.jpg","text":"TemporaryFile(/tmp/multipartBody6671449361253020207asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545253514,"filename":"image_18082025_21_26_04_9642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9cdfb35575a635fd3708eeb518dcfcd0.jpg","text":"TemporaryFile(/tmp/multipartBody8707026148478288004asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545253514,"filename":"image_18082025_21_26_25_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/18f19a2e576b99dc9d7bb3f9d90609ec.jpg","text":"TemporaryFile(/tmp/multipartBody5014274543149313752asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545253514,"filename":"image_18082025_21_25_55_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6cee4a205794a97a9015a6bccd9405ca.jpg","text":"TemporaryFile(/tmp/multipartBody4552640019249166440asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545253514,"filename":"image_18082025_21_26_34_9635.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377717885","file1":"1377717884","file0":"1377717883","file4":"1377717891","file5":"1377717894","file3":"1377717889"},"map_files_photo_id_array":[{"photo_id":"1377717894","filename":"file5"},{"photo_id":"1377717885","filename":"file2"},{"photo_id":"1377717891","filename":"file4"},{"photo_id":"1377717884","filename":"file1"},{"photo_id":"1377717883","filename":"file0"},{"photo_id":"1377717889","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377717889":["hashtag1","hashtag2"]},{"1377717883":["hashtag1","hashtag2"]},{"1377717891":["hashtag1","hashtag2"]},{"1377717885":["hashtag1","hashtag2"]},{"1377717894":["hashtag1","hashtag2"]},{"1377717884":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377717889, 1377717883, 1377717891, 1377717885, 1377717894, 1377717884)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.30036926269531 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:27:17.289422
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/27/image_18082025_21_27_24_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/21/27/image_18082025_21_27_15_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/21/26/image_18082025_21_26_55_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/08/45/image_18082025_08_45_54_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/08/45/image_18082025_08_45_45_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/08/45/image_18082025_08_45_34_9622.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/27/image_18082025_21_27_24_9629.jpg', '/home/nano/Desktop/images/18082025/21/27/image_18082025_21_27_15_10663.jpg', '/home/nano/Desktop/images/18082025/21/26/image_18082025_21_26_55_9646.jpg', '/home/nano/Desktop/images/18082025/08/45/image_18082025_08_45_54_9619.jpg', '/home/nano/Desktop/images/18082025/08/45/image_18082025_08_45_45_10630.jpg', '/home/nano/Desktop/images/18082025/08/45/image_18082025_08_45_34_9622.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/27/image_18082025_21_27_24_9629.jpg
/home/nano/Desktop/images/18082025/21/27/image_18082025_21_27_15_10663.jpg
/home/nano/Desktop/images/18082025/21/26/image_18082025_21_26_55_9646.jpg
/home/nano/Desktop/images/18082025/08/45/image_18082025_08_45_54_9619.jpg
/home/nano/Desktop/images/18082025/08/45/image_18082025_08_45_45_10630.jpg
/home/nano/Desktop/images/18082025/08/45/image_18082025_08_45_34_9622.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377717910","1377717913","1377717907","1377717916","1377717904","1377717915"],"photo_ids_order":["1377717904","1377717907","1377717910","1377717913","1377717915","1377717916"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7c3aabeb57ac31479fd1cacd22f50167.jpg","text":"TemporaryFile(/tmp/multipartBody5437267001829855891asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545298855,"filename":"image_18082025_21_26_55_9646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/21903781a2bff7be547e630bc2102d90.jpg","text":"TemporaryFile(/tmp/multipartBody8964848564280544142asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545298855,"filename":"image_18082025_08_45_54_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/01f4ec4fa6e05063614f0df5f4d52ff1.jpg","text":"TemporaryFile(/tmp/multipartBody1675796154487225683asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545298855,"filename":"image_18082025_21_27_15_10663.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5873ebe2b80c65c6c51ada4204860d44.jpg","text":"TemporaryFile(/tmp/multipartBody5278139348425067332asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545298855,"filename":"image_18082025_08_45_34_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/165866c79c0503ad5470d23d173cecc3.jpg","text":"TemporaryFile(/tmp/multipartBody3728329837409271019asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545298855,"filename":"image_18082025_21_27_24_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/45cb9acfc7f8a826568c167e7d1ceef2.jpg","text":"TemporaryFile(/tmp/multipartBody6280015878706584986asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545298855,"filename":"image_18082025_08_45_45_10630.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377717910","file1":"1377717907","file0":"1377717904","file4":"1377717915","file5":"1377717916","file3":"1377717913"},"map_files_photo_id_array":[{"photo_id":"1377717916","filename":"file5"},{"photo_id":"1377717910","filename":"file2"},{"photo_id":"1377717915","filename":"file4"},{"photo_id":"1377717907","filename":"file1"},{"photo_id":"1377717904","filename":"file0"},{"photo_id":"1377717913","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377717910":["hashtag1","hashtag2"]},{"1377717913":["hashtag1","hashtag2"]},{"1377717907":["hashtag1","hashtag2"]},{"1377717916":["hashtag1","hashtag2"]},{"1377717904":["hashtag1","hashtag2"]},{"1377717915":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377717910, 1377717913, 1377717907, 1377717916, 1377717904, 1377717915)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.45474553108215 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:28:03.053505
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/45/image_18082025_08_45_24_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/08/45/image_18082025_08_45_15_10675.jpg', 2), ('/home/nano/Desktop/images/18082025/08/44/image_18082025_08_45_04_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/08/44/image_18082025_08_44_55_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/08/44/image_18082025_08_44_45_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/08/44/image_18082025_08_44_34_9625.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/08/45/image_18082025_08_45_24_9620.jpg', '/home/nano/Desktop/images/18082025/08/45/image_18082025_08_45_15_10675.jpg', '/home/nano/Desktop/images/18082025/08/44/image_18082025_08_45_04_9647.jpg', '/home/nano/Desktop/images/18082025/08/44/image_18082025_08_44_55_9618.jpg', '/home/nano/Desktop/images/18082025/08/44/image_18082025_08_44_45_10628.jpg', '/home/nano/Desktop/images/18082025/08/44/image_18082025_08_44_34_9625.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/08/45/image_18082025_08_45_24_9620.jpg
/home/nano/Desktop/images/18082025/08/45/image_18082025_08_45_15_10675.jpg
/home/nano/Desktop/images/18082025/08/44/image_18082025_08_45_04_9647.jpg
/home/nano/Desktop/images/18082025/08/44/image_18082025_08_44_55_9618.jpg
/home/nano/Desktop/images/18082025/08/44/image_18082025_08_44_45_10628.jpg
/home/nano/Desktop/images/18082025/08/44/image_18082025_08_44_34_9625.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377717942","1377717936","1377717939","1377717930","1377717933","1377717926"],"photo_ids_order":["1377717926","1377717930","1377717933","1377717936","1377717939","1377717942"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c3f960e1e047c4d966bee055382a7b7f.jpg","text":"TemporaryFile(/tmp/multipartBody8238836989617118609asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545344447,"filename":"image_18082025_08_44_34_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/00d99645cf35d915f94888e19a782d75.jpg","text":"TemporaryFile(/tmp/multipartBody4578744237639638937asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545344447,"filename":"image_18082025_08_44_55_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dbe3444cf96086c4391abfee2b20b042.jpg","text":"TemporaryFile(/tmp/multipartBody1027637692888950545asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545344447,"filename":"image_18082025_08_44_45_10628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4e927e92911d9e403cc5333537f12f06.jpg","text":"TemporaryFile(/tmp/multipartBody1958042271620273682asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545344447,"filename":"image_18082025_08_45_15_10675.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f562eba963442cfc20973140933b6236.jpg","text":"TemporaryFile(/tmp/multipartBody4770507443203663223asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545344447,"filename":"image_18082025_08_45_04_9647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/11bd8cf1013a425ddf223e23927b8299.jpg","text":"TemporaryFile(/tmp/multipartBody5861570494921016086asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545344447,"filename":"image_18082025_08_45_24_9620.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377717933","file1":"1377717930","file0":"1377717926","file4":"1377717939","file5":"1377717942","file3":"1377717936"},"map_files_photo_id_array":[{"photo_id":"1377717942","filename":"file5"},{"photo_id":"1377717933","filename":"file2"},{"photo_id":"1377717939","filename":"file4"},{"photo_id":"1377717930","filename":"file1"},{"photo_id":"1377717926","filename":"file0"},{"photo_id":"1377717936","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377717942":["hashtag1","hashtag2"]},{"1377717936":["hashtag1","hashtag2"]},{"1377717939":["hashtag1","hashtag2"]},{"1377717930":["hashtag1","hashtag2"]},{"1377717933":["hashtag1","hashtag2"]},{"1377717926":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377717942, 1377717936, 1377717939, 1377717930, 1377717933, 1377717926)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.81329083442688 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:28:47.464596
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/28/image_18082025_21_28_45_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/21/28/image_18082025_21_28_35_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/21/28/image_18082025_21_28_15_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/21/27/image_18082025_21_28_05_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/21/27/image_18082025_21_27_54_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/08/44/image_18082025_08_44_25_9620.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/28/image_18082025_21_28_45_9631.jpg', '/home/nano/Desktop/images/18082025/21/28/image_18082025_21_28_35_10639.jpg', '/home/nano/Desktop/images/18082025/21/28/image_18082025_21_28_15_9662.jpg', '/home/nano/Desktop/images/18082025/21/27/image_18082025_21_28_05_10666.jpg', '/home/nano/Desktop/images/18082025/21/27/image_18082025_21_27_54_9628.jpg', '/home/nano/Desktop/images/18082025/08/44/image_18082025_08_44_25_9620.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/28/image_18082025_21_28_45_9631.jpg
/home/nano/Desktop/images/18082025/21/28/image_18082025_21_28_35_10639.jpg
/home/nano/Desktop/images/18082025/21/28/image_18082025_21_28_15_9662.jpg
/home/nano/Desktop/images/18082025/21/27/image_18082025_21_28_05_10666.jpg
/home/nano/Desktop/images/18082025/21/27/image_18082025_21_27_54_9628.jpg
/home/nano/Desktop/images/18082025/08/44/image_18082025_08_44_25_9620.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.4830043315887451 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:29:03.593332
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/28/image_18082025_21_28_45_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/21/28/image_18082025_21_28_35_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/21/28/image_18082025_21_28_15_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/21/27/image_18082025_21_28_05_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/21/27/image_18082025_21_27_54_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/08/44/image_18082025_08_44_25_9620.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/28/image_18082025_21_28_45_9631.jpg', '/home/nano/Desktop/images/18082025/21/28/image_18082025_21_28_35_10639.jpg', '/home/nano/Desktop/images/18082025/21/28/image_18082025_21_28_15_9662.jpg', '/home/nano/Desktop/images/18082025/21/27/image_18082025_21_28_05_10666.jpg', '/home/nano/Desktop/images/18082025/21/27/image_18082025_21_27_54_9628.jpg', '/home/nano/Desktop/images/18082025/08/44/image_18082025_08_44_25_9620.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/28/image_18082025_21_28_45_9631.jpg
/home/nano/Desktop/images/18082025/21/28/image_18082025_21_28_35_10639.jpg
/home/nano/Desktop/images/18082025/21/28/image_18082025_21_28_15_9662.jpg
/home/nano/Desktop/images/18082025/21/27/image_18082025_21_28_05_10666.jpg
/home/nano/Desktop/images/18082025/21/27/image_18082025_21_27_54_9628.jpg
/home/nano/Desktop/images/18082025/08/44/image_18082025_08_44_25_9620.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377717961","1377717954","1377717963","1377717965","1377717959","1377717968"],"photo_ids_order":["1377717954","1377717959","1377717961","1377717963","1377717965","1377717968"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5ab387cb6cbdc2c1ea7386c7873d45f2.jpg","text":"TemporaryFile(/tmp/multipartBody280423958701746080asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545404871,"filename":"image_18082025_21_28_15_9662.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b15fb79b838013579955a3c053964262.jpg","text":"TemporaryFile(/tmp/multipartBody549433977575909330asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545404871,"filename":"image_18082025_21_28_45_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/63073e1b753b14a8d54b3e69c4deddce.jpg","text":"TemporaryFile(/tmp/multipartBody841315470535610287asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545404871,"filename":"image_18082025_21_28_05_10666.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f1e185ba652b92a1a5c393afcf1dcea9.jpg","text":"TemporaryFile(/tmp/multipartBody353057085536588638asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545404871,"filename":"image_18082025_21_27_54_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/74c110011fe0c46e066fe0163e7734c4.jpg","text":"TemporaryFile(/tmp/multipartBody8861650847948293122asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545404871,"filename":"image_18082025_21_28_35_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/eca3e2fbf7c0d382b20619de1c533ec9.jpg","text":"TemporaryFile(/tmp/multipartBody4464001345720253738asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545404871,"filename":"image_18082025_08_44_25_9620.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377717961","file1":"1377717959","file0":"1377717954","file4":"1377717965","file5":"1377717968","file3":"1377717963"},"map_files_photo_id_array":[{"photo_id":"1377717968","filename":"file5"},{"photo_id":"1377717961","filename":"file2"},{"photo_id":"1377717965","filename":"file4"},{"photo_id":"1377717959","filename":"file1"},{"photo_id":"1377717954","filename":"file0"},{"photo_id":"1377717963","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377717961":["hashtag1","hashtag2"]},{"1377717954":["hashtag1","hashtag2"]},{"1377717963":["hashtag1","hashtag2"]},{"1377717965":["hashtag1","hashtag2"]},{"1377717959":["hashtag1","hashtag2"]},{"1377717968":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377717961, 1377717954, 1377717963, 1377717965, 1377717959, 1377717968)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.839264392852783 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:29:47.569954
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/29/image_18082025_21_29_44_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/21/29/image_18082025_21_29_35_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/21/29/image_18082025_21_29_24_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/21/29/image_18082025_21_29_15_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/21/28/image_18082025_21_29_05_10643.jpg', 2), ('/home/nano/Desktop/images/18082025/21/28/image_18082025_21_28_54_9629.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/29/image_18082025_21_29_44_9637.jpg', '/home/nano/Desktop/images/18082025/21/29/image_18082025_21_29_35_10661.jpg', '/home/nano/Desktop/images/18082025/21/29/image_18082025_21_29_24_9631.jpg', '/home/nano/Desktop/images/18082025/21/29/image_18082025_21_29_15_9661.jpg', '/home/nano/Desktop/images/18082025/21/28/image_18082025_21_29_05_10643.jpg', '/home/nano/Desktop/images/18082025/21/28/image_18082025_21_28_54_9629.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/29/image_18082025_21_29_44_9637.jpg
/home/nano/Desktop/images/18082025/21/29/image_18082025_21_29_35_10661.jpg
/home/nano/Desktop/images/18082025/21/29/image_18082025_21_29_24_9631.jpg
/home/nano/Desktop/images/18082025/21/29/image_18082025_21_29_15_9661.jpg
/home/nano/Desktop/images/18082025/21/28/image_18082025_21_29_05_10643.jpg
/home/nano/Desktop/images/18082025/21/28/image_18082025_21_28_54_9629.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377717988","1377717997","1377717993","1377717995","1377718001","1377717991"],"photo_ids_order":["1377717988","1377717991","1377717993","1377717995","1377717997","1377718001"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/229637d01af64622e7c4a2715916ceb8.jpg","text":"TemporaryFile(/tmp/multipartBody7979341808403222181asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545448907,"filename":"image_18082025_21_29_44_9637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9d2137c6b7ab53e4bf09158a9296623f.jpg","text":"TemporaryFile(/tmp/multipartBody7844191415051485186asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545448907,"filename":"image_18082025_21_29_05_10643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/932135abc88cd9cad0da1eb70075f837.jpg","text":"TemporaryFile(/tmp/multipartBody7086993746837405115asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545448907,"filename":"image_18082025_21_29_24_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f6909823d865d3c6c2aad3d8c7024a4d.jpg","text":"TemporaryFile(/tmp/multipartBody7174981465763117280asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545448907,"filename":"image_18082025_21_29_15_9661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/679c7df9a8be5ae577b003254f00713d.jpg","text":"TemporaryFile(/tmp/multipartBody4809106141679892836asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545448907,"filename":"image_18082025_21_28_54_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/60c25fd5a679e29f6b813befe8d792bf.jpg","text":"TemporaryFile(/tmp/multipartBody3674249067549278893asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545448907,"filename":"image_18082025_21_29_35_10661.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377717993","file1":"1377717991","file0":"1377717988","file4":"1377717997","file5":"1377718001","file3":"1377717995"},"map_files_photo_id_array":[{"photo_id":"1377718001","filename":"file5"},{"photo_id":"1377717993","filename":"file2"},{"photo_id":"1377717997","filename":"file4"},{"photo_id":"1377717991","filename":"file1"},{"photo_id":"1377717988","filename":"file0"},{"photo_id":"1377717995","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377717988":["hashtag1","hashtag2"]},{"1377717997":["hashtag1","hashtag2"]},{"1377717993":["hashtag1","hashtag2"]},{"1377717995":["hashtag1","hashtag2"]},{"1377718001":["hashtag1","hashtag2"]},{"1377717991":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377717988, 1377717997, 1377717993, 1377717995, 1377718001, 1377717991)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.981532096862793 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:30:32.780778
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/30/image_18082025_21_30_44_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/21/30/image_18082025_21_30_35_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/21/30/image_18082025_21_30_24_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/21/29/image_18082025_21_30_05_10670.jpg', 2), ('/home/nano/Desktop/images/18082025/21/29/image_18082025_21_29_54_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/08/44/image_18082025_08_44_15_10669.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/30/image_18082025_21_30_44_9630.jpg', '/home/nano/Desktop/images/18082025/21/30/image_18082025_21_30_35_10640.jpg', '/home/nano/Desktop/images/18082025/21/30/image_18082025_21_30_24_9645.jpg', '/home/nano/Desktop/images/18082025/21/29/image_18082025_21_30_05_10670.jpg', '/home/nano/Desktop/images/18082025/21/29/image_18082025_21_29_54_9627.jpg', '/home/nano/Desktop/images/18082025/08/44/image_18082025_08_44_15_10669.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/30/image_18082025_21_30_44_9630.jpg
/home/nano/Desktop/images/18082025/21/30/image_18082025_21_30_35_10640.jpg
/home/nano/Desktop/images/18082025/21/30/image_18082025_21_30_24_9645.jpg
/home/nano/Desktop/images/18082025/21/29/image_18082025_21_30_05_10670.jpg
/home/nano/Desktop/images/18082025/21/29/image_18082025_21_29_54_9627.jpg
/home/nano/Desktop/images/18082025/08/44/image_18082025_08_44_15_10669.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377718018","1377718012","1377718011","1377718014","1377718016","1377718010"],"photo_ids_order":["1377718010","1377718011","1377718012","1377718014","1377718016","1377718018"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b3878ba437f7c0e9afa3cf90afb33a62.jpg","text":"TemporaryFile(/tmp/multipartBody2495173205669396975asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545494150,"filename":"image_18082025_08_44_15_10669.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/019c047041bc091b7f5ed69e4f2f5817.jpg","text":"TemporaryFile(/tmp/multipartBody6996966221740421394asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545494150,"filename":"image_18082025_21_30_24_9645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/76373196b05e53efda5390abeaa79982.jpg","text":"TemporaryFile(/tmp/multipartBody1017732612185229637asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545494150,"filename":"image_18082025_21_30_35_10640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a77c10bf22c32bdcc4d3e60ada811b65.jpg","text":"TemporaryFile(/tmp/multipartBody2788985503512642111asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545494150,"filename":"image_18082025_21_30_05_10670.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/49bc14999c0da23b9c44d3d2e4412e19.jpg","text":"TemporaryFile(/tmp/multipartBody4881839478496856278asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545494150,"filename":"image_18082025_21_29_54_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bfbe0e47c75b6d25dbb26ae3c2ae350d.jpg","text":"TemporaryFile(/tmp/multipartBody4527415761911507439asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545494150,"filename":"image_18082025_21_30_44_9630.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377718012","file1":"1377718011","file0":"1377718010","file4":"1377718016","file5":"1377718018","file3":"1377718014"},"map_files_photo_id_array":[{"photo_id":"1377718018","filename":"file5"},{"photo_id":"1377718012","filename":"file2"},{"photo_id":"1377718016","filename":"file4"},{"photo_id":"1377718011","filename":"file1"},{"photo_id":"1377718010","filename":"file0"},{"photo_id":"1377718014","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377718018":["hashtag1","hashtag2"]},{"1377718012":["hashtag1","hashtag2"]},{"1377718011":["hashtag1","hashtag2"]},{"1377718014":["hashtag1","hashtag2"]},{"1377718016":["hashtag1","hashtag2"]},{"1377718010":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377718018, 1377718012, 1377718011, 1377718014, 1377718016, 1377718010)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.502737760543823 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:31:16.798884
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/31/image_18082025_21_31_35_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/21/31/image_18082025_21_31_25_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/21/31/image_18082025_21_31_14_9677.jpg', 2), ('/home/nano/Desktop/images/18082025/21/30/image_18082025_21_31_05_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/21/30/image_18082025_21_30_55_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/08/43/image_18082025_08_43_55_10632.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/31/image_18082025_21_31_35_9628.jpg', '/home/nano/Desktop/images/18082025/21/31/image_18082025_21_31_25_10637.jpg', '/home/nano/Desktop/images/18082025/21/31/image_18082025_21_31_14_9677.jpg', '/home/nano/Desktop/images/18082025/21/30/image_18082025_21_31_05_9654.jpg', '/home/nano/Desktop/images/18082025/21/30/image_18082025_21_30_55_10656.jpg', '/home/nano/Desktop/images/18082025/08/43/image_18082025_08_43_55_10632.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/31/image_18082025_21_31_35_9628.jpg
/home/nano/Desktop/images/18082025/21/31/image_18082025_21_31_25_10637.jpg
/home/nano/Desktop/images/18082025/21/31/image_18082025_21_31_14_9677.jpg
/home/nano/Desktop/images/18082025/21/30/image_18082025_21_31_05_9654.jpg
/home/nano/Desktop/images/18082025/21/30/image_18082025_21_30_55_10656.jpg
/home/nano/Desktop/images/18082025/08/43/image_18082025_08_43_55_10632.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377718035","1377718038","1377718026","1377718031","1377718040","1377718028"],"photo_ids_order":["1377718026","1377718028","1377718031","1377718035","1377718038","1377718040"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/05957c03e3c8b92c79fe78fa18db7ffd.jpg","text":"TemporaryFile(/tmp/multipartBody8470807188316414711asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545537959,"filename":"image_18082025_21_31_05_9654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/16a71f2addc80cdee2ddffc2055ab3ed.jpg","text":"TemporaryFile(/tmp/multipartBody1839808068008712296asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545537959,"filename":"image_18082025_21_30_55_10656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/25fcc6b46e0e781d759ac6eaf7134b85.jpg","text":"TemporaryFile(/tmp/multipartBody802894539918401118asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545537959,"filename":"image_18082025_21_31_35_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9d3eb3fc3fe2f04653b03def91d61b97.jpg","text":"TemporaryFile(/tmp/multipartBody5174249623016237858asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545537959,"filename":"image_18082025_21_31_14_9677.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7aee7b93ad6e3e2b046351acd1a82ff2.jpg","text":"TemporaryFile(/tmp/multipartBody4285130983890835943asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545537959,"filename":"image_18082025_08_43_55_10632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/88c11aeb758582232bed7108bcada3e0.jpg","text":"TemporaryFile(/tmp/multipartBody4744808460824721350asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545537959,"filename":"image_18082025_21_31_25_10637.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377718031","file1":"1377718028","file0":"1377718026","file4":"1377718038","file5":"1377718040","file3":"1377718035"},"map_files_photo_id_array":[{"photo_id":"1377718040","filename":"file5"},{"photo_id":"1377718031","filename":"file2"},{"photo_id":"1377718038","filename":"file4"},{"photo_id":"1377718028","filename":"file1"},{"photo_id":"1377718026","filename":"file0"},{"photo_id":"1377718035","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377718035":["hashtag1","hashtag2"]},{"1377718038":["hashtag1","hashtag2"]},{"1377718026":["hashtag1","hashtag2"]},{"1377718031":["hashtag1","hashtag2"]},{"1377718040":["hashtag1","hashtag2"]},{"1377718028":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377718035, 1377718038, 1377718026, 1377718031, 1377718040, 1377718028)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.080077648162842 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:32:02.362123
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/43/image_18082025_08_43_44_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/08/43/image_18082025_08_43_34_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/08/43/image_18082025_08_43_25_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/08/43/image_18082025_08_43_14_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/08/42/image_18082025_08_43_05_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/08/42/image_18082025_08_42_55_10635.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/08/43/image_18082025_08_43_44_9620.jpg', '/home/nano/Desktop/images/18082025/08/43/image_18082025_08_43_34_9642.jpg', '/home/nano/Desktop/images/18082025/08/43/image_18082025_08_43_25_10653.jpg', '/home/nano/Desktop/images/18082025/08/43/image_18082025_08_43_14_9645.jpg', '/home/nano/Desktop/images/18082025/08/42/image_18082025_08_43_05_9627.jpg', '/home/nano/Desktop/images/18082025/08/42/image_18082025_08_42_55_10635.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/08/43/image_18082025_08_43_44_9620.jpg
/home/nano/Desktop/images/18082025/08/43/image_18082025_08_43_34_9642.jpg
/home/nano/Desktop/images/18082025/08/43/image_18082025_08_43_25_10653.jpg
/home/nano/Desktop/images/18082025/08/43/image_18082025_08_43_14_9645.jpg
/home/nano/Desktop/images/18082025/08/42/image_18082025_08_43_05_9627.jpg
/home/nano/Desktop/images/18082025/08/42/image_18082025_08_42_55_10635.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.3993754386901855 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:32:16.899194
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/32/image_18082025_21_32_44_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/21/32/image_18082025_21_32_25_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/21/32/image_18082025_21_32_14_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/21/31/image_18082025_21_31_44_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/08/43/image_18082025_08_43_44_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/08/43/image_18082025_08_43_34_9642.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/32/image_18082025_21_32_44_9631.jpg', '/home/nano/Desktop/images/18082025/21/32/image_18082025_21_32_25_10647.jpg', '/home/nano/Desktop/images/18082025/21/32/image_18082025_21_32_14_9653.jpg', '/home/nano/Desktop/images/18082025/21/31/image_18082025_21_31_44_9630.jpg', '/home/nano/Desktop/images/18082025/08/43/image_18082025_08_43_44_9620.jpg', '/home/nano/Desktop/images/18082025/08/43/image_18082025_08_43_34_9642.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/32/image_18082025_21_32_44_9631.jpg
/home/nano/Desktop/images/18082025/21/32/image_18082025_21_32_25_10647.jpg
/home/nano/Desktop/images/18082025/21/32/image_18082025_21_32_14_9653.jpg
/home/nano/Desktop/images/18082025/21/31/image_18082025_21_31_44_9630.jpg
/home/nano/Desktop/images/18082025/08/43/image_18082025_08_43_44_9620.jpg
/home/nano/Desktop/images/18082025/08/43/image_18082025_08_43_34_9642.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377718057","1377718065","1377718068","1377718062","1377718070","1377718072"],"photo_ids_order":["1377718057","1377718062","1377718065","1377718068","1377718070","1377718072"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/646eeafe00cf6a385f522d1fdc6d3c18.jpg","text":"TemporaryFile(/tmp/multipartBody1153576701277018228asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545598209,"filename":"image_18082025_21_32_44_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/52e84a80974cd5c6918f6065b3bbb1b7.jpg","text":"TemporaryFile(/tmp/multipartBody8667862297848847237asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545598209,"filename":"image_18082025_21_32_14_9653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/577e439e292b00130648bb325106a81d.jpg","text":"TemporaryFile(/tmp/multipartBody4104855115794490648asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545598209,"filename":"image_18082025_21_31_44_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b631c794697486f0e3858f3c45ca334e.jpg","text":"TemporaryFile(/tmp/multipartBody3968490954396269223asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545598209,"filename":"image_18082025_21_32_25_10647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/16abd3925e09f7017e6eae1e8c2f4380.jpg","text":"TemporaryFile(/tmp/multipartBody1444875580168150085asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545598209,"filename":"image_18082025_08_43_44_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/072d4274aae78b5ecefb41abd4ffaba2.jpg","text":"TemporaryFile(/tmp/multipartBody359734943919121133asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545598209,"filename":"image_18082025_08_43_34_9642.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377718065","file1":"1377718062","file0":"1377718057","file4":"1377718070","file5":"1377718072","file3":"1377718068"},"map_files_photo_id_array":[{"photo_id":"1377718072","filename":"file5"},{"photo_id":"1377718065","filename":"file2"},{"photo_id":"1377718070","filename":"file4"},{"photo_id":"1377718062","filename":"file1"},{"photo_id":"1377718057","filename":"file0"},{"photo_id":"1377718068","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377718057":["hashtag1","hashtag2"]},{"1377718065":["hashtag1","hashtag2"]},{"1377718068":["hashtag1","hashtag2"]},{"1377718062":["hashtag1","hashtag2"]},{"1377718070":["hashtag1","hashtag2"]},{"1377718072":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377718057, 1377718065, 1377718068, 1377718062, 1377718070, 1377718072)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.75077414512634 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:33:02.780235
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/43/image_18082025_08_43_25_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/08/43/image_18082025_08_43_14_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/08/42/image_18082025_08_43_05_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/08/42/image_18082025_08_42_55_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/08/42/image_18082025_08_42_44_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/08/42/image_18082025_08_42_35_9621.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/08/43/image_18082025_08_43_25_10653.jpg', '/home/nano/Desktop/images/18082025/08/43/image_18082025_08_43_14_9645.jpg', '/home/nano/Desktop/images/18082025/08/42/image_18082025_08_43_05_9627.jpg', '/home/nano/Desktop/images/18082025/08/42/image_18082025_08_42_55_10635.jpg', '/home/nano/Desktop/images/18082025/08/42/image_18082025_08_42_44_9623.jpg', '/home/nano/Desktop/images/18082025/08/42/image_18082025_08_42_35_9621.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/08/43/image_18082025_08_43_25_10653.jpg
/home/nano/Desktop/images/18082025/08/43/image_18082025_08_43_14_9645.jpg
/home/nano/Desktop/images/18082025/08/42/image_18082025_08_43_05_9627.jpg
/home/nano/Desktop/images/18082025/08/42/image_18082025_08_42_55_10635.jpg
/home/nano/Desktop/images/18082025/08/42/image_18082025_08_42_44_9623.jpg
/home/nano/Desktop/images/18082025/08/42/image_18082025_08_42_35_9621.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377718084","1377718078","1377718086","1377718080","1377718088","1377718091"],"photo_ids_order":["1377718078","1377718080","1377718084","1377718086","1377718088","1377718091"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0b2bdb630698ffa47b051da3ba9545ca.jpg","text":"TemporaryFile(/tmp/multipartBody941587299381470804asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545643992,"filename":"image_18082025_08_43_05_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/73e119f861d2cbd01cd0fddf66c735db.jpg","text":"TemporaryFile(/tmp/multipartBody1240986791133033953asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545643992,"filename":"image_18082025_08_43_25_10653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c830b081549adbdf383964b08a5c6f29.jpg","text":"TemporaryFile(/tmp/multipartBody8770144066390117905asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545643992,"filename":"image_18082025_08_42_55_10635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cd180d6eff7695328f35ed02af35dc95.jpg","text":"TemporaryFile(/tmp/multipartBody5645498992313721064asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545643992,"filename":"image_18082025_08_43_14_9645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/509a4574cfbdd75add68e307ba60ef85.jpg","text":"TemporaryFile(/tmp/multipartBody3299549531427106661asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545643992,"filename":"image_18082025_08_42_44_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ce0d58c341c128c414d382bcd485b48e.jpg","text":"TemporaryFile(/tmp/multipartBody4446117885778694211asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545643992,"filename":"image_18082025_08_42_35_9621.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377718084","file1":"1377718080","file0":"1377718078","file4":"1377718088","file5":"1377718091","file3":"1377718086"},"map_files_photo_id_array":[{"photo_id":"1377718091","filename":"file5"},{"photo_id":"1377718084","filename":"file2"},{"photo_id":"1377718088","filename":"file4"},{"photo_id":"1377718080","filename":"file1"},{"photo_id":"1377718078","filename":"file0"},{"photo_id":"1377718086","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377718084":["hashtag1","hashtag2"]},{"1377718078":["hashtag1","hashtag2"]},{"1377718086":["hashtag1","hashtag2"]},{"1377718080":["hashtag1","hashtag2"]},{"1377718088":["hashtag1","hashtag2"]},{"1377718091":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377718084, 1377718078, 1377718086, 1377718080, 1377718088, 1377718091)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.556713819503784 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:33:46.977266
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/33/image_18082025_21_33_45_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/21/33/image_18082025_21_33_34_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/21/33/image_18082025_21_33_15_10668.jpg', 2), ('/home/nano/Desktop/images/18082025/21/32/image_18082025_21_33_04_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/21/32/image_18082025_21_32_55_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/08/42/image_18082025_08_42_25_10634.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/33/image_18082025_21_33_45_10638.jpg', '/home/nano/Desktop/images/18082025/21/33/image_18082025_21_33_34_9626.jpg', '/home/nano/Desktop/images/18082025/21/33/image_18082025_21_33_15_10668.jpg', '/home/nano/Desktop/images/18082025/21/32/image_18082025_21_33_04_9640.jpg', '/home/nano/Desktop/images/18082025/21/32/image_18082025_21_32_55_10642.jpg', '/home/nano/Desktop/images/18082025/08/42/image_18082025_08_42_25_10634.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/33/image_18082025_21_33_45_10638.jpg
/home/nano/Desktop/images/18082025/21/33/image_18082025_21_33_34_9626.jpg
/home/nano/Desktop/images/18082025/21/33/image_18082025_21_33_15_10668.jpg
/home/nano/Desktop/images/18082025/21/32/image_18082025_21_33_04_9640.jpg
/home/nano/Desktop/images/18082025/21/32/image_18082025_21_32_55_10642.jpg
/home/nano/Desktop/images/18082025/08/42/image_18082025_08_42_25_10634.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377718108","1377718110","1377718107","1377718112","1377718106","1377718109"],"photo_ids_order":["1377718106","1377718107","1377718108","1377718109","1377718110","1377718112"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0796bb048057d41698cc79050b7b68bc.jpg","text":"TemporaryFile(/tmp/multipartBody4352773643328743782asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545688393,"filename":"image_18082025_21_33_15_10668.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c23fd7692cb3309214c6c10dbd633180.jpg","text":"TemporaryFile(/tmp/multipartBody7514013188065364019asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545688393,"filename":"image_18082025_21_32_55_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a2c30807d16c4f182004213ccb1dd632.jpg","text":"TemporaryFile(/tmp/multipartBody1178381876371443595asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545688393,"filename":"image_18082025_21_33_34_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8ee94b495ec2ccd762060397f27ec6e1.jpg","text":"TemporaryFile(/tmp/multipartBody6671414634186311302asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545688393,"filename":"image_18082025_08_42_25_10634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e995c55595b1a6e00ca60909a9b83394.jpg","text":"TemporaryFile(/tmp/multipartBody1653665851476424274asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545688393,"filename":"image_18082025_21_33_45_10638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/528bbf067dd2cc89a244ca5d174f2e87.jpg","text":"TemporaryFile(/tmp/multipartBody1587798317110817641asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545688393,"filename":"image_18082025_21_33_04_9640.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377718108","file1":"1377718107","file0":"1377718106","file4":"1377718110","file5":"1377718112","file3":"1377718109"},"map_files_photo_id_array":[{"photo_id":"1377718112","filename":"file5"},{"photo_id":"1377718108","filename":"file2"},{"photo_id":"1377718110","filename":"file4"},{"photo_id":"1377718107","filename":"file1"},{"photo_id":"1377718106","filename":"file0"},{"photo_id":"1377718109","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377718108":["hashtag1","hashtag2"]},{"1377718110":["hashtag1","hashtag2"]},{"1377718107":["hashtag1","hashtag2"]},{"1377718112":["hashtag1","hashtag2"]},{"1377718106":["hashtag1","hashtag2"]},{"1377718109":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377718108, 1377718110, 1377718107, 1377718112, 1377718106, 1377718109)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.299176692962646 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:34:32.108854
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/34/image_18082025_21_34_45_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/21/34/image_18082025_21_34_34_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/21/34/image_18082025_21_34_25_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/21/34/image_18082025_21_34_15_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/21/33/image_18082025_21_34_04_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/21/33/image_18082025_21_33_55_9649.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/34/image_18082025_21_34_45_10640.jpg', '/home/nano/Desktop/images/18082025/21/34/image_18082025_21_34_34_9632.jpg', '/home/nano/Desktop/images/18082025/21/34/image_18082025_21_34_25_9630.jpg', '/home/nano/Desktop/images/18082025/21/34/image_18082025_21_34_15_10665.jpg', '/home/nano/Desktop/images/18082025/21/33/image_18082025_21_34_04_9659.jpg', '/home/nano/Desktop/images/18082025/21/33/image_18082025_21_33_55_9649.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/34/image_18082025_21_34_45_10640.jpg
/home/nano/Desktop/images/18082025/21/34/image_18082025_21_34_34_9632.jpg
/home/nano/Desktop/images/18082025/21/34/image_18082025_21_34_25_9630.jpg
/home/nano/Desktop/images/18082025/21/34/image_18082025_21_34_15_10665.jpg
/home/nano/Desktop/images/18082025/21/33/image_18082025_21_34_04_9659.jpg
/home/nano/Desktop/images/18082025/21/33/image_18082025_21_33_55_9649.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377718126","1377718131","1377718134","1377718128","1377718125","1377718124"],"photo_ids_order":["1377718124","1377718125","1377718126","1377718128","1377718131","1377718134"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/983cdd2071da8515aad82334eb328149.jpg","text":"TemporaryFile(/tmp/multipartBody7901788948929398247asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545733465,"filename":"image_18082025_21_34_25_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/65627a84f3e287c431ed7115f2110f17.jpg","text":"TemporaryFile(/tmp/multipartBody870310860258532303asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545733465,"filename":"image_18082025_21_34_04_9659.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dcacf8874766ba1bebaf463e58086a78.jpg","text":"TemporaryFile(/tmp/multipartBody5577851625151740433asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545733465,"filename":"image_18082025_21_33_55_9649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f5b7476aedfa651224807b4176f3e969.jpg","text":"TemporaryFile(/tmp/multipartBody2763435376289571073asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545733465,"filename":"image_18082025_21_34_15_10665.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a4258984a0a0fb4413d6692d712a9224.jpg","text":"TemporaryFile(/tmp/multipartBody4860971150905163963asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545733465,"filename":"image_18082025_21_34_34_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/da57a159c8ba82d3d2da01a6f535df2e.jpg","text":"TemporaryFile(/tmp/multipartBody1699060517696917269asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545733465,"filename":"image_18082025_21_34_45_10640.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377718126","file1":"1377718125","file0":"1377718124","file4":"1377718131","file5":"1377718134","file3":"1377718128"},"map_files_photo_id_array":[{"photo_id":"1377718134","filename":"file5"},{"photo_id":"1377718126","filename":"file2"},{"photo_id":"1377718131","filename":"file4"},{"photo_id":"1377718125","filename":"file1"},{"photo_id":"1377718124","filename":"file0"},{"photo_id":"1377718128","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377718126":["hashtag1","hashtag2"]},{"1377718131":["hashtag1","hashtag2"]},{"1377718134":["hashtag1","hashtag2"]},{"1377718128":["hashtag1","hashtag2"]},{"1377718125":["hashtag1","hashtag2"]},{"1377718124":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377718126, 1377718131, 1377718134, 1377718128, 1377718125, 1377718124)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.910370111465454 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:35:17.290256
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/35/image_18082025_21_35_45_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/21/35/image_18082025_21_35_35_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/21/35/image_18082025_21_35_24_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/21/35/image_18082025_21_35_15_10673.jpg', 2), ('/home/nano/Desktop/images/18082025/21/34/image_18082025_21_35_04_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/21/34/image_18082025_21_34_54_9633.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/35/image_18082025_21_35_45_9628.jpg', '/home/nano/Desktop/images/18082025/21/35/image_18082025_21_35_35_10638.jpg', '/home/nano/Desktop/images/18082025/21/35/image_18082025_21_35_24_9630.jpg', '/home/nano/Desktop/images/18082025/21/35/image_18082025_21_35_15_10673.jpg', '/home/nano/Desktop/images/18082025/21/34/image_18082025_21_35_04_9656.jpg', '/home/nano/Desktop/images/18082025/21/34/image_18082025_21_34_54_9633.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/35/image_18082025_21_35_45_9628.jpg
/home/nano/Desktop/images/18082025/21/35/image_18082025_21_35_35_10638.jpg
/home/nano/Desktop/images/18082025/21/35/image_18082025_21_35_24_9630.jpg
/home/nano/Desktop/images/18082025/21/35/image_18082025_21_35_15_10673.jpg
/home/nano/Desktop/images/18082025/21/34/image_18082025_21_35_04_9656.jpg
/home/nano/Desktop/images/18082025/21/34/image_18082025_21_34_54_9633.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377718156","1377718144","1377718158","1377718152","1377718146","1377718149"],"photo_ids_order":["1377718144","1377718146","1377718149","1377718152","1377718156","1377718158"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/20fff2c116249e21951f2b3aecccd1ee.jpg","text":"TemporaryFile(/tmp/multipartBody3938071824114965680asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545778496,"filename":"image_18082025_21_35_04_9656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e82304e0b3e042e19f467ddc0a40a6f8.jpg","text":"TemporaryFile(/tmp/multipartBody3251794233386213909asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545778496,"filename":"image_18082025_21_35_45_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/53fb3fadba32d8a035307e3da7c813ee.jpg","text":"TemporaryFile(/tmp/multipartBody6406927032855366756asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545778496,"filename":"image_18082025_21_34_54_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c9b48d1a3115d37ecfe8cf0af59c2580.jpg","text":"TemporaryFile(/tmp/multipartBody8016086801206546954asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545778496,"filename":"image_18082025_21_35_15_10673.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/78761ce8c15a2bdd96bf85223e0800f3.jpg","text":"TemporaryFile(/tmp/multipartBody6547661237100391974asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545778496,"filename":"image_18082025_21_35_35_10638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5bf7c9436a7acf7811b4dd409af5034d.jpg","text":"TemporaryFile(/tmp/multipartBody2484209640484701157asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545778496,"filename":"image_18082025_21_35_24_9630.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377718149","file1":"1377718146","file0":"1377718144","file4":"1377718156","file5":"1377718158","file3":"1377718152"},"map_files_photo_id_array":[{"photo_id":"1377718158","filename":"file5"},{"photo_id":"1377718149","filename":"file2"},{"photo_id":"1377718156","filename":"file4"},{"photo_id":"1377718146","filename":"file1"},{"photo_id":"1377718144","filename":"file0"},{"photo_id":"1377718152","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377718156":["hashtag1","hashtag2"]},{"1377718144":["hashtag1","hashtag2"]},{"1377718158":["hashtag1","hashtag2"]},{"1377718152":["hashtag1","hashtag2"]},{"1377718146":["hashtag1","hashtag2"]},{"1377718149":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377718156, 1377718144, 1377718158, 1377718152, 1377718146, 1377718149)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.473724842071533 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:36:02.778670
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/42/image_18082025_08_42_14_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/08/41/image_18082025_08_42_05_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/08/41/image_18082025_08_41_54_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/08/41/image_18082025_08_41_44_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/08/41/image_18082025_08_41_15_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/08/40/image_18082025_08_41_05_10653.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/08/42/image_18082025_08_42_14_9643.jpg', '/home/nano/Desktop/images/18082025/08/41/image_18082025_08_42_05_10661.jpg', '/home/nano/Desktop/images/18082025/08/41/image_18082025_08_41_54_9623.jpg', '/home/nano/Desktop/images/18082025/08/41/image_18082025_08_41_44_9619.jpg', '/home/nano/Desktop/images/18082025/08/41/image_18082025_08_41_15_9622.jpg', '/home/nano/Desktop/images/18082025/08/40/image_18082025_08_41_05_10653.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/08/42/image_18082025_08_42_14_9643.jpg
/home/nano/Desktop/images/18082025/08/41/image_18082025_08_42_05_10661.jpg
/home/nano/Desktop/images/18082025/08/41/image_18082025_08_41_54_9623.jpg
/home/nano/Desktop/images/18082025/08/41/image_18082025_08_41_44_9619.jpg
/home/nano/Desktop/images/18082025/08/41/image_18082025_08_41_15_9622.jpg
/home/nano/Desktop/images/18082025/08/40/image_18082025_08_41_05_10653.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377718183","1377718176","1377718171","1377718180","1377718174","1377718168"],"photo_ids_order":["1377718168","1377718171","1377718174","1377718176","1377718180","1377718183"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bb163f5285461fa5ece75a55ac0d41b1.jpg","text":"TemporaryFile(/tmp/multipartBody1753863284046752679asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545824006,"filename":"image_18082025_08_41_05_10653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/10e3df27ba4d095e14f3064376e27b38.jpg","text":"TemporaryFile(/tmp/multipartBody8496453581546392827asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545824006,"filename":"image_18082025_08_41_44_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/71744b670e9b28ca5026bbf4f4fde714.jpg","text":"TemporaryFile(/tmp/multipartBody5427544633906075754asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545824006,"filename":"image_18082025_08_42_05_10661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e89fd7989e93c747ca57ecd3bea1a60e.jpg","text":"TemporaryFile(/tmp/multipartBody954242919848162467asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545824006,"filename":"image_18082025_08_41_15_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/50aed72bebe99c1cbe23816e0a47d192.jpg","text":"TemporaryFile(/tmp/multipartBody4195165364799229608asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545824006,"filename":"image_18082025_08_41_54_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/14e05964b5e3fcbe2146a339c6fce6ce.jpg","text":"TemporaryFile(/tmp/multipartBody505884132900355900asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545824006,"filename":"image_18082025_08_42_14_9643.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377718174","file1":"1377718171","file0":"1377718168","file4":"1377718180","file5":"1377718183","file3":"1377718176"},"map_files_photo_id_array":[{"photo_id":"1377718183","filename":"file5"},{"photo_id":"1377718174","filename":"file2"},{"photo_id":"1377718180","filename":"file4"},{"photo_id":"1377718171","filename":"file1"},{"photo_id":"1377718168","filename":"file0"},{"photo_id":"1377718176","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377718183":["hashtag1","hashtag2"]},{"1377718176":["hashtag1","hashtag2"]},{"1377718171":["hashtag1","hashtag2"]},{"1377718180":["hashtag1","hashtag2"]},{"1377718174":["hashtag1","hashtag2"]},{"1377718168":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377718183, 1377718176, 1377718171, 1377718180, 1377718174, 1377718168)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.6990385055542 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:36:47.343319
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/36/image_18082025_21_36_45_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/21/36/image_18082025_21_36_24_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/21/36/image_18082025_21_36_15_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/21/35/image_18082025_21_36_05_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/21/35/image_18082025_21_35_54_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/08/40/image_18082025_08_40_54_9626.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/36/image_18082025_21_36_45_9629.jpg', '/home/nano/Desktop/images/18082025/21/36/image_18082025_21_36_24_9632.jpg', '/home/nano/Desktop/images/18082025/21/36/image_18082025_21_36_15_9657.jpg', '/home/nano/Desktop/images/18082025/21/35/image_18082025_21_36_05_10654.jpg', '/home/nano/Desktop/images/18082025/21/35/image_18082025_21_35_54_9630.jpg', '/home/nano/Desktop/images/18082025/08/40/image_18082025_08_40_54_9626.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/36/image_18082025_21_36_45_9629.jpg
/home/nano/Desktop/images/18082025/21/36/image_18082025_21_36_24_9632.jpg
/home/nano/Desktop/images/18082025/21/36/image_18082025_21_36_15_9657.jpg
/home/nano/Desktop/images/18082025/21/35/image_18082025_21_36_05_10654.jpg
/home/nano/Desktop/images/18082025/21/35/image_18082025_21_35_54_9630.jpg
/home/nano/Desktop/images/18082025/08/40/image_18082025_08_40_54_9626.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377718194","1377718197","1377718201","1377718191","1377718199","1377718198"],"photo_ids_order":["1377718191","1377718194","1377718197","1377718198","1377718199","1377718201"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bf4cf3851bb71d9556be1557e26b5f1b.jpg","text":"TemporaryFile(/tmp/multipartBody3095187826317395487asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545868716,"filename":"image_18082025_21_36_24_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/213bb79b45b4faed8b2ad5a8a4686ba3.jpg","text":"TemporaryFile(/tmp/multipartBody4788028165370286142asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545868716,"filename":"image_18082025_21_36_15_9657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/313b1049a42a40aeae4b7be0aa63fb25.jpg","text":"TemporaryFile(/tmp/multipartBody2224458489314757932asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545868716,"filename":"image_18082025_08_40_54_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/daa0932188a602473b631d857719295d.jpg","text":"TemporaryFile(/tmp/multipartBody1081690533949997074asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545868716,"filename":"image_18082025_21_36_45_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1f565b8a727b6f679290b1c3583f56a5.jpg","text":"TemporaryFile(/tmp/multipartBody1743965901783398369asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545868716,"filename":"image_18082025_21_35_54_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/28b97cceae77e7cae6c438dce90aa5f2.jpg","text":"TemporaryFile(/tmp/multipartBody1448594357404995980asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545868716,"filename":"image_18082025_21_36_05_10654.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377718197","file1":"1377718194","file0":"1377718191","file4":"1377718199","file5":"1377718201","file3":"1377718198"},"map_files_photo_id_array":[{"photo_id":"1377718201","filename":"file5"},{"photo_id":"1377718197","filename":"file2"},{"photo_id":"1377718199","filename":"file4"},{"photo_id":"1377718194","filename":"file1"},{"photo_id":"1377718191","filename":"file0"},{"photo_id":"1377718198","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377718194":["hashtag1","hashtag2"]},{"1377718197":["hashtag1","hashtag2"]},{"1377718201":["hashtag1","hashtag2"]},{"1377718191":["hashtag1","hashtag2"]},{"1377718199":["hashtag1","hashtag2"]},{"1377718198":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377718194, 1377718197, 1377718201, 1377718191, 1377718199, 1377718198)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.71953582763672 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:37:32.444508
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/37/image_18082025_21_37_35_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/21/37/image_18082025_21_37_24_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/21/37/image_18082025_21_37_14_9672.jpg', 2), ('/home/nano/Desktop/images/18082025/21/36/image_18082025_21_37_05_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/21/36/image_18082025_21_36_54_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/08/40/image_18082025_08_40_45_10632.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/37/image_18082025_21_37_35_10638.jpg', '/home/nano/Desktop/images/18082025/21/37/image_18082025_21_37_24_9630.jpg', '/home/nano/Desktop/images/18082025/21/37/image_18082025_21_37_14_9672.jpg', '/home/nano/Desktop/images/18082025/21/36/image_18082025_21_37_05_10644.jpg', '/home/nano/Desktop/images/18082025/21/36/image_18082025_21_36_54_9632.jpg', '/home/nano/Desktop/images/18082025/08/40/image_18082025_08_40_45_10632.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/37/image_18082025_21_37_35_10638.jpg
/home/nano/Desktop/images/18082025/21/37/image_18082025_21_37_24_9630.jpg
/home/nano/Desktop/images/18082025/21/37/image_18082025_21_37_14_9672.jpg
/home/nano/Desktop/images/18082025/21/36/image_18082025_21_37_05_10644.jpg
/home/nano/Desktop/images/18082025/21/36/image_18082025_21_36_54_9632.jpg
/home/nano/Desktop/images/18082025/08/40/image_18082025_08_40_45_10632.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377718228","1377718221","1377718215","1377718218","1377718223","1377718226"],"photo_ids_order":["1377718215","1377718218","1377718221","1377718223","1377718226","1377718228"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/25a31782937c87869914bb76019cd41d.jpg","text":"TemporaryFile(/tmp/multipartBody3912840696628947933asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545913842,"filename":"image_18082025_08_40_45_10632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2f642dddc1d5293d51c20faf4a0c7373.jpg","text":"TemporaryFile(/tmp/multipartBody4482478748852254820asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545913842,"filename":"image_18082025_21_37_14_9672.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e1f14c42716948da01fe757f3b479a54.jpg","text":"TemporaryFile(/tmp/multipartBody7667684048354969014asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545913842,"filename":"image_18082025_21_37_35_10638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/069b17213c799fb2763a6040c40101d4.jpg","text":"TemporaryFile(/tmp/multipartBody8440236612226209503asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545913842,"filename":"image_18082025_21_37_24_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b87fab34e435bcf8560071186e60344e.jpg","text":"TemporaryFile(/tmp/multipartBody1387614509086724540asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545913842,"filename":"image_18082025_21_37_05_10644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b1525cfed8e401b3c828de59c91a2394.jpg","text":"TemporaryFile(/tmp/multipartBody2269127276291022114asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545913842,"filename":"image_18082025_21_36_54_9632.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377718221","file1":"1377718218","file0":"1377718215","file4":"1377718226","file5":"1377718228","file3":"1377718223"},"map_files_photo_id_array":[{"photo_id":"1377718228","filename":"file5"},{"photo_id":"1377718221","filename":"file2"},{"photo_id":"1377718226","filename":"file4"},{"photo_id":"1377718218","filename":"file1"},{"photo_id":"1377718215","filename":"file0"},{"photo_id":"1377718223","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377718228":["hashtag1","hashtag2"]},{"1377718221":["hashtag1","hashtag2"]},{"1377718215":["hashtag1","hashtag2"]},{"1377718218":["hashtag1","hashtag2"]},{"1377718223":["hashtag1","hashtag2"]},{"1377718226":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377718228, 1377718221, 1377718215, 1377718218, 1377718223, 1377718226)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.868303060531616 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:38:17.547760
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/38/image_18082025_21_38_44_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/21/38/image_18082025_21_38_35_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/21/38/image_18082025_21_38_25_10662.jpg', 2), ('/home/nano/Desktop/images/18082025/21/38/image_18082025_21_38_14_9671.jpg', 2), ('/home/nano/Desktop/images/18082025/21/37/image_18082025_21_38_05_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/21/37/image_18082025_21_37_55_10640.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/38/image_18082025_21_38_44_9628.jpg', '/home/nano/Desktop/images/18082025/21/38/image_18082025_21_38_35_9653.jpg', '/home/nano/Desktop/images/18082025/21/38/image_18082025_21_38_25_10662.jpg', '/home/nano/Desktop/images/18082025/21/38/image_18082025_21_38_14_9671.jpg', '/home/nano/Desktop/images/18082025/21/37/image_18082025_21_38_05_9643.jpg', '/home/nano/Desktop/images/18082025/21/37/image_18082025_21_37_55_10640.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/38/image_18082025_21_38_44_9628.jpg
/home/nano/Desktop/images/18082025/21/38/image_18082025_21_38_35_9653.jpg
/home/nano/Desktop/images/18082025/21/38/image_18082025_21_38_25_10662.jpg
/home/nano/Desktop/images/18082025/21/38/image_18082025_21_38_14_9671.jpg
/home/nano/Desktop/images/18082025/21/37/image_18082025_21_38_05_9643.jpg
/home/nano/Desktop/images/18082025/21/37/image_18082025_21_37_55_10640.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377718240","1377718243","1377718248","1377718238","1377718247","1377718246"],"photo_ids_order":["1377718238","1377718240","1377718243","1377718246","1377718247","1377718248"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b4bbdfb8d03d0d4b4bf96fa7b24ee6ec.jpg","text":"TemporaryFile(/tmp/multipartBody6288387310569960314asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545959125,"filename":"image_18082025_21_38_35_9653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bce243da4cf1999fb665d60c12acd0a2.jpg","text":"TemporaryFile(/tmp/multipartBody5305201044418340107asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545959125,"filename":"image_18082025_21_38_25_10662.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b4ef9d238a7908ec057a7b04c5ba2eb9.jpg","text":"TemporaryFile(/tmp/multipartBody4699795716956596915asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545959125,"filename":"image_18082025_21_37_55_10640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c59e7120806f809730d73d3719fe7a70.jpg","text":"TemporaryFile(/tmp/multipartBody3839298743590173438asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545959125,"filename":"image_18082025_21_38_44_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/aa49948ffd04d9491c7079b950b08db4.jpg","text":"TemporaryFile(/tmp/multipartBody4562729358670524681asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545959125,"filename":"image_18082025_21_38_05_9643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2085cd96779e5ff343ded135c795f028.jpg","text":"TemporaryFile(/tmp/multipartBody3599351639172229404asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755545959125,"filename":"image_18082025_21_38_14_9671.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377718243","file1":"1377718240","file0":"1377718238","file4":"1377718247","file5":"1377718248","file3":"1377718246"},"map_files_photo_id_array":[{"photo_id":"1377718248","filename":"file5"},{"photo_id":"1377718243","filename":"file2"},{"photo_id":"1377718247","filename":"file4"},{"photo_id":"1377718240","filename":"file1"},{"photo_id":"1377718238","filename":"file0"},{"photo_id":"1377718246","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377718240":["hashtag1","hashtag2"]},{"1377718243":["hashtag1","hashtag2"]},{"1377718248":["hashtag1","hashtag2"]},{"1377718238":["hashtag1","hashtag2"]},{"1377718247":["hashtag1","hashtag2"]},{"1377718246":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377718240, 1377718243, 1377718248, 1377718238, 1377718247, 1377718246)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.424148082733154 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:39:03.687288
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/40/image_18082025_08_40_34_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/08/40/image_18082025_08_40_24_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/08/40/image_18082025_08_40_15_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/08/39/image_18082025_08_40_04_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/08/39/image_18082025_08_39_55_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/08/39/image_18082025_08_39_45_10635.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/08/40/image_18082025_08_40_34_9632.jpg', '/home/nano/Desktop/images/18082025/08/40/image_18082025_08_40_24_9622.jpg', '/home/nano/Desktop/images/18082025/08/40/image_18082025_08_40_15_10665.jpg', '/home/nano/Desktop/images/18082025/08/39/image_18082025_08_40_04_9628.jpg', '/home/nano/Desktop/images/18082025/08/39/image_18082025_08_39_55_9625.jpg', '/home/nano/Desktop/images/18082025/08/39/image_18082025_08_39_45_10635.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/08/40/image_18082025_08_40_34_9632.jpg
/home/nano/Desktop/images/18082025/08/40/image_18082025_08_40_24_9622.jpg
/home/nano/Desktop/images/18082025/08/40/image_18082025_08_40_15_10665.jpg
/home/nano/Desktop/images/18082025/08/39/image_18082025_08_40_04_9628.jpg
/home/nano/Desktop/images/18082025/08/39/image_18082025_08_39_55_9625.jpg
/home/nano/Desktop/images/18082025/08/39/image_18082025_08_39_45_10635.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377718255","1377718275","1377718263","1377718260","1377718271","1377718267"],"photo_ids_order":["1377718255","1377718260","1377718263","1377718267","1377718271","1377718275"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e4ac2a8d33a602d3d4c813b7f0660d59.jpg","text":"TemporaryFile(/tmp/multipartBody7534414411947719878asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546005164,"filename":"image_18082025_08_40_34_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/540d547c69bb9d558f4f4fadebe31c9c.jpg","text":"TemporaryFile(/tmp/multipartBody1346691602445917656asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546005164,"filename":"image_18082025_08_39_45_10635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b3c4dbcf917af463a0e22b44f77d8962.jpg","text":"TemporaryFile(/tmp/multipartBody7007079982729920143asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546005164,"filename":"image_18082025_08_40_15_10665.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3a427cdb27cf8e975b9b2e6bff990a4e.jpg","text":"TemporaryFile(/tmp/multipartBody7274867272965087788asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546005164,"filename":"image_18082025_08_40_24_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d6c1f5f140467aa977fa7b736a015988.jpg","text":"TemporaryFile(/tmp/multipartBody499422480329922051asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546005164,"filename":"image_18082025_08_39_55_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ec295b1125dcd977e897f988b20fd686.jpg","text":"TemporaryFile(/tmp/multipartBody1926915893514411623asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546005164,"filename":"image_18082025_08_40_04_9628.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377718263","file1":"1377718260","file0":"1377718255","file4":"1377718271","file5":"1377718275","file3":"1377718267"},"map_files_photo_id_array":[{"photo_id":"1377718275","filename":"file5"},{"photo_id":"1377718263","filename":"file2"},{"photo_id":"1377718271","filename":"file4"},{"photo_id":"1377718260","filename":"file1"},{"photo_id":"1377718255","filename":"file0"},{"photo_id":"1377718267","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377718255":["hashtag1","hashtag2"]},{"1377718275":["hashtag1","hashtag2"]},{"1377718263":["hashtag1","hashtag2"]},{"1377718260":["hashtag1","hashtag2"]},{"1377718271":["hashtag1","hashtag2"]},{"1377718267":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377718255, 1377718275, 1377718263, 1377718260, 1377718271, 1377718267)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.67060565948486 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:39:47.646880
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/39/image_18082025_21_39_44_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/21/39/image_18082025_21_39_34_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/21/39/image_18082025_21_39_25_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/21/39/image_18082025_21_39_14_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/21/38/image_18082025_21_39_05_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/21/38/image_18082025_21_38_55_10641.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/39/image_18082025_21_39_44_9631.jpg', '/home/nano/Desktop/images/18082025/21/39/image_18082025_21_39_34_9628.jpg', '/home/nano/Desktop/images/18082025/21/39/image_18082025_21_39_25_10639.jpg', '/home/nano/Desktop/images/18082025/21/39/image_18082025_21_39_14_9649.jpg', '/home/nano/Desktop/images/18082025/21/38/image_18082025_21_39_05_9642.jpg', '/home/nano/Desktop/images/18082025/21/38/image_18082025_21_38_55_10641.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/39/image_18082025_21_39_44_9631.jpg
/home/nano/Desktop/images/18082025/21/39/image_18082025_21_39_34_9628.jpg
/home/nano/Desktop/images/18082025/21/39/image_18082025_21_39_25_10639.jpg
/home/nano/Desktop/images/18082025/21/39/image_18082025_21_39_14_9649.jpg
/home/nano/Desktop/images/18082025/21/38/image_18082025_21_39_05_9642.jpg
/home/nano/Desktop/images/18082025/21/38/image_18082025_21_38_55_10641.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377718293","1377718296","1377718299","1377718295","1377718301","1377718294"],"photo_ids_order":["1377718293","1377718294","1377718295","1377718296","1377718299","1377718301"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/66b811b47e4ceff12cfd0a9089600896.jpg","text":"TemporaryFile(/tmp/multipartBody7659919040065026731asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546049314,"filename":"image_18082025_21_39_44_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3b5404416e3498325db1764f6c3bbf6c.jpg","text":"TemporaryFile(/tmp/multipartBody902740457287311395asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546049314,"filename":"image_18082025_21_39_14_9649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1e3d715c7d02ffd885512bc76c4ba55c.jpg","text":"TemporaryFile(/tmp/multipartBody4935664298410672857asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546049314,"filename":"image_18082025_21_39_05_9642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/822642d87451f357c22d41b6b5ae078a.jpg","text":"TemporaryFile(/tmp/multipartBody8926411796460452845asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546049314,"filename":"image_18082025_21_39_25_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a48d6c34354452c655813ca63e0d834b.jpg","text":"TemporaryFile(/tmp/multipartBody2148611830367783198asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546049314,"filename":"image_18082025_21_38_55_10641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bc789f4d19f6414fa0978172456af537.jpg","text":"TemporaryFile(/tmp/multipartBody8781213543063606363asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546049314,"filename":"image_18082025_21_39_34_9628.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377718295","file1":"1377718294","file0":"1377718293","file4":"1377718299","file5":"1377718301","file3":"1377718296"},"map_files_photo_id_array":[{"photo_id":"1377718301","filename":"file5"},{"photo_id":"1377718295","filename":"file2"},{"photo_id":"1377718299","filename":"file4"},{"photo_id":"1377718294","filename":"file1"},{"photo_id":"1377718293","filename":"file0"},{"photo_id":"1377718296","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377718293":["hashtag1","hashtag2"]},{"1377718296":["hashtag1","hashtag2"]},{"1377718299":["hashtag1","hashtag2"]},{"1377718295":["hashtag1","hashtag2"]},{"1377718301":["hashtag1","hashtag2"]},{"1377718294":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377718293, 1377718296, 1377718299, 1377718295, 1377718301, 1377718294)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.622081756591797 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:40:32.754913
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/40/image_18082025_21_40_45_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/21/40/image_18082025_21_40_34_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/21/40/image_18082025_21_40_25_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/21/40/image_18082025_21_40_14_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/21/39/image_18082025_21_39_55_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/08/39/image_18082025_08_39_34_9620.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/40/image_18082025_21_40_45_10637.jpg', '/home/nano/Desktop/images/18082025/21/40/image_18082025_21_40_34_9629.jpg', '/home/nano/Desktop/images/18082025/21/40/image_18082025_21_40_25_10640.jpg', '/home/nano/Desktop/images/18082025/21/40/image_18082025_21_40_14_9645.jpg', '/home/nano/Desktop/images/18082025/21/39/image_18082025_21_39_55_10660.jpg', '/home/nano/Desktop/images/18082025/08/39/image_18082025_08_39_34_9620.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/40/image_18082025_21_40_45_10637.jpg
/home/nano/Desktop/images/18082025/21/40/image_18082025_21_40_34_9629.jpg
/home/nano/Desktop/images/18082025/21/40/image_18082025_21_40_25_10640.jpg
/home/nano/Desktop/images/18082025/21/40/image_18082025_21_40_14_9645.jpg
/home/nano/Desktop/images/18082025/21/39/image_18082025_21_39_55_10660.jpg
/home/nano/Desktop/images/18082025/08/39/image_18082025_08_39_34_9620.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377718315","1377718320","1377718314","1377718323","1377718317","1377718313"],"photo_ids_order":["1377718313","1377718314","1377718315","1377718317","1377718320","1377718323"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8026334424f4ee462c8be04b1fa2321e.jpg","text":"TemporaryFile(/tmp/multipartBody3157499266045859292asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546094281,"filename":"image_18082025_21_40_25_10640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8daeb1a0916fc16a398f0ec76ce4b459.jpg","text":"TemporaryFile(/tmp/multipartBody7713965638692723154asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546094281,"filename":"image_18082025_21_39_55_10660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/234b0048d6b72ce8dc433e5eedbcda3b.jpg","text":"TemporaryFile(/tmp/multipartBody8868794286704581824asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546094281,"filename":"image_18082025_21_40_34_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/56cbb0f345696952070f790da4b0b8ba.jpg","text":"TemporaryFile(/tmp/multipartBody5131417074018462947asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546094281,"filename":"image_18082025_08_39_34_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6f3483d6773ecaba98a60eb0f65f7f54.jpg","text":"TemporaryFile(/tmp/multipartBody576453982587978968asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546094281,"filename":"image_18082025_21_40_14_9645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5298c1ca4247162e32c222d35142a49f.jpg","text":"TemporaryFile(/tmp/multipartBody8761897999737409882asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546094281,"filename":"image_18082025_21_40_45_10637.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377718315","file1":"1377718314","file0":"1377718313","file4":"1377718320","file5":"1377718323","file3":"1377718317"},"map_files_photo_id_array":[{"photo_id":"1377718323","filename":"file5"},{"photo_id":"1377718315","filename":"file2"},{"photo_id":"1377718320","filename":"file4"},{"photo_id":"1377718314","filename":"file1"},{"photo_id":"1377718313","filename":"file0"},{"photo_id":"1377718317","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377718315":["hashtag1","hashtag2"]},{"1377718320":["hashtag1","hashtag2"]},{"1377718314":["hashtag1","hashtag2"]},{"1377718323":["hashtag1","hashtag2"]},{"1377718317":["hashtag1","hashtag2"]},{"1377718313":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377718315, 1377718320, 1377718314, 1377718323, 1377718317, 1377718313)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.81289029121399 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:41:16.893597
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/41/image_18082025_21_41_34_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/21/40/image_18082025_21_41_04_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/21/40/image_18082025_21_40_55_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/08/39/image_18082025_08_39_25_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/08/39/image_18082025_08_39_15_10677.jpg', 2), ('/home/nano/Desktop/images/18082025/08/38/image_18082025_08_39_04_9631.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/41/image_18082025_21_41_34_9632.jpg', '/home/nano/Desktop/images/18082025/21/40/image_18082025_21_41_04_9630.jpg', '/home/nano/Desktop/images/18082025/21/40/image_18082025_21_40_55_9629.jpg', '/home/nano/Desktop/images/18082025/08/39/image_18082025_08_39_25_9625.jpg', '/home/nano/Desktop/images/18082025/08/39/image_18082025_08_39_15_10677.jpg', '/home/nano/Desktop/images/18082025/08/38/image_18082025_08_39_04_9631.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/41/image_18082025_21_41_34_9632.jpg
/home/nano/Desktop/images/18082025/21/40/image_18082025_21_41_04_9630.jpg
/home/nano/Desktop/images/18082025/21/40/image_18082025_21_40_55_9629.jpg
/home/nano/Desktop/images/18082025/08/39/image_18082025_08_39_25_9625.jpg
/home/nano/Desktop/images/18082025/08/39/image_18082025_08_39_15_10677.jpg
/home/nano/Desktop/images/18082025/08/38/image_18082025_08_39_04_9631.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377718342","1377718336","1377718344","1377718338","1377718340","1377718346"],"photo_ids_order":["1377718336","1377718338","1377718340","1377718342","1377718344","1377718346"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5253ef8df40cae5eb61989efe4ceb3ef.jpg","text":"TemporaryFile(/tmp/multipartBody5507762471500031563asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546138076,"filename":"image_18082025_08_39_25_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6e38432245e3dc7f81ac1cd828d4eaf7.jpg","text":"TemporaryFile(/tmp/multipartBody4857356995352437365asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546138076,"filename":"image_18082025_21_41_34_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2dbdf077a5263218fe1ce4f8bdef9c27.jpg","text":"TemporaryFile(/tmp/multipartBody7975264732566689362asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546138076,"filename":"image_18082025_08_39_15_10677.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2a904cafef6c9c5f381640fcb75f973b.jpg","text":"TemporaryFile(/tmp/multipartBody867582302194156118asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546138076,"filename":"image_18082025_21_41_04_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0f0814bb6587d601240374159ae21e8e.jpg","text":"TemporaryFile(/tmp/multipartBody6854252301398926189asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546138076,"filename":"image_18082025_21_40_55_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4e7260e2a0a6a860942c442547fa3615.jpg","text":"TemporaryFile(/tmp/multipartBody154768987719136186asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546138076,"filename":"image_18082025_08_39_04_9631.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377718340","file1":"1377718338","file0":"1377718336","file4":"1377718344","file5":"1377718346","file3":"1377718342"},"map_files_photo_id_array":[{"photo_id":"1377718346","filename":"file5"},{"photo_id":"1377718340","filename":"file2"},{"photo_id":"1377718344","filename":"file4"},{"photo_id":"1377718338","filename":"file1"},{"photo_id":"1377718336","filename":"file0"},{"photo_id":"1377718342","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377718342":["hashtag1","hashtag2"]},{"1377718336":["hashtag1","hashtag2"]},{"1377718344":["hashtag1","hashtag2"]},{"1377718338":["hashtag1","hashtag2"]},{"1377718340":["hashtag1","hashtag2"]},{"1377718346":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377718342, 1377718336, 1377718344, 1377718338, 1377718340, 1377718346)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.95863676071167 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:42:02.457689
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/38/image_18082025_08_38_55_10632.jpg', 2), ('/home/nano/Desktop/images/18082025/08/38/image_18082025_08_38_44_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/08/38/image_18082025_08_38_34_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/08/38/image_18082025_08_38_25_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/08/38/image_18082025_08_38_14_9684.jpg', 2), ('/home/nano/Desktop/images/18082025/08/37/image_18082025_08_38_05_9632.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/08/38/image_18082025_08_38_55_10632.jpg', '/home/nano/Desktop/images/18082025/08/38/image_18082025_08_38_44_9624.jpg', '/home/nano/Desktop/images/18082025/08/38/image_18082025_08_38_34_9622.jpg', '/home/nano/Desktop/images/18082025/08/38/image_18082025_08_38_25_10629.jpg', '/home/nano/Desktop/images/18082025/08/38/image_18082025_08_38_14_9684.jpg', '/home/nano/Desktop/images/18082025/08/37/image_18082025_08_38_05_9632.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/08/38/image_18082025_08_38_55_10632.jpg
/home/nano/Desktop/images/18082025/08/38/image_18082025_08_38_44_9624.jpg
/home/nano/Desktop/images/18082025/08/38/image_18082025_08_38_34_9622.jpg
/home/nano/Desktop/images/18082025/08/38/image_18082025_08_38_25_10629.jpg
/home/nano/Desktop/images/18082025/08/38/image_18082025_08_38_14_9684.jpg
/home/nano/Desktop/images/18082025/08/37/image_18082025_08_38_05_9632.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377718369","1377718356","1377718359","1377718361","1377718363","1377718366"],"photo_ids_order":["1377718356","1377718359","1377718361","1377718363","1377718366","1377718369"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1025fd52e42fda0f9e2c8968cdebc4fb.jpg","text":"TemporaryFile(/tmp/multipartBody6401976465702831679asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546183732,"filename":"image_18082025_08_38_05_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a75df1643ffa3d1de57ebbc1e4e66d60.jpg","text":"TemporaryFile(/tmp/multipartBody2003895651537067512asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546183732,"filename":"image_18082025_08_38_55_10632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1cef42c7c2df6765f303b0d9c42379bb.jpg","text":"TemporaryFile(/tmp/multipartBody5713051156866873735asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546183732,"filename":"image_18082025_08_38_44_9624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/42302ccdcdddc8bac12fc800098575cc.jpg","text":"TemporaryFile(/tmp/multipartBody2944368486275498093asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546183732,"filename":"image_18082025_08_38_34_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9ae20cf8ca205700ad19c613ad64754b.jpg","text":"TemporaryFile(/tmp/multipartBody3893728117466284714asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546183732,"filename":"image_18082025_08_38_25_10629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8fe35b3e3607e625728b7ad0e3f81052.jpg","text":"TemporaryFile(/tmp/multipartBody8139702551129382609asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546183732,"filename":"image_18082025_08_38_14_9684.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377718361","file1":"1377718359","file0":"1377718356","file4":"1377718366","file5":"1377718369","file3":"1377718363"},"map_files_photo_id_array":[{"photo_id":"1377718369","filename":"file5"},{"photo_id":"1377718361","filename":"file2"},{"photo_id":"1377718366","filename":"file4"},{"photo_id":"1377718359","filename":"file1"},{"photo_id":"1377718356","filename":"file0"},{"photo_id":"1377718363","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377718369":["hashtag1","hashtag2"]},{"1377718356":["hashtag1","hashtag2"]},{"1377718359":["hashtag1","hashtag2"]},{"1377718361":["hashtag1","hashtag2"]},{"1377718363":["hashtag1","hashtag2"]},{"1377718366":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377718369, 1377718356, 1377718359, 1377718361, 1377718363, 1377718366)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.09184265136719 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:42:46.969121
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/42/image_18082025_21_42_45_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/21/42/image_18082025_21_42_35_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/21/42/image_18082025_21_42_24_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/21/41/image_18082025_21_42_04_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/21/41/image_18082025_21_41_54_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/08/37/image_18082025_08_37_55_10631.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/42/image_18082025_21_42_45_9633.jpg', '/home/nano/Desktop/images/18082025/21/42/image_18082025_21_42_35_10641.jpg', '/home/nano/Desktop/images/18082025/21/42/image_18082025_21_42_24_9628.jpg', '/home/nano/Desktop/images/18082025/21/41/image_18082025_21_42_04_9642.jpg', '/home/nano/Desktop/images/18082025/21/41/image_18082025_21_41_54_9627.jpg', '/home/nano/Desktop/images/18082025/08/37/image_18082025_08_37_55_10631.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/42/image_18082025_21_42_45_9633.jpg
/home/nano/Desktop/images/18082025/21/42/image_18082025_21_42_35_10641.jpg
/home/nano/Desktop/images/18082025/21/42/image_18082025_21_42_24_9628.jpg
/home/nano/Desktop/images/18082025/21/41/image_18082025_21_42_04_9642.jpg
/home/nano/Desktop/images/18082025/21/41/image_18082025_21_41_54_9627.jpg
/home/nano/Desktop/images/18082025/08/37/image_18082025_08_37_55_10631.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377718385","1377718388","1377718381","1377718390","1377718384","1377718387"],"photo_ids_order":["1377718381","1377718384","1377718385","1377718387","1377718388","1377718390"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f6d0ec0341627d26b3ea38cc2fab61f6.jpg","text":"TemporaryFile(/tmp/multipartBody3763854069693514205asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546228435,"filename":"image_18082025_21_42_24_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/955e9bf0c73dd7798fd5074418febbf4.jpg","text":"TemporaryFile(/tmp/multipartBody3660884541591170454asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546228435,"filename":"image_18082025_21_41_54_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/072144487a34162371d7bc5170ad9e0c.jpg","text":"TemporaryFile(/tmp/multipartBody221696807297370137asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546228435,"filename":"image_18082025_21_42_45_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8b080b1d26cc7c8562baa65451faa54e.jpg","text":"TemporaryFile(/tmp/multipartBody7151507652075584136asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546228435,"filename":"image_18082025_08_37_55_10631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c612ac2d25e520eb9f4cb9f3ad0f6f85.jpg","text":"TemporaryFile(/tmp/multipartBody384237786925320321asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546228435,"filename":"image_18082025_21_42_35_10641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9d0509ee7ac985fc65e212febf3b6b2d.jpg","text":"TemporaryFile(/tmp/multipartBody6800087708463717933asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546228435,"filename":"image_18082025_21_42_04_9642.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377718385","file1":"1377718384","file0":"1377718381","file4":"1377718388","file5":"1377718390","file3":"1377718387"},"map_files_photo_id_array":[{"photo_id":"1377718390","filename":"file5"},{"photo_id":"1377718385","filename":"file2"},{"photo_id":"1377718388","filename":"file4"},{"photo_id":"1377718384","filename":"file1"},{"photo_id":"1377718381","filename":"file0"},{"photo_id":"1377718387","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377718385":["hashtag1","hashtag2"]},{"1377718388":["hashtag1","hashtag2"]},{"1377718381":["hashtag1","hashtag2"]},{"1377718390":["hashtag1","hashtag2"]},{"1377718384":["hashtag1","hashtag2"]},{"1377718387":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377718385, 1377718388, 1377718381, 1377718390, 1377718384, 1377718387)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.155283451080322 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:43:32.092348
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/43/image_18082025_21_43_45_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/21/43/image_18082025_21_43_35_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/21/43/image_18082025_21_43_15_9662.jpg', 2), ('/home/nano/Desktop/images/18082025/21/42/image_18082025_21_43_05_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/21/42/image_18082025_21_42_54_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/08/37/image_18082025_08_37_44_9624.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/43/image_18082025_21_43_45_9632.jpg', '/home/nano/Desktop/images/18082025/21/43/image_18082025_21_43_35_10638.jpg', '/home/nano/Desktop/images/18082025/21/43/image_18082025_21_43_15_9662.jpg', '/home/nano/Desktop/images/18082025/21/42/image_18082025_21_43_05_10665.jpg', '/home/nano/Desktop/images/18082025/21/42/image_18082025_21_42_54_9627.jpg', '/home/nano/Desktop/images/18082025/08/37/image_18082025_08_37_44_9624.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/43/image_18082025_21_43_45_9632.jpg
/home/nano/Desktop/images/18082025/21/43/image_18082025_21_43_35_10638.jpg
/home/nano/Desktop/images/18082025/21/43/image_18082025_21_43_15_9662.jpg
/home/nano/Desktop/images/18082025/21/42/image_18082025_21_43_05_10665.jpg
/home/nano/Desktop/images/18082025/21/42/image_18082025_21_42_54_9627.jpg
/home/nano/Desktop/images/18082025/08/37/image_18082025_08_37_44_9624.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377718402","1377718405","1377718398","1377718404","1377718403","1377718400"],"photo_ids_order":["1377718398","1377718400","1377718402","1377718403","1377718404","1377718405"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c6b2725ef9436d3af396992fbcd53be0.jpg","text":"TemporaryFile(/tmp/multipartBody8529043021333504626asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546274129,"filename":"image_18082025_21_43_15_9662.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d59601197a6a5b194c22151aed56e987.jpg","text":"TemporaryFile(/tmp/multipartBody7882102503487153004asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546274129,"filename":"image_18082025_08_37_44_9624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/969384c89d34449a9a3020a18eaef345.jpg","text":"TemporaryFile(/tmp/multipartBody1659512455619713229asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546274129,"filename":"image_18082025_21_43_45_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/41674dd2bc3d714985f6107b41e63c6e.jpg","text":"TemporaryFile(/tmp/multipartBody3339952478655587982asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546274129,"filename":"image_18082025_21_42_54_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/194c5ea7e97f56b5789bac69bfc5e771.jpg","text":"TemporaryFile(/tmp/multipartBody1790041700639578624asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546274129,"filename":"image_18082025_21_43_05_10665.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/76eb83c9c435fe62bfc26f0ffd70e178.jpg","text":"TemporaryFile(/tmp/multipartBody8454295106410881520asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546274129,"filename":"image_18082025_21_43_35_10638.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377718402","file1":"1377718400","file0":"1377718398","file4":"1377718404","file5":"1377718405","file3":"1377718403"},"map_files_photo_id_array":[{"photo_id":"1377718405","filename":"file5"},{"photo_id":"1377718402","filename":"file2"},{"photo_id":"1377718404","filename":"file4"},{"photo_id":"1377718400","filename":"file1"},{"photo_id":"1377718398","filename":"file0"},{"photo_id":"1377718403","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377718402":["hashtag1","hashtag2"]},{"1377718405":["hashtag1","hashtag2"]},{"1377718398":["hashtag1","hashtag2"]},{"1377718404":["hashtag1","hashtag2"]},{"1377718403":["hashtag1","hashtag2"]},{"1377718400":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377718402, 1377718405, 1377718398, 1377718404, 1377718403, 1377718400)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.106565713882446 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:44:17.225370
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/44/image_18082025_21_44_44_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/21/44/image_18082025_21_44_24_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/21/44/image_18082025_21_44_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/21/43/image_18082025_21_43_54_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/08/37/image_18082025_08_37_35_9619.jpg', 2), ('/home/nano/Desktop/images/18082025/08/37/image_18082025_08_37_25_10630.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/44/image_18082025_21_44_44_9628.jpg', '/home/nano/Desktop/images/18082025/21/44/image_18082025_21_44_24_9630.jpg', '/home/nano/Desktop/images/18082025/21/44/image_18082025_21_44_14_9656.jpg', '/home/nano/Desktop/images/18082025/21/43/image_18082025_21_43_54_9646.jpg', '/home/nano/Desktop/images/18082025/08/37/image_18082025_08_37_35_9619.jpg', '/home/nano/Desktop/images/18082025/08/37/image_18082025_08_37_25_10630.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/44/image_18082025_21_44_44_9628.jpg
/home/nano/Desktop/images/18082025/21/44/image_18082025_21_44_24_9630.jpg
/home/nano/Desktop/images/18082025/21/44/image_18082025_21_44_14_9656.jpg
/home/nano/Desktop/images/18082025/21/43/image_18082025_21_43_54_9646.jpg
/home/nano/Desktop/images/18082025/08/37/image_18082025_08_37_35_9619.jpg
/home/nano/Desktop/images/18082025/08/37/image_18082025_08_37_25_10630.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377718429","1377718420","1377718425","1377718428","1377718422","1377718427"],"photo_ids_order":["1377718420","1377718422","1377718425","1377718427","1377718428","1377718429"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ac8ffce4a2d78c11f51453e4bb538bf5.jpg","text":"TemporaryFile(/tmp/multipartBody3569698309356691829asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546318766,"filename":"image_18082025_08_37_25_10630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c7eacb46dc037ef97f5198cefd499b2f.jpg","text":"TemporaryFile(/tmp/multipartBody8338446366275323109asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546318766,"filename":"image_18082025_21_44_44_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bc46e1704534d80da55c60d396b0ad7a.jpg","text":"TemporaryFile(/tmp/multipartBody8751330404502856068asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546318766,"filename":"image_18082025_21_44_14_9656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9c90b8c3e8be961a4026783f9866802a.jpg","text":"TemporaryFile(/tmp/multipartBody4692478506445309031asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546318766,"filename":"image_18082025_08_37_35_9619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7eb90ee151567641735a26d96c8973d6.jpg","text":"TemporaryFile(/tmp/multipartBody7431573023112623476asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546318766,"filename":"image_18082025_21_44_24_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c5c4ec9421f1b45dca7202c97f90e441.jpg","text":"TemporaryFile(/tmp/multipartBody6267122890155736218asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546318766,"filename":"image_18082025_21_43_54_9646.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377718425","file1":"1377718422","file0":"1377718420","file4":"1377718428","file5":"1377718429","file3":"1377718427"},"map_files_photo_id_array":[{"photo_id":"1377718429","filename":"file5"},{"photo_id":"1377718425","filename":"file2"},{"photo_id":"1377718428","filename":"file4"},{"photo_id":"1377718422","filename":"file1"},{"photo_id":"1377718420","filename":"file0"},{"photo_id":"1377718427","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377718429":["hashtag1","hashtag2"]},{"1377718420":["hashtag1","hashtag2"]},{"1377718425":["hashtag1","hashtag2"]},{"1377718428":["hashtag1","hashtag2"]},{"1377718422":["hashtag1","hashtag2"]},{"1377718427":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377718429, 1377718420, 1377718425, 1377718428, 1377718422, 1377718427)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.44952940940857 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:45:02.772814
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/37/image_18082025_08_37_14_9672.jpg', 2), ('/home/nano/Desktop/images/18082025/08/36/image_18082025_08_37_05_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/08/36/image_18082025_08_36_55_10631.jpg', 2), ('/home/nano/Desktop/images/18082025/08/36/image_18082025_08_36_44_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/08/36/image_18082025_08_36_35_10634.jpg', 2), ('/home/nano/Desktop/images/18082025/08/36/image_18082025_08_36_24_9621.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/08/37/image_18082025_08_37_14_9672.jpg', '/home/nano/Desktop/images/18082025/08/36/image_18082025_08_37_05_9648.jpg', '/home/nano/Desktop/images/18082025/08/36/image_18082025_08_36_55_10631.jpg', '/home/nano/Desktop/images/18082025/08/36/image_18082025_08_36_44_9624.jpg', '/home/nano/Desktop/images/18082025/08/36/image_18082025_08_36_35_10634.jpg', '/home/nano/Desktop/images/18082025/08/36/image_18082025_08_36_24_9621.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/08/37/image_18082025_08_37_14_9672.jpg
/home/nano/Desktop/images/18082025/08/36/image_18082025_08_37_05_9648.jpg
/home/nano/Desktop/images/18082025/08/36/image_18082025_08_36_55_10631.jpg
/home/nano/Desktop/images/18082025/08/36/image_18082025_08_36_44_9624.jpg
/home/nano/Desktop/images/18082025/08/36/image_18082025_08_36_35_10634.jpg
/home/nano/Desktop/images/18082025/08/36/image_18082025_08_36_24_9621.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377718453","1377718438","1377718443","1377718449","1377718460","1377718457"],"photo_ids_order":["1377718438","1377718443","1377718449","1377718453","1377718457","1377718460"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0c54c4c91cefefe4fed453df9ef5f0e8.jpg","text":"TemporaryFile(/tmp/multipartBody6061816987736068869asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546364228,"filename":"image_18082025_08_36_44_9624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5dc6e92bec9c5934906140b14c992c96.jpg","text":"TemporaryFile(/tmp/multipartBody3673056796424014198asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546364228,"filename":"image_18082025_08_37_14_9672.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/86c3f7a3b4041b61910ff93019cdfbe0.jpg","text":"TemporaryFile(/tmp/multipartBody4254284204440294132asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546364228,"filename":"image_18082025_08_37_05_9648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/feb7b53d9fc9f982eff64e23286b0ffd.jpg","text":"TemporaryFile(/tmp/multipartBody2683873109966066390asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546364228,"filename":"image_18082025_08_36_55_10631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/47551e112d21d8ab6bbf3d568ac0039f.jpg","text":"TemporaryFile(/tmp/multipartBody11508007806526840asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546364228,"filename":"image_18082025_08_36_24_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9320dc30d93a3207965ab3ec79d39ac7.jpg","text":"TemporaryFile(/tmp/multipartBody561961183512167781asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546364228,"filename":"image_18082025_08_36_35_10634.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377718449","file1":"1377718443","file0":"1377718438","file4":"1377718457","file5":"1377718460","file3":"1377718453"},"map_files_photo_id_array":[{"photo_id":"1377718460","filename":"file5"},{"photo_id":"1377718449","filename":"file2"},{"photo_id":"1377718457","filename":"file4"},{"photo_id":"1377718443","filename":"file1"},{"photo_id":"1377718438","filename":"file0"},{"photo_id":"1377718453","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377718453":["hashtag1","hashtag2"]},{"1377718438":["hashtag1","hashtag2"]},{"1377718443":["hashtag1","hashtag2"]},{"1377718449":["hashtag1","hashtag2"]},{"1377718460":["hashtag1","hashtag2"]},{"1377718457":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377718453, 1377718438, 1377718443, 1377718449, 1377718460, 1377718457)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.27938985824585 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:45:47.312582
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/45/image_18082025_21_45_44_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/21/45/image_18082025_21_45_35_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/21/45/image_18082025_21_45_25_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/21/45/image_18082025_21_45_14_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/21/44/image_18082025_21_45_05_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/21/44/image_18082025_21_44_55_10639.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/45/image_18082025_21_45_44_9632.jpg', '/home/nano/Desktop/images/18082025/21/45/image_18082025_21_45_35_9628.jpg', '/home/nano/Desktop/images/18082025/21/45/image_18082025_21_45_25_10639.jpg', '/home/nano/Desktop/images/18082025/21/45/image_18082025_21_45_14_9659.jpg', '/home/nano/Desktop/images/18082025/21/44/image_18082025_21_45_05_9638.jpg', '/home/nano/Desktop/images/18082025/21/44/image_18082025_21_44_55_10639.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/45/image_18082025_21_45_44_9632.jpg
/home/nano/Desktop/images/18082025/21/45/image_18082025_21_45_35_9628.jpg
/home/nano/Desktop/images/18082025/21/45/image_18082025_21_45_25_10639.jpg
/home/nano/Desktop/images/18082025/21/45/image_18082025_21_45_14_9659.jpg
/home/nano/Desktop/images/18082025/21/44/image_18082025_21_45_05_9638.jpg
/home/nano/Desktop/images/18082025/21/44/image_18082025_21_44_55_10639.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.14882230758667 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:46:03.006123
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/45/image_18082025_21_45_44_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/21/45/image_18082025_21_45_35_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/21/45/image_18082025_21_45_25_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/21/45/image_18082025_21_45_14_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/21/44/image_18082025_21_45_05_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/21/44/image_18082025_21_44_55_10639.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/45/image_18082025_21_45_44_9632.jpg', '/home/nano/Desktop/images/18082025/21/45/image_18082025_21_45_35_9628.jpg', '/home/nano/Desktop/images/18082025/21/45/image_18082025_21_45_25_10639.jpg', '/home/nano/Desktop/images/18082025/21/45/image_18082025_21_45_14_9659.jpg', '/home/nano/Desktop/images/18082025/21/44/image_18082025_21_45_05_9638.jpg', '/home/nano/Desktop/images/18082025/21/44/image_18082025_21_44_55_10639.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/45/image_18082025_21_45_44_9632.jpg
/home/nano/Desktop/images/18082025/21/45/image_18082025_21_45_35_9628.jpg
/home/nano/Desktop/images/18082025/21/45/image_18082025_21_45_25_10639.jpg
/home/nano/Desktop/images/18082025/21/45/image_18082025_21_45_14_9659.jpg
/home/nano/Desktop/images/18082025/21/44/image_18082025_21_45_05_9638.jpg
/home/nano/Desktop/images/18082025/21/44/image_18082025_21_44_55_10639.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377718488","1377718478","1377718480","1377718483","1377718492","1377718486"],"photo_ids_order":["1377718478","1377718480","1377718483","1377718486","1377718488","1377718492"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e1275f1226a04a556b18278ad4a164cf.jpg","text":"TemporaryFile(/tmp/multipartBody12154793437866489asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546424151,"filename":"image_18082025_21_45_05_9638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/da038d8a1abe39f8bd71b707240190b5.jpg","text":"TemporaryFile(/tmp/multipartBody4448954484354570277asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546424151,"filename":"image_18082025_21_45_44_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/23540f593aa23671f991085f31c3221e.jpg","text":"TemporaryFile(/tmp/multipartBody7091467672903317110asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546424151,"filename":"image_18082025_21_45_35_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8e25c2b864ade7bd27f7efe4398f2324.jpg","text":"TemporaryFile(/tmp/multipartBody2402852233585294985asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546424151,"filename":"image_18082025_21_45_25_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c0002f1934653564f3da4c4607527a89.jpg","text":"TemporaryFile(/tmp/multipartBody1279094156357848564asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546424151,"filename":"image_18082025_21_44_55_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b4b53f992d9533b1159f07c3f6633803.jpg","text":"TemporaryFile(/tmp/multipartBody128658407044306872asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546424151,"filename":"image_18082025_21_45_14_9659.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377718483","file1":"1377718480","file0":"1377718478","file4":"1377718488","file5":"1377718492","file3":"1377718486"},"map_files_photo_id_array":[{"photo_id":"1377718492","filename":"file5"},{"photo_id":"1377718483","filename":"file2"},{"photo_id":"1377718488","filename":"file4"},{"photo_id":"1377718480","filename":"file1"},{"photo_id":"1377718478","filename":"file0"},{"photo_id":"1377718486","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377718488":["hashtag1","hashtag2"]},{"1377718478":["hashtag1","hashtag2"]},{"1377718480":["hashtag1","hashtag2"]},{"1377718483":["hashtag1","hashtag2"]},{"1377718492":["hashtag1","hashtag2"]},{"1377718486":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377718488, 1377718478, 1377718480, 1377718483, 1377718492, 1377718486)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.86676526069641 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:46:47.444384
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/46/image_18082025_21_46_44_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/21/46/image_18082025_21_46_34_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/21/45/image_18082025_21_45_55_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/08/36/image_18082025_08_36_15_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/08/35/image_18082025_08_36_05_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/08/35/image_18082025_08_35_54_9621.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/46/image_18082025_21_46_44_9651.jpg', '/home/nano/Desktop/images/18082025/21/46/image_18082025_21_46_34_9628.jpg', '/home/nano/Desktop/images/18082025/21/45/image_18082025_21_45_55_10645.jpg', '/home/nano/Desktop/images/18082025/08/36/image_18082025_08_36_15_9661.jpg', '/home/nano/Desktop/images/18082025/08/35/image_18082025_08_36_05_10639.jpg', '/home/nano/Desktop/images/18082025/08/35/image_18082025_08_35_54_9621.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/46/image_18082025_21_46_44_9651.jpg
/home/nano/Desktop/images/18082025/21/46/image_18082025_21_46_34_9628.jpg
/home/nano/Desktop/images/18082025/21/45/image_18082025_21_45_55_10645.jpg
/home/nano/Desktop/images/18082025/08/36/image_18082025_08_36_15_9661.jpg
/home/nano/Desktop/images/18082025/08/35/image_18082025_08_36_05_10639.jpg
/home/nano/Desktop/images/18082025/08/35/image_18082025_08_35_54_9621.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377718501","1377718500","1377718499","1377718502","1377718505","1377718498"],"photo_ids_order":["1377718498","1377718499","1377718500","1377718501","1377718502","1377718505"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7951eaab11984bf1740c3764cbf61dc3.jpg","text":"TemporaryFile(/tmp/multipartBody6859810494880750218asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546468885,"filename":"image_18082025_08_36_15_9661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f8b2b7b96a789e91463879e7509714ec.jpg","text":"TemporaryFile(/tmp/multipartBody1813061570952376926asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546468885,"filename":"image_18082025_21_45_55_10645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2cb843115f576f777070a258d1f2fc6a.jpg","text":"TemporaryFile(/tmp/multipartBody4446212279044138534asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546468885,"filename":"image_18082025_21_46_34_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d64eefc79d002192728d0a88367f8af0.jpg","text":"TemporaryFile(/tmp/multipartBody9046044782076193932asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546468885,"filename":"image_18082025_08_36_05_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a4f275b9dea728e2a5be6666e4b7f2d8.jpg","text":"TemporaryFile(/tmp/multipartBody3337525234331759266asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546468885,"filename":"image_18082025_08_35_54_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6be9fdeb429ac80326104a2230ae2db3.jpg","text":"TemporaryFile(/tmp/multipartBody7619952652865189607asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546468885,"filename":"image_18082025_21_46_44_9651.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377718500","file1":"1377718499","file0":"1377718498","file4":"1377718502","file5":"1377718505","file3":"1377718501"},"map_files_photo_id_array":[{"photo_id":"1377718505","filename":"file5"},{"photo_id":"1377718500","filename":"file2"},{"photo_id":"1377718502","filename":"file4"},{"photo_id":"1377718499","filename":"file1"},{"photo_id":"1377718498","filename":"file0"},{"photo_id":"1377718501","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377718501":["hashtag1","hashtag2"]},{"1377718500":["hashtag1","hashtag2"]},{"1377718499":["hashtag1","hashtag2"]},{"1377718502":["hashtag1","hashtag2"]},{"1377718505":["hashtag1","hashtag2"]},{"1377718498":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377718501, 1377718500, 1377718499, 1377718502, 1377718505, 1377718498)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.4134738445282 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:47:32.517148
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/47/image_18082025_21_47_45_10643.jpg', 2), ('/home/nano/Desktop/images/18082025/21/47/image_18082025_21_47_34_9624.jpg', 2), ('/home/nano/Desktop/images/18082025/21/47/image_18082025_21_47_25_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/21/46/image_18082025_21_47_04_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/21/46/image_18082025_21_46_55_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/08/35/image_18082025_08_35_45_9646.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/47/image_18082025_21_47_45_10643.jpg', '/home/nano/Desktop/images/18082025/21/47/image_18082025_21_47_34_9624.jpg', '/home/nano/Desktop/images/18082025/21/47/image_18082025_21_47_25_9647.jpg', '/home/nano/Desktop/images/18082025/21/46/image_18082025_21_47_04_9636.jpg', '/home/nano/Desktop/images/18082025/21/46/image_18082025_21_46_55_10638.jpg', '/home/nano/Desktop/images/18082025/08/35/image_18082025_08_35_45_9646.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/47/image_18082025_21_47_45_10643.jpg
/home/nano/Desktop/images/18082025/21/47/image_18082025_21_47_34_9624.jpg
/home/nano/Desktop/images/18082025/21/47/image_18082025_21_47_25_9647.jpg
/home/nano/Desktop/images/18082025/21/46/image_18082025_21_47_04_9636.jpg
/home/nano/Desktop/images/18082025/21/46/image_18082025_21_46_55_10638.jpg
/home/nano/Desktop/images/18082025/08/35/image_18082025_08_35_45_9646.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377718519","1377718521","1377718529","1377718520","1377718523","1377718526"],"photo_ids_order":["1377718519","1377718520","1377718521","1377718523","1377718526","1377718529"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8fe9624b61a122d98b3f8dd709b89114.jpg","text":"TemporaryFile(/tmp/multipartBody3040585539375020759asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546513879,"filename":"image_18082025_21_47_45_10643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cc4dc600a3c0d3c2e8ebf74515f4dd0c.jpg","text":"TemporaryFile(/tmp/multipartBody3961541954104110705asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546513879,"filename":"image_18082025_21_47_25_9647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/eee13d640f59a53e7f777affd30d5030.jpg","text":"TemporaryFile(/tmp/multipartBody7461442838337077479asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546513879,"filename":"image_18082025_08_35_45_9646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/90ae49267e101840be996feeefc9596a.jpg","text":"TemporaryFile(/tmp/multipartBody4211987779181995930asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546513879,"filename":"image_18082025_21_47_34_9624.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/50d6ccd4f81bdce4fa66c78a1e3b33c5.jpg","text":"TemporaryFile(/tmp/multipartBody4867818155268383670asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546513879,"filename":"image_18082025_21_47_04_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/875dfefd7cca1db3b27daf9502caa329.jpg","text":"TemporaryFile(/tmp/multipartBody5509323242618900484asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546513879,"filename":"image_18082025_21_46_55_10638.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377718521","file1":"1377718520","file0":"1377718519","file4":"1377718526","file5":"1377718529","file3":"1377718523"},"map_files_photo_id_array":[{"photo_id":"1377718529","filename":"file5"},{"photo_id":"1377718521","filename":"file2"},{"photo_id":"1377718526","filename":"file4"},{"photo_id":"1377718520","filename":"file1"},{"photo_id":"1377718519","filename":"file0"},{"photo_id":"1377718523","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377718519":["hashtag1","hashtag2"]},{"1377718521":["hashtag1","hashtag2"]},{"1377718529":["hashtag1","hashtag2"]},{"1377718520":["hashtag1","hashtag2"]},{"1377718523":["hashtag1","hashtag2"]},{"1377718526":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377718519, 1377718521, 1377718529, 1377718520, 1377718523, 1377718526)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.68187689781189 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:48:17.657001
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/48/image_18082025_21_48_45_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/21/48/image_18082025_21_48_34_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/21/48/image_18082025_21_48_25_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/21/48/image_18082025_21_48_15_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/21/47/image_18082025_21_48_04_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/21/47/image_18082025_21_47_55_9630.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/48/image_18082025_21_48_45_10640.jpg', '/home/nano/Desktop/images/18082025/21/48/image_18082025_21_48_34_9628.jpg', '/home/nano/Desktop/images/18082025/21/48/image_18082025_21_48_25_9631.jpg', '/home/nano/Desktop/images/18082025/21/48/image_18082025_21_48_15_10661.jpg', '/home/nano/Desktop/images/18082025/21/47/image_18082025_21_48_04_9646.jpg', '/home/nano/Desktop/images/18082025/21/47/image_18082025_21_47_55_9630.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/48/image_18082025_21_48_45_10640.jpg
/home/nano/Desktop/images/18082025/21/48/image_18082025_21_48_34_9628.jpg
/home/nano/Desktop/images/18082025/21/48/image_18082025_21_48_25_9631.jpg
/home/nano/Desktop/images/18082025/21/48/image_18082025_21_48_15_10661.jpg
/home/nano/Desktop/images/18082025/21/47/image_18082025_21_48_04_9646.jpg
/home/nano/Desktop/images/18082025/21/47/image_18082025_21_47_55_9630.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377718552","1377718555","1377718540","1377718550","1377718547","1377718543"],"photo_ids_order":["1377718540","1377718543","1377718547","1377718550","1377718552","1377718555"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7266fa50a53c88a77c7d382ab63e1845.jpg","text":"TemporaryFile(/tmp/multipartBody4774455196532152126asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546559187,"filename":"image_18082025_21_48_04_9646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/10b734175f0d753f584486eb6b8a85cb.jpg","text":"TemporaryFile(/tmp/multipartBody3953415275207632477asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546559187,"filename":"image_18082025_21_47_55_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/94cbae18026078442770f8e9dc34b588.jpg","text":"TemporaryFile(/tmp/multipartBody749070092203913559asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546559187,"filename":"image_18082025_21_48_45_10640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d50c64c8d1ed4c6cd9413e674e86088a.jpg","text":"TemporaryFile(/tmp/multipartBody6861747252032721289asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546559187,"filename":"image_18082025_21_48_15_10661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0d6e245e308e50cf1067058db1bf7a94.jpg","text":"TemporaryFile(/tmp/multipartBody6683895527263859167asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546559187,"filename":"image_18082025_21_48_25_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dd7ef68c560bcd6edab984f1562b2866.jpg","text":"TemporaryFile(/tmp/multipartBody23702148723061853asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546559187,"filename":"image_18082025_21_48_34_9628.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377718547","file1":"1377718543","file0":"1377718540","file4":"1377718552","file5":"1377718555","file3":"1377718550"},"map_files_photo_id_array":[{"photo_id":"1377718555","filename":"file5"},{"photo_id":"1377718547","filename":"file2"},{"photo_id":"1377718552","filename":"file4"},{"photo_id":"1377718543","filename":"file1"},{"photo_id":"1377718540","filename":"file0"},{"photo_id":"1377718550","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377718552":["hashtag1","hashtag2"]},{"1377718555":["hashtag1","hashtag2"]},{"1377718540":["hashtag1","hashtag2"]},{"1377718550":["hashtag1","hashtag2"]},{"1377718547":["hashtag1","hashtag2"]},{"1377718543":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377718552, 1377718555, 1377718540, 1377718550, 1377718547, 1377718543)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.277589797973633 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:49:03.611569
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/35/image_18082025_08_35_35_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/08/35/image_18082025_08_35_24_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/08/35/image_18082025_08_35_15_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/08/34/image_18082025_08_35_05_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/08/34/image_18082025_08_34_54_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/08/34/image_18082025_08_34_45_10631.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/08/35/image_18082025_08_35_35_10637.jpg', '/home/nano/Desktop/images/18082025/08/35/image_18082025_08_35_24_9618.jpg', '/home/nano/Desktop/images/18082025/08/35/image_18082025_08_35_15_9651.jpg', '/home/nano/Desktop/images/18082025/08/34/image_18082025_08_35_05_10667.jpg', '/home/nano/Desktop/images/18082025/08/34/image_18082025_08_34_54_9623.jpg', '/home/nano/Desktop/images/18082025/08/34/image_18082025_08_34_45_10631.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/08/35/image_18082025_08_35_35_10637.jpg
/home/nano/Desktop/images/18082025/08/35/image_18082025_08_35_24_9618.jpg
/home/nano/Desktop/images/18082025/08/35/image_18082025_08_35_15_9651.jpg
/home/nano/Desktop/images/18082025/08/34/image_18082025_08_35_05_10667.jpg
/home/nano/Desktop/images/18082025/08/34/image_18082025_08_34_54_9623.jpg
/home/nano/Desktop/images/18082025/08/34/image_18082025_08_34_45_10631.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377718573","1377718575","1377718571","1377718568","1377718576","1377718579"],"photo_ids_order":["1377718568","1377718571","1377718573","1377718575","1377718576","1377718579"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0f0701361b925eec51b066a423cefcd7.jpg","text":"TemporaryFile(/tmp/multipartBody6902390233716467782asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546605307,"filename":"image_18082025_08_35_15_9651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4f7ba6be6c21a8c3c1562a0aabd32445.jpg","text":"TemporaryFile(/tmp/multipartBody3774681757962970422asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546605307,"filename":"image_18082025_08_35_05_10667.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ed0a7f3e7fbeb0922831bf1c15bcd1fb.jpg","text":"TemporaryFile(/tmp/multipartBody4726421262315022778asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546605307,"filename":"image_18082025_08_35_24_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6089e23fd8801b45b0d23fc9f0d3a1c8.jpg","text":"TemporaryFile(/tmp/multipartBody4145524362705951317asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546605307,"filename":"image_18082025_08_35_35_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/490a67e396fbaf59c64bdafdebeae673.jpg","text":"TemporaryFile(/tmp/multipartBody320059493109568492asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546605307,"filename":"image_18082025_08_34_54_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/edf5627f3b5f32a0a2bdebe33249e100.jpg","text":"TemporaryFile(/tmp/multipartBody5190067178071693686asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546605307,"filename":"image_18082025_08_34_45_10631.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377718573","file1":"1377718571","file0":"1377718568","file4":"1377718576","file5":"1377718579","file3":"1377718575"},"map_files_photo_id_array":[{"photo_id":"1377718579","filename":"file5"},{"photo_id":"1377718573","filename":"file2"},{"photo_id":"1377718576","filename":"file4"},{"photo_id":"1377718571","filename":"file1"},{"photo_id":"1377718568","filename":"file0"},{"photo_id":"1377718575","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377718573":["hashtag1","hashtag2"]},{"1377718575":["hashtag1","hashtag2"]},{"1377718571":["hashtag1","hashtag2"]},{"1377718568":["hashtag1","hashtag2"]},{"1377718576":["hashtag1","hashtag2"]},{"1377718579":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377718573, 1377718575, 1377718571, 1377718568, 1377718576, 1377718579)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.230242252349854 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:49:47.853193
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/49/image_18082025_21_49_45_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/21/49/image_18082025_21_49_35_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/21/49/image_18082025_21_49_24_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/21/49/image_18082025_21_49_15_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/21/48/image_18082025_21_49_04_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/21/48/image_18082025_21_48_54_9633.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/49/image_18082025_21_49_45_9626.jpg', '/home/nano/Desktop/images/18082025/21/49/image_18082025_21_49_35_10636.jpg', '/home/nano/Desktop/images/18082025/21/49/image_18082025_21_49_24_9630.jpg', '/home/nano/Desktop/images/18082025/21/49/image_18082025_21_49_15_10661.jpg', '/home/nano/Desktop/images/18082025/21/48/image_18082025_21_49_04_9629.jpg', '/home/nano/Desktop/images/18082025/21/48/image_18082025_21_48_54_9633.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/49/image_18082025_21_49_45_9626.jpg
/home/nano/Desktop/images/18082025/21/49/image_18082025_21_49_35_10636.jpg
/home/nano/Desktop/images/18082025/21/49/image_18082025_21_49_24_9630.jpg
/home/nano/Desktop/images/18082025/21/49/image_18082025_21_49_15_10661.jpg
/home/nano/Desktop/images/18082025/21/48/image_18082025_21_49_04_9629.jpg
/home/nano/Desktop/images/18082025/21/48/image_18082025_21_48_54_9633.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377718606","1377718609","1377718600","1377718603","1377718602","1377718601"],"photo_ids_order":["1377718600","1377718601","1377718602","1377718603","1377718606","1377718609"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/227d6d71d529b7f1ea32a98af331663b.jpg","text":"TemporaryFile(/tmp/multipartBody4069383989666087312asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546649208,"filename":"image_18082025_21_49_04_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2900f7bf21e7067ff4dc1cc43db965c4.jpg","text":"TemporaryFile(/tmp/multipartBody3483155475876047654asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546649208,"filename":"image_18082025_21_48_54_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/30a23d3a82046a428b0eec7e5d2e4889.jpg","text":"TemporaryFile(/tmp/multipartBody6073982823508042079asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546649208,"filename":"image_18082025_21_49_45_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dcd6c413c4ceb3e02f9f5b2a5a774c1d.jpg","text":"TemporaryFile(/tmp/multipartBody868286216191330902asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546649208,"filename":"image_18082025_21_49_15_10661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f4a2e2d21bf8643d158b5ed8a43a3c25.jpg","text":"TemporaryFile(/tmp/multipartBody8466557453868537749asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546649208,"filename":"image_18082025_21_49_24_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e8853cbe1a7b39b653578c99b1da5a0d.jpg","text":"TemporaryFile(/tmp/multipartBody2920094074987374251asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546649208,"filename":"image_18082025_21_49_35_10636.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377718602","file1":"1377718601","file0":"1377718600","file4":"1377718606","file5":"1377718609","file3":"1377718603"},"map_files_photo_id_array":[{"photo_id":"1377718609","filename":"file5"},{"photo_id":"1377718602","filename":"file2"},{"photo_id":"1377718606","filename":"file4"},{"photo_id":"1377718601","filename":"file1"},{"photo_id":"1377718600","filename":"file0"},{"photo_id":"1377718603","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377718606":["hashtag1","hashtag2"]},{"1377718609":["hashtag1","hashtag2"]},{"1377718600":["hashtag1","hashtag2"]},{"1377718603":["hashtag1","hashtag2"]},{"1377718602":["hashtag1","hashtag2"]},{"1377718601":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377718606, 1377718609, 1377718600, 1377718603, 1377718602, 1377718601)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.600608825683594 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:50:31.946407
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/50/image_18082025_21_50_44_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/21/50/image_18082025_21_50_35_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/21/50/image_18082025_21_50_24_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/21/50/image_18082025_21_50_15_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/21/49/image_18082025_21_50_05_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/21/49/image_18082025_21_49_54_9630.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/50/image_18082025_21_50_44_9625.jpg', '/home/nano/Desktop/images/18082025/21/50/image_18082025_21_50_35_10639.jpg', '/home/nano/Desktop/images/18082025/21/50/image_18082025_21_50_24_9631.jpg', '/home/nano/Desktop/images/18082025/21/50/image_18082025_21_50_15_9648.jpg', '/home/nano/Desktop/images/18082025/21/49/image_18082025_21_50_05_10646.jpg', '/home/nano/Desktop/images/18082025/21/49/image_18082025_21_49_54_9630.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/50/image_18082025_21_50_44_9625.jpg
/home/nano/Desktop/images/18082025/21/50/image_18082025_21_50_35_10639.jpg
/home/nano/Desktop/images/18082025/21/50/image_18082025_21_50_24_9631.jpg
/home/nano/Desktop/images/18082025/21/50/image_18082025_21_50_15_9648.jpg
/home/nano/Desktop/images/18082025/21/49/image_18082025_21_50_05_10646.jpg
/home/nano/Desktop/images/18082025/21/49/image_18082025_21_49_54_9630.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377718630","1377718623","1377718626","1377718620","1377718628","1377718622"],"photo_ids_order":["1377718620","1377718622","1377718623","1377718626","1377718628","1377718630"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/31178b155da6cc77f6cabf1b1b8e00a5.jpg","text":"TemporaryFile(/tmp/multipartBody7171907769637162367asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546693237,"filename":"image_18082025_21_49_54_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d5a59e3ecaf14a9733f47388f4d578f5.jpg","text":"TemporaryFile(/tmp/multipartBody9091041904222177769asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546693237,"filename":"image_18082025_21_50_24_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e405d7a9e6724c150ee361c7cefd9d86.jpg","text":"TemporaryFile(/tmp/multipartBody3105045782640955892asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546693237,"filename":"image_18082025_21_50_15_9648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/821b2fae3c5ea1b3e7e7087771a90ff8.jpg","text":"TemporaryFile(/tmp/multipartBody4921414877776826100asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546693237,"filename":"image_18082025_21_50_44_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/780a81576f8aa72a95b4c16ea1535399.jpg","text":"TemporaryFile(/tmp/multipartBody8045904381665651429asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546693237,"filename":"image_18082025_21_50_05_10646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8d745b693226b938eb5fc2162b872d14.jpg","text":"TemporaryFile(/tmp/multipartBody2316288568661918531asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546693237,"filename":"image_18082025_21_50_35_10639.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377718623","file1":"1377718622","file0":"1377718620","file4":"1377718628","file5":"1377718630","file3":"1377718626"},"map_files_photo_id_array":[{"photo_id":"1377718630","filename":"file5"},{"photo_id":"1377718623","filename":"file2"},{"photo_id":"1377718628","filename":"file4"},{"photo_id":"1377718622","filename":"file1"},{"photo_id":"1377718620","filename":"file0"},{"photo_id":"1377718626","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377718630":["hashtag1","hashtag2"]},{"1377718623":["hashtag1","hashtag2"]},{"1377718626":["hashtag1","hashtag2"]},{"1377718620":["hashtag1","hashtag2"]},{"1377718628":["hashtag1","hashtag2"]},{"1377718622":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377718630, 1377718623, 1377718626, 1377718620, 1377718628, 1377718622)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 29.7660174369812 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:51:17.070671
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/51/image_18082025_21_51_44_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/21/51/image_18082025_21_51_35_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/21/51/image_18082025_21_51_25_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/21/51/image_18082025_21_51_14_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/21/50/image_18082025_21_51_05_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/21/50/image_18082025_21_50_54_9629.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/51/image_18082025_21_51_44_9625.jpg', '/home/nano/Desktop/images/18082025/21/51/image_18082025_21_51_35_9631.jpg', '/home/nano/Desktop/images/18082025/21/51/image_18082025_21_51_25_10642.jpg', '/home/nano/Desktop/images/18082025/21/51/image_18082025_21_51_14_9657.jpg', '/home/nano/Desktop/images/18082025/21/50/image_18082025_21_51_05_10649.jpg', '/home/nano/Desktop/images/18082025/21/50/image_18082025_21_50_54_9629.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/51/image_18082025_21_51_44_9625.jpg
/home/nano/Desktop/images/18082025/21/51/image_18082025_21_51_35_9631.jpg
/home/nano/Desktop/images/18082025/21/51/image_18082025_21_51_25_10642.jpg
/home/nano/Desktop/images/18082025/21/51/image_18082025_21_51_14_9657.jpg
/home/nano/Desktop/images/18082025/21/50/image_18082025_21_51_05_10649.jpg
/home/nano/Desktop/images/18082025/21/50/image_18082025_21_50_54_9629.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377718651","1377718645","1377718639","1377718648","1377718637","1377718642"],"photo_ids_order":["1377718637","1377718639","1377718642","1377718645","1377718648","1377718651"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/32a9ac0f1faad3ab4d418c48356f5506.jpg","text":"TemporaryFile(/tmp/multipartBody8905958642487993843asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546738403,"filename":"image_18082025_21_50_54_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d65cabd94d067ab30e172fdc50b8b978.jpg","text":"TemporaryFile(/tmp/multipartBody2566279814442800108asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546738403,"filename":"image_18082025_21_51_14_9657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/55a3e395d25e35a695ed93b24e10575a.jpg","text":"TemporaryFile(/tmp/multipartBody786632349881958467asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546738403,"filename":"image_18082025_21_51_35_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/75b14d582e2ef337bb02dca83ccf2f7f.jpg","text":"TemporaryFile(/tmp/multipartBody8818835199839908486asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546738403,"filename":"image_18082025_21_51_05_10649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9317fcd563c76d1ec596018743991daf.jpg","text":"TemporaryFile(/tmp/multipartBody6092027304472305536asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546738403,"filename":"image_18082025_21_51_44_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/63c52a101ec1dadab1c4c0a09765510e.jpg","text":"TemporaryFile(/tmp/multipartBody6957512315114248416asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546738403,"filename":"image_18082025_21_51_25_10642.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377718642","file1":"1377718639","file0":"1377718637","file4":"1377718648","file5":"1377718651","file3":"1377718645"},"map_files_photo_id_array":[{"photo_id":"1377718651","filename":"file5"},{"photo_id":"1377718642","filename":"file2"},{"photo_id":"1377718648","filename":"file4"},{"photo_id":"1377718639","filename":"file1"},{"photo_id":"1377718637","filename":"file0"},{"photo_id":"1377718645","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377718651":["hashtag1","hashtag2"]},{"1377718645":["hashtag1","hashtag2"]},{"1377718639":["hashtag1","hashtag2"]},{"1377718648":["hashtag1","hashtag2"]},{"1377718637":["hashtag1","hashtag2"]},{"1377718642":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377718651, 1377718645, 1377718639, 1377718648, 1377718637, 1377718642)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.654611587524414 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:52:02.664060
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/34/image_18082025_08_34_34_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/08/34/image_18082025_08_34_25_9622.jpg', 2), ('/home/nano/Desktop/images/18082025/08/34/image_18082025_08_34_15_10664.jpg', 2), ('/home/nano/Desktop/images/18082025/08/33/image_18082025_08_34_04_9670.jpg', 2), ('/home/nano/Desktop/images/18082025/08/33/image_18082025_08_33_55_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/08/33/image_18082025_08_33_45_10635.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/08/34/image_18082025_08_34_34_9622.jpg', '/home/nano/Desktop/images/18082025/08/34/image_18082025_08_34_25_9622.jpg', '/home/nano/Desktop/images/18082025/08/34/image_18082025_08_34_15_10664.jpg', '/home/nano/Desktop/images/18082025/08/33/image_18082025_08_34_04_9670.jpg', '/home/nano/Desktop/images/18082025/08/33/image_18082025_08_33_55_9623.jpg', '/home/nano/Desktop/images/18082025/08/33/image_18082025_08_33_45_10635.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/08/34/image_18082025_08_34_34_9622.jpg
/home/nano/Desktop/images/18082025/08/34/image_18082025_08_34_25_9622.jpg
/home/nano/Desktop/images/18082025/08/34/image_18082025_08_34_15_10664.jpg
/home/nano/Desktop/images/18082025/08/33/image_18082025_08_34_04_9670.jpg
/home/nano/Desktop/images/18082025/08/33/image_18082025_08_33_55_9623.jpg
/home/nano/Desktop/images/18082025/08/33/image_18082025_08_33_45_10635.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377718671","1377718665","1377718668","1377718656","1377718658","1377718661"],"photo_ids_order":["1377718656","1377718658","1377718661","1377718665","1377718668","1377718671"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0b92c33f130f1d289b9b0511295a68f0.jpg","text":"TemporaryFile(/tmp/multipartBody6056556601902611492asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546784106,"filename":"image_18082025_08_33_45_10635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6678fda8271ccc8a1145a7b2a5c58dc8.jpg","text":"TemporaryFile(/tmp/multipartBody1362118124529779464asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546784106,"filename":"image_18082025_08_34_04_9670.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/eaf010998faf59d4ecf3b3e05c77e5f1.jpg","text":"TemporaryFile(/tmp/multipartBody7288257062193424723asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546784106,"filename":"image_18082025_08_33_55_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/13a6f60f860a9e29d8a13406f328d268.jpg","text":"TemporaryFile(/tmp/multipartBody6222220031023051335asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546784106,"filename":"image_18082025_08_34_34_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/051429682dbf00d33bcb11a3885146ae.jpg","text":"TemporaryFile(/tmp/multipartBody1032066691822743462asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546784106,"filename":"image_18082025_08_34_25_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d1499278c61fee2bfb797b19b69f29ae.jpg","text":"TemporaryFile(/tmp/multipartBody7616711193803907639asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546784106,"filename":"image_18082025_08_34_15_10664.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377718661","file1":"1377718658","file0":"1377718656","file4":"1377718668","file5":"1377718671","file3":"1377718665"},"map_files_photo_id_array":[{"photo_id":"1377718671","filename":"file5"},{"photo_id":"1377718661","filename":"file2"},{"photo_id":"1377718668","filename":"file4"},{"photo_id":"1377718658","filename":"file1"},{"photo_id":"1377718656","filename":"file0"},{"photo_id":"1377718665","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377718671":["hashtag1","hashtag2"]},{"1377718665":["hashtag1","hashtag2"]},{"1377718668":["hashtag1","hashtag2"]},{"1377718656":["hashtag1","hashtag2"]},{"1377718658":["hashtag1","hashtag2"]},{"1377718661":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377718671, 1377718665, 1377718668, 1377718656, 1377718658, 1377718661)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.546079397201538 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:52:47.116982
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/52/image_18082025_21_52_25_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/21/52/image_18082025_21_52_14_9668.jpg', 2), ('/home/nano/Desktop/images/18082025/21/51/image_18082025_21_51_55_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/08/33/image_18082025_08_33_34_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/33/image_18082025_08_33_25_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/08/33/image_18082025_08_33_15_10678.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/52/image_18082025_21_52_25_10639.jpg', '/home/nano/Desktop/images/18082025/21/52/image_18082025_21_52_14_9668.jpg', '/home/nano/Desktop/images/18082025/21/51/image_18082025_21_51_55_10641.jpg', '/home/nano/Desktop/images/18082025/08/33/image_18082025_08_33_34_9626.jpg', '/home/nano/Desktop/images/18082025/08/33/image_18082025_08_33_25_9625.jpg', '/home/nano/Desktop/images/18082025/08/33/image_18082025_08_33_15_10678.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/52/image_18082025_21_52_25_10639.jpg
/home/nano/Desktop/images/18082025/21/52/image_18082025_21_52_14_9668.jpg
/home/nano/Desktop/images/18082025/21/51/image_18082025_21_51_55_10641.jpg
/home/nano/Desktop/images/18082025/08/33/image_18082025_08_33_34_9626.jpg
/home/nano/Desktop/images/18082025/08/33/image_18082025_08_33_25_9625.jpg
/home/nano/Desktop/images/18082025/08/33/image_18082025_08_33_15_10678.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377718683","1377718686","1377718685","1377718679","1377718681","1377718690"],"photo_ids_order":["1377718679","1377718681","1377718683","1377718685","1377718686","1377718690"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b72f09e9d4439d8cc5ac33038ba0a75b.jpg","text":"TemporaryFile(/tmp/multipartBody5221469049873716727asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546828598,"filename":"image_18082025_21_51_55_10641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2eee54364744ad6a6c43517ccac6adb2.jpg","text":"TemporaryFile(/tmp/multipartBody4205721910133694138asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546828598,"filename":"image_18082025_08_33_25_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d56945a9d01e3a95f950b04ff4d023d3.jpg","text":"TemporaryFile(/tmp/multipartBody6147878390188354657asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546828598,"filename":"image_18082025_08_33_34_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e19158e286c1118bd6ff5d8ded60fe0d.jpg","text":"TemporaryFile(/tmp/multipartBody7005060490930556518asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546828598,"filename":"image_18082025_21_52_25_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c5081202a960474d96ada1a34a682036.jpg","text":"TemporaryFile(/tmp/multipartBody8286053979998008220asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546828598,"filename":"image_18082025_21_52_14_9668.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/20aac51ee2be671c830c08d8178dda92.jpg","text":"TemporaryFile(/tmp/multipartBody2331468087093861814asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546828598,"filename":"image_18082025_08_33_15_10678.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377718683","file1":"1377718681","file0":"1377718679","file4":"1377718686","file5":"1377718690","file3":"1377718685"},"map_files_photo_id_array":[{"photo_id":"1377718690","filename":"file5"},{"photo_id":"1377718683","filename":"file2"},{"photo_id":"1377718686","filename":"file4"},{"photo_id":"1377718681","filename":"file1"},{"photo_id":"1377718679","filename":"file0"},{"photo_id":"1377718685","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377718683":["hashtag1","hashtag2"]},{"1377718686":["hashtag1","hashtag2"]},{"1377718685":["hashtag1","hashtag2"]},{"1377718679":["hashtag1","hashtag2"]},{"1377718681":["hashtag1","hashtag2"]},{"1377718690":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377718683, 1377718686, 1377718685, 1377718679, 1377718681, 1377718690)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.06236505508423 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:53:32.228644
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/53/image_18082025_21_53_34_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/21/53/image_18082025_21_53_25_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/21/53/image_18082025_21_53_14_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/21/52/image_18082025_21_53_04_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/21/52/image_18082025_21_52_44_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/08/32/image_18082025_08_33_04_9644.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/53/image_18082025_21_53_34_9630.jpg', '/home/nano/Desktop/images/18082025/21/53/image_18082025_21_53_25_10639.jpg', '/home/nano/Desktop/images/18082025/21/53/image_18082025_21_53_14_9653.jpg', '/home/nano/Desktop/images/18082025/21/52/image_18082025_21_53_04_9650.jpg', '/home/nano/Desktop/images/18082025/21/52/image_18082025_21_52_44_9625.jpg', '/home/nano/Desktop/images/18082025/08/32/image_18082025_08_33_04_9644.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/53/image_18082025_21_53_34_9630.jpg
/home/nano/Desktop/images/18082025/21/53/image_18082025_21_53_25_10639.jpg
/home/nano/Desktop/images/18082025/21/53/image_18082025_21_53_14_9653.jpg
/home/nano/Desktop/images/18082025/21/52/image_18082025_21_53_04_9650.jpg
/home/nano/Desktop/images/18082025/21/52/image_18082025_21_52_44_9625.jpg
/home/nano/Desktop/images/18082025/08/32/image_18082025_08_33_04_9644.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377718705","1377718708","1377718704","1377718707","1377718709","1377718706"],"photo_ids_order":["1377718704","1377718705","1377718706","1377718707","1377718708","1377718709"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c73cbab63eddd122ffc4cf5a79becd69.jpg","text":"TemporaryFile(/tmp/multipartBody8438999440864880008asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546873829,"filename":"image_18082025_21_53_25_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b37d9fc43eab9ba395b868635118c4d2.jpg","text":"TemporaryFile(/tmp/multipartBody1497726874443905599asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546873829,"filename":"image_18082025_21_52_44_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c5b9c4c0169e133883699db9a644825d.jpg","text":"TemporaryFile(/tmp/multipartBody2434972619736500575asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546873829,"filename":"image_18082025_21_53_34_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/104d772cc39fe8b3b5e947e71f64017c.jpg","text":"TemporaryFile(/tmp/multipartBody7683987629491653460asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546873829,"filename":"image_18082025_21_53_04_9650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c133dd67b7c05e5f4f7b8b8975eece58.jpg","text":"TemporaryFile(/tmp/multipartBody9184639246979168569asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546873829,"filename":"image_18082025_08_33_04_9644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bb886a18afcd5b2f99e43d4ddbd176bc.jpg","text":"TemporaryFile(/tmp/multipartBody7040436145420044475asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546873829,"filename":"image_18082025_21_53_14_9653.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377718706","file1":"1377718705","file0":"1377718704","file4":"1377718708","file5":"1377718709","file3":"1377718707"},"map_files_photo_id_array":[{"photo_id":"1377718709","filename":"file5"},{"photo_id":"1377718706","filename":"file2"},{"photo_id":"1377718708","filename":"file4"},{"photo_id":"1377718705","filename":"file1"},{"photo_id":"1377718704","filename":"file0"},{"photo_id":"1377718707","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377718705":["hashtag1","hashtag2"]},{"1377718708":["hashtag1","hashtag2"]},{"1377718704":["hashtag1","hashtag2"]},{"1377718707":["hashtag1","hashtag2"]},{"1377718709":["hashtag1","hashtag2"]},{"1377718706":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377718705, 1377718708, 1377718704, 1377718707, 1377718709, 1377718706)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.92733144760132 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:54:17.334332
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/54/image_18082025_21_54_45_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/21/54/image_18082025_21_54_34_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/21/54/image_18082025_21_54_25_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/21/54/image_18082025_21_54_15_10662.jpg', 2), ('/home/nano/Desktop/images/18082025/21/53/image_18082025_21_54_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/21/53/image_18082025_21_53_55_9627.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/54/image_18082025_21_54_45_10654.jpg', '/home/nano/Desktop/images/18082025/21/54/image_18082025_21_54_34_9632.jpg', '/home/nano/Desktop/images/18082025/21/54/image_18082025_21_54_25_9627.jpg', '/home/nano/Desktop/images/18082025/21/54/image_18082025_21_54_15_10662.jpg', '/home/nano/Desktop/images/18082025/21/53/image_18082025_21_54_04_9655.jpg', '/home/nano/Desktop/images/18082025/21/53/image_18082025_21_53_55_9627.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/54/image_18082025_21_54_45_10654.jpg
/home/nano/Desktop/images/18082025/21/54/image_18082025_21_54_34_9632.jpg
/home/nano/Desktop/images/18082025/21/54/image_18082025_21_54_25_9627.jpg
/home/nano/Desktop/images/18082025/21/54/image_18082025_21_54_15_10662.jpg
/home/nano/Desktop/images/18082025/21/53/image_18082025_21_54_04_9655.jpg
/home/nano/Desktop/images/18082025/21/53/image_18082025_21_53_55_9627.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377718723","1377718720","1377718722","1377718716","1377718721","1377718718"],"photo_ids_order":["1377718716","1377718718","1377718720","1377718721","1377718722","1377718723"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9e9c1e9e264bdd8a7cdfe6dd14b1e6ce.jpg","text":"TemporaryFile(/tmp/multipartBody7546257135177339944asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546919095,"filename":"image_18082025_21_53_55_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/20d3774aa262055c4e6bac8d203e2bf8.jpg","text":"TemporaryFile(/tmp/multipartBody8699786980301123272asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546919095,"filename":"image_18082025_21_54_25_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d1ee9f7a37e33448c5ac2565bfdf8dc1.jpg","text":"TemporaryFile(/tmp/multipartBody6319007798264312428asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546919095,"filename":"image_18082025_21_54_04_9655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f0540c8e8cb859fb60be547a2646701d.jpg","text":"TemporaryFile(/tmp/multipartBody5333921513896755452asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546919095,"filename":"image_18082025_21_54_45_10654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d1dec5291e7a6b82ff15333d84ec8c04.jpg","text":"TemporaryFile(/tmp/multipartBody4062365517208235235asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546919095,"filename":"image_18082025_21_54_15_10662.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6f788156eb2b73ebab118d3446e42079.jpg","text":"TemporaryFile(/tmp/multipartBody4151336829363852498asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546919095,"filename":"image_18082025_21_54_34_9632.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377718720","file1":"1377718718","file0":"1377718716","file4":"1377718722","file5":"1377718723","file3":"1377718721"},"map_files_photo_id_array":[{"photo_id":"1377718723","filename":"file5"},{"photo_id":"1377718720","filename":"file2"},{"photo_id":"1377718722","filename":"file4"},{"photo_id":"1377718718","filename":"file1"},{"photo_id":"1377718716","filename":"file0"},{"photo_id":"1377718721","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377718723":["hashtag1","hashtag2"]},{"1377718720":["hashtag1","hashtag2"]},{"1377718722":["hashtag1","hashtag2"]},{"1377718716":["hashtag1","hashtag2"]},{"1377718721":["hashtag1","hashtag2"]},{"1377718718":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377718723, 1377718720, 1377718722, 1377718716, 1377718721, 1377718718)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.212953090667725 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:55:02.970605
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/32/image_18082025_08_32_55_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/08/32/image_18082025_08_32_44_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/08/32/image_18082025_08_32_34_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/08/32/image_18082025_08_32_25_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/08/32/image_18082025_08_32_14_9678.jpg', 2), ('/home/nano/Desktop/images/18082025/08/31/image_18082025_08_32_04_9647.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/08/32/image_18082025_08_32_55_10636.jpg', '/home/nano/Desktop/images/18082025/08/32/image_18082025_08_32_44_9625.jpg', '/home/nano/Desktop/images/18082025/08/32/image_18082025_08_32_34_9648.jpg', '/home/nano/Desktop/images/18082025/08/32/image_18082025_08_32_25_10660.jpg', '/home/nano/Desktop/images/18082025/08/32/image_18082025_08_32_14_9678.jpg', '/home/nano/Desktop/images/18082025/08/31/image_18082025_08_32_04_9647.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/08/32/image_18082025_08_32_55_10636.jpg
/home/nano/Desktop/images/18082025/08/32/image_18082025_08_32_44_9625.jpg
/home/nano/Desktop/images/18082025/08/32/image_18082025_08_32_34_9648.jpg
/home/nano/Desktop/images/18082025/08/32/image_18082025_08_32_25_10660.jpg
/home/nano/Desktop/images/18082025/08/32/image_18082025_08_32_14_9678.jpg
/home/nano/Desktop/images/18082025/08/31/image_18082025_08_32_04_9647.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377718734","1377718728","1377718739","1377718730","1377718742","1377718736"],"photo_ids_order":["1377718728","1377718730","1377718734","1377718736","1377718739","1377718742"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/534a966ce296afd3628e064cc3024147.jpg","text":"TemporaryFile(/tmp/multipartBody4161481569904112055asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546964659,"filename":"image_18082025_08_32_34_9648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1a80999a4dcb8c7e50bfdbdef6aec36c.jpg","text":"TemporaryFile(/tmp/multipartBody6627749305657510557asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546964659,"filename":"image_18082025_08_32_55_10636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cf10f317c0b4b33d84712e0367e6358b.jpg","text":"TemporaryFile(/tmp/multipartBody8113624033313767641asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546964659,"filename":"image_18082025_08_32_14_9678.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2cf0495d004d79583b148ea447af31f4.jpg","text":"TemporaryFile(/tmp/multipartBody3957105330515637570asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546964659,"filename":"image_18082025_08_32_44_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c9e9d3ef383fa869d3c20dbdc2a7698f.jpg","text":"TemporaryFile(/tmp/multipartBody9057350375989031626asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546964659,"filename":"image_18082025_08_32_04_9647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f7f150ce543c239c4177167e400a5772.jpg","text":"TemporaryFile(/tmp/multipartBody8928127832943564979asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755546964659,"filename":"image_18082025_08_32_25_10660.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377718734","file1":"1377718730","file0":"1377718728","file4":"1377718739","file5":"1377718742","file3":"1377718736"},"map_files_photo_id_array":[{"photo_id":"1377718742","filename":"file5"},{"photo_id":"1377718734","filename":"file2"},{"photo_id":"1377718739","filename":"file4"},{"photo_id":"1377718730","filename":"file1"},{"photo_id":"1377718728","filename":"file0"},{"photo_id":"1377718736","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377718734":["hashtag1","hashtag2"]},{"1377718728":["hashtag1","hashtag2"]},{"1377718739":["hashtag1","hashtag2"]},{"1377718730":["hashtag1","hashtag2"]},{"1377718742":["hashtag1","hashtag2"]},{"1377718736":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377718734, 1377718728, 1377718739, 1377718730, 1377718742, 1377718736)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.31277680397034 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:55:47.500913
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/55/image_18082025_21_55_45_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/21/55/image_18082025_21_55_35_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/21/55/image_18082025_21_55_24_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/21/55/image_18082025_21_55_15_10657.jpg', 2), ('/home/nano/Desktop/images/18082025/21/54/image_18082025_21_55_04_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/21/54/image_18082025_21_54_54_9628.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/55/image_18082025_21_55_45_9634.jpg', '/home/nano/Desktop/images/18082025/21/55/image_18082025_21_55_35_10642.jpg', '/home/nano/Desktop/images/18082025/21/55/image_18082025_21_55_24_9628.jpg', '/home/nano/Desktop/images/18082025/21/55/image_18082025_21_55_15_10657.jpg', '/home/nano/Desktop/images/18082025/21/54/image_18082025_21_55_04_9644.jpg', '/home/nano/Desktop/images/18082025/21/54/image_18082025_21_54_54_9628.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/55/image_18082025_21_55_45_9634.jpg
/home/nano/Desktop/images/18082025/21/55/image_18082025_21_55_35_10642.jpg
/home/nano/Desktop/images/18082025/21/55/image_18082025_21_55_24_9628.jpg
/home/nano/Desktop/images/18082025/21/55/image_18082025_21_55_15_10657.jpg
/home/nano/Desktop/images/18082025/21/54/image_18082025_21_55_04_9644.jpg
/home/nano/Desktop/images/18082025/21/54/image_18082025_21_54_54_9628.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377718759","1377718753","1377718752","1377718751","1377718754","1377718756"],"photo_ids_order":["1377718751","1377718752","1377718753","1377718754","1377718756","1377718759"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/720e4fbad0d1dae9ea3b1b3cc4e44209.jpg","text":"TemporaryFile(/tmp/multipartBody1979218060152835321asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547009006,"filename":"image_18082025_21_54_54_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/353816fd566951fc045aa8962db48850.jpg","text":"TemporaryFile(/tmp/multipartBody1766921232896931309asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547009006,"filename":"image_18082025_21_55_24_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/da0e7d04fb962ac2a1ec770bbc382dbc.jpg","text":"TemporaryFile(/tmp/multipartBody5828512101888846025asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547009006,"filename":"image_18082025_21_55_35_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/86ac667a828bf31329871df22839fa48.jpg","text":"TemporaryFile(/tmp/multipartBody5708641593373115726asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547009006,"filename":"image_18082025_21_55_45_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f9c88cc8efdd13586b0dd86ebdcc27f7.jpg","text":"TemporaryFile(/tmp/multipartBody3442933705307494458asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547009006,"filename":"image_18082025_21_55_15_10657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/da05c5256d2e32a0d720c51fdd8cc8c7.jpg","text":"TemporaryFile(/tmp/multipartBody2456794406260428029asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547009006,"filename":"image_18082025_21_55_04_9644.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377718753","file1":"1377718752","file0":"1377718751","file4":"1377718756","file5":"1377718759","file3":"1377718754"},"map_files_photo_id_array":[{"photo_id":"1377718759","filename":"file5"},{"photo_id":"1377718753","filename":"file2"},{"photo_id":"1377718756","filename":"file4"},{"photo_id":"1377718752","filename":"file1"},{"photo_id":"1377718751","filename":"file0"},{"photo_id":"1377718754","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377718759":["hashtag1","hashtag2"]},{"1377718753":["hashtag1","hashtag2"]},{"1377718752":["hashtag1","hashtag2"]},{"1377718751":["hashtag1","hashtag2"]},{"1377718754":["hashtag1","hashtag2"]},{"1377718756":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377718759, 1377718753, 1377718752, 1377718751, 1377718754, 1377718756)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.78144073486328 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:56:32.585220
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/56/image_18082025_21_56_24_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/21/56/image_18082025_21_56_15_9691.jpg', 2), ('/home/nano/Desktop/images/18082025/21/55/image_18082025_21_56_05_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/21/55/image_18082025_21_55_54_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/08/31/image_18082025_08_31_55_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/08/31/image_18082025_08_31_44_9648.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/56/image_18082025_21_56_24_9651.jpg', '/home/nano/Desktop/images/18082025/21/56/image_18082025_21_56_15_9691.jpg', '/home/nano/Desktop/images/18082025/21/55/image_18082025_21_56_05_10660.jpg', '/home/nano/Desktop/images/18082025/21/55/image_18082025_21_55_54_9627.jpg', '/home/nano/Desktop/images/18082025/08/31/image_18082025_08_31_55_10653.jpg', '/home/nano/Desktop/images/18082025/08/31/image_18082025_08_31_44_9648.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/56/image_18082025_21_56_24_9651.jpg
/home/nano/Desktop/images/18082025/21/56/image_18082025_21_56_15_9691.jpg
/home/nano/Desktop/images/18082025/21/55/image_18082025_21_56_05_10660.jpg
/home/nano/Desktop/images/18082025/21/55/image_18082025_21_55_54_9627.jpg
/home/nano/Desktop/images/18082025/08/31/image_18082025_08_31_55_10653.jpg
/home/nano/Desktop/images/18082025/08/31/image_18082025_08_31_44_9648.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.4481406211853027 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:56:47.598707
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/56/image_18082025_21_56_24_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/21/56/image_18082025_21_56_15_9691.jpg', 2), ('/home/nano/Desktop/images/18082025/21/55/image_18082025_21_56_05_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/21/55/image_18082025_21_55_54_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/08/31/image_18082025_08_31_55_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/08/31/image_18082025_08_31_44_9648.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/56/image_18082025_21_56_24_9651.jpg', '/home/nano/Desktop/images/18082025/21/56/image_18082025_21_56_15_9691.jpg', '/home/nano/Desktop/images/18082025/21/55/image_18082025_21_56_05_10660.jpg', '/home/nano/Desktop/images/18082025/21/55/image_18082025_21_55_54_9627.jpg', '/home/nano/Desktop/images/18082025/08/31/image_18082025_08_31_55_10653.jpg', '/home/nano/Desktop/images/18082025/08/31/image_18082025_08_31_44_9648.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/56/image_18082025_21_56_24_9651.jpg
/home/nano/Desktop/images/18082025/21/56/image_18082025_21_56_15_9691.jpg
/home/nano/Desktop/images/18082025/21/55/image_18082025_21_56_05_10660.jpg
/home/nano/Desktop/images/18082025/21/55/image_18082025_21_55_54_9627.jpg
/home/nano/Desktop/images/18082025/08/31/image_18082025_08_31_55_10653.jpg
/home/nano/Desktop/images/18082025/08/31/image_18082025_08_31_44_9648.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377718771","1377718779","1377718781","1377718775","1377718774","1377718777"],"photo_ids_order":["1377718771","1377718774","1377718775","1377718777","1377718779","1377718781"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9bed957615221baa40e8c1f57062256c.jpg","text":"TemporaryFile(/tmp/multipartBody437805919144423945asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547069050,"filename":"image_18082025_21_56_24_9651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fd29108434a8dc2da4a8711275270f26.jpg","text":"TemporaryFile(/tmp/multipartBody7056899501886138635asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547069050,"filename":"image_18082025_08_31_55_10653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/97fa0a7575e146909c80b8e01daf38da.jpg","text":"TemporaryFile(/tmp/multipartBody7075216173062552265asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547069050,"filename":"image_18082025_08_31_44_9648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/be8b717d280a4a5332b34c9eb6c9876a.jpg","text":"TemporaryFile(/tmp/multipartBody3677826223690422694asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547069050,"filename":"image_18082025_21_56_05_10660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/14fcf687a77ebcaaedca6eddfa8c9dfa.jpg","text":"TemporaryFile(/tmp/multipartBody3161330244346982162asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547069050,"filename":"image_18082025_21_56_15_9691.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c2c909785100004357870800152edb96.jpg","text":"TemporaryFile(/tmp/multipartBody1894990090385952954asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547069050,"filename":"image_18082025_21_55_54_9627.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377718775","file1":"1377718774","file0":"1377718771","file4":"1377718779","file5":"1377718781","file3":"1377718777"},"map_files_photo_id_array":[{"photo_id":"1377718781","filename":"file5"},{"photo_id":"1377718775","filename":"file2"},{"photo_id":"1377718779","filename":"file4"},{"photo_id":"1377718774","filename":"file1"},{"photo_id":"1377718771","filename":"file0"},{"photo_id":"1377718777","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377718771":["hashtag1","hashtag2"]},{"1377718779":["hashtag1","hashtag2"]},{"1377718781":["hashtag1","hashtag2"]},{"1377718775":["hashtag1","hashtag2"]},{"1377718774":["hashtag1","hashtag2"]},{"1377718777":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377718771, 1377718779, 1377718781, 1377718775, 1377718774, 1377718777)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.23435926437378 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:57:32.708350
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/57/image_18082025_21_57_44_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/21/56/image_18082025_21_57_05_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/21/56/image_18082025_21_56_54_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/08/31/image_18082025_08_31_35_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/08/31/image_18082025_08_31_25_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/08/30/image_18082025_08_31_05_9681.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/57/image_18082025_21_57_44_9633.jpg', '/home/nano/Desktop/images/18082025/21/56/image_18082025_21_57_05_10648.jpg', '/home/nano/Desktop/images/18082025/21/56/image_18082025_21_56_54_9630.jpg', '/home/nano/Desktop/images/18082025/08/31/image_18082025_08_31_35_9664.jpg', '/home/nano/Desktop/images/18082025/08/31/image_18082025_08_31_25_10653.jpg', '/home/nano/Desktop/images/18082025/08/30/image_18082025_08_31_05_9681.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/57/image_18082025_21_57_44_9633.jpg
/home/nano/Desktop/images/18082025/21/56/image_18082025_21_57_05_10648.jpg
/home/nano/Desktop/images/18082025/21/56/image_18082025_21_56_54_9630.jpg
/home/nano/Desktop/images/18082025/08/31/image_18082025_08_31_35_9664.jpg
/home/nano/Desktop/images/18082025/08/31/image_18082025_08_31_25_10653.jpg
/home/nano/Desktop/images/18082025/08/30/image_18082025_08_31_05_9681.jpg
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:59:02.542839
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/57/image_18082025_21_57_44_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/21/56/image_18082025_21_57_05_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/21/56/image_18082025_21_56_54_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/08/31/image_18082025_08_31_35_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/08/31/image_18082025_08_31_25_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/08/30/image_18082025_08_31_05_9681.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/57/image_18082025_21_57_44_9633.jpg', '/home/nano/Desktop/images/18082025/21/56/image_18082025_21_57_05_10648.jpg', '/home/nano/Desktop/images/18082025/21/56/image_18082025_21_56_54_9630.jpg', '/home/nano/Desktop/images/18082025/08/31/image_18082025_08_31_35_9664.jpg', '/home/nano/Desktop/images/18082025/08/31/image_18082025_08_31_25_10653.jpg', '/home/nano/Desktop/images/18082025/08/30/image_18082025_08_31_05_9681.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/57/image_18082025_21_57_44_9633.jpg
/home/nano/Desktop/images/18082025/21/56/image_18082025_21_57_05_10648.jpg
/home/nano/Desktop/images/18082025/21/56/image_18082025_21_56_54_9630.jpg
/home/nano/Desktop/images/18082025/08/31/image_18082025_08_31_35_9664.jpg
/home/nano/Desktop/images/18082025/08/31/image_18082025_08_31_25_10653.jpg
/home/nano/Desktop/images/18082025/08/30/image_18082025_08_31_05_9681.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377718810","1377718812","1377718806","1377718814","1377718798","1377718802"],"photo_ids_order":["1377718798","1377718802","1377718806","1377718810","1377718812","1377718814"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/29ba21bc6527983b33b0c42267385c32.jpg","text":"TemporaryFile(/tmp/multipartBody6391455881607924932asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547203992,"filename":"image_18082025_08_31_35_9664.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/72c5c8124af5a44156b3916134a2a4ca.jpg","text":"TemporaryFile(/tmp/multipartBody7349693064754175557asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547203992,"filename":"image_18082025_08_31_25_10653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bf82f3637b28abad1a69bc1eaddce57e.jpg","text":"TemporaryFile(/tmp/multipartBody6092703324365297904asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547203992,"filename":"image_18082025_21_56_54_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/58ff33150fb83f8761e38d01c19904fa.jpg","text":"TemporaryFile(/tmp/multipartBody4174198633825824851asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547203992,"filename":"image_18082025_08_31_05_9681.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fb9e71ee988347d6c6d722810203f13d.jpg","text":"TemporaryFile(/tmp/multipartBody8932831025045711234asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547203992,"filename":"image_18082025_21_57_44_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b34706ce71165f91c3c53c2f1ec55754.jpg","text":"TemporaryFile(/tmp/multipartBody6072261615106397868asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547203992,"filename":"image_18082025_21_57_05_10648.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377718806","file1":"1377718802","file0":"1377718798","file4":"1377718812","file5":"1377718814","file3":"1377718810"},"map_files_photo_id_array":[{"photo_id":"1377718814","filename":"file5"},{"photo_id":"1377718806","filename":"file2"},{"photo_id":"1377718812","filename":"file4"},{"photo_id":"1377718802","filename":"file1"},{"photo_id":"1377718798","filename":"file0"},{"photo_id":"1377718810","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377718810":["hashtag1","hashtag2"]},{"1377718812":["hashtag1","hashtag2"]},{"1377718806":["hashtag1","hashtag2"]},{"1377718814":["hashtag1","hashtag2"]},{"1377718798":["hashtag1","hashtag2"]},{"1377718802":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377718810, 1377718812, 1377718806, 1377718814, 1377718798, 1377718802)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.083274126052856 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 21:59:46.833035
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/59/image_18082025_21_59_44_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/21/59/image_18082025_21_59_25_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/21/59/image_18082025_21_59_14_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/21/58/image_18082025_21_59_05_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/21/58/image_18082025_21_58_55_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/21/58/image_18082025_21_58_44_9628.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/59/image_18082025_21_59_44_9630.jpg', '/home/nano/Desktop/images/18082025/21/59/image_18082025_21_59_25_10637.jpg', '/home/nano/Desktop/images/18082025/21/59/image_18082025_21_59_14_9631.jpg', '/home/nano/Desktop/images/18082025/21/58/image_18082025_21_59_05_9650.jpg', '/home/nano/Desktop/images/18082025/21/58/image_18082025_21_58_55_10637.jpg', '/home/nano/Desktop/images/18082025/21/58/image_18082025_21_58_44_9628.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/59/image_18082025_21_59_44_9630.jpg
/home/nano/Desktop/images/18082025/21/59/image_18082025_21_59_25_10637.jpg
/home/nano/Desktop/images/18082025/21/59/image_18082025_21_59_14_9631.jpg
/home/nano/Desktop/images/18082025/21/58/image_18082025_21_59_05_9650.jpg
/home/nano/Desktop/images/18082025/21/58/image_18082025_21_58_55_10637.jpg
/home/nano/Desktop/images/18082025/21/58/image_18082025_21_58_44_9628.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377718831","1377718827","1377718842","1377718838","1377718829","1377718834"],"photo_ids_order":["1377718827","1377718829","1377718831","1377718834","1377718838","1377718842"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/06f9718021d3dd6885cf3e2252b0c0cd.jpg","text":"TemporaryFile(/tmp/multipartBody1577449717495776602asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547248150,"filename":"image_18082025_21_59_14_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cad24d38459c8bda5a085684f5ff6dd7.jpg","text":"TemporaryFile(/tmp/multipartBody7738485469123420274asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547248150,"filename":"image_18082025_21_59_44_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f96c44e202d7fafffca2769ce2564baf.jpg","text":"TemporaryFile(/tmp/multipartBody6361194859816661472asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547248150,"filename":"image_18082025_21_58_44_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/344f1620f2515835d82f499988392788.jpg","text":"TemporaryFile(/tmp/multipartBody2523485418751925136asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547248150,"filename":"image_18082025_21_58_55_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/48d6564d22f026d2b40ba1c7ecc1172e.jpg","text":"TemporaryFile(/tmp/multipartBody6377141649003570054asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547248150,"filename":"image_18082025_21_59_25_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8c09230936c69ff523d040694def43a1.jpg","text":"TemporaryFile(/tmp/multipartBody2450332464823094113asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547248150,"filename":"image_18082025_21_59_05_9650.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377718831","file1":"1377718829","file0":"1377718827","file4":"1377718838","file5":"1377718842","file3":"1377718834"},"map_files_photo_id_array":[{"photo_id":"1377718842","filename":"file5"},{"photo_id":"1377718831","filename":"file2"},{"photo_id":"1377718838","filename":"file4"},{"photo_id":"1377718829","filename":"file1"},{"photo_id":"1377718827","filename":"file0"},{"photo_id":"1377718834","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377718831":["hashtag1","hashtag2"]},{"1377718827":["hashtag1","hashtag2"]},{"1377718842":["hashtag1","hashtag2"]},{"1377718838":["hashtag1","hashtag2"]},{"1377718829":["hashtag1","hashtag2"]},{"1377718834":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377718831, 1377718827, 1377718842, 1377718838, 1377718829, 1377718834)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.040690183639526 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 22:00:31.945048
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/22/00/image_18082025_22_00_45_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/22/00/image_18082025_22_00_34_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/22/00/image_18082025_22_00_25_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/22/00/image_18082025_22_00_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/21/59/image_18082025_22_00_04_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/21/59/image_18082025_21_59_55_10642.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/22/00/image_18082025_22_00_45_10640.jpg', '/home/nano/Desktop/images/18082025/22/00/image_18082025_22_00_34_9627.jpg', '/home/nano/Desktop/images/18082025/22/00/image_18082025_22_00_25_10660.jpg', '/home/nano/Desktop/images/18082025/22/00/image_18082025_22_00_14_9660.jpg', '/home/nano/Desktop/images/18082025/21/59/image_18082025_22_00_04_9660.jpg', '/home/nano/Desktop/images/18082025/21/59/image_18082025_21_59_55_10642.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/22/00/image_18082025_22_00_45_10640.jpg
/home/nano/Desktop/images/18082025/22/00/image_18082025_22_00_34_9627.jpg
/home/nano/Desktop/images/18082025/22/00/image_18082025_22_00_25_10660.jpg
/home/nano/Desktop/images/18082025/22/00/image_18082025_22_00_14_9660.jpg
/home/nano/Desktop/images/18082025/21/59/image_18082025_22_00_04_9660.jpg
/home/nano/Desktop/images/18082025/21/59/image_18082025_21_59_55_10642.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377718858","1377718851","1377718854","1377718856","1377718853","1377718849"],"photo_ids_order":["1377718849","1377718851","1377718853","1377718854","1377718856","1377718858"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1fe6923009a2c338b5c80de65d73ce0a.jpg","text":"TemporaryFile(/tmp/multipartBody1278619967880064720asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547293637,"filename":"image_18082025_21_59_55_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6d4cf278dd9992aec273e242b450b69d.jpg","text":"TemporaryFile(/tmp/multipartBody808646944882397049asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547293637,"filename":"image_18082025_22_00_34_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1f56254a5a933c8c2c821179a8d1640e.jpg","text":"TemporaryFile(/tmp/multipartBody2517057746067658976asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547293637,"filename":"image_18082025_22_00_14_9660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/385e7304e7970730be6f3ac1e7592a41.jpg","text":"TemporaryFile(/tmp/multipartBody8642651670362640156asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547293637,"filename":"image_18082025_22_00_04_9660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5f044b33afb0cc31b1ca73b35a5c0c03.jpg","text":"TemporaryFile(/tmp/multipartBody8439463630921384296asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547293637,"filename":"image_18082025_22_00_25_10660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/021f6dcc2e8a8d0630ce3ca08a5706e3.jpg","text":"TemporaryFile(/tmp/multipartBody1179651012980132252asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547293637,"filename":"image_18082025_22_00_45_10640.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377718853","file1":"1377718851","file0":"1377718849","file4":"1377718856","file5":"1377718858","file3":"1377718854"},"map_files_photo_id_array":[{"photo_id":"1377718858","filename":"file5"},{"photo_id":"1377718853","filename":"file2"},{"photo_id":"1377718856","filename":"file4"},{"photo_id":"1377718851","filename":"file1"},{"photo_id":"1377718849","filename":"file0"},{"photo_id":"1377718854","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377718858":["hashtag1","hashtag2"]},{"1377718851":["hashtag1","hashtag2"]},{"1377718854":["hashtag1","hashtag2"]},{"1377718856":["hashtag1","hashtag2"]},{"1377718853":["hashtag1","hashtag2"]},{"1377718849":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377718858, 1377718851, 1377718854, 1377718856, 1377718853, 1377718849)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.55756711959839 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 22:01:17.031252
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/22/01/image_18082025_22_01_45_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/22/01/image_18082025_22_01_34_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/22/01/image_18082025_22_01_25_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/22/01/image_18082025_22_01_15_10676.jpg', 2), ('/home/nano/Desktop/images/18082025/22/00/image_18082025_22_01_04_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/22/00/image_18082025_22_00_55_9631.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/22/01/image_18082025_22_01_45_10642.jpg', '/home/nano/Desktop/images/18082025/22/01/image_18082025_22_01_34_9629.jpg', '/home/nano/Desktop/images/18082025/22/01/image_18082025_22_01_25_9630.jpg', '/home/nano/Desktop/images/18082025/22/01/image_18082025_22_01_15_10676.jpg', '/home/nano/Desktop/images/18082025/22/00/image_18082025_22_01_04_9641.jpg', '/home/nano/Desktop/images/18082025/22/00/image_18082025_22_00_55_9631.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/22/01/image_18082025_22_01_45_10642.jpg
/home/nano/Desktop/images/18082025/22/01/image_18082025_22_01_34_9629.jpg
/home/nano/Desktop/images/18082025/22/01/image_18082025_22_01_25_9630.jpg
/home/nano/Desktop/images/18082025/22/01/image_18082025_22_01_15_10676.jpg
/home/nano/Desktop/images/18082025/22/00/image_18082025_22_01_04_9641.jpg
/home/nano/Desktop/images/18082025/22/00/image_18082025_22_00_55_9631.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377718884","1377718874","1377718883","1377718885","1377718879","1377718882"],"photo_ids_order":["1377718874","1377718879","1377718882","1377718883","1377718884","1377718885"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5a502cda10e2d746cbb906fb56b45628.jpg","text":"TemporaryFile(/tmp/multipartBody3206825656260883881asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547338444,"filename":"image_18082025_22_01_04_9641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4f9057429008a70ef14655eea3719a44.jpg","text":"TemporaryFile(/tmp/multipartBody3949126510906911776asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547338444,"filename":"image_18082025_22_01_45_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3f6aa555b2303ac391949feec5b4ebdf.jpg","text":"TemporaryFile(/tmp/multipartBody3835764698390369438asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547338444,"filename":"image_18082025_22_01_15_10676.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fa794438f118c8c523a984fcea334d3e.jpg","text":"TemporaryFile(/tmp/multipartBody4728697973682728927asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547338444,"filename":"image_18082025_22_00_55_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/aeaaaba02c00621187af15e40086ba4c.jpg","text":"TemporaryFile(/tmp/multipartBody2233884453811020207asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547338444,"filename":"image_18082025_22_01_34_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dbe20adb81eb423b097e23e1ac65f13a.jpg","text":"TemporaryFile(/tmp/multipartBody1004893902432214305asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547338444,"filename":"image_18082025_22_01_25_9630.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377718882","file1":"1377718879","file0":"1377718874","file4":"1377718884","file5":"1377718885","file3":"1377718883"},"map_files_photo_id_array":[{"photo_id":"1377718885","filename":"file5"},{"photo_id":"1377718882","filename":"file2"},{"photo_id":"1377718884","filename":"file4"},{"photo_id":"1377718879","filename":"file1"},{"photo_id":"1377718874","filename":"file0"},{"photo_id":"1377718883","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377718884":["hashtag1","hashtag2"]},{"1377718874":["hashtag1","hashtag2"]},{"1377718883":["hashtag1","hashtag2"]},{"1377718885":["hashtag1","hashtag2"]},{"1377718879":["hashtag1","hashtag2"]},{"1377718882":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377718884, 1377718874, 1377718883, 1377718885, 1377718879, 1377718882)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.70426368713379 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 22:02:02.850707
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/21/58/image_18082025_21_58_25_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/21/58/image_18082025_21_58_14_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/21/57/image_18082025_21_58_05_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/21/57/image_18082025_21_57_54_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/08/30/image_18082025_08_30_55_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/08/30/image_18082025_08_30_44_9652.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/21/58/image_18082025_21_58_25_10660.jpg', '/home/nano/Desktop/images/18082025/21/58/image_18082025_21_58_14_9660.jpg', '/home/nano/Desktop/images/18082025/21/57/image_18082025_21_58_05_10658.jpg', '/home/nano/Desktop/images/18082025/21/57/image_18082025_21_57_54_9628.jpg', '/home/nano/Desktop/images/18082025/08/30/image_18082025_08_30_55_10666.jpg', '/home/nano/Desktop/images/18082025/08/30/image_18082025_08_30_44_9652.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/21/58/image_18082025_21_58_25_10660.jpg
/home/nano/Desktop/images/18082025/21/58/image_18082025_21_58_14_9660.jpg
/home/nano/Desktop/images/18082025/21/57/image_18082025_21_58_05_10658.jpg
/home/nano/Desktop/images/18082025/21/57/image_18082025_21_57_54_9628.jpg
/home/nano/Desktop/images/18082025/08/30/image_18082025_08_30_55_10666.jpg
/home/nano/Desktop/images/18082025/08/30/image_18082025_08_30_44_9652.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377718899","1377718902","1377718905","1377718910","1377718907","1377718894"],"photo_ids_order":["1377718894","1377718899","1377718902","1377718905","1377718907","1377718910"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d4d3676d05894713c77b252d4cabc1a0.jpg","text":"TemporaryFile(/tmp/multipartBody3457074828263688845asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547384284,"filename":"image_18082025_21_58_14_9660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d4918b5b6d91d68225c73d943595c265.jpg","text":"TemporaryFile(/tmp/multipartBody5582208958644988559asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547384284,"filename":"image_18082025_21_58_05_10658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7d01c5ef348f760c633df492881be0e4.jpg","text":"TemporaryFile(/tmp/multipartBody7456413860478014478asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547384284,"filename":"image_18082025_21_57_54_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a71e5eeace56de2a5cc275a419fb9c34.jpg","text":"TemporaryFile(/tmp/multipartBody1188282136841299675asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547384284,"filename":"image_18082025_08_30_44_9652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/eca3d35ff1f69d1936417659a34f5cf0.jpg","text":"TemporaryFile(/tmp/multipartBody1170422124585000454asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547384284,"filename":"image_18082025_08_30_55_10666.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b2fb6d29c6957a04269fdaf7662bf1ec.jpg","text":"TemporaryFile(/tmp/multipartBody4697606765395417798asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547384284,"filename":"image_18082025_21_58_25_10660.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377718902","file1":"1377718899","file0":"1377718894","file4":"1377718907","file5":"1377718910","file3":"1377718905"},"map_files_photo_id_array":[{"photo_id":"1377718910","filename":"file5"},{"photo_id":"1377718902","filename":"file2"},{"photo_id":"1377718907","filename":"file4"},{"photo_id":"1377718899","filename":"file1"},{"photo_id":"1377718894","filename":"file0"},{"photo_id":"1377718905","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377718899":["hashtag1","hashtag2"]},{"1377718902":["hashtag1","hashtag2"]},{"1377718905":["hashtag1","hashtag2"]},{"1377718910":["hashtag1","hashtag2"]},{"1377718907":["hashtag1","hashtag2"]},{"1377718894":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377718899, 1377718902, 1377718905, 1377718910, 1377718907, 1377718894)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.621410369873047 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 22:02:47.164610
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/22/02/image_18082025_22_02_24_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/22/01/image_18082025_22_02_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/22/01/image_18082025_22_01_54_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/08/29/image_18082025_08_30_05_9673.jpg', 2), ('/home/nano/Desktop/images/18082025/08/29/image_18082025_08_29_55_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/29/image_18082025_08_29_44_9622.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/22/02/image_18082025_22_02_24_9628.jpg', '/home/nano/Desktop/images/18082025/22/01/image_18082025_22_02_04_9651.jpg', '/home/nano/Desktop/images/18082025/22/01/image_18082025_22_01_54_9631.jpg', '/home/nano/Desktop/images/18082025/08/29/image_18082025_08_30_05_9673.jpg', '/home/nano/Desktop/images/18082025/08/29/image_18082025_08_29_55_10626.jpg', '/home/nano/Desktop/images/18082025/08/29/image_18082025_08_29_44_9622.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/22/02/image_18082025_22_02_24_9628.jpg
/home/nano/Desktop/images/18082025/22/01/image_18082025_22_02_04_9651.jpg
/home/nano/Desktop/images/18082025/22/01/image_18082025_22_01_54_9631.jpg
/home/nano/Desktop/images/18082025/08/29/image_18082025_08_30_05_9673.jpg
/home/nano/Desktop/images/18082025/08/29/image_18082025_08_29_55_10626.jpg
/home/nano/Desktop/images/18082025/08/29/image_18082025_08_29_44_9622.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377718926","1377718929","1377718931","1377718925","1377718928","1377718922"],"photo_ids_order":["1377718922","1377718925","1377718926","1377718928","1377718929","1377718931"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/70e79f5bbd9ca30a2c6228982a7036c7.jpg","text":"TemporaryFile(/tmp/multipartBody1870194013176203162asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547428726,"filename":"image_18082025_22_01_54_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7f2a1581ae1fb34a957682adad57cd3e.jpg","text":"TemporaryFile(/tmp/multipartBody4977131866997548140asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547428726,"filename":"image_18082025_08_29_55_10626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/806e8ad582d2bb939c7d07fd17095200.jpg","text":"TemporaryFile(/tmp/multipartBody8605087861885817163asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547428726,"filename":"image_18082025_08_29_44_9622.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f2f940e0e4362f8188ac16e90db13d95.jpg","text":"TemporaryFile(/tmp/multipartBody2059721703881695057asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547428726,"filename":"image_18082025_22_02_04_9651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/41c639a4b9f649b85b38811d31210b38.jpg","text":"TemporaryFile(/tmp/multipartBody1643961804639752619asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547428726,"filename":"image_18082025_08_30_05_9673.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1b7576bf4b2621d80873cadbc8b5ce1f.jpg","text":"TemporaryFile(/tmp/multipartBody5202317322371793274asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547428726,"filename":"image_18082025_22_02_24_9628.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377718926","file1":"1377718925","file0":"1377718922","file4":"1377718929","file5":"1377718931","file3":"1377718928"},"map_files_photo_id_array":[{"photo_id":"1377718931","filename":"file5"},{"photo_id":"1377718926","filename":"file2"},{"photo_id":"1377718929","filename":"file4"},{"photo_id":"1377718925","filename":"file1"},{"photo_id":"1377718922","filename":"file0"},{"photo_id":"1377718928","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377718926":["hashtag1","hashtag2"]},{"1377718929":["hashtag1","hashtag2"]},{"1377718931":["hashtag1","hashtag2"]},{"1377718925":["hashtag1","hashtag2"]},{"1377718928":["hashtag1","hashtag2"]},{"1377718922":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377718926, 1377718929, 1377718931, 1377718925, 1377718928, 1377718922)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.536724090576172 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 22:03:32.258164
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/22/03/image_18082025_22_03_45_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/22/03/image_18082025_22_03_35_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/22/03/image_18082025_22_03_24_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/22/03/image_18082025_22_03_15_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/22/02/image_18082025_22_02_34_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/08/29/image_18082025_08_29_35_9636.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/22/03/image_18082025_22_03_45_9647.jpg', '/home/nano/Desktop/images/18082025/22/03/image_18082025_22_03_35_10635.jpg', '/home/nano/Desktop/images/18082025/22/03/image_18082025_22_03_24_9633.jpg', '/home/nano/Desktop/images/18082025/22/03/image_18082025_22_03_15_9650.jpg', '/home/nano/Desktop/images/18082025/22/02/image_18082025_22_02_34_9628.jpg', '/home/nano/Desktop/images/18082025/08/29/image_18082025_08_29_35_9636.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/22/03/image_18082025_22_03_45_9647.jpg
/home/nano/Desktop/images/18082025/22/03/image_18082025_22_03_35_10635.jpg
/home/nano/Desktop/images/18082025/22/03/image_18082025_22_03_24_9633.jpg
/home/nano/Desktop/images/18082025/22/03/image_18082025_22_03_15_9650.jpg
/home/nano/Desktop/images/18082025/22/02/image_18082025_22_02_34_9628.jpg
/home/nano/Desktop/images/18082025/08/29/image_18082025_08_29_35_9636.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377718957","1377718959","1377718955","1377718949","1377718958","1377718952"],"photo_ids_order":["1377718949","1377718952","1377718955","1377718957","1377718958","1377718959"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cf726971b5ca2339f83967124a14cc9e.jpg","text":"TemporaryFile(/tmp/multipartBody8822822513533836024asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547473882,"filename":"image_18082025_22_03_15_9650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8f63f7902b2dffd7a359fb2012a3d6b4.jpg","text":"TemporaryFile(/tmp/multipartBody3227506266650593726asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547473882,"filename":"image_18082025_08_29_35_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/17e6c24187dfbcf57d9683cc3383fd19.jpg","text":"TemporaryFile(/tmp/multipartBody1025707724985392283asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547473882,"filename":"image_18082025_22_03_24_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6dc21d9ce95a9dbda92c1feeb9c0a405.jpg","text":"TemporaryFile(/tmp/multipartBody5904717163758747999asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547473882,"filename":"image_18082025_22_03_45_9647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/35595324ae58bdb829bb5e3de09d4ef4.jpg","text":"TemporaryFile(/tmp/multipartBody2963249288024986220asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547473882,"filename":"image_18082025_22_02_34_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/064e1e4ef83771f6e977454607f0ef49.jpg","text":"TemporaryFile(/tmp/multipartBody805568172126716586asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547473882,"filename":"image_18082025_22_03_35_10635.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377718955","file1":"1377718952","file0":"1377718949","file4":"1377718958","file5":"1377718959","file3":"1377718957"},"map_files_photo_id_array":[{"photo_id":"1377718959","filename":"file5"},{"photo_id":"1377718955","filename":"file2"},{"photo_id":"1377718958","filename":"file4"},{"photo_id":"1377718952","filename":"file1"},{"photo_id":"1377718949","filename":"file0"},{"photo_id":"1377718957","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377718957":["hashtag1","hashtag2"]},{"1377718959":["hashtag1","hashtag2"]},{"1377718955":["hashtag1","hashtag2"]},{"1377718949":["hashtag1","hashtag2"]},{"1377718958":["hashtag1","hashtag2"]},{"1377718952":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377718957, 1377718959, 1377718955, 1377718949, 1377718958, 1377718952)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.07528257369995 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 22:04:17.360185
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/22/04/image_18082025_22_04_44_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/22/04/image_18082025_22_04_24_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/22/04/image_18082025_22_04_15_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/22/03/image_18082025_22_03_54_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/08/29/image_18082025_08_29_25_10626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/29/image_18082025_08_29_14_9642.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/22/04/image_18082025_22_04_44_9627.jpg', '/home/nano/Desktop/images/18082025/22/04/image_18082025_22_04_24_9630.jpg', '/home/nano/Desktop/images/18082025/22/04/image_18082025_22_04_15_9657.jpg', '/home/nano/Desktop/images/18082025/22/03/image_18082025_22_03_54_9633.jpg', '/home/nano/Desktop/images/18082025/08/29/image_18082025_08_29_25_10626.jpg', '/home/nano/Desktop/images/18082025/08/29/image_18082025_08_29_14_9642.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/22/04/image_18082025_22_04_44_9627.jpg
/home/nano/Desktop/images/18082025/22/04/image_18082025_22_04_24_9630.jpg
/home/nano/Desktop/images/18082025/22/04/image_18082025_22_04_15_9657.jpg
/home/nano/Desktop/images/18082025/22/03/image_18082025_22_03_54_9633.jpg
/home/nano/Desktop/images/18082025/08/29/image_18082025_08_29_25_10626.jpg
/home/nano/Desktop/images/18082025/08/29/image_18082025_08_29_14_9642.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377718971","1377718985","1377718982","1377718979","1377718987","1377718975"],"photo_ids_order":["1377718971","1377718975","1377718979","1377718982","1377718985","1377718987"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a05afc05fbe33ce62da64259829539c0.jpg","text":"TemporaryFile(/tmp/multipartBody3982249129583885058asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547519652,"filename":"image_18082025_22_04_44_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d31d06ce89e06909c211af7d9e4f4b00.jpg","text":"TemporaryFile(/tmp/multipartBody5141270484428199284asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547519652,"filename":"image_18082025_08_29_25_10626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/90842ca162b14c50a6534248ed148e11.jpg","text":"TemporaryFile(/tmp/multipartBody1855947634727290676asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547519652,"filename":"image_18082025_22_03_54_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/516bbd7a435162b5aadc6d5a98f8722c.jpg","text":"TemporaryFile(/tmp/multipartBody8142348598543719618asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547519652,"filename":"image_18082025_22_04_15_9657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fcfe61b65d972fac43fa6b7dea295247.jpg","text":"TemporaryFile(/tmp/multipartBody6417324769741943563asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547519652,"filename":"image_18082025_08_29_14_9642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/14d387eb14a67b6f48dcdb612d52413f.jpg","text":"TemporaryFile(/tmp/multipartBody406981450079014722asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547519652,"filename":"image_18082025_22_04_24_9630.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377718979","file1":"1377718975","file0":"1377718971","file4":"1377718985","file5":"1377718987","file3":"1377718982"},"map_files_photo_id_array":[{"photo_id":"1377718987","filename":"file5"},{"photo_id":"1377718979","filename":"file2"},{"photo_id":"1377718985","filename":"file4"},{"photo_id":"1377718975","filename":"file1"},{"photo_id":"1377718971","filename":"file0"},{"photo_id":"1377718982","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377718971":["hashtag1","hashtag2"]},{"1377718985":["hashtag1","hashtag2"]},{"1377718982":["hashtag1","hashtag2"]},{"1377718979":["hashtag1","hashtag2"]},{"1377718987":["hashtag1","hashtag2"]},{"1377718975":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377718971, 1377718985, 1377718982, 1377718979, 1377718987, 1377718975)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.475282192230225 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 22:05:03.070364
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/28/image_18082025_08_29_05_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/08/28/image_18082025_08_28_55_10628.jpg', 2), ('/home/nano/Desktop/images/18082025/08/28/image_18082025_08_28_44_9612.jpg', 2), ('/home/nano/Desktop/images/18082025/08/28/image_18082025_08_28_35_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/08/28/image_18082025_08_28_24_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/08/28/image_18082025_08_28_15_9663.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/08/28/image_18082025_08_29_05_9656.jpg', '/home/nano/Desktop/images/18082025/08/28/image_18082025_08_28_55_10628.jpg', '/home/nano/Desktop/images/18082025/08/28/image_18082025_08_28_44_9612.jpg', '/home/nano/Desktop/images/18082025/08/28/image_18082025_08_28_35_10663.jpg', '/home/nano/Desktop/images/18082025/08/28/image_18082025_08_28_24_9629.jpg', '/home/nano/Desktop/images/18082025/08/28/image_18082025_08_28_15_9663.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/08/28/image_18082025_08_29_05_9656.jpg
/home/nano/Desktop/images/18082025/08/28/image_18082025_08_28_55_10628.jpg
/home/nano/Desktop/images/18082025/08/28/image_18082025_08_28_44_9612.jpg
/home/nano/Desktop/images/18082025/08/28/image_18082025_08_28_35_10663.jpg
/home/nano/Desktop/images/18082025/08/28/image_18082025_08_28_24_9629.jpg
/home/nano/Desktop/images/18082025/08/28/image_18082025_08_28_15_9663.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377719001","1377718994","1377718997","1377719006","1377719003","1377718999"],"photo_ids_order":["1377718994","1377718997","1377718999","1377719001","1377719003","1377719006"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a3eb8416d03840113015ed5a2bff954e.jpg","text":"TemporaryFile(/tmp/multipartBody1550511373883777427asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547564459,"filename":"image_18082025_08_28_35_10663.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/67d2246a502ede21b32c12cd81e1769d.jpg","text":"TemporaryFile(/tmp/multipartBody7110337538586344330asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547564459,"filename":"image_18082025_08_29_05_9656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/29e1e3806e1ba6d75c8b91a5faad50ff.jpg","text":"TemporaryFile(/tmp/multipartBody3847693525857130319asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547564459,"filename":"image_18082025_08_28_55_10628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8e476d5da4babd6b323dc70c92a63593.jpg","text":"TemporaryFile(/tmp/multipartBody4821282671293628031asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547564459,"filename":"image_18082025_08_28_15_9663.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ac5376e06d8ae9e1d07405322107d1f4.jpg","text":"TemporaryFile(/tmp/multipartBody7332036842293410219asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547564459,"filename":"image_18082025_08_28_24_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/23ef6ca3c64add96ac46cd204d8a05cb.jpg","text":"TemporaryFile(/tmp/multipartBody3225108765844785338asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547564459,"filename":"image_18082025_08_28_44_9612.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377718999","file1":"1377718997","file0":"1377718994","file4":"1377719003","file5":"1377719006","file3":"1377719001"},"map_files_photo_id_array":[{"photo_id":"1377719006","filename":"file5"},{"photo_id":"1377718999","filename":"file2"},{"photo_id":"1377719003","filename":"file4"},{"photo_id":"1377718997","filename":"file1"},{"photo_id":"1377718994","filename":"file0"},{"photo_id":"1377719001","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377719001":["hashtag1","hashtag2"]},{"1377718994":["hashtag1","hashtag2"]},{"1377718997":["hashtag1","hashtag2"]},{"1377719006":["hashtag1","hashtag2"]},{"1377719003":["hashtag1","hashtag2"]},{"1377718999":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377719001, 1377718994, 1377718997, 1377719006, 1377719003, 1377718999)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.5403254032135 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 22:05:47.476050
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/22/05/image_18082025_22_05_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/22/05/image_18082025_22_05_35_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/22/05/image_18082025_22_05_25_10643.jpg', 2), ('/home/nano/Desktop/images/18082025/22/05/image_18082025_22_05_14_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/22/04/image_18082025_22_05_05_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/22/04/image_18082025_22_04_54_9631.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/22/05/image_18082025_22_05_44_9643.jpg', '/home/nano/Desktop/images/18082025/22/05/image_18082025_22_05_35_9632.jpg', '/home/nano/Desktop/images/18082025/22/05/image_18082025_22_05_25_10643.jpg', '/home/nano/Desktop/images/18082025/22/05/image_18082025_22_05_14_9649.jpg', '/home/nano/Desktop/images/18082025/22/04/image_18082025_22_05_05_10645.jpg', '/home/nano/Desktop/images/18082025/22/04/image_18082025_22_04_54_9631.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/22/05/image_18082025_22_05_44_9643.jpg
/home/nano/Desktop/images/18082025/22/05/image_18082025_22_05_35_9632.jpg
/home/nano/Desktop/images/18082025/22/05/image_18082025_22_05_25_10643.jpg
/home/nano/Desktop/images/18082025/22/05/image_18082025_22_05_14_9649.jpg
/home/nano/Desktop/images/18082025/22/04/image_18082025_22_05_05_10645.jpg
/home/nano/Desktop/images/18082025/22/04/image_18082025_22_04_54_9631.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377719026","1377719030","1377719027","1377719020","1377719023","1377719017"],"photo_ids_order":["1377719017","1377719020","1377719023","1377719026","1377719027","1377719030"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2d17737f750739ea9c13f9e0d689bd8d.jpg","text":"TemporaryFile(/tmp/multipartBody6815939027252143816asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547608980,"filename":"image_18082025_22_05_14_9649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dd36108a2fcc1df2f99e664c24cc2a3e.jpg","text":"TemporaryFile(/tmp/multipartBody2594831077730671000asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547608980,"filename":"image_18082025_22_04_54_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1c8ad18c5e22f9a98069a21539af5db6.jpg","text":"TemporaryFile(/tmp/multipartBody6081642650905769003asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547608980,"filename":"image_18082025_22_05_05_10645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c9ef373b4c847999cf9693876802b0ff.jpg","text":"TemporaryFile(/tmp/multipartBody4480455547298358113asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547608980,"filename":"image_18082025_22_05_35_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/34136f0dea4e11914da4ac6b2bfe9f3b.jpg","text":"TemporaryFile(/tmp/multipartBody4200146548545381232asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547608980,"filename":"image_18082025_22_05_25_10643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5c7468e57505bcfa80f0f4451825185a.jpg","text":"TemporaryFile(/tmp/multipartBody2038075414391303600asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547608980,"filename":"image_18082025_22_05_44_9643.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377719023","file1":"1377719020","file0":"1377719017","file4":"1377719027","file5":"1377719030","file3":"1377719026"},"map_files_photo_id_array":[{"photo_id":"1377719030","filename":"file5"},{"photo_id":"1377719023","filename":"file2"},{"photo_id":"1377719027","filename":"file4"},{"photo_id":"1377719020","filename":"file1"},{"photo_id":"1377719017","filename":"file0"},{"photo_id":"1377719026","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377719026":["hashtag1","hashtag2"]},{"1377719030":["hashtag1","hashtag2"]},{"1377719027":["hashtag1","hashtag2"]},{"1377719020":["hashtag1","hashtag2"]},{"1377719023":["hashtag1","hashtag2"]},{"1377719017":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377719026, 1377719030, 1377719027, 1377719020, 1377719023, 1377719017)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.984187602996826 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 22:06:32.554761
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/22/06/image_18082025_22_06_44_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/22/06/image_18082025_22_06_25_10643.jpg', 2), ('/home/nano/Desktop/images/18082025/22/06/image_18082025_22_06_14_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/22/05/image_18082025_22_06_05_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/22/05/image_18082025_22_05_55_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/08/27/image_18082025_08_28_05_10641.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/22/06/image_18082025_22_06_44_9628.jpg', '/home/nano/Desktop/images/18082025/22/06/image_18082025_22_06_25_10643.jpg', '/home/nano/Desktop/images/18082025/22/06/image_18082025_22_06_14_9652.jpg', '/home/nano/Desktop/images/18082025/22/05/image_18082025_22_06_05_9651.jpg', '/home/nano/Desktop/images/18082025/22/05/image_18082025_22_05_55_10659.jpg', '/home/nano/Desktop/images/18082025/08/27/image_18082025_08_28_05_10641.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/22/06/image_18082025_22_06_44_9628.jpg
/home/nano/Desktop/images/18082025/22/06/image_18082025_22_06_25_10643.jpg
/home/nano/Desktop/images/18082025/22/06/image_18082025_22_06_14_9652.jpg
/home/nano/Desktop/images/18082025/22/05/image_18082025_22_06_05_9651.jpg
/home/nano/Desktop/images/18082025/22/05/image_18082025_22_05_55_10659.jpg
/home/nano/Desktop/images/18082025/08/27/image_18082025_08_28_05_10641.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377719050","1377719053","1377719047","1377719041","1377719044","1377719038"],"photo_ids_order":["1377719038","1377719041","1377719044","1377719047","1377719050","1377719053"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3aa1426990945b43abdc418649ef9104.jpg","text":"TemporaryFile(/tmp/multipartBody9129570847678733172asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547653923,"filename":"image_18082025_22_05_55_10659.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a23a6c661a9412ce95d954fd0c4a3cff.jpg","text":"TemporaryFile(/tmp/multipartBody1901428886342323853asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547653923,"filename":"image_18082025_08_28_05_10641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/53c1c39c05a16da11d265a8797a546ac.jpg","text":"TemporaryFile(/tmp/multipartBody812482463514627442asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547653923,"filename":"image_18082025_22_06_05_9651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4e4143fe474379b375e2fd7b9f9de48f.jpg","text":"TemporaryFile(/tmp/multipartBody4351603312363685427asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547653923,"filename":"image_18082025_22_06_25_10643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/028bdf1c8e651b141c4c77573076a0a8.jpg","text":"TemporaryFile(/tmp/multipartBody7038936436161900185asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547653923,"filename":"image_18082025_22_06_14_9652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ad4548c15d1ad301371a90f463c940db.jpg","text":"TemporaryFile(/tmp/multipartBody6767121133853914717asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547653923,"filename":"image_18082025_22_06_44_9628.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377719044","file1":"1377719041","file0":"1377719038","file4":"1377719050","file5":"1377719053","file3":"1377719047"},"map_files_photo_id_array":[{"photo_id":"1377719053","filename":"file5"},{"photo_id":"1377719044","filename":"file2"},{"photo_id":"1377719050","filename":"file4"},{"photo_id":"1377719041","filename":"file1"},{"photo_id":"1377719038","filename":"file0"},{"photo_id":"1377719047","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377719050":["hashtag1","hashtag2"]},{"1377719053":["hashtag1","hashtag2"]},{"1377719047":["hashtag1","hashtag2"]},{"1377719041":["hashtag1","hashtag2"]},{"1377719044":["hashtag1","hashtag2"]},{"1377719038":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377719050, 1377719053, 1377719047, 1377719041, 1377719044, 1377719038)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.803424835205078 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 22:07:17.727498
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/22/07/image_18082025_22_07_45_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/22/07/image_18082025_22_07_34_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/22/07/image_18082025_22_07_25_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/22/07/image_18082025_22_07_14_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/22/06/image_18082025_22_07_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/22/06/image_18082025_22_06_55_10641.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/22/07/image_18082025_22_07_45_10635.jpg', '/home/nano/Desktop/images/18082025/22/07/image_18082025_22_07_34_9647.jpg', '/home/nano/Desktop/images/18082025/22/07/image_18082025_22_07_25_10641.jpg', '/home/nano/Desktop/images/18082025/22/07/image_18082025_22_07_14_9649.jpg', '/home/nano/Desktop/images/18082025/22/06/image_18082025_22_07_04_9655.jpg', '/home/nano/Desktop/images/18082025/22/06/image_18082025_22_06_55_10641.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/22/07/image_18082025_22_07_45_10635.jpg
/home/nano/Desktop/images/18082025/22/07/image_18082025_22_07_34_9647.jpg
/home/nano/Desktop/images/18082025/22/07/image_18082025_22_07_25_10641.jpg
/home/nano/Desktop/images/18082025/22/07/image_18082025_22_07_14_9649.jpg
/home/nano/Desktop/images/18082025/22/06/image_18082025_22_07_04_9655.jpg
/home/nano/Desktop/images/18082025/22/06/image_18082025_22_06_55_10641.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377719061","1377719070","1377719064","1377719067","1377719072","1377719059"],"photo_ids_order":["1377719059","1377719061","1377719064","1377719067","1377719070","1377719072"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1cc52cb7df9577c734bbbcdb38ca3de1.jpg","text":"TemporaryFile(/tmp/multipartBody49914383073733325asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547699126,"filename":"image_18082025_22_07_34_9647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2e53f8fa17548a009099c6b82dd12ecd.jpg","text":"TemporaryFile(/tmp/multipartBody8988793943057335656asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547699126,"filename":"image_18082025_22_07_04_9655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b952466b48747058b24dae071ae2bfad.jpg","text":"TemporaryFile(/tmp/multipartBody1675630973917695345asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547699126,"filename":"image_18082025_22_07_25_10641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/47fc222fe36457396c8dec1838f061d7.jpg","text":"TemporaryFile(/tmp/multipartBody6692996120757589669asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547699126,"filename":"image_18082025_22_07_14_9649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8bc3036d8afbeb50618e7fb5a5ee2ea1.jpg","text":"TemporaryFile(/tmp/multipartBody6706980530609268504asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547699126,"filename":"image_18082025_22_06_55_10641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ac018056a350a0ef5441cf9e7fdb9ca9.jpg","text":"TemporaryFile(/tmp/multipartBody1340932423596086949asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547699126,"filename":"image_18082025_22_07_45_10635.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377719064","file1":"1377719061","file0":"1377719059","file4":"1377719070","file5":"1377719072","file3":"1377719067"},"map_files_photo_id_array":[{"photo_id":"1377719072","filename":"file5"},{"photo_id":"1377719064","filename":"file2"},{"photo_id":"1377719070","filename":"file4"},{"photo_id":"1377719061","filename":"file1"},{"photo_id":"1377719059","filename":"file0"},{"photo_id":"1377719067","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377719061":["hashtag1","hashtag2"]},{"1377719070":["hashtag1","hashtag2"]},{"1377719064":["hashtag1","hashtag2"]},{"1377719067":["hashtag1","hashtag2"]},{"1377719072":["hashtag1","hashtag2"]},{"1377719059":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377719061, 1377719070, 1377719064, 1377719067, 1377719072, 1377719059)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.057888507843018 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 22:08:02.373021
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/27/image_18082025_08_27_54_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/08/27/image_18082025_08_27_45_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/08/27/image_18082025_08_27_35_10627.jpg', 2), ('/home/nano/Desktop/images/18082025/08/27/image_18082025_08_27_24_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/08/27/image_18082025_08_27_15_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/08/26/image_18082025_08_27_05_10632.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/08/27/image_18082025_08_27_54_9650.jpg', '/home/nano/Desktop/images/18082025/08/27/image_18082025_08_27_45_9630.jpg', '/home/nano/Desktop/images/18082025/08/27/image_18082025_08_27_35_10627.jpg', '/home/nano/Desktop/images/18082025/08/27/image_18082025_08_27_24_9615.jpg', '/home/nano/Desktop/images/18082025/08/27/image_18082025_08_27_15_9646.jpg', '/home/nano/Desktop/images/18082025/08/26/image_18082025_08_27_05_10632.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/08/27/image_18082025_08_27_54_9650.jpg
/home/nano/Desktop/images/18082025/08/27/image_18082025_08_27_45_9630.jpg
/home/nano/Desktop/images/18082025/08/27/image_18082025_08_27_35_10627.jpg
/home/nano/Desktop/images/18082025/08/27/image_18082025_08_27_24_9615.jpg
/home/nano/Desktop/images/18082025/08/27/image_18082025_08_27_15_9646.jpg
/home/nano/Desktop/images/18082025/08/26/image_18082025_08_27_05_10632.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377719076","1377719079","1377719090","1377719081","1377719083","1377719086"],"photo_ids_order":["1377719076","1377719079","1377719081","1377719083","1377719086","1377719090"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/84f1954f376f491971dc2be3a0fb940d.jpg","text":"TemporaryFile(/tmp/multipartBody3979838776753787515asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547743755,"filename":"image_18082025_08_27_54_9650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fa751e5ca2ba926b7f4982e9eff76c50.jpg","text":"TemporaryFile(/tmp/multipartBody206580063289804740asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547743755,"filename":"image_18082025_08_27_45_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/423c4a6256a8604aa4fb1001f069229c.jpg","text":"TemporaryFile(/tmp/multipartBody5648542455563619717asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547743755,"filename":"image_18082025_08_27_05_10632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2fb6a6d16c639db1eb1243e5c86c42ee.jpg","text":"TemporaryFile(/tmp/multipartBody6329340872608963324asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547743755,"filename":"image_18082025_08_27_35_10627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/db5989943a2f3ca6230a132cc0a076ec.jpg","text":"TemporaryFile(/tmp/multipartBody6219812947047457556asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547743755,"filename":"image_18082025_08_27_24_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/57cd43cd87031c0d45fdf1e844ee18d1.jpg","text":"TemporaryFile(/tmp/multipartBody2734659611864828987asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547743755,"filename":"image_18082025_08_27_15_9646.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377719081","file1":"1377719079","file0":"1377719076","file4":"1377719086","file5":"1377719090","file3":"1377719083"},"map_files_photo_id_array":[{"photo_id":"1377719090","filename":"file5"},{"photo_id":"1377719081","filename":"file2"},{"photo_id":"1377719086","filename":"file4"},{"photo_id":"1377719079","filename":"file1"},{"photo_id":"1377719076","filename":"file0"},{"photo_id":"1377719083","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377719076":["hashtag1","hashtag2"]},{"1377719079":["hashtag1","hashtag2"]},{"1377719090":["hashtag1","hashtag2"]},{"1377719081":["hashtag1","hashtag2"]},{"1377719083":["hashtag1","hashtag2"]},{"1377719086":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377719076, 1377719079, 1377719090, 1377719081, 1377719083, 1377719086)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.166593074798584 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 22:08:46.814453
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/22/08/image_18082025_22_08_45_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/22/08/image_18082025_22_08_34_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/22/08/image_18082025_22_08_25_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/22/08/image_18082025_22_08_15_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/22/07/image_18082025_22_07_55_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/08/26/image_18082025_08_26_54_9631.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/22/08/image_18082025_22_08_45_10655.jpg', '/home/nano/Desktop/images/18082025/22/08/image_18082025_22_08_34_9631.jpg', '/home/nano/Desktop/images/18082025/22/08/image_18082025_22_08_25_9652.jpg', '/home/nano/Desktop/images/18082025/22/08/image_18082025_22_08_15_10656.jpg', '/home/nano/Desktop/images/18082025/22/07/image_18082025_22_07_55_9629.jpg', '/home/nano/Desktop/images/18082025/08/26/image_18082025_08_26_54_9631.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/22/08/image_18082025_22_08_45_10655.jpg
/home/nano/Desktop/images/18082025/22/08/image_18082025_22_08_34_9631.jpg
/home/nano/Desktop/images/18082025/22/08/image_18082025_22_08_25_9652.jpg
/home/nano/Desktop/images/18082025/22/08/image_18082025_22_08_15_10656.jpg
/home/nano/Desktop/images/18082025/22/07/image_18082025_22_07_55_9629.jpg
/home/nano/Desktop/images/18082025/08/26/image_18082025_08_26_54_9631.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.2982518672943115 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 22:09:02.835922
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/22/08/image_18082025_22_08_45_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/22/08/image_18082025_22_08_34_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/22/08/image_18082025_22_08_25_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/22/08/image_18082025_22_08_15_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/22/07/image_18082025_22_07_55_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/08/26/image_18082025_08_26_54_9631.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/22/08/image_18082025_22_08_45_10655.jpg', '/home/nano/Desktop/images/18082025/22/08/image_18082025_22_08_34_9631.jpg', '/home/nano/Desktop/images/18082025/22/08/image_18082025_22_08_25_9652.jpg', '/home/nano/Desktop/images/18082025/22/08/image_18082025_22_08_15_10656.jpg', '/home/nano/Desktop/images/18082025/22/07/image_18082025_22_07_55_9629.jpg', '/home/nano/Desktop/images/18082025/08/26/image_18082025_08_26_54_9631.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/22/08/image_18082025_22_08_45_10655.jpg
/home/nano/Desktop/images/18082025/22/08/image_18082025_22_08_34_9631.jpg
/home/nano/Desktop/images/18082025/22/08/image_18082025_22_08_25_9652.jpg
/home/nano/Desktop/images/18082025/22/08/image_18082025_22_08_15_10656.jpg
/home/nano/Desktop/images/18082025/22/07/image_18082025_22_07_55_9629.jpg
/home/nano/Desktop/images/18082025/08/26/image_18082025_08_26_54_9631.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377719119","1377719124","1377719121","1377719117","1377719113","1377719122"],"photo_ids_order":["1377719113","1377719117","1377719119","1377719121","1377719122","1377719124"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8f79b80b5e43c447573d33d924d08adb.jpg","text":"TemporaryFile(/tmp/multipartBody8031298153717834098asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547804475,"filename":"image_18082025_22_08_25_9652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a83a909f9863f1204d0cdae3d69b764e.jpg","text":"TemporaryFile(/tmp/multipartBody5649526465369047576asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547804475,"filename":"image_18082025_08_26_54_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a41d91f656534063a02cf22307792df8.jpg","text":"TemporaryFile(/tmp/multipartBody6337941352289633296asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547804475,"filename":"image_18082025_22_08_15_10656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ef576892b9bce1acdd9c14b981c2a716.jpg","text":"TemporaryFile(/tmp/multipartBody1056062417703927551asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547804475,"filename":"image_18082025_22_08_34_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/91537b56ebfe09e8dceabb702f8ac31d.jpg","text":"TemporaryFile(/tmp/multipartBody11673376220937050asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547804475,"filename":"image_18082025_22_08_45_10655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a18f22b0ac7a1b947d57a32c743956d6.jpg","text":"TemporaryFile(/tmp/multipartBody6016129821260743912asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547804475,"filename":"image_18082025_22_07_55_9629.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377719119","file1":"1377719117","file0":"1377719113","file4":"1377719122","file5":"1377719124","file3":"1377719121"},"map_files_photo_id_array":[{"photo_id":"1377719124","filename":"file5"},{"photo_id":"1377719119","filename":"file2"},{"photo_id":"1377719122","filename":"file4"},{"photo_id":"1377719117","filename":"file1"},{"photo_id":"1377719113","filename":"file0"},{"photo_id":"1377719121","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377719119":["hashtag1","hashtag2"]},{"1377719124":["hashtag1","hashtag2"]},{"1377719121":["hashtag1","hashtag2"]},{"1377719117":["hashtag1","hashtag2"]},{"1377719113":["hashtag1","hashtag2"]},{"1377719122":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377719119, 1377719124, 1377719121, 1377719117, 1377719113, 1377719122)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.515604496002197 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 22:09:46.923410
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/22/09/image_18082025_22_09_34_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/22/09/image_18082025_22_09_24_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/22/09/image_18082025_22_09_15_10704.jpg', 2), ('/home/nano/Desktop/images/18082025/22/08/image_18082025_22_09_04_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/22/08/image_18082025_22_08_55_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/08/26/image_18082025_08_26_45_10648.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/22/09/image_18082025_22_09_34_9631.jpg', '/home/nano/Desktop/images/18082025/22/09/image_18082025_22_09_24_9630.jpg', '/home/nano/Desktop/images/18082025/22/09/image_18082025_22_09_15_10704.jpg', '/home/nano/Desktop/images/18082025/22/08/image_18082025_22_09_04_9633.jpg', '/home/nano/Desktop/images/18082025/22/08/image_18082025_22_08_55_9625.jpg', '/home/nano/Desktop/images/18082025/08/26/image_18082025_08_26_45_10648.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/22/09/image_18082025_22_09_34_9631.jpg
/home/nano/Desktop/images/18082025/22/09/image_18082025_22_09_24_9630.jpg
/home/nano/Desktop/images/18082025/22/09/image_18082025_22_09_15_10704.jpg
/home/nano/Desktop/images/18082025/22/08/image_18082025_22_09_04_9633.jpg
/home/nano/Desktop/images/18082025/22/08/image_18082025_22_08_55_9625.jpg
/home/nano/Desktop/images/18082025/08/26/image_18082025_08_26_45_10648.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377719157","1377719151","1377719154","1377719150","1377719152","1377719149"],"photo_ids_order":["1377719149","1377719150","1377719151","1377719152","1377719154","1377719157"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fa339d3d26af382cee937a34e451f585.jpg","text":"TemporaryFile(/tmp/multipartBody6445475509668004703asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547848403,"filename":"image_18082025_08_26_45_10648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/440945b4aaf560b299cbb8034ccb9e59.jpg","text":"TemporaryFile(/tmp/multipartBody3478659620597927863asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547848403,"filename":"image_18082025_22_09_15_10704.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b25998aca875adfd27759eef8463fcda.jpg","text":"TemporaryFile(/tmp/multipartBody1085951207065854907asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547848403,"filename":"image_18082025_22_08_55_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4a6576d15e6b351e1b2b2c3d0cd64dae.jpg","text":"TemporaryFile(/tmp/multipartBody1674837005277537944asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547848403,"filename":"image_18082025_22_09_24_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c89cf7c9f5f835b83237ef3f6eecc67b.jpg","text":"TemporaryFile(/tmp/multipartBody8803984347810688764asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547848403,"filename":"image_18082025_22_09_04_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1aa23a13c984f0b7c439ab6060d8d6ea.jpg","text":"TemporaryFile(/tmp/multipartBody4954828674590275210asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547848403,"filename":"image_18082025_22_09_34_9631.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377719151","file1":"1377719150","file0":"1377719149","file4":"1377719154","file5":"1377719157","file3":"1377719152"},"map_files_photo_id_array":[{"photo_id":"1377719157","filename":"file5"},{"photo_id":"1377719151","filename":"file2"},{"photo_id":"1377719154","filename":"file4"},{"photo_id":"1377719150","filename":"file1"},{"photo_id":"1377719149","filename":"file0"},{"photo_id":"1377719152","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377719157":["hashtag1","hashtag2"]},{"1377719151":["hashtag1","hashtag2"]},{"1377719154":["hashtag1","hashtag2"]},{"1377719150":["hashtag1","hashtag2"]},{"1377719152":["hashtag1","hashtag2"]},{"1377719149":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377719157, 1377719151, 1377719154, 1377719150, 1377719152, 1377719149)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.21558403968811 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 22:10:32.025181
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/22/10/image_18082025_22_10_45_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/22/10/image_18082025_22_10_35_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/22/10/image_18082025_22_10_24_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/22/10/image_18082025_22_10_15_9688.jpg', 2), ('/home/nano/Desktop/images/18082025/22/09/image_18082025_22_10_05_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/22/09/image_18082025_22_09_54_9627.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/22/10/image_18082025_22_10_45_9631.jpg', '/home/nano/Desktop/images/18082025/22/10/image_18082025_22_10_35_10639.jpg', '/home/nano/Desktop/images/18082025/22/10/image_18082025_22_10_24_9627.jpg', '/home/nano/Desktop/images/18082025/22/10/image_18082025_22_10_15_9688.jpg', '/home/nano/Desktop/images/18082025/22/09/image_18082025_22_10_05_10650.jpg', '/home/nano/Desktop/images/18082025/22/09/image_18082025_22_09_54_9627.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/22/10/image_18082025_22_10_45_9631.jpg
/home/nano/Desktop/images/18082025/22/10/image_18082025_22_10_35_10639.jpg
/home/nano/Desktop/images/18082025/22/10/image_18082025_22_10_24_9627.jpg
/home/nano/Desktop/images/18082025/22/10/image_18082025_22_10_15_9688.jpg
/home/nano/Desktop/images/18082025/22/09/image_18082025_22_10_05_10650.jpg
/home/nano/Desktop/images/18082025/22/09/image_18082025_22_09_54_9627.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377719181","1377719171","1377719174","1377719177","1377719179","1377719173"],"photo_ids_order":["1377719171","1377719173","1377719174","1377719177","1377719179","1377719181"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/268549ac97bb528ecd7d18f8572b502a.jpg","text":"TemporaryFile(/tmp/multipartBody6561015369499059836asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547893323,"filename":"image_18082025_22_09_54_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1aafbbca7ba6fe04acafd4b0c81b3dbf.jpg","text":"TemporaryFile(/tmp/multipartBody3905910663752368325asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547893323,"filename":"image_18082025_22_10_45_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e3709b897c1c029b563630dbe9400382.jpg","text":"TemporaryFile(/tmp/multipartBody4041591961070960279asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547893323,"filename":"image_18082025_22_10_24_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/059816bdc7f3b0742b7d702a9ab065e1.jpg","text":"TemporaryFile(/tmp/multipartBody4867787990761560364asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547893323,"filename":"image_18082025_22_10_15_9688.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1c54e94ded5f69432ce858a7bc914b21.jpg","text":"TemporaryFile(/tmp/multipartBody5068875719420920576asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547893323,"filename":"image_18082025_22_10_05_10650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ac5cd6cc94b3a7fdf2c0ccf3c43a3f4e.jpg","text":"TemporaryFile(/tmp/multipartBody2090998557513988825asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547893323,"filename":"image_18082025_22_10_35_10639.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377719174","file1":"1377719173","file0":"1377719171","file4":"1377719179","file5":"1377719181","file3":"1377719177"},"map_files_photo_id_array":[{"photo_id":"1377719181","filename":"file5"},{"photo_id":"1377719174","filename":"file2"},{"photo_id":"1377719179","filename":"file4"},{"photo_id":"1377719173","filename":"file1"},{"photo_id":"1377719171","filename":"file0"},{"photo_id":"1377719177","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377719181":["hashtag1","hashtag2"]},{"1377719171":["hashtag1","hashtag2"]},{"1377719174":["hashtag1","hashtag2"]},{"1377719177":["hashtag1","hashtag2"]},{"1377719179":["hashtag1","hashtag2"]},{"1377719173":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377719181, 1377719171, 1377719174, 1377719177, 1377719179, 1377719173)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.600849390029907 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 22:11:17.168621
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/22/11/image_18082025_22_11_44_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/22/11/image_18082025_22_11_35_10643.jpg', 2), ('/home/nano/Desktop/images/18082025/22/11/image_18082025_22_11_24_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/22/11/image_18082025_22_11_15_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/22/10/image_18082025_22_11_05_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/22/10/image_18082025_22_10_54_9625.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/22/11/image_18082025_22_11_44_9629.jpg', '/home/nano/Desktop/images/18082025/22/11/image_18082025_22_11_35_10643.jpg', '/home/nano/Desktop/images/18082025/22/11/image_18082025_22_11_24_9625.jpg', '/home/nano/Desktop/images/18082025/22/11/image_18082025_22_11_15_9650.jpg', '/home/nano/Desktop/images/18082025/22/10/image_18082025_22_11_05_10642.jpg', '/home/nano/Desktop/images/18082025/22/10/image_18082025_22_10_54_9625.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/22/11/image_18082025_22_11_44_9629.jpg
/home/nano/Desktop/images/18082025/22/11/image_18082025_22_11_35_10643.jpg
/home/nano/Desktop/images/18082025/22/11/image_18082025_22_11_24_9625.jpg
/home/nano/Desktop/images/18082025/22/11/image_18082025_22_11_15_9650.jpg
/home/nano/Desktop/images/18082025/22/10/image_18082025_22_11_05_10642.jpg
/home/nano/Desktop/images/18082025/22/10/image_18082025_22_10_54_9625.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377719193","1377719196","1377719190","1377719205","1377719202","1377719199"],"photo_ids_order":["1377719190","1377719193","1377719196","1377719199","1377719202","1377719205"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/13112dc6849b19bdee36c7b15aa4120d.jpg","text":"TemporaryFile(/tmp/multipartBody321936949864415729asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547938529,"filename":"image_18082025_22_11_35_10643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e5ef06e5445f74b4650f8cc4fa6a2605.jpg","text":"TemporaryFile(/tmp/multipartBody6186992824132230168asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547938529,"filename":"image_18082025_22_11_24_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/184b51218fac0d3359525b4512246815.jpg","text":"TemporaryFile(/tmp/multipartBody5397046297831434886asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547938529,"filename":"image_18082025_22_11_44_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bd43d240f5f0256647126ef364410984.jpg","text":"TemporaryFile(/tmp/multipartBody7804359743870346195asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547938529,"filename":"image_18082025_22_10_54_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/41e18d405ea1b6920c2ff265744a516f.jpg","text":"TemporaryFile(/tmp/multipartBody7620081268889732955asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547938529,"filename":"image_18082025_22_11_05_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1c7b6de7572611d869b6325ee808bddc.jpg","text":"TemporaryFile(/tmp/multipartBody2024963006231315693asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547938529,"filename":"image_18082025_22_11_15_9650.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377719196","file1":"1377719193","file0":"1377719190","file4":"1377719202","file5":"1377719205","file3":"1377719199"},"map_files_photo_id_array":[{"photo_id":"1377719205","filename":"file5"},{"photo_id":"1377719196","filename":"file2"},{"photo_id":"1377719202","filename":"file4"},{"photo_id":"1377719193","filename":"file1"},{"photo_id":"1377719190","filename":"file0"},{"photo_id":"1377719199","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377719193":["hashtag1","hashtag2"]},{"1377719196":["hashtag1","hashtag2"]},{"1377719190":["hashtag1","hashtag2"]},{"1377719205":["hashtag1","hashtag2"]},{"1377719202":["hashtag1","hashtag2"]},{"1377719199":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377719193, 1377719196, 1377719190, 1377719205, 1377719202, 1377719199)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.74468755722046 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 22:12:02.852436
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/26/image_18082025_08_26_34_9605.jpg', 2), ('/home/nano/Desktop/images/18082025/08/26/image_18082025_08_26_25_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/08/26/image_18082025_08_26_15_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/08/25/image_18082025_08_26_04_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/08/25/image_18082025_08_25_55_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/08/25/image_18082025_08_25_45_10616.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/08/26/image_18082025_08_26_34_9605.jpg', '/home/nano/Desktop/images/18082025/08/26/image_18082025_08_26_25_9617.jpg', '/home/nano/Desktop/images/18082025/08/26/image_18082025_08_26_15_10665.jpg', '/home/nano/Desktop/images/18082025/08/25/image_18082025_08_26_04_9638.jpg', '/home/nano/Desktop/images/18082025/08/25/image_18082025_08_25_55_9615.jpg', '/home/nano/Desktop/images/18082025/08/25/image_18082025_08_25_45_10616.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/08/26/image_18082025_08_26_34_9605.jpg
/home/nano/Desktop/images/18082025/08/26/image_18082025_08_26_25_9617.jpg
/home/nano/Desktop/images/18082025/08/26/image_18082025_08_26_15_10665.jpg
/home/nano/Desktop/images/18082025/08/25/image_18082025_08_26_04_9638.jpg
/home/nano/Desktop/images/18082025/08/25/image_18082025_08_25_55_9615.jpg
/home/nano/Desktop/images/18082025/08/25/image_18082025_08_25_45_10616.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.3291237354278564 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 22:12:17.245728
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/22/12/image_18082025_22_12_44_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/22/12/image_18082025_22_12_35_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/22/12/image_18082025_22_12_25_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/22/11/image_18082025_22_12_05_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/22/11/image_18082025_22_11_54_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/08/26/image_18082025_08_26_34_9605.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/22/12/image_18082025_22_12_44_9630.jpg', '/home/nano/Desktop/images/18082025/22/12/image_18082025_22_12_35_9631.jpg', '/home/nano/Desktop/images/18082025/22/12/image_18082025_22_12_25_10637.jpg', '/home/nano/Desktop/images/18082025/22/11/image_18082025_22_12_05_10641.jpg', '/home/nano/Desktop/images/18082025/22/11/image_18082025_22_11_54_9627.jpg', '/home/nano/Desktop/images/18082025/08/26/image_18082025_08_26_34_9605.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/22/12/image_18082025_22_12_44_9630.jpg
/home/nano/Desktop/images/18082025/22/12/image_18082025_22_12_35_9631.jpg
/home/nano/Desktop/images/18082025/22/12/image_18082025_22_12_25_10637.jpg
/home/nano/Desktop/images/18082025/22/11/image_18082025_22_12_05_10641.jpg
/home/nano/Desktop/images/18082025/22/11/image_18082025_22_11_54_9627.jpg
/home/nano/Desktop/images/18082025/08/26/image_18082025_08_26_34_9605.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377719232","1377719234","1377719222","1377719230","1377719233","1377719227"],"photo_ids_order":["1377719222","1377719227","1377719230","1377719232","1377719233","1377719234"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c3a9aead9fe80fd58bbc7b965886f905.jpg","text":"TemporaryFile(/tmp/multipartBody3240558272476265788asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547998568,"filename":"image_18082025_22_12_05_10641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/63d397866521224b6909c0b14246c019.jpg","text":"TemporaryFile(/tmp/multipartBody7769843898932627720asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547998568,"filename":"image_18082025_08_26_34_9605.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/06e9ec2615b114f6d7f6a0173c3cbebd.jpg","text":"TemporaryFile(/tmp/multipartBody1281042414195796763asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547998568,"filename":"image_18082025_22_12_44_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4d65abdefd2f440676af2475442e0ebf.jpg","text":"TemporaryFile(/tmp/multipartBody8153348486132970712asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547998568,"filename":"image_18082025_22_12_25_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5e65f0946b014b2c8827aaf1eab3989d.jpg","text":"TemporaryFile(/tmp/multipartBody5147187722840052875asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547998568,"filename":"image_18082025_22_11_54_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7c80bbfbc1ed7b11cc1439836dcb5c08.jpg","text":"TemporaryFile(/tmp/multipartBody577984566741696502asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755547998568,"filename":"image_18082025_22_12_35_9631.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377719230","file1":"1377719227","file0":"1377719222","file4":"1377719233","file5":"1377719234","file3":"1377719232"},"map_files_photo_id_array":[{"photo_id":"1377719234","filename":"file5"},{"photo_id":"1377719230","filename":"file2"},{"photo_id":"1377719233","filename":"file4"},{"photo_id":"1377719227","filename":"file1"},{"photo_id":"1377719222","filename":"file0"},{"photo_id":"1377719232","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377719232":["hashtag1","hashtag2"]},{"1377719234":["hashtag1","hashtag2"]},{"1377719222":["hashtag1","hashtag2"]},{"1377719230":["hashtag1","hashtag2"]},{"1377719233":["hashtag1","hashtag2"]},{"1377719227":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377719232, 1377719234, 1377719222, 1377719230, 1377719233, 1377719227)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.25461435317993 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 22:13:03.006896
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/26/image_18082025_08_26_25_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/08/26/image_18082025_08_26_15_10665.jpg', 2), ('/home/nano/Desktop/images/18082025/08/25/image_18082025_08_26_04_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/08/25/image_18082025_08_25_55_9615.jpg', 2), ('/home/nano/Desktop/images/18082025/08/25/image_18082025_08_25_45_10616.jpg', 2), ('/home/nano/Desktop/images/18082025/08/25/image_18082025_08_25_34_9638.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/08/26/image_18082025_08_26_25_9617.jpg', '/home/nano/Desktop/images/18082025/08/26/image_18082025_08_26_15_10665.jpg', '/home/nano/Desktop/images/18082025/08/25/image_18082025_08_26_04_9638.jpg', '/home/nano/Desktop/images/18082025/08/25/image_18082025_08_25_55_9615.jpg', '/home/nano/Desktop/images/18082025/08/25/image_18082025_08_25_45_10616.jpg', '/home/nano/Desktop/images/18082025/08/25/image_18082025_08_25_34_9638.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/08/26/image_18082025_08_26_25_9617.jpg
/home/nano/Desktop/images/18082025/08/26/image_18082025_08_26_15_10665.jpg
/home/nano/Desktop/images/18082025/08/25/image_18082025_08_26_04_9638.jpg
/home/nano/Desktop/images/18082025/08/25/image_18082025_08_25_55_9615.jpg
/home/nano/Desktop/images/18082025/08/25/image_18082025_08_25_45_10616.jpg
/home/nano/Desktop/images/18082025/08/25/image_18082025_08_25_34_9638.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377719252","1377719246","1377719255","1377719249","1377719258","1377719243"],"photo_ids_order":["1377719243","1377719246","1377719249","1377719252","1377719255","1377719258"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bd92a082c4f309aed1c72d704bf21128.jpg","text":"TemporaryFile(/tmp/multipartBody4433395716907986873asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548044512,"filename":"image_18082025_08_25_55_9615.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e15b9f5037a216473bd6fef73f04a3b7.jpg","text":"TemporaryFile(/tmp/multipartBody5565243123016749350asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548044512,"filename":"image_18082025_08_26_15_10665.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/46bb640c665b7f0919c3d4f794b35416.jpg","text":"TemporaryFile(/tmp/multipartBody4050907525510835106asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548044512,"filename":"image_18082025_08_25_45_10616.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/72bdb0a6ffd59e39555240b687574925.jpg","text":"TemporaryFile(/tmp/multipartBody4144247784353095032asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548044512,"filename":"image_18082025_08_26_04_9638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/582b7707c8b8dd6f32c263ba8689e440.jpg","text":"TemporaryFile(/tmp/multipartBody2978033343850630310asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548044512,"filename":"image_18082025_08_25_34_9638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9175dc9133b309a9f3db8ff4d7f39dfc.jpg","text":"TemporaryFile(/tmp/multipartBody9081715853165470239asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548044512,"filename":"image_18082025_08_26_25_9617.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377719249","file1":"1377719246","file0":"1377719243","file4":"1377719255","file5":"1377719258","file3":"1377719252"},"map_files_photo_id_array":[{"photo_id":"1377719258","filename":"file5"},{"photo_id":"1377719249","filename":"file2"},{"photo_id":"1377719255","filename":"file4"},{"photo_id":"1377719246","filename":"file1"},{"photo_id":"1377719243","filename":"file0"},{"photo_id":"1377719252","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377719252":["hashtag1","hashtag2"]},{"1377719246":["hashtag1","hashtag2"]},{"1377719255":["hashtag1","hashtag2"]},{"1377719249":["hashtag1","hashtag2"]},{"1377719258":["hashtag1","hashtag2"]},{"1377719243":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377719252, 1377719246, 1377719255, 1377719249, 1377719258, 1377719243)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.981383085250854 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 22:13:47.371227
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/22/13/image_18082025_22_13_44_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/22/13/image_18082025_22_13_35_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/22/13/image_18082025_22_13_25_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/22/13/image_18082025_22_13_14_9673.jpg', 2), ('/home/nano/Desktop/images/18082025/22/12/image_18082025_22_13_05_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/22/12/image_18082025_22_12_55_10639.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/22/13/image_18082025_22_13_44_9632.jpg', '/home/nano/Desktop/images/18082025/22/13/image_18082025_22_13_35_9629.jpg', '/home/nano/Desktop/images/18082025/22/13/image_18082025_22_13_25_10656.jpg', '/home/nano/Desktop/images/18082025/22/13/image_18082025_22_13_14_9673.jpg', '/home/nano/Desktop/images/18082025/22/12/image_18082025_22_13_05_9646.jpg', '/home/nano/Desktop/images/18082025/22/12/image_18082025_22_12_55_10639.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/22/13/image_18082025_22_13_44_9632.jpg
/home/nano/Desktop/images/18082025/22/13/image_18082025_22_13_35_9629.jpg
/home/nano/Desktop/images/18082025/22/13/image_18082025_22_13_25_10656.jpg
/home/nano/Desktop/images/18082025/22/13/image_18082025_22_13_14_9673.jpg
/home/nano/Desktop/images/18082025/22/12/image_18082025_22_13_05_9646.jpg
/home/nano/Desktop/images/18082025/22/12/image_18082025_22_12_55_10639.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377719262","1377719264","1377719267","1377719272","1377719266","1377719269"],"photo_ids_order":["1377719262","1377719264","1377719266","1377719267","1377719269","1377719272"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5625982309d3174d11211346632e54f2.jpg","text":"TemporaryFile(/tmp/multipartBody788610774876737535asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548088913,"filename":"image_18082025_22_13_44_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f5bb5db34b69da8cecf20bf54a8a8b46.jpg","text":"TemporaryFile(/tmp/multipartBody1721991800072093692asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548088913,"filename":"image_18082025_22_13_35_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2969b4e7549e3d35abf3635218dfa58a.jpg","text":"TemporaryFile(/tmp/multipartBody7897986122957146188asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548088913,"filename":"image_18082025_22_13_14_9673.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9ab0734a5b2585b8b1a9a08ea54a2024.jpg","text":"TemporaryFile(/tmp/multipartBody5208571207321245111asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548088913,"filename":"image_18082025_22_12_55_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/27eda22611a78914966b2b6881b3bb3b.jpg","text":"TemporaryFile(/tmp/multipartBody6778951183883255205asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548088913,"filename":"image_18082025_22_13_25_10656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d14e2ff3418c2bcbcce9d1fc320e3f7f.jpg","text":"TemporaryFile(/tmp/multipartBody7583150057964287457asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548088913,"filename":"image_18082025_22_13_05_9646.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377719266","file1":"1377719264","file0":"1377719262","file4":"1377719269","file5":"1377719272","file3":"1377719267"},"map_files_photo_id_array":[{"photo_id":"1377719272","filename":"file5"},{"photo_id":"1377719266","filename":"file2"},{"photo_id":"1377719269","filename":"file4"},{"photo_id":"1377719264","filename":"file1"},{"photo_id":"1377719262","filename":"file0"},{"photo_id":"1377719267","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377719262":["hashtag1","hashtag2"]},{"1377719264":["hashtag1","hashtag2"]},{"1377719267":["hashtag1","hashtag2"]},{"1377719272":["hashtag1","hashtag2"]},{"1377719266":["hashtag1","hashtag2"]},{"1377719269":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377719262, 1377719264, 1377719267, 1377719272, 1377719266, 1377719269)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.411712408065796 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 22:14:32.496245
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/22/14/image_18082025_22_14_45_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/22/14/image_18082025_22_14_34_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/22/14/image_18082025_22_14_25_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/22/14/image_18082025_22_14_14_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/22/13/image_18082025_22_14_04_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/22/13/image_18082025_22_13_55_10638.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/22/14/image_18082025_22_14_45_10661.jpg', '/home/nano/Desktop/images/18082025/22/14/image_18082025_22_14_34_9625.jpg', '/home/nano/Desktop/images/18082025/22/14/image_18082025_22_14_25_10640.jpg', '/home/nano/Desktop/images/18082025/22/14/image_18082025_22_14_14_9654.jpg', '/home/nano/Desktop/images/18082025/22/13/image_18082025_22_14_04_9656.jpg', '/home/nano/Desktop/images/18082025/22/13/image_18082025_22_13_55_10638.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/22/14/image_18082025_22_14_45_10661.jpg
/home/nano/Desktop/images/18082025/22/14/image_18082025_22_14_34_9625.jpg
/home/nano/Desktop/images/18082025/22/14/image_18082025_22_14_25_10640.jpg
/home/nano/Desktop/images/18082025/22/14/image_18082025_22_14_14_9654.jpg
/home/nano/Desktop/images/18082025/22/13/image_18082025_22_14_04_9656.jpg
/home/nano/Desktop/images/18082025/22/13/image_18082025_22_13_55_10638.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377719286","1377719280","1377719282","1377719285","1377719284","1377719278"],"photo_ids_order":["1377719278","1377719280","1377719282","1377719284","1377719285","1377719286"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/645e30f96df0519be2be0e7fdbd12427.jpg","text":"TemporaryFile(/tmp/multipartBody6922357007333216942asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548134081,"filename":"image_18082025_22_13_55_10638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/596bc547f3619af40190b97b2ae1121d.jpg","text":"TemporaryFile(/tmp/multipartBody5700637292763978437asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548134081,"filename":"image_18082025_22_14_34_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2466ee1c599f56d97f485789e686ce13.jpg","text":"TemporaryFile(/tmp/multipartBody860855312083954005asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548134081,"filename":"image_18082025_22_14_25_10640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a19d85dbfd0f32cf791198256627b677.jpg","text":"TemporaryFile(/tmp/multipartBody5567645501631554186asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548134081,"filename":"image_18082025_22_14_04_9656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/59d7805171cfb8ac7e3759aea97496f0.jpg","text":"TemporaryFile(/tmp/multipartBody1982978722517234133asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548134081,"filename":"image_18082025_22_14_14_9654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4397a249218c43fdce973f15229310f6.jpg","text":"TemporaryFile(/tmp/multipartBody476442866339638654asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548134081,"filename":"image_18082025_22_14_45_10661.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377719282","file1":"1377719280","file0":"1377719278","file4":"1377719285","file5":"1377719286","file3":"1377719284"},"map_files_photo_id_array":[{"photo_id":"1377719286","filename":"file5"},{"photo_id":"1377719282","filename":"file2"},{"photo_id":"1377719285","filename":"file4"},{"photo_id":"1377719280","filename":"file1"},{"photo_id":"1377719278","filename":"file0"},{"photo_id":"1377719284","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377719286":["hashtag1","hashtag2"]},{"1377719280":["hashtag1","hashtag2"]},{"1377719282":["hashtag1","hashtag2"]},{"1377719285":["hashtag1","hashtag2"]},{"1377719284":["hashtag1","hashtag2"]},{"1377719278":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377719286, 1377719280, 1377719282, 1377719285, 1377719284, 1377719278)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.107579469680786 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 22:15:17.631509
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/22/15/image_18082025_22_15_45_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/22/15/image_18082025_22_15_25_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/22/15/image_18082025_22_15_15_10662.jpg', 2), ('/home/nano/Desktop/images/18082025/22/14/image_18082025_22_15_04_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/22/14/image_18082025_22_14_55_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/08/25/image_18082025_08_25_25_10626.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/22/15/image_18082025_22_15_45_10642.jpg', '/home/nano/Desktop/images/18082025/22/15/image_18082025_22_15_25_9629.jpg', '/home/nano/Desktop/images/18082025/22/15/image_18082025_22_15_15_10662.jpg', '/home/nano/Desktop/images/18082025/22/14/image_18082025_22_15_04_9636.jpg', '/home/nano/Desktop/images/18082025/22/14/image_18082025_22_14_55_9631.jpg', '/home/nano/Desktop/images/18082025/08/25/image_18082025_08_25_25_10626.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/22/15/image_18082025_22_15_45_10642.jpg
/home/nano/Desktop/images/18082025/22/15/image_18082025_22_15_25_9629.jpg
/home/nano/Desktop/images/18082025/22/15/image_18082025_22_15_15_10662.jpg
/home/nano/Desktop/images/18082025/22/14/image_18082025_22_15_04_9636.jpg
/home/nano/Desktop/images/18082025/22/14/image_18082025_22_14_55_9631.jpg
/home/nano/Desktop/images/18082025/08/25/image_18082025_08_25_25_10626.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377719305","1377719295","1377719307","1377719301","1377719303","1377719298"],"photo_ids_order":["1377719295","1377719298","1377719301","1377719303","1377719305","1377719307"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/01b85b2800ad29f9350733d45e3d8be5.jpg","text":"TemporaryFile(/tmp/multipartBody1702028733968166157asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548180059,"filename":"image_18082025_22_14_55_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/60ddece0750350ebac4df57b19499dc4.jpg","text":"TemporaryFile(/tmp/multipartBody6081452140516169456asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548180059,"filename":"image_18082025_22_15_45_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c1649822787dd939fdc4fbf287236434.jpg","text":"TemporaryFile(/tmp/multipartBody2807227172137713082asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548180059,"filename":"image_18082025_08_25_25_10626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d27df1f0c928fb67cc6f3aa7d1d6d8b7.jpg","text":"TemporaryFile(/tmp/multipartBody7266727808361427485asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548180059,"filename":"image_18082025_22_15_15_10662.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ee87be38aac32844a676336707745027.jpg","text":"TemporaryFile(/tmp/multipartBody6635831294334647979asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548180059,"filename":"image_18082025_22_15_04_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7055c7f0bfb720a2cb81fd23e04405a2.jpg","text":"TemporaryFile(/tmp/multipartBody220412155217734300asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548180059,"filename":"image_18082025_22_15_25_9629.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377719301","file1":"1377719298","file0":"1377719295","file4":"1377719305","file5":"1377719307","file3":"1377719303"},"map_files_photo_id_array":[{"photo_id":"1377719307","filename":"file5"},{"photo_id":"1377719301","filename":"file2"},{"photo_id":"1377719305","filename":"file4"},{"photo_id":"1377719298","filename":"file1"},{"photo_id":"1377719295","filename":"file0"},{"photo_id":"1377719303","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377719305":["hashtag1","hashtag2"]},{"1377719295":["hashtag1","hashtag2"]},{"1377719307":["hashtag1","hashtag2"]},{"1377719301":["hashtag1","hashtag2"]},{"1377719303":["hashtag1","hashtag2"]},{"1377719298":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377719305, 1377719295, 1377719307, 1377719301, 1377719303, 1377719298)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.32799577713013 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 22:16:03.117085
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/25/image_18082025_08_25_14_9706.jpg', 2), ('/home/nano/Desktop/images/18082025/08/24/image_18082025_08_25_04_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/08/24/image_18082025_08_24_55_10690.jpg', 2), ('/home/nano/Desktop/images/18082025/08/24/image_18082025_08_24_44_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/08/24/image_18082025_08_24_34_9722.jpg', 2), ('/home/nano/Desktop/images/18082025/08/24/image_18082025_08_24_25_9753.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/08/25/image_18082025_08_25_14_9706.jpg', '/home/nano/Desktop/images/18082025/08/24/image_18082025_08_25_04_9632.jpg', '/home/nano/Desktop/images/18082025/08/24/image_18082025_08_24_55_10690.jpg', '/home/nano/Desktop/images/18082025/08/24/image_18082025_08_24_44_9655.jpg', '/home/nano/Desktop/images/18082025/08/24/image_18082025_08_24_34_9722.jpg', '/home/nano/Desktop/images/18082025/08/24/image_18082025_08_24_25_9753.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/08/25/image_18082025_08_25_14_9706.jpg
/home/nano/Desktop/images/18082025/08/24/image_18082025_08_25_04_9632.jpg
/home/nano/Desktop/images/18082025/08/24/image_18082025_08_24_55_10690.jpg
/home/nano/Desktop/images/18082025/08/24/image_18082025_08_24_44_9655.jpg
/home/nano/Desktop/images/18082025/08/24/image_18082025_08_24_34_9722.jpg
/home/nano/Desktop/images/18082025/08/24/image_18082025_08_24_25_9753.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377719321","1377719315","1377719309","1377719324","1377719318","1377719312"],"photo_ids_order":["1377719309","1377719312","1377719315","1377719318","1377719321","1377719324"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f15154f84240170122bfb2530f79f9ac.jpg","text":"TemporaryFile(/tmp/multipartBody4942895928709238800asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548224655,"filename":"image_18082025_08_24_34_9722.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d87e0e3666792ea8ca2b2bb33f0096d8.jpg","text":"TemporaryFile(/tmp/multipartBody6293510445092242227asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548224655,"filename":"image_18082025_08_24_55_10690.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2053ebbe757e0d21ae12ec011e21cf50.jpg","text":"TemporaryFile(/tmp/multipartBody8403679837050048874asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548224655,"filename":"image_18082025_08_25_14_9706.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1de2be3bc0139f91ef39937bd9b5cfcf.jpg","text":"TemporaryFile(/tmp/multipartBody7991512990240262325asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548224655,"filename":"image_18082025_08_24_25_9753.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a220828ff22e6f722f428113081b4048.jpg","text":"TemporaryFile(/tmp/multipartBody6125801799544019222asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548224655,"filename":"image_18082025_08_24_44_9655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f5c72ddccbd37023f7bdb354211a6d6d.jpg","text":"TemporaryFile(/tmp/multipartBody174657599856410012asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548224655,"filename":"image_18082025_08_25_04_9632.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377719315","file1":"1377719312","file0":"1377719309","file4":"1377719321","file5":"1377719324","file3":"1377719318"},"map_files_photo_id_array":[{"photo_id":"1377719324","filename":"file5"},{"photo_id":"1377719315","filename":"file2"},{"photo_id":"1377719321","filename":"file4"},{"photo_id":"1377719312","filename":"file1"},{"photo_id":"1377719309","filename":"file0"},{"photo_id":"1377719318","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377719321":["hashtag1","hashtag2"]},{"1377719315":["hashtag1","hashtag2"]},{"1377719309":["hashtag1","hashtag2"]},{"1377719324":["hashtag1","hashtag2"]},{"1377719318":["hashtag1","hashtag2"]},{"1377719312":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377719321, 1377719315, 1377719309, 1377719324, 1377719318, 1377719312)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.844849824905396 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 22:16:47.736031
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/22/16/image_18082025_22_16_34_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/22/16/image_18082025_22_16_24_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/22/16/image_18082025_22_16_15_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/22/15/image_18082025_22_16_04_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/22/15/image_18082025_22_15_55_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/08/24/image_18082025_08_24_15_10769.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/22/16/image_18082025_22_16_34_9628.jpg', '/home/nano/Desktop/images/18082025/22/16/image_18082025_22_16_24_9630.jpg', '/home/nano/Desktop/images/18082025/22/16/image_18082025_22_16_15_10666.jpg', '/home/nano/Desktop/images/18082025/22/15/image_18082025_22_16_04_9634.jpg', '/home/nano/Desktop/images/18082025/22/15/image_18082025_22_15_55_9648.jpg', '/home/nano/Desktop/images/18082025/08/24/image_18082025_08_24_15_10769.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/22/16/image_18082025_22_16_34_9628.jpg
/home/nano/Desktop/images/18082025/22/16/image_18082025_22_16_24_9630.jpg
/home/nano/Desktop/images/18082025/22/16/image_18082025_22_16_15_10666.jpg
/home/nano/Desktop/images/18082025/22/15/image_18082025_22_16_04_9634.jpg
/home/nano/Desktop/images/18082025/22/15/image_18082025_22_15_55_9648.jpg
/home/nano/Desktop/images/18082025/08/24/image_18082025_08_24_15_10769.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377719334","1377719331","1377719328","1377719327","1377719330","1377719329"],"photo_ids_order":["1377719327","1377719328","1377719329","1377719330","1377719331","1377719334"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dbed750d077a36aca1f0311636ee4dc1.jpg","text":"TemporaryFile(/tmp/multipartBody6701105759676661352asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548269178,"filename":"image_18082025_08_24_15_10769.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/07190614d2349eeeb6018a6a4444dbc5.jpg","text":"TemporaryFile(/tmp/multipartBody285911655759731550asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548269178,"filename":"image_18082025_22_15_55_9648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/212da56e54c5c3d8341705287fd15367.jpg","text":"TemporaryFile(/tmp/multipartBody2349004265650722593asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548269178,"filename":"image_18082025_22_16_24_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9b989e7659abf646c612fdfcfc8f6e1e.jpg","text":"TemporaryFile(/tmp/multipartBody7635312563743566038asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548269178,"filename":"image_18082025_22_16_34_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b7fec2c5cc21d70fe6f839865a9e6ffa.jpg","text":"TemporaryFile(/tmp/multipartBody5092154833111928718asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548269178,"filename":"image_18082025_22_16_04_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4e19c0bba8255e91f3ddf65c83c4614a.jpg","text":"TemporaryFile(/tmp/multipartBody5783149480406599879asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548269178,"filename":"image_18082025_22_16_15_10666.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377719329","file1":"1377719328","file0":"1377719327","file4":"1377719331","file5":"1377719334","file3":"1377719330"},"map_files_photo_id_array":[{"photo_id":"1377719334","filename":"file5"},{"photo_id":"1377719329","filename":"file2"},{"photo_id":"1377719331","filename":"file4"},{"photo_id":"1377719328","filename":"file1"},{"photo_id":"1377719327","filename":"file0"},{"photo_id":"1377719330","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377719334":["hashtag1","hashtag2"]},{"1377719331":["hashtag1","hashtag2"]},{"1377719328":["hashtag1","hashtag2"]},{"1377719327":["hashtag1","hashtag2"]},{"1377719330":["hashtag1","hashtag2"]},{"1377719329":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377719334, 1377719331, 1377719328, 1377719327, 1377719330, 1377719329)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.424020051956177 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 22:17:31.830010
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/22/16/image_18082025_22_16_54_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/08/23/image_18082025_08_24_04_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/08/23/image_18082025_08_23_55_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/08/23/image_18082025_08_23_45_10630.jpg', 2), ('/home/nano/Desktop/images/18082025/08/23/image_18082025_08_23_34_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/23/image_18082025_08_23_25_9632.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/22/16/image_18082025_22_16_54_9630.jpg', '/home/nano/Desktop/images/18082025/08/23/image_18082025_08_24_04_9636.jpg', '/home/nano/Desktop/images/18082025/08/23/image_18082025_08_23_55_9627.jpg', '/home/nano/Desktop/images/18082025/08/23/image_18082025_08_23_45_10630.jpg', '/home/nano/Desktop/images/18082025/08/23/image_18082025_08_23_34_9626.jpg', '/home/nano/Desktop/images/18082025/08/23/image_18082025_08_23_25_9632.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/22/16/image_18082025_22_16_54_9630.jpg
/home/nano/Desktop/images/18082025/08/23/image_18082025_08_24_04_9636.jpg
/home/nano/Desktop/images/18082025/08/23/image_18082025_08_23_55_9627.jpg
/home/nano/Desktop/images/18082025/08/23/image_18082025_08_23_45_10630.jpg
/home/nano/Desktop/images/18082025/08/23/image_18082025_08_23_34_9626.jpg
/home/nano/Desktop/images/18082025/08/23/image_18082025_08_23_25_9632.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377719352","1377719358","1377719351","1377719354","1377719356","1377719353"],"photo_ids_order":["1377719351","1377719352","1377719353","1377719354","1377719356","1377719358"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/90d6b85a50b10e2a74059e0dd9ebc596.jpg","text":"TemporaryFile(/tmp/multipartBody866857593854060879asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548313795,"filename":"image_18082025_08_24_04_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b3f4fce34fb3e4d373175484f5c57d94.jpg","text":"TemporaryFile(/tmp/multipartBody364508010383365981asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548313795,"filename":"image_18082025_08_23_25_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6b4500b0731b035d6e115952bfb23b07.jpg","text":"TemporaryFile(/tmp/multipartBody241975833536296473asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548313795,"filename":"image_18082025_22_16_54_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5d8aebfa79cb3ce6efaac9213d57f7c0.jpg","text":"TemporaryFile(/tmp/multipartBody5790296419772371113asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548313795,"filename":"image_18082025_08_23_45_10630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ef1544f8f7a4d454a9b01224f98c7b91.jpg","text":"TemporaryFile(/tmp/multipartBody3985525979330363705asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548313795,"filename":"image_18082025_08_23_34_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d25a6147d534486686815a61804aadad.jpg","text":"TemporaryFile(/tmp/multipartBody8786360581004994849asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548313795,"filename":"image_18082025_08_23_55_9627.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377719353","file1":"1377719352","file0":"1377719351","file4":"1377719356","file5":"1377719358","file3":"1377719354"},"map_files_photo_id_array":[{"photo_id":"1377719358","filename":"file5"},{"photo_id":"1377719353","filename":"file2"},{"photo_id":"1377719356","filename":"file4"},{"photo_id":"1377719352","filename":"file1"},{"photo_id":"1377719351","filename":"file0"},{"photo_id":"1377719354","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377719352":["hashtag1","hashtag2"]},{"1377719358":["hashtag1","hashtag2"]},{"1377719351":["hashtag1","hashtag2"]},{"1377719354":["hashtag1","hashtag2"]},{"1377719356":["hashtag1","hashtag2"]},{"1377719353":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377719352, 1377719358, 1377719351, 1377719354, 1377719356, 1377719353)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.448590755462646 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 22:18:17.026753
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/22/18/image_18082025_22_18_44_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/22/18/image_18082025_22_18_35_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/22/18/image_18082025_22_18_15_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/22/17/image_18082025_22_18_05_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/22/16/image_18082025_22_17_05_10670.jpg', 2), ('/home/nano/Desktop/images/18082025/08/23/image_18082025_08_23_15_10657.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/22/18/image_18082025_22_18_44_9626.jpg', '/home/nano/Desktop/images/18082025/22/18/image_18082025_22_18_35_10638.jpg', '/home/nano/Desktop/images/18082025/22/18/image_18082025_22_18_15_9654.jpg', '/home/nano/Desktop/images/18082025/22/17/image_18082025_22_18_05_10660.jpg', '/home/nano/Desktop/images/18082025/22/16/image_18082025_22_17_05_10670.jpg', '/home/nano/Desktop/images/18082025/08/23/image_18082025_08_23_15_10657.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/22/18/image_18082025_22_18_44_9626.jpg
/home/nano/Desktop/images/18082025/22/18/image_18082025_22_18_35_10638.jpg
/home/nano/Desktop/images/18082025/22/18/image_18082025_22_18_15_9654.jpg
/home/nano/Desktop/images/18082025/22/17/image_18082025_22_18_05_10660.jpg
/home/nano/Desktop/images/18082025/22/16/image_18082025_22_17_05_10670.jpg
/home/nano/Desktop/images/18082025/08/23/image_18082025_08_23_15_10657.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377719373","1377719376","1377719375","1377719374","1377719371","1377719368"],"photo_ids_order":["1377719368","1377719371","1377719373","1377719374","1377719375","1377719376"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bee54f71e0c074f246f4fdc8acbee3b1.jpg","text":"TemporaryFile(/tmp/multipartBody7530518020199617685asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548358453,"filename":"image_18082025_22_18_15_9654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7780dfac4877e0bc878d37e8a0975eee.jpg","text":"TemporaryFile(/tmp/multipartBody5610667514646040697asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548358453,"filename":"image_18082025_08_23_15_10657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d53b84cd9132d04465bcd9d050825d8f.jpg","text":"TemporaryFile(/tmp/multipartBody8869777398046803908asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548358453,"filename":"image_18082025_22_17_05_10670.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2c99c9caf0e8034a483a9227cf4a98f5.jpg","text":"TemporaryFile(/tmp/multipartBody6430526380780477790asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548358453,"filename":"image_18082025_22_18_05_10660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/eb4fc3bc02dfd2667ba3d08df9016967.jpg","text":"TemporaryFile(/tmp/multipartBody4512702870574813527asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548358453,"filename":"image_18082025_22_18_35_10638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7e4b9614628f903f86e24b050fe23732.jpg","text":"TemporaryFile(/tmp/multipartBody6616006911200823485asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548358453,"filename":"image_18082025_22_18_44_9626.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377719373","file1":"1377719371","file0":"1377719368","file4":"1377719375","file5":"1377719376","file3":"1377719374"},"map_files_photo_id_array":[{"photo_id":"1377719376","filename":"file5"},{"photo_id":"1377719373","filename":"file2"},{"photo_id":"1377719375","filename":"file4"},{"photo_id":"1377719371","filename":"file1"},{"photo_id":"1377719368","filename":"file0"},{"photo_id":"1377719374","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377719373":["hashtag1","hashtag2"]},{"1377719376":["hashtag1","hashtag2"]},{"1377719375":["hashtag1","hashtag2"]},{"1377719374":["hashtag1","hashtag2"]},{"1377719371":["hashtag1","hashtag2"]},{"1377719368":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377719373, 1377719376, 1377719375, 1377719374, 1377719371, 1377719368)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.26713275909424 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 22:19:03.080470
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/22/image_18082025_08_23_04_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/08/22/image_18082025_08_22_55_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/08/22/image_18082025_08_22_44_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/08/22/image_18082025_08_22_34_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/08/22/image_18082025_08_22_25_10643.jpg', 2), ('/home/nano/Desktop/images/18082025/08/22/image_18082025_08_22_14_9645.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/08/22/image_18082025_08_23_04_9653.jpg', '/home/nano/Desktop/images/18082025/08/22/image_18082025_08_22_55_10641.jpg', '/home/nano/Desktop/images/18082025/08/22/image_18082025_08_22_44_9621.jpg', '/home/nano/Desktop/images/18082025/08/22/image_18082025_08_22_34_9629.jpg', '/home/nano/Desktop/images/18082025/08/22/image_18082025_08_22_25_10643.jpg', '/home/nano/Desktop/images/18082025/08/22/image_18082025_08_22_14_9645.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/08/22/image_18082025_08_23_04_9653.jpg
/home/nano/Desktop/images/18082025/08/22/image_18082025_08_22_55_10641.jpg
/home/nano/Desktop/images/18082025/08/22/image_18082025_08_22_44_9621.jpg
/home/nano/Desktop/images/18082025/08/22/image_18082025_08_22_34_9629.jpg
/home/nano/Desktop/images/18082025/08/22/image_18082025_08_22_25_10643.jpg
/home/nano/Desktop/images/18082025/08/22/image_18082025_08_22_14_9645.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377719399","1377719390","1377719384","1377719387","1377719392","1377719395"],"photo_ids_order":["1377719384","1377719387","1377719390","1377719392","1377719395","1377719399"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c28a22a34c775e0a151cea7a094a9ed0.jpg","text":"TemporaryFile(/tmp/multipartBody2704950629865938289asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548404763,"filename":"image_18082025_08_22_14_9645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/83aed4593f89f3cc9643472af4b19d49.jpg","text":"TemporaryFile(/tmp/multipartBody1276840835846014451asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548404763,"filename":"image_18082025_08_22_44_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2322293592039e0941eabed1ee42ce87.jpg","text":"TemporaryFile(/tmp/multipartBody578732629093355977asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548404763,"filename":"image_18082025_08_23_04_9653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/06c35fb7e97e43066ef3e13f5c02d439.jpg","text":"TemporaryFile(/tmp/multipartBody5916096922388968797asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548404763,"filename":"image_18082025_08_22_55_10641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/34667289791189e1f0457071ec3eb0d9.jpg","text":"TemporaryFile(/tmp/multipartBody2593086399915810189asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548404763,"filename":"image_18082025_08_22_34_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9fdbc50f9b099b078ab06ebd7255ded2.jpg","text":"TemporaryFile(/tmp/multipartBody8434208449344048078asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548404763,"filename":"image_18082025_08_22_25_10643.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377719390","file1":"1377719387","file0":"1377719384","file4":"1377719395","file5":"1377719399","file3":"1377719392"},"map_files_photo_id_array":[{"photo_id":"1377719399","filename":"file5"},{"photo_id":"1377719390","filename":"file2"},{"photo_id":"1377719395","filename":"file4"},{"photo_id":"1377719387","filename":"file1"},{"photo_id":"1377719384","filename":"file0"},{"photo_id":"1377719392","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377719399":["hashtag1","hashtag2"]},{"1377719390":["hashtag1","hashtag2"]},{"1377719384":["hashtag1","hashtag2"]},{"1377719387":["hashtag1","hashtag2"]},{"1377719392":["hashtag1","hashtag2"]},{"1377719395":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377719399, 1377719390, 1377719384, 1377719387, 1377719392, 1377719395)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.538283824920654 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 22:19:47.111893
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/22/19/image_18082025_22_19_44_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/22/19/image_18082025_22_19_35_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/22/18/image_18082025_22_18_54_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/08/21/image_18082025_08_22_05_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/08/21/image_18082025_08_21_55_10634.jpg', 2), ('/home/nano/Desktop/images/18082025/08/21/image_18082025_08_21_44_9632.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/22/19/image_18082025_22_19_44_9629.jpg', '/home/nano/Desktop/images/18082025/22/19/image_18082025_22_19_35_9631.jpg', '/home/nano/Desktop/images/18082025/22/18/image_18082025_22_18_54_9630.jpg', '/home/nano/Desktop/images/18082025/08/21/image_18082025_08_22_05_9631.jpg', '/home/nano/Desktop/images/18082025/08/21/image_18082025_08_21_55_10634.jpg', '/home/nano/Desktop/images/18082025/08/21/image_18082025_08_21_44_9632.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/22/19/image_18082025_22_19_44_9629.jpg
/home/nano/Desktop/images/18082025/22/19/image_18082025_22_19_35_9631.jpg
/home/nano/Desktop/images/18082025/22/18/image_18082025_22_18_54_9630.jpg
/home/nano/Desktop/images/18082025/08/21/image_18082025_08_22_05_9631.jpg
/home/nano/Desktop/images/18082025/08/21/image_18082025_08_21_55_10634.jpg
/home/nano/Desktop/images/18082025/08/21/image_18082025_08_21_44_9632.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377719418","1377719420","1377719423","1377719417","1377719419","1377719428"],"photo_ids_order":["1377719417","1377719418","1377719419","1377719420","1377719423","1377719428"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/889d7442d36621f2338cffd69eb7cd72.jpg","text":"TemporaryFile(/tmp/multipartBody5681255963148585783asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548448744,"filename":"image_18082025_22_19_35_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/01934e4632f80e3db8a4aa96d753d03a.jpg","text":"TemporaryFile(/tmp/multipartBody2435888703625609544asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548448744,"filename":"image_18082025_08_22_05_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fcbe96ddea78d69c10fe9d018af5e6fc.jpg","text":"TemporaryFile(/tmp/multipartBody570303169645256854asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548448744,"filename":"image_18082025_08_21_55_10634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/37632c488d1c55a52599fa1a2c0d095e.jpg","text":"TemporaryFile(/tmp/multipartBody2606535654724443757asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548448744,"filename":"image_18082025_22_19_44_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b09e588d1be97783032e72a7a09d485a.jpg","text":"TemporaryFile(/tmp/multipartBody4614008435160345500asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548448744,"filename":"image_18082025_22_18_54_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/949384f980060c368f7184f3f453546a.jpg","text":"TemporaryFile(/tmp/multipartBody5174695917818904006asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548448744,"filename":"image_18082025_08_21_44_9632.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377719419","file1":"1377719418","file0":"1377719417","file4":"1377719423","file5":"1377719428","file3":"1377719420"},"map_files_photo_id_array":[{"photo_id":"1377719428","filename":"file5"},{"photo_id":"1377719419","filename":"file2"},{"photo_id":"1377719423","filename":"file4"},{"photo_id":"1377719418","filename":"file1"},{"photo_id":"1377719417","filename":"file0"},{"photo_id":"1377719420","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377719418":["hashtag1","hashtag2"]},{"1377719420":["hashtag1","hashtag2"]},{"1377719423":["hashtag1","hashtag2"]},{"1377719417":["hashtag1","hashtag2"]},{"1377719419":["hashtag1","hashtag2"]},{"1377719428":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377719418, 1377719420, 1377719423, 1377719417, 1377719419, 1377719428)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.24488830566406 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 22:20:32.216017
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/22/20/image_18082025_22_20_44_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/22/20/image_18082025_22_20_35_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/22/20/image_18082025_22_20_25_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/22/20/image_18082025_22_20_14_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/22/19/image_18082025_22_20_05_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/22/19/image_18082025_22_19_55_10643.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/22/20/image_18082025_22_20_44_9625.jpg', '/home/nano/Desktop/images/18082025/22/20/image_18082025_22_20_35_9633.jpg', '/home/nano/Desktop/images/18082025/22/20/image_18082025_22_20_25_10640.jpg', '/home/nano/Desktop/images/18082025/22/20/image_18082025_22_20_14_9651.jpg', '/home/nano/Desktop/images/18082025/22/19/image_18082025_22_20_05_9647.jpg', '/home/nano/Desktop/images/18082025/22/19/image_18082025_22_19_55_10643.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/22/20/image_18082025_22_20_44_9625.jpg
/home/nano/Desktop/images/18082025/22/20/image_18082025_22_20_35_9633.jpg
/home/nano/Desktop/images/18082025/22/20/image_18082025_22_20_25_10640.jpg
/home/nano/Desktop/images/18082025/22/20/image_18082025_22_20_14_9651.jpg
/home/nano/Desktop/images/18082025/22/19/image_18082025_22_20_05_9647.jpg
/home/nano/Desktop/images/18082025/22/19/image_18082025_22_19_55_10643.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377719448","1377719445","1377719450","1377719444","1377719443","1377719446"],"photo_ids_order":["1377719443","1377719444","1377719445","1377719446","1377719448","1377719450"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3b6cea3261e0b664a55f766c31abc8b7.jpg","text":"TemporaryFile(/tmp/multipartBody2183065752352860553asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548493719,"filename":"image_18082025_22_20_05_9647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/36501962c939781fd684c1fd96aa4cf7.jpg","text":"TemporaryFile(/tmp/multipartBody6737635304564195370asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548493719,"filename":"image_18082025_22_20_25_10640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7ee3f085f42b2300105b6f8bc5eaf868.jpg","text":"TemporaryFile(/tmp/multipartBody2638562773867415436asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548493719,"filename":"image_18082025_22_19_55_10643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/da9e06c1136635e6ce7bfbf570ce194a.jpg","text":"TemporaryFile(/tmp/multipartBody8263652451694944516asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548493719,"filename":"image_18082025_22_20_35_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c434dab5c08f7cff75b763e8df6c4664.jpg","text":"TemporaryFile(/tmp/multipartBody6183089051321056985asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548493719,"filename":"image_18082025_22_20_44_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/15cd971a69e3b536422492b840787d55.jpg","text":"TemporaryFile(/tmp/multipartBody8850834586811321019asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548493719,"filename":"image_18082025_22_20_14_9651.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377719445","file1":"1377719444","file0":"1377719443","file4":"1377719448","file5":"1377719450","file3":"1377719446"},"map_files_photo_id_array":[{"photo_id":"1377719450","filename":"file5"},{"photo_id":"1377719445","filename":"file2"},{"photo_id":"1377719448","filename":"file4"},{"photo_id":"1377719444","filename":"file1"},{"photo_id":"1377719443","filename":"file0"},{"photo_id":"1377719446","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377719448":["hashtag1","hashtag2"]},{"1377719445":["hashtag1","hashtag2"]},{"1377719450":["hashtag1","hashtag2"]},{"1377719444":["hashtag1","hashtag2"]},{"1377719443":["hashtag1","hashtag2"]},{"1377719446":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377719448, 1377719445, 1377719450, 1377719444, 1377719443, 1377719446)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.45518660545349 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 22:21:17.325585
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/22/21/image_18082025_22_21_45_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/22/21/image_18082025_22_21_25_10643.jpg', 2), ('/home/nano/Desktop/images/18082025/22/21/image_18082025_22_21_14_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/22/20/image_18082025_22_20_55_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/08/21/image_18082025_08_21_35_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/08/21/image_18082025_08_21_25_10629.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/22/21/image_18082025_22_21_45_10638.jpg', '/home/nano/Desktop/images/18082025/22/21/image_18082025_22_21_25_10643.jpg', '/home/nano/Desktop/images/18082025/22/21/image_18082025_22_21_14_9657.jpg', '/home/nano/Desktop/images/18082025/22/20/image_18082025_22_20_55_10641.jpg', '/home/nano/Desktop/images/18082025/08/21/image_18082025_08_21_35_9627.jpg', '/home/nano/Desktop/images/18082025/08/21/image_18082025_08_21_25_10629.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/22/21/image_18082025_22_21_45_10638.jpg
/home/nano/Desktop/images/18082025/22/21/image_18082025_22_21_25_10643.jpg
/home/nano/Desktop/images/18082025/22/21/image_18082025_22_21_14_9657.jpg
/home/nano/Desktop/images/18082025/22/20/image_18082025_22_20_55_10641.jpg
/home/nano/Desktop/images/18082025/08/21/image_18082025_08_21_35_9627.jpg
/home/nano/Desktop/images/18082025/08/21/image_18082025_08_21_25_10629.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377719472","1377719469","1377719471","1377719473","1377719467","1377719464"],"photo_ids_order":["1377719464","1377719467","1377719469","1377719471","1377719472","1377719473"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2bed8997ff446c08a61ee8a4359f854c.jpg","text":"TemporaryFile(/tmp/multipartBody3473594658676153657asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548538636,"filename":"image_18082025_08_21_35_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/81945f63cbb095d25367825732a06afc.jpg","text":"TemporaryFile(/tmp/multipartBody5308097718689034768asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548538636,"filename":"image_18082025_22_21_14_9657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/095a8b84eae1ef4b218ad12530c7bd2d.jpg","text":"TemporaryFile(/tmp/multipartBody8381685009992566055asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548538636,"filename":"image_18082025_22_20_55_10641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d02bb13bb7dee1381768c0c28531247b.jpg","text":"TemporaryFile(/tmp/multipartBody4234965578079783138asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548538636,"filename":"image_18082025_08_21_25_10629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/512df82c6c15607182758c584374f725.jpg","text":"TemporaryFile(/tmp/multipartBody2318978552399572608asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548538636,"filename":"image_18082025_22_21_25_10643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d6905d7d29c036875c1c987d3c2ead2a.jpg","text":"TemporaryFile(/tmp/multipartBody4325450169395021110asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548538636,"filename":"image_18082025_22_21_45_10638.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377719469","file1":"1377719467","file0":"1377719464","file4":"1377719472","file5":"1377719473","file3":"1377719471"},"map_files_photo_id_array":[{"photo_id":"1377719473","filename":"file5"},{"photo_id":"1377719469","filename":"file2"},{"photo_id":"1377719472","filename":"file4"},{"photo_id":"1377719467","filename":"file1"},{"photo_id":"1377719464","filename":"file0"},{"photo_id":"1377719471","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377719472":["hashtag1","hashtag2"]},{"1377719469":["hashtag1","hashtag2"]},{"1377719471":["hashtag1","hashtag2"]},{"1377719473":["hashtag1","hashtag2"]},{"1377719467":["hashtag1","hashtag2"]},{"1377719464":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377719472, 1377719469, 1377719471, 1377719473, 1377719467, 1377719464)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.37925720214844 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 22:22:02.903203
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/21/image_18082025_08_21_14_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/08/20/image_18082025_08_21_05_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/08/20/image_18082025_08_20_54_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/08/20/image_18082025_08_20_44_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/08/20/image_18082025_08_20_35_10633.jpg', 2), ('/home/nano/Desktop/images/18082025/08/20/image_18082025_08_20_24_9643.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/08/21/image_18082025_08_21_14_9659.jpg', '/home/nano/Desktop/images/18082025/08/20/image_18082025_08_21_05_10653.jpg', '/home/nano/Desktop/images/18082025/08/20/image_18082025_08_20_54_9633.jpg', '/home/nano/Desktop/images/18082025/08/20/image_18082025_08_20_44_9643.jpg', '/home/nano/Desktop/images/18082025/08/20/image_18082025_08_20_35_10633.jpg', '/home/nano/Desktop/images/18082025/08/20/image_18082025_08_20_24_9643.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/08/21/image_18082025_08_21_14_9659.jpg
/home/nano/Desktop/images/18082025/08/20/image_18082025_08_21_05_10653.jpg
/home/nano/Desktop/images/18082025/08/20/image_18082025_08_20_54_9633.jpg
/home/nano/Desktop/images/18082025/08/20/image_18082025_08_20_44_9643.jpg
/home/nano/Desktop/images/18082025/08/20/image_18082025_08_20_35_10633.jpg
/home/nano/Desktop/images/18082025/08/20/image_18082025_08_20_24_9643.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377719490","1377719484","1377719487","1377719480","1377719492","1377719496"],"photo_ids_order":["1377719480","1377719484","1377719487","1377719490","1377719492","1377719496"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/aec6cbe3c5ff9e600db141f0e5734a32.jpg","text":"TemporaryFile(/tmp/multipartBody1827649041359976847asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548584437,"filename":"image_18082025_08_20_44_9643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b3e1c8042c501884400ea16e103d995f.jpg","text":"TemporaryFile(/tmp/multipartBody2448024099560999037asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548584437,"filename":"image_18082025_08_21_05_10653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5a93df5c0e9ee3808b2351093f937550.jpg","text":"TemporaryFile(/tmp/multipartBody5274558532642753816asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548584437,"filename":"image_18082025_08_20_54_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/220fda84a6dae9796fd659eaeb718743.jpg","text":"TemporaryFile(/tmp/multipartBody79516548390357542asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548584437,"filename":"image_18082025_08_21_14_9659.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bbb88d595b0358f1d029d3b371664e7c.jpg","text":"TemporaryFile(/tmp/multipartBody1986334298788520743asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548584437,"filename":"image_18082025_08_20_35_10633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/05ff24241df962afb7209c4b650e80c4.jpg","text":"TemporaryFile(/tmp/multipartBody6843322382689977435asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548584437,"filename":"image_18082025_08_20_24_9643.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377719487","file1":"1377719484","file0":"1377719480","file4":"1377719492","file5":"1377719496","file3":"1377719490"},"map_files_photo_id_array":[{"photo_id":"1377719496","filename":"file5"},{"photo_id":"1377719487","filename":"file2"},{"photo_id":"1377719492","filename":"file4"},{"photo_id":"1377719484","filename":"file1"},{"photo_id":"1377719480","filename":"file0"},{"photo_id":"1377719490","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377719490":["hashtag1","hashtag2"]},{"1377719484":["hashtag1","hashtag2"]},{"1377719487":["hashtag1","hashtag2"]},{"1377719480":["hashtag1","hashtag2"]},{"1377719492":["hashtag1","hashtag2"]},{"1377719496":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377719490, 1377719484, 1377719487, 1377719480, 1377719492, 1377719496)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.35099983215332 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 22:22:47.423731
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/22/22/image_18082025_22_22_45_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/22/22/image_18082025_22_22_15_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/22/21/image_18082025_22_22_04_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/22/21/image_18082025_22_21_55_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/08/20/image_18082025_08_20_15_9696.jpg', 2), ('/home/nano/Desktop/images/18082025/08/19/image_18082025_08_20_05_10646.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/22/22/image_18082025_22_22_45_10659.jpg', '/home/nano/Desktop/images/18082025/22/22/image_18082025_22_22_15_10661.jpg', '/home/nano/Desktop/images/18082025/22/21/image_18082025_22_22_04_9643.jpg', '/home/nano/Desktop/images/18082025/22/21/image_18082025_22_21_55_9629.jpg', '/home/nano/Desktop/images/18082025/08/20/image_18082025_08_20_15_9696.jpg', '/home/nano/Desktop/images/18082025/08/19/image_18082025_08_20_05_10646.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/22/22/image_18082025_22_22_45_10659.jpg
/home/nano/Desktop/images/18082025/22/22/image_18082025_22_22_15_10661.jpg
/home/nano/Desktop/images/18082025/22/21/image_18082025_22_22_04_9643.jpg
/home/nano/Desktop/images/18082025/22/21/image_18082025_22_21_55_9629.jpg
/home/nano/Desktop/images/18082025/08/20/image_18082025_08_20_15_9696.jpg
/home/nano/Desktop/images/18082025/08/19/image_18082025_08_20_05_10646.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377719502","1377719508","1377719501","1377719504","1377719512","1377719506"],"photo_ids_order":["1377719501","1377719502","1377719504","1377719506","1377719508","1377719512"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ceb06069b4820d4eaff0c08316b88d21.jpg","text":"TemporaryFile(/tmp/multipartBody3925438324059288422asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548628946,"filename":"image_18082025_22_22_15_10661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/367e6d8efaef08fa4c126247d6b5de1c.jpg","text":"TemporaryFile(/tmp/multipartBody957663202370418012asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548628946,"filename":"image_18082025_08_20_15_9696.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d5598aee0fc0d1a1d7c3ba189a464385.jpg","text":"TemporaryFile(/tmp/multipartBody8136506216836532104asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548628946,"filename":"image_18082025_22_22_45_10659.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e57e7b50f31f75c0f2c5020fce0de520.jpg","text":"TemporaryFile(/tmp/multipartBody5111066292091648013asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548628946,"filename":"image_18082025_22_22_04_9643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dcf7a9770229475c6043173a872c5fac.jpg","text":"TemporaryFile(/tmp/multipartBody6282347651569099273asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548628946,"filename":"image_18082025_08_20_05_10646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/15b23d7edf290982823a0954e5463790.jpg","text":"TemporaryFile(/tmp/multipartBody1640172937573229870asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548628946,"filename":"image_18082025_22_21_55_9629.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377719504","file1":"1377719502","file0":"1377719501","file4":"1377719508","file5":"1377719512","file3":"1377719506"},"map_files_photo_id_array":[{"photo_id":"1377719512","filename":"file5"},{"photo_id":"1377719504","filename":"file2"},{"photo_id":"1377719508","filename":"file4"},{"photo_id":"1377719502","filename":"file1"},{"photo_id":"1377719501","filename":"file0"},{"photo_id":"1377719506","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377719502":["hashtag1","hashtag2"]},{"1377719508":["hashtag1","hashtag2"]},{"1377719501":["hashtag1","hashtag2"]},{"1377719504":["hashtag1","hashtag2"]},{"1377719512":["hashtag1","hashtag2"]},{"1377719506":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377719502, 1377719508, 1377719501, 1377719504, 1377719512, 1377719506)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.02933692932129 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 22:23:32.509153
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/22/23/image_18082025_22_23_45_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/22/23/image_18082025_22_23_35_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/22/23/image_18082025_22_23_24_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/22/23/image_18082025_22_23_15_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/22/22/image_18082025_22_23_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/22/22/image_18082025_22_22_54_9628.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/22/23/image_18082025_22_23_45_9629.jpg', '/home/nano/Desktop/images/18082025/22/23/image_18082025_22_23_35_10640.jpg', '/home/nano/Desktop/images/18082025/22/23/image_18082025_22_23_24_9627.jpg', '/home/nano/Desktop/images/18082025/22/23/image_18082025_22_23_15_10667.jpg', '/home/nano/Desktop/images/18082025/22/22/image_18082025_22_23_04_9639.jpg', '/home/nano/Desktop/images/18082025/22/22/image_18082025_22_22_54_9628.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/22/23/image_18082025_22_23_45_9629.jpg
/home/nano/Desktop/images/18082025/22/23/image_18082025_22_23_35_10640.jpg
/home/nano/Desktop/images/18082025/22/23/image_18082025_22_23_24_9627.jpg
/home/nano/Desktop/images/18082025/22/23/image_18082025_22_23_15_10667.jpg
/home/nano/Desktop/images/18082025/22/22/image_18082025_22_23_04_9639.jpg
/home/nano/Desktop/images/18082025/22/22/image_18082025_22_22_54_9628.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377719532","1377719535","1377719529","1377719526","1377719525","1377719527"],"photo_ids_order":["1377719525","1377719526","1377719527","1377719529","1377719532","1377719535"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8b2d01695a3a9587859c5d8917e1ce2c.jpg","text":"TemporaryFile(/tmp/multipartBody6041524905846768905asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548673877,"filename":"image_18082025_22_23_04_9639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cab9a4eb62867acdfeaf2715ad55ef57.jpg","text":"TemporaryFile(/tmp/multipartBody2524453978658379903asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548673877,"filename":"image_18082025_22_22_54_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0e73737f4e7c94b0c274d449dceeeaa3.jpg","text":"TemporaryFile(/tmp/multipartBody8714345751647524902asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548673877,"filename":"image_18082025_22_23_15_10667.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8b9bef17ef8835098e8a54615a326d2e.jpg","text":"TemporaryFile(/tmp/multipartBody882313115945066312asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548673877,"filename":"image_18082025_22_23_35_10640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7b7f13b5095e3728cbba24131bde9560.jpg","text":"TemporaryFile(/tmp/multipartBody142753692596535726asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548673877,"filename":"image_18082025_22_23_45_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e5264fe76beffa8c126501ab889545f3.jpg","text":"TemporaryFile(/tmp/multipartBody4182614212881970776asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548673877,"filename":"image_18082025_22_23_24_9627.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377719527","file1":"1377719526","file0":"1377719525","file4":"1377719532","file5":"1377719535","file3":"1377719529"},"map_files_photo_id_array":[{"photo_id":"1377719535","filename":"file5"},{"photo_id":"1377719527","filename":"file2"},{"photo_id":"1377719532","filename":"file4"},{"photo_id":"1377719526","filename":"file1"},{"photo_id":"1377719525","filename":"file0"},{"photo_id":"1377719529","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377719532":["hashtag1","hashtag2"]},{"1377719535":["hashtag1","hashtag2"]},{"1377719529":["hashtag1","hashtag2"]},{"1377719526":["hashtag1","hashtag2"]},{"1377719525":["hashtag1","hashtag2"]},{"1377719527":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377719532, 1377719535, 1377719529, 1377719526, 1377719525, 1377719527)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.959707021713257 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 22:24:17.645513
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/22/24/image_18082025_22_24_45_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/22/24/image_18082025_22_24_24_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/22/24/image_18082025_22_24_15_9672.jpg', 2), ('/home/nano/Desktop/images/18082025/22/23/image_18082025_22_24_05_10657.jpg', 2), ('/home/nano/Desktop/images/18082025/22/23/image_18082025_22_23_54_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/08/19/image_18082025_08_19_54_9621.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/22/24/image_18082025_22_24_45_9632.jpg', '/home/nano/Desktop/images/18082025/22/24/image_18082025_22_24_24_9639.jpg', '/home/nano/Desktop/images/18082025/22/24/image_18082025_22_24_15_9672.jpg', '/home/nano/Desktop/images/18082025/22/23/image_18082025_22_24_05_10657.jpg', '/home/nano/Desktop/images/18082025/22/23/image_18082025_22_23_54_9647.jpg', '/home/nano/Desktop/images/18082025/08/19/image_18082025_08_19_54_9621.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/22/24/image_18082025_22_24_45_9632.jpg
/home/nano/Desktop/images/18082025/22/24/image_18082025_22_24_24_9639.jpg
/home/nano/Desktop/images/18082025/22/24/image_18082025_22_24_15_9672.jpg
/home/nano/Desktop/images/18082025/22/23/image_18082025_22_24_05_10657.jpg
/home/nano/Desktop/images/18082025/22/23/image_18082025_22_23_54_9647.jpg
/home/nano/Desktop/images/18082025/08/19/image_18082025_08_19_54_9621.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377719553","1377719547","1377719546","1377719555","1377719549","1377719551"],"photo_ids_order":["1377719546","1377719547","1377719549","1377719551","1377719553","1377719555"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/189882ba50ab07dfb5b41d5e23991ff4.jpg","text":"TemporaryFile(/tmp/multipartBody1430020355348984835asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548719287,"filename":"image_18082025_22_23_54_9647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e23edb68f2334595c15dd86849987950.jpg","text":"TemporaryFile(/tmp/multipartBody7813787049375838071asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548719287,"filename":"image_18082025_22_24_24_9639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c53386e91f21250c1da7ee67f11b94a2.jpg","text":"TemporaryFile(/tmp/multipartBody3049503631767422262asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548719287,"filename":"image_18082025_22_24_45_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4a68b9fe07cb22c8f22bacca0b2f6901.jpg","text":"TemporaryFile(/tmp/multipartBody2420262655368600445asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548719287,"filename":"image_18082025_08_19_54_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/408b970bb3c2d376e44b09de9ceb228a.jpg","text":"TemporaryFile(/tmp/multipartBody2266726754011537510asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548719287,"filename":"image_18082025_22_24_15_9672.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6a4306a9fe06caf3d6126292967871f0.jpg","text":"TemporaryFile(/tmp/multipartBody6783817581880906252asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548719287,"filename":"image_18082025_22_24_05_10657.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377719549","file1":"1377719547","file0":"1377719546","file4":"1377719553","file5":"1377719555","file3":"1377719551"},"map_files_photo_id_array":[{"photo_id":"1377719555","filename":"file5"},{"photo_id":"1377719549","filename":"file2"},{"photo_id":"1377719553","filename":"file4"},{"photo_id":"1377719547","filename":"file1"},{"photo_id":"1377719546","filename":"file0"},{"photo_id":"1377719551","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377719553":["hashtag1","hashtag2"]},{"1377719547":["hashtag1","hashtag2"]},{"1377719546":["hashtag1","hashtag2"]},{"1377719555":["hashtag1","hashtag2"]},{"1377719549":["hashtag1","hashtag2"]},{"1377719551":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377719553, 1377719547, 1377719546, 1377719555, 1377719549, 1377719551)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.26757287979126 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 22:25:03.283827
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/19/image_18082025_08_19_45_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/08/19/image_18082025_08_19_35_10629.jpg', 2), ('/home/nano/Desktop/images/18082025/08/19/image_18082025_08_19_24_9614.jpg', 2), ('/home/nano/Desktop/images/18082025/08/19/image_18082025_08_19_15_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/08/18/image_18082025_08_19_05_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/08/18/image_18082025_08_18_54_9638.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/08/19/image_18082025_08_19_45_9649.jpg', '/home/nano/Desktop/images/18082025/08/19/image_18082025_08_19_35_10629.jpg', '/home/nano/Desktop/images/18082025/08/19/image_18082025_08_19_24_9614.jpg', '/home/nano/Desktop/images/18082025/08/19/image_18082025_08_19_15_9660.jpg', '/home/nano/Desktop/images/18082025/08/18/image_18082025_08_19_05_10635.jpg', '/home/nano/Desktop/images/18082025/08/18/image_18082025_08_18_54_9638.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/08/19/image_18082025_08_19_45_9649.jpg
/home/nano/Desktop/images/18082025/08/19/image_18082025_08_19_35_10629.jpg
/home/nano/Desktop/images/18082025/08/19/image_18082025_08_19_24_9614.jpg
/home/nano/Desktop/images/18082025/08/19/image_18082025_08_19_15_9660.jpg
/home/nano/Desktop/images/18082025/08/18/image_18082025_08_19_05_10635.jpg
/home/nano/Desktop/images/18082025/08/18/image_18082025_08_18_54_9638.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377719580","1377719579","1377719564","1377719572","1377719575","1377719569"],"photo_ids_order":["1377719564","1377719569","1377719572","1377719575","1377719579","1377719580"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1ebfa9498d096a48d1fde3da20e907b0.jpg","text":"TemporaryFile(/tmp/multipartBody4379871879551064051asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548764911,"filename":"image_18082025_08_18_54_9638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/afd6f554c64c53c806da75e291a6e384.jpg","text":"TemporaryFile(/tmp/multipartBody5795507314056360900asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548764911,"filename":"image_18082025_08_19_05_10635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/95f61bb28a86206c6807d563cd44fca2.jpg","text":"TemporaryFile(/tmp/multipartBody5251461604590818155asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548764911,"filename":"image_18082025_08_19_45_9649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f8412aa6049857b68bce62944caa13a0.jpg","text":"TemporaryFile(/tmp/multipartBody6269343758547313025asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548764911,"filename":"image_18082025_08_19_24_9614.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5c60d8d562351ccbdc04a8b7b36692cd.jpg","text":"TemporaryFile(/tmp/multipartBody7378264572401466485asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548764911,"filename":"image_18082025_08_19_15_9660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/98bf59f0a8fadee728198ca1c9a0e575.jpg","text":"TemporaryFile(/tmp/multipartBody4883471165175908126asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755548764911,"filename":"image_18082025_08_19_35_10629.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377719572","file1":"1377719569","file0":"1377719564","file4":"1377719579","file5":"1377719580","file3":"1377719575"},"map_files_photo_id_array":[{"photo_id":"1377719580","filename":"file5"},{"photo_id":"1377719572","filename":"file2"},{"photo_id":"1377719579","filename":"file4"},{"photo_id":"1377719569","filename":"file1"},{"photo_id":"1377719564","filename":"file0"},{"photo_id":"1377719575","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377719580":["hashtag1","hashtag2"]},{"1377719579":["hashtag1","hashtag2"]},{"1377719564":["hashtag1","hashtag2"]},{"1377719572":["hashtag1","hashtag2"]},{"1377719575":["hashtag1","hashtag2"]},{"1377719569":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377719580, 1377719579, 1377719564, 1377719572, 1377719575, 1377719569)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 34.870614528656006 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 22:25:47.740475
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/22/25/image_18082025_22_25_35_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/22/25/image_18082025_22_25_24_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/22/25/image_18082025_22_25_15_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/22/24/image_18082025_22_25_05_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/22/24/image_18082025_22_24_54_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/08/18/image_18082025_08_18_45_10652.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/22/25/image_18082025_22_25_35_10642.jpg', '/home/nano/Desktop/images/18082025/22/25/image_18082025_22_25_24_9629.jpg', '/home/nano/Desktop/images/18082025/22/25/image_18082025_22_25_15_9659.jpg', '/home/nano/Desktop/images/18082025/22/24/image_18082025_22_25_05_10661.jpg', '/home/nano/Desktop/images/18082025/22/24/image_18082025_22_24_54_9630.jpg', '/home/nano/Desktop/images/18082025/08/18/image_18082025_08_18_45_10652.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/22/25/image_18082025_22_25_35_10642.jpg
/home/nano/Desktop/images/18082025/22/25/image_18082025_22_25_24_9629.jpg
/home/nano/Desktop/images/18082025/22/25/image_18082025_22_25_15_9659.jpg
/home/nano/Desktop/images/18082025/22/24/image_18082025_22_25_05_10661.jpg
/home/nano/Desktop/images/18082025/22/24/image_18082025_22_24_54_9630.jpg
/home/nano/Desktop/images/18082025/08/18/image_18082025_08_18_45_10652.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 22:58:03.045160
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/22/57/image_18082025_22_57_34_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/22/56/image_18082025_22_57_04_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/22/56/image_18082025_22_56_25_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/22/55/image_18082025_22_56_04_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/22/55/image_18082025_22_55_55_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/22/55/image_18082025_22_55_45_10641.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/22/57/image_18082025_22_57_34_9628.jpg', '/home/nano/Desktop/images/18082025/22/56/image_18082025_22_57_04_9652.jpg', '/home/nano/Desktop/images/18082025/22/56/image_18082025_22_56_25_9634.jpg', '/home/nano/Desktop/images/18082025/22/55/image_18082025_22_56_04_9640.jpg', '/home/nano/Desktop/images/18082025/22/55/image_18082025_22_55_55_9630.jpg', '/home/nano/Desktop/images/18082025/22/55/image_18082025_22_55_45_10641.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/22/57/image_18082025_22_57_34_9628.jpg
/home/nano/Desktop/images/18082025/22/56/image_18082025_22_57_04_9652.jpg
/home/nano/Desktop/images/18082025/22/56/image_18082025_22_56_25_9634.jpg
/home/nano/Desktop/images/18082025/22/55/image_18082025_22_56_04_9640.jpg
/home/nano/Desktop/images/18082025/22/55/image_18082025_22_55_55_9630.jpg
/home/nano/Desktop/images/18082025/22/55/image_18082025_22_55_45_10641.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377720285","1377720288","1377720284","1377720287","1377720286","1377720283"],"photo_ids_order":["1377720283","1377720284","1377720285","1377720286","1377720287","1377720288"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4b4851b28c6ab15dffad7e499bb66386.jpg","text":"TemporaryFile(/tmp/multipartBody5239480992100443303asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755550744376,"filename":"image_18082025_22_56_25_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/98b946ffd91ffb4c459b27967098da47.jpg","text":"TemporaryFile(/tmp/multipartBody4082592888192619245asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755550744376,"filename":"image_18082025_22_55_45_10641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8b300171ea4c1b24711f7528fc16d1e8.jpg","text":"TemporaryFile(/tmp/multipartBody8012952974881337014asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755550744376,"filename":"image_18082025_22_57_04_9652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9ecdaf1630a78bb656ff20bd93836252.jpg","text":"TemporaryFile(/tmp/multipartBody2721009355887862890asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755550744376,"filename":"image_18082025_22_55_55_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d8589c055b8175996c4de3583ede6a98.jpg","text":"TemporaryFile(/tmp/multipartBody4304836671317033690asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755550744376,"filename":"image_18082025_22_56_04_9640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4db94b6bcb099cebb92c50fafdc16ebd.jpg","text":"TemporaryFile(/tmp/multipartBody8292258995246644147asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755550744376,"filename":"image_18082025_22_57_34_9628.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377720285","file1":"1377720284","file0":"1377720283","file4":"1377720287","file5":"1377720288","file3":"1377720286"},"map_files_photo_id_array":[{"photo_id":"1377720288","filename":"file5"},{"photo_id":"1377720285","filename":"file2"},{"photo_id":"1377720287","filename":"file4"},{"photo_id":"1377720284","filename":"file1"},{"photo_id":"1377720283","filename":"file0"},{"photo_id":"1377720286","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377720285":["hashtag1","hashtag2"]},{"1377720288":["hashtag1","hashtag2"]},{"1377720284":["hashtag1","hashtag2"]},{"1377720287":["hashtag1","hashtag2"]},{"1377720286":["hashtag1","hashtag2"]},{"1377720283":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377720285, 1377720288, 1377720284, 1377720287, 1377720286, 1377720283)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.51344895362854 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 22:59:03.269540
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/22/58/image_18082025_22_58_35_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/22/58/image_18082025_22_58_24_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/22/58/image_18082025_22_58_15_9671.jpg', 2), ('/home/nano/Desktop/images/18082025/22/57/image_18082025_22_58_05_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/22/57/image_18082025_22_57_45_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/22/55/image_18082025_22_55_25_10638.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/22/58/image_18082025_22_58_35_10639.jpg', '/home/nano/Desktop/images/18082025/22/58/image_18082025_22_58_24_9633.jpg', '/home/nano/Desktop/images/18082025/22/58/image_18082025_22_58_15_9671.jpg', '/home/nano/Desktop/images/18082025/22/57/image_18082025_22_58_05_10640.jpg', '/home/nano/Desktop/images/18082025/22/57/image_18082025_22_57_45_10641.jpg', '/home/nano/Desktop/images/18082025/22/55/image_18082025_22_55_25_10638.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/22/58/image_18082025_22_58_35_10639.jpg
/home/nano/Desktop/images/18082025/22/58/image_18082025_22_58_24_9633.jpg
/home/nano/Desktop/images/18082025/22/58/image_18082025_22_58_15_9671.jpg
/home/nano/Desktop/images/18082025/22/57/image_18082025_22_58_05_10640.jpg
/home/nano/Desktop/images/18082025/22/57/image_18082025_22_57_45_10641.jpg
/home/nano/Desktop/images/18082025/22/55/image_18082025_22_55_25_10638.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377720303","1377720306","1377720309","1377720300","1377720292","1377720295"],"photo_ids_order":["1377720292","1377720295","1377720300","1377720303","1377720306","1377720309"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/55c2f98ec76ea48c7f51eb17b0ce4921.jpg","text":"TemporaryFile(/tmp/multipartBody3744006508110118351asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755550804786,"filename":"image_18082025_22_58_05_10640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7169ba8e69b2b21141123827dc38d893.jpg","text":"TemporaryFile(/tmp/multipartBody3546558188318567536asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755550804786,"filename":"image_18082025_22_57_45_10641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/714e7dea50a15f84fd56c9eebc7ca302.jpg","text":"TemporaryFile(/tmp/multipartBody5258934868153582545asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755550804786,"filename":"image_18082025_22_55_25_10638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/321868a72dc75df7fd5b350a294293d0.jpg","text":"TemporaryFile(/tmp/multipartBody3981431392080836013asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755550804786,"filename":"image_18082025_22_58_15_9671.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/894def665b045b2940065f9da2c41ec3.jpg","text":"TemporaryFile(/tmp/multipartBody3420765533787238619asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755550804786,"filename":"image_18082025_22_58_35_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4911e6cf8a8c7f45624e199ebac48b73.jpg","text":"TemporaryFile(/tmp/multipartBody904895678827432071asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755550804786,"filename":"image_18082025_22_58_24_9633.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377720300","file1":"1377720295","file0":"1377720292","file4":"1377720306","file5":"1377720309","file3":"1377720303"},"map_files_photo_id_array":[{"photo_id":"1377720309","filename":"file5"},{"photo_id":"1377720300","filename":"file2"},{"photo_id":"1377720306","filename":"file4"},{"photo_id":"1377720295","filename":"file1"},{"photo_id":"1377720292","filename":"file0"},{"photo_id":"1377720303","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377720303":["hashtag1","hashtag2"]},{"1377720306":["hashtag1","hashtag2"]},{"1377720309":["hashtag1","hashtag2"]},{"1377720300":["hashtag1","hashtag2"]},{"1377720292":["hashtag1","hashtag2"]},{"1377720295":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377720303, 1377720306, 1377720309, 1377720300, 1377720292, 1377720295)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.785897731781006 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 22:59:47.470563
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/22/59/image_18082025_22_59_44_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/22/59/image_18082025_22_59_35_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/22/59/image_18082025_22_59_24_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/22/59/image_18082025_22_59_15_9692.jpg', 2), ('/home/nano/Desktop/images/18082025/22/58/image_18082025_22_58_54_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/22/55/image_18082025_22_55_14_9656.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/22/59/image_18082025_22_59_44_9628.jpg', '/home/nano/Desktop/images/18082025/22/59/image_18082025_22_59_35_10640.jpg', '/home/nano/Desktop/images/18082025/22/59/image_18082025_22_59_24_9632.jpg', '/home/nano/Desktop/images/18082025/22/59/image_18082025_22_59_15_9692.jpg', '/home/nano/Desktop/images/18082025/22/58/image_18082025_22_58_54_9633.jpg', '/home/nano/Desktop/images/18082025/22/55/image_18082025_22_55_14_9656.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/22/59/image_18082025_22_59_44_9628.jpg
/home/nano/Desktop/images/18082025/22/59/image_18082025_22_59_35_10640.jpg
/home/nano/Desktop/images/18082025/22/59/image_18082025_22_59_24_9632.jpg
/home/nano/Desktop/images/18082025/22/59/image_18082025_22_59_15_9692.jpg
/home/nano/Desktop/images/18082025/22/58/image_18082025_22_58_54_9633.jpg
/home/nano/Desktop/images/18082025/22/55/image_18082025_22_55_14_9656.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377720322","1377720333","1377720321","1377720324","1377720326","1377720329"],"photo_ids_order":["1377720321","1377720322","1377720324","1377720326","1377720329","1377720333"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/60687aaa82ed2000824988118063be7e.jpg","text":"TemporaryFile(/tmp/multipartBody281594287274986124asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755550849030,"filename":"image_18082025_22_59_35_10640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/864ff13225f9558814462f7b0fd3cafd.jpg","text":"TemporaryFile(/tmp/multipartBody3948819764895122134asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755550849030,"filename":"image_18082025_22_55_14_9656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/75ae7c02a0d0dc35bcdb7585f28f8c9c.jpg","text":"TemporaryFile(/tmp/multipartBody2115256973734705334asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755550849030,"filename":"image_18082025_22_59_44_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cfeae7de82562efce216fede987350d1.jpg","text":"TemporaryFile(/tmp/multipartBody4070903481354500845asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755550849030,"filename":"image_18082025_22_59_24_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/36a47771c5f81664fb3948ea2983c2b6.jpg","text":"TemporaryFile(/tmp/multipartBody7639810025527600253asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755550849030,"filename":"image_18082025_22_59_15_9692.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/44d09c5d1d3e4386d4712acd5e0c6fe3.jpg","text":"TemporaryFile(/tmp/multipartBody2607194168253665723asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755550849030,"filename":"image_18082025_22_58_54_9633.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377720324","file1":"1377720322","file0":"1377720321","file4":"1377720329","file5":"1377720333","file3":"1377720326"},"map_files_photo_id_array":[{"photo_id":"1377720333","filename":"file5"},{"photo_id":"1377720324","filename":"file2"},{"photo_id":"1377720329","filename":"file4"},{"photo_id":"1377720322","filename":"file1"},{"photo_id":"1377720321","filename":"file0"},{"photo_id":"1377720326","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377720322":["hashtag1","hashtag2"]},{"1377720333":["hashtag1","hashtag2"]},{"1377720321":["hashtag1","hashtag2"]},{"1377720324":["hashtag1","hashtag2"]},{"1377720326":["hashtag1","hashtag2"]},{"1377720329":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377720322, 1377720333, 1377720321, 1377720324, 1377720326, 1377720329)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.958208322525024 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:00:32.572979
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/00/image_18082025_23_00_55_10643.jpg', 2), ('/home/nano/Desktop/images/18082025/23/00/image_18082025_23_00_35_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/23/00/image_18082025_23_00_25_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/22/59/image_18082025_22_59_54_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/22/54/image_18082025_22_55_04_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/22/54/image_18082025_22_54_55_10638.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/00/image_18082025_23_00_55_10643.jpg', '/home/nano/Desktop/images/18082025/23/00/image_18082025_23_00_35_9635.jpg', '/home/nano/Desktop/images/18082025/23/00/image_18082025_23_00_25_10641.jpg', '/home/nano/Desktop/images/18082025/22/59/image_18082025_22_59_54_9629.jpg', '/home/nano/Desktop/images/18082025/22/54/image_18082025_22_55_04_9636.jpg', '/home/nano/Desktop/images/18082025/22/54/image_18082025_22_54_55_10638.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/00/image_18082025_23_00_55_10643.jpg
/home/nano/Desktop/images/18082025/23/00/image_18082025_23_00_35_9635.jpg
/home/nano/Desktop/images/18082025/23/00/image_18082025_23_00_25_10641.jpg
/home/nano/Desktop/images/18082025/22/59/image_18082025_22_59_54_9629.jpg
/home/nano/Desktop/images/18082025/22/54/image_18082025_22_55_04_9636.jpg
/home/nano/Desktop/images/18082025/22/54/image_18082025_22_54_55_10638.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377720352","1377720351","1377720345","1377720350","1377720347","1377720349"],"photo_ids_order":["1377720345","1377720347","1377720349","1377720350","1377720351","1377720352"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ad3c0157b319ecbc989dcd0961096c1d.jpg","text":"TemporaryFile(/tmp/multipartBody159904995375091755asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755550894170,"filename":"image_18082025_22_54_55_10638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ee420617581abbf57cb3a2d644314899.jpg","text":"TemporaryFile(/tmp/multipartBody2680470271324374396asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755550894170,"filename":"image_18082025_22_55_04_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/449d957d78d7f628099ecb4b3f64f73b.jpg","text":"TemporaryFile(/tmp/multipartBody1264725524190955311asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755550894170,"filename":"image_18082025_23_00_55_10643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3ead6651cfa3c826ed85a0de7a462c57.jpg","text":"TemporaryFile(/tmp/multipartBody489341224072548645asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755550894170,"filename":"image_18082025_22_59_54_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b7119e54ccd11a33bc6de6fbf8b87430.jpg","text":"TemporaryFile(/tmp/multipartBody5078748506392453658asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755550894170,"filename":"image_18082025_23_00_35_9635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/db998a57d86d5d01f6a2b27cfb4f035d.jpg","text":"TemporaryFile(/tmp/multipartBody1156026527766737055asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755550894170,"filename":"image_18082025_23_00_25_10641.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377720349","file1":"1377720347","file0":"1377720345","file4":"1377720351","file5":"1377720352","file3":"1377720350"},"map_files_photo_id_array":[{"photo_id":"1377720352","filename":"file5"},{"photo_id":"1377720349","filename":"file2"},{"photo_id":"1377720351","filename":"file4"},{"photo_id":"1377720347","filename":"file1"},{"photo_id":"1377720345","filename":"file0"},{"photo_id":"1377720350","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377720352":["hashtag1","hashtag2"]},{"1377720351":["hashtag1","hashtag2"]},{"1377720345":["hashtag1","hashtag2"]},{"1377720350":["hashtag1","hashtag2"]},{"1377720347":["hashtag1","hashtag2"]},{"1377720349":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377720352, 1377720351, 1377720345, 1377720350, 1377720347, 1377720349)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.16696071624756 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:01:17.705597
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/01/image_18082025_23_01_44_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/23/01/image_18082025_23_01_34_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/23/01/image_18082025_23_01_25_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/23/00/image_18082025_23_00_44_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/22/54/image_18082025_22_54_44_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/22/54/image_18082025_22_54_34_9627.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/01/image_18082025_23_01_44_9629.jpg', '/home/nano/Desktop/images/18082025/23/01/image_18082025_23_01_34_9640.jpg', '/home/nano/Desktop/images/18082025/23/01/image_18082025_23_01_25_10641.jpg', '/home/nano/Desktop/images/18082025/23/00/image_18082025_23_00_44_9633.jpg', '/home/nano/Desktop/images/18082025/22/54/image_18082025_22_54_44_9631.jpg', '/home/nano/Desktop/images/18082025/22/54/image_18082025_22_54_34_9627.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/01/image_18082025_23_01_44_9629.jpg
/home/nano/Desktop/images/18082025/23/01/image_18082025_23_01_34_9640.jpg
/home/nano/Desktop/images/18082025/23/01/image_18082025_23_01_25_10641.jpg
/home/nano/Desktop/images/18082025/23/00/image_18082025_23_00_44_9633.jpg
/home/nano/Desktop/images/18082025/22/54/image_18082025_22_54_44_9631.jpg
/home/nano/Desktop/images/18082025/22/54/image_18082025_22_54_34_9627.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377720364","1377720375","1377720374","1377720371","1377720373","1377720367"],"photo_ids_order":["1377720364","1377720367","1377720371","1377720373","1377720374","1377720375"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9e5be08597d39cc433375e79db2e528c.jpg","text":"TemporaryFile(/tmp/multipartBody5716631571074171859asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755550939025,"filename":"image_18082025_23_01_44_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8d1a8d4819dff38d3a9e9d229c03916c.jpg","text":"TemporaryFile(/tmp/multipartBody6013044982983473282asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755550939025,"filename":"image_18082025_22_54_34_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/19759fb6d7221afe0086a3e44bae8356.jpg","text":"TemporaryFile(/tmp/multipartBody6136565130258516238asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755550939025,"filename":"image_18082025_22_54_44_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a809c1a1a715664f6633f6804d46834d.jpg","text":"TemporaryFile(/tmp/multipartBody5511279895800539429asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755550939025,"filename":"image_18082025_23_01_25_10641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3bbb73352e728b573486fbb0842eb383.jpg","text":"TemporaryFile(/tmp/multipartBody4026969601258512574asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755550939025,"filename":"image_18082025_23_00_44_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b098af9396739c4fd828146091ef1a0f.jpg","text":"TemporaryFile(/tmp/multipartBody2872819280242746575asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755550939025,"filename":"image_18082025_23_01_34_9640.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377720371","file1":"1377720367","file0":"1377720364","file4":"1377720374","file5":"1377720375","file3":"1377720373"},"map_files_photo_id_array":[{"photo_id":"1377720375","filename":"file5"},{"photo_id":"1377720371","filename":"file2"},{"photo_id":"1377720374","filename":"file4"},{"photo_id":"1377720367","filename":"file1"},{"photo_id":"1377720364","filename":"file0"},{"photo_id":"1377720373","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377720364":["hashtag1","hashtag2"]},{"1377720375":["hashtag1","hashtag2"]},{"1377720374":["hashtag1","hashtag2"]},{"1377720371":["hashtag1","hashtag2"]},{"1377720373":["hashtag1","hashtag2"]},{"1377720367":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377720364, 1377720375, 1377720374, 1377720371, 1377720373, 1377720367)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.59394884109497 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:02:02.296171
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/22/54/image_18082025_22_54_25_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/22/53/image_18082025_22_54_05_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/22/53/image_18082025_22_53_55_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/22/53/image_18082025_22_53_44_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/22/53/image_18082025_22_53_35_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/22/53/image_18082025_22_53_25_10639.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/22/54/image_18082025_22_54_25_10648.jpg', '/home/nano/Desktop/images/18082025/22/53/image_18082025_22_54_05_9643.jpg', '/home/nano/Desktop/images/18082025/22/53/image_18082025_22_53_55_10637.jpg', '/home/nano/Desktop/images/18082025/22/53/image_18082025_22_53_44_9632.jpg', '/home/nano/Desktop/images/18082025/22/53/image_18082025_22_53_35_9646.jpg', '/home/nano/Desktop/images/18082025/22/53/image_18082025_22_53_25_10639.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/22/54/image_18082025_22_54_25_10648.jpg
/home/nano/Desktop/images/18082025/22/53/image_18082025_22_54_05_9643.jpg
/home/nano/Desktop/images/18082025/22/53/image_18082025_22_53_55_10637.jpg
/home/nano/Desktop/images/18082025/22/53/image_18082025_22_53_44_9632.jpg
/home/nano/Desktop/images/18082025/22/53/image_18082025_22_53_35_9646.jpg
/home/nano/Desktop/images/18082025/22/53/image_18082025_22_53_25_10639.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377720393","1377720389","1377720386","1377720391","1377720394","1377720382"],"photo_ids_order":["1377720382","1377720386","1377720389","1377720391","1377720393","1377720394"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7692855f686a79d8f55cf3e6fb5f85f9.jpg","text":"TemporaryFile(/tmp/multipartBody6395383277360942777asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755550983714,"filename":"image_18082025_22_53_35_9646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6e9d2a8ccce46957b4ba13863a337f52.jpg","text":"TemporaryFile(/tmp/multipartBody7277382650396538976asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755550983714,"filename":"image_18082025_22_53_55_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8abcebb78582af8e82cff96e49e9a80a.jpg","text":"TemporaryFile(/tmp/multipartBody2778476470964692292asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755550983714,"filename":"image_18082025_22_54_05_9643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fd0517eb93bdee9b3b024bf0f4eb09e1.jpg","text":"TemporaryFile(/tmp/multipartBody5719767244701698432asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755550983714,"filename":"image_18082025_22_53_44_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5c383553deca5c2ef4239908b0f5f50c.jpg","text":"TemporaryFile(/tmp/multipartBody846105009804567410asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755550983714,"filename":"image_18082025_22_53_25_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/47b09263575963de2dc155ebeeba67d8.jpg","text":"TemporaryFile(/tmp/multipartBody5814903310365843236asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755550983714,"filename":"image_18082025_22_54_25_10648.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377720389","file1":"1377720386","file0":"1377720382","file4":"1377720393","file5":"1377720394","file3":"1377720391"},"map_files_photo_id_array":[{"photo_id":"1377720394","filename":"file5"},{"photo_id":"1377720389","filename":"file2"},{"photo_id":"1377720393","filename":"file4"},{"photo_id":"1377720386","filename":"file1"},{"photo_id":"1377720382","filename":"file0"},{"photo_id":"1377720391","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377720393":["hashtag1","hashtag2"]},{"1377720389":["hashtag1","hashtag2"]},{"1377720386":["hashtag1","hashtag2"]},{"1377720391":["hashtag1","hashtag2"]},{"1377720394":["hashtag1","hashtag2"]},{"1377720382":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377720393, 1377720389, 1377720386, 1377720391, 1377720394, 1377720382)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.92290949821472 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:02:46.774702
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/02/image_18082025_23_02_14_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/23/01/image_18082025_23_02_04_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/23/01/image_18082025_23_01_55_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/22/53/image_18082025_22_53_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/22/52/image_18082025_22_53_05_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/22/52/image_18082025_22_52_54_9630.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/02/image_18082025_23_02_14_9649.jpg', '/home/nano/Desktop/images/18082025/23/01/image_18082025_23_02_04_9655.jpg', '/home/nano/Desktop/images/18082025/23/01/image_18082025_23_01_55_10642.jpg', '/home/nano/Desktop/images/18082025/22/53/image_18082025_22_53_14_9658.jpg', '/home/nano/Desktop/images/18082025/22/52/image_18082025_22_53_05_10648.jpg', '/home/nano/Desktop/images/18082025/22/52/image_18082025_22_52_54_9630.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/02/image_18082025_23_02_14_9649.jpg
/home/nano/Desktop/images/18082025/23/01/image_18082025_23_02_04_9655.jpg
/home/nano/Desktop/images/18082025/23/01/image_18082025_23_01_55_10642.jpg
/home/nano/Desktop/images/18082025/22/53/image_18082025_22_53_14_9658.jpg
/home/nano/Desktop/images/18082025/22/52/image_18082025_22_53_05_10648.jpg
/home/nano/Desktop/images/18082025/22/52/image_18082025_22_52_54_9630.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377720406","1377720415","1377720411","1377720408","1377720410","1377720404"],"photo_ids_order":["1377720404","1377720406","1377720408","1377720410","1377720411","1377720415"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/013ead78edd7a8f6423dfd75443b5260.jpg","text":"TemporaryFile(/tmp/multipartBody5000122860239615059asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551028300,"filename":"image_18082025_23_02_04_9655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/666c108ac96ef9eb57ed118530f8b9bb.jpg","text":"TemporaryFile(/tmp/multipartBody2141985880358995628asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551028300,"filename":"image_18082025_22_52_54_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ff7dee4b7c9a9dc357c7eaa7c86fc4ae.jpg","text":"TemporaryFile(/tmp/multipartBody4837213067833786826asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551028300,"filename":"image_18082025_22_53_05_10648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c4e026cedb42bd3708deeed111d2debb.jpg","text":"TemporaryFile(/tmp/multipartBody7530384970610317212asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551028300,"filename":"image_18082025_23_01_55_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4514dd3bca6c7ec84f795cf939e819bc.jpg","text":"TemporaryFile(/tmp/multipartBody4450919284333213074asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551028300,"filename":"image_18082025_22_53_14_9658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2b1752b5309ce7b6e185f1c398a54a94.jpg","text":"TemporaryFile(/tmp/multipartBody4974800636677612657asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551028300,"filename":"image_18082025_23_02_14_9649.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377720408","file1":"1377720406","file0":"1377720404","file4":"1377720411","file5":"1377720415","file3":"1377720410"},"map_files_photo_id_array":[{"photo_id":"1377720415","filename":"file5"},{"photo_id":"1377720408","filename":"file2"},{"photo_id":"1377720411","filename":"file4"},{"photo_id":"1377720406","filename":"file1"},{"photo_id":"1377720404","filename":"file0"},{"photo_id":"1377720410","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377720406":["hashtag1","hashtag2"]},{"1377720415":["hashtag1","hashtag2"]},{"1377720411":["hashtag1","hashtag2"]},{"1377720408":["hashtag1","hashtag2"]},{"1377720410":["hashtag1","hashtag2"]},{"1377720404":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377720406, 1377720415, 1377720411, 1377720408, 1377720410, 1377720404)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.609800338745117 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:03:31.884572
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/03/image_18082025_23_03_45_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/23/03/image_18082025_23_03_34_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/23/03/image_18082025_23_03_25_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/23/03/image_18082025_23_03_15_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/23/02/image_18082025_23_03_04_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/23/02/image_18082025_23_02_55_9629.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/03/image_18082025_23_03_45_10637.jpg', '/home/nano/Desktop/images/18082025/23/03/image_18082025_23_03_34_9630.jpg', '/home/nano/Desktop/images/18082025/23/03/image_18082025_23_03_25_9627.jpg', '/home/nano/Desktop/images/18082025/23/03/image_18082025_23_03_15_10658.jpg', '/home/nano/Desktop/images/18082025/23/02/image_18082025_23_03_04_9634.jpg', '/home/nano/Desktop/images/18082025/23/02/image_18082025_23_02_55_9629.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/03/image_18082025_23_03_45_10637.jpg
/home/nano/Desktop/images/18082025/23/03/image_18082025_23_03_34_9630.jpg
/home/nano/Desktop/images/18082025/23/03/image_18082025_23_03_25_9627.jpg
/home/nano/Desktop/images/18082025/23/03/image_18082025_23_03_15_10658.jpg
/home/nano/Desktop/images/18082025/23/02/image_18082025_23_03_04_9634.jpg
/home/nano/Desktop/images/18082025/23/02/image_18082025_23_02_55_9629.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.3064508438110352 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:03:46.907051
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/03/image_18082025_23_03_45_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/23/03/image_18082025_23_03_34_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/23/03/image_18082025_23_03_25_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/23/03/image_18082025_23_03_15_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/23/02/image_18082025_23_03_04_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/23/02/image_18082025_23_02_55_9629.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/03/image_18082025_23_03_45_10637.jpg', '/home/nano/Desktop/images/18082025/23/03/image_18082025_23_03_34_9630.jpg', '/home/nano/Desktop/images/18082025/23/03/image_18082025_23_03_25_9627.jpg', '/home/nano/Desktop/images/18082025/23/03/image_18082025_23_03_15_10658.jpg', '/home/nano/Desktop/images/18082025/23/02/image_18082025_23_03_04_9634.jpg', '/home/nano/Desktop/images/18082025/23/02/image_18082025_23_02_55_9629.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/03/image_18082025_23_03_45_10637.jpg
/home/nano/Desktop/images/18082025/23/03/image_18082025_23_03_34_9630.jpg
/home/nano/Desktop/images/18082025/23/03/image_18082025_23_03_25_9627.jpg
/home/nano/Desktop/images/18082025/23/03/image_18082025_23_03_15_10658.jpg
/home/nano/Desktop/images/18082025/23/02/image_18082025_23_03_04_9634.jpg
/home/nano/Desktop/images/18082025/23/02/image_18082025_23_02_55_9629.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377720439","1377720441","1377720444","1377720437","1377720446","1377720440"],"photo_ids_order":["1377720437","1377720439","1377720440","1377720441","1377720444","1377720446"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8c01a3a272d3cd37ede36cc80f666308.jpg","text":"TemporaryFile(/tmp/multipartBody6063563200403858572asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551088234,"filename":"image_18082025_23_03_34_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9b3cf38829d6b2aa8a42439288d80398.jpg","text":"TemporaryFile(/tmp/multipartBody3868283015026803440asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551088234,"filename":"image_18082025_23_03_15_10658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/21e2d3f85796de58d33d92a31e0f11be.jpg","text":"TemporaryFile(/tmp/multipartBody173863023995634021asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551088234,"filename":"image_18082025_23_03_04_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1be1b3d3b0fbcd4092646bcaacb24108.jpg","text":"TemporaryFile(/tmp/multipartBody8878376808917045833asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551088234,"filename":"image_18082025_23_03_45_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3b6475f85183ffc92d2ff812ded0c52d.jpg","text":"TemporaryFile(/tmp/multipartBody3175898484263692289asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551088234,"filename":"image_18082025_23_02_55_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f1f4b1d0a67ce0a838562d00b576b535.jpg","text":"TemporaryFile(/tmp/multipartBody4234678480630957786asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551088234,"filename":"image_18082025_23_03_25_9627.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377720440","file1":"1377720439","file0":"1377720437","file4":"1377720444","file5":"1377720446","file3":"1377720441"},"map_files_photo_id_array":[{"photo_id":"1377720446","filename":"file5"},{"photo_id":"1377720440","filename":"file2"},{"photo_id":"1377720444","filename":"file4"},{"photo_id":"1377720439","filename":"file1"},{"photo_id":"1377720437","filename":"file0"},{"photo_id":"1377720441","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377720439":["hashtag1","hashtag2"]},{"1377720441":["hashtag1","hashtag2"]},{"1377720444":["hashtag1","hashtag2"]},{"1377720437":["hashtag1","hashtag2"]},{"1377720446":["hashtag1","hashtag2"]},{"1377720440":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377720439, 1377720441, 1377720444, 1377720437, 1377720446, 1377720440)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.587932109832764 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:04:31.978226
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/04/image_18082025_23_04_35_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/23/04/image_18082025_23_04_24_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/23/04/image_18082025_23_04_15_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/23/03/image_18082025_23_04_05_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/23/03/image_18082025_23_03_54_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/22/52/image_18082025_22_52_44_9632.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/04/image_18082025_23_04_35_10642.jpg', '/home/nano/Desktop/images/18082025/23/04/image_18082025_23_04_24_9627.jpg', '/home/nano/Desktop/images/18082025/23/04/image_18082025_23_04_15_9638.jpg', '/home/nano/Desktop/images/18082025/23/03/image_18082025_23_04_05_10642.jpg', '/home/nano/Desktop/images/18082025/23/03/image_18082025_23_03_54_9632.jpg', '/home/nano/Desktop/images/18082025/22/52/image_18082025_22_52_44_9632.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/04/image_18082025_23_04_35_10642.jpg
/home/nano/Desktop/images/18082025/23/04/image_18082025_23_04_24_9627.jpg
/home/nano/Desktop/images/18082025/23/04/image_18082025_23_04_15_9638.jpg
/home/nano/Desktop/images/18082025/23/03/image_18082025_23_04_05_10642.jpg
/home/nano/Desktop/images/18082025/23/03/image_18082025_23_03_54_9632.jpg
/home/nano/Desktop/images/18082025/22/52/image_18082025_22_52_44_9632.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377720462","1377720456","1377720461","1377720464","1377720458","1377720460"],"photo_ids_order":["1377720456","1377720458","1377720460","1377720461","1377720462","1377720464"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ca0d5761a82525a423b562a57839d48e.jpg","text":"TemporaryFile(/tmp/multipartBody2112277188836060851asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551133359,"filename":"image_18082025_23_03_54_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7c6f9c330fbf476596305bde7901cce3.jpg","text":"TemporaryFile(/tmp/multipartBody9138222995733990619asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551133359,"filename":"image_18082025_23_04_35_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/afa7231b3b82ef37ded4e2b5fd1bb410.jpg","text":"TemporaryFile(/tmp/multipartBody5170717111060558308asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551133359,"filename":"image_18082025_23_04_05_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4595bef6cd875bf6dbf3297fab3680cd.jpg","text":"TemporaryFile(/tmp/multipartBody8942346752587758965asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551133359,"filename":"image_18082025_22_52_44_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/985ec5e42e13e8b15dd0ae61a1b2bed6.jpg","text":"TemporaryFile(/tmp/multipartBody3940550730699102937asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551133359,"filename":"image_18082025_23_04_24_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/72fe9b03e64b09c740bc0d3f60a6dee1.jpg","text":"TemporaryFile(/tmp/multipartBody8540662566102491666asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551133359,"filename":"image_18082025_23_04_15_9638.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377720460","file1":"1377720458","file0":"1377720456","file4":"1377720462","file5":"1377720464","file3":"1377720461"},"map_files_photo_id_array":[{"photo_id":"1377720464","filename":"file5"},{"photo_id":"1377720460","filename":"file2"},{"photo_id":"1377720462","filename":"file4"},{"photo_id":"1377720458","filename":"file1"},{"photo_id":"1377720456","filename":"file0"},{"photo_id":"1377720461","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377720462":["hashtag1","hashtag2"]},{"1377720456":["hashtag1","hashtag2"]},{"1377720461":["hashtag1","hashtag2"]},{"1377720464":["hashtag1","hashtag2"]},{"1377720458":["hashtag1","hashtag2"]},{"1377720460":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377720462, 1377720456, 1377720461, 1377720464, 1377720458, 1377720460)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.983779907226562 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:05:17.107796
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/05/image_18082025_23_05_44_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/23/05/image_18082025_23_05_35_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/23/05/image_18082025_23_05_24_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/23/05/image_18082025_23_05_15_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/23/04/image_18082025_23_05_05_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/23/04/image_18082025_23_04_45_9649.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/05/image_18082025_23_05_44_9629.jpg', '/home/nano/Desktop/images/18082025/23/05/image_18082025_23_05_35_10642.jpg', '/home/nano/Desktop/images/18082025/23/05/image_18082025_23_05_24_9629.jpg', '/home/nano/Desktop/images/18082025/23/05/image_18082025_23_05_15_9641.jpg', '/home/nano/Desktop/images/18082025/23/04/image_18082025_23_05_05_10667.jpg', '/home/nano/Desktop/images/18082025/23/04/image_18082025_23_04_45_9649.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/05/image_18082025_23_05_44_9629.jpg
/home/nano/Desktop/images/18082025/23/05/image_18082025_23_05_35_10642.jpg
/home/nano/Desktop/images/18082025/23/05/image_18082025_23_05_24_9629.jpg
/home/nano/Desktop/images/18082025/23/05/image_18082025_23_05_15_9641.jpg
/home/nano/Desktop/images/18082025/23/04/image_18082025_23_05_05_10667.jpg
/home/nano/Desktop/images/18082025/23/04/image_18082025_23_04_45_9649.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377720478","1377720486","1377720485","1377720484","1377720481","1377720475"],"photo_ids_order":["1377720475","1377720478","1377720481","1377720484","1377720485","1377720486"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d484f8113083184c872265ac012488b1.jpg","text":"TemporaryFile(/tmp/multipartBody2744155636061358027asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551178486,"filename":"image_18082025_23_05_35_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0a03d2dda751b139dcfdd32678884612.jpg","text":"TemporaryFile(/tmp/multipartBody6736418248449486262asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551178486,"filename":"image_18082025_23_04_45_9649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7975d5c16de133ac9c18e08188bb389e.jpg","text":"TemporaryFile(/tmp/multipartBody5271919085441456600asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551178486,"filename":"image_18082025_23_05_05_10667.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/419638a189a37b5a13c24399500e5da5.jpg","text":"TemporaryFile(/tmp/multipartBody3388878909299433113asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551178486,"filename":"image_18082025_23_05_15_9641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a8ceee96d51d81b0e976156f288049cb.jpg","text":"TemporaryFile(/tmp/multipartBody1271653538008994411asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551178486,"filename":"image_18082025_23_05_24_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6a92946afcfd4a4217ee1ed0d2aaff1c.jpg","text":"TemporaryFile(/tmp/multipartBody2694781154989744598asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551178486,"filename":"image_18082025_23_05_44_9629.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377720481","file1":"1377720478","file0":"1377720475","file4":"1377720485","file5":"1377720486","file3":"1377720484"},"map_files_photo_id_array":[{"photo_id":"1377720486","filename":"file5"},{"photo_id":"1377720481","filename":"file2"},{"photo_id":"1377720485","filename":"file4"},{"photo_id":"1377720478","filename":"file1"},{"photo_id":"1377720475","filename":"file0"},{"photo_id":"1377720484","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377720478":["hashtag1","hashtag2"]},{"1377720486":["hashtag1","hashtag2"]},{"1377720485":["hashtag1","hashtag2"]},{"1377720484":["hashtag1","hashtag2"]},{"1377720481":["hashtag1","hashtag2"]},{"1377720475":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377720478, 1377720486, 1377720485, 1377720484, 1377720481, 1377720475)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.626689672470093 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:06:02.808051
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/22/52/image_18082025_22_52_35_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/22/52/image_18082025_22_52_24_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/22/51/image_18082025_22_52_05_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/22/51/image_18082025_22_51_54_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/22/51/image_18082025_22_51_45_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/22/51/image_18082025_22_51_35_10643.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/22/52/image_18082025_22_52_35_10640.jpg', '/home/nano/Desktop/images/18082025/22/52/image_18082025_22_52_24_9648.jpg', '/home/nano/Desktop/images/18082025/22/51/image_18082025_22_52_05_10653.jpg', '/home/nano/Desktop/images/18082025/22/51/image_18082025_22_51_54_9629.jpg', '/home/nano/Desktop/images/18082025/22/51/image_18082025_22_51_45_9655.jpg', '/home/nano/Desktop/images/18082025/22/51/image_18082025_22_51_35_10643.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/22/52/image_18082025_22_52_35_10640.jpg
/home/nano/Desktop/images/18082025/22/52/image_18082025_22_52_24_9648.jpg
/home/nano/Desktop/images/18082025/22/51/image_18082025_22_52_05_10653.jpg
/home/nano/Desktop/images/18082025/22/51/image_18082025_22_51_54_9629.jpg
/home/nano/Desktop/images/18082025/22/51/image_18082025_22_51_45_9655.jpg
/home/nano/Desktop/images/18082025/22/51/image_18082025_22_51_35_10643.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377720511","1377720498","1377720507","1377720504","1377720506","1377720509"],"photo_ids_order":["1377720498","1377720504","1377720506","1377720507","1377720509","1377720511"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6f5a51273a8d6626718ae949f4fd56bd.jpg","text":"TemporaryFile(/tmp/multipartBody2574702055776153258asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551224091,"filename":"image_18082025_22_51_35_10643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/54d6776958ee5cd5d0af297b0ce3121f.jpg","text":"TemporaryFile(/tmp/multipartBody2452332696254678225asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551224091,"filename":"image_18082025_22_52_35_10640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/af079bd6e0222f71c8732bdcb68a499c.jpg","text":"TemporaryFile(/tmp/multipartBody2535723233575024974asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551224091,"filename":"image_18082025_22_51_54_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/10c1868dc7fa6b46fb230a9eed6e07f2.jpg","text":"TemporaryFile(/tmp/multipartBody7009355780067424517asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551224091,"filename":"image_18082025_22_52_24_9648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6673469e45ba8933c1bb8df04e8dab4a.jpg","text":"TemporaryFile(/tmp/multipartBody2778532899950127226asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551224091,"filename":"image_18082025_22_52_05_10653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cc99d6ec3e831f71c085a54c3bfb36d9.jpg","text":"TemporaryFile(/tmp/multipartBody8586185357527236022asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551224091,"filename":"image_18082025_22_51_45_9655.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377720506","file1":"1377720504","file0":"1377720498","file4":"1377720509","file5":"1377720511","file3":"1377720507"},"map_files_photo_id_array":[{"photo_id":"1377720511","filename":"file5"},{"photo_id":"1377720506","filename":"file2"},{"photo_id":"1377720509","filename":"file4"},{"photo_id":"1377720504","filename":"file1"},{"photo_id":"1377720498","filename":"file0"},{"photo_id":"1377720507","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377720511":["hashtag1","hashtag2"]},{"1377720498":["hashtag1","hashtag2"]},{"1377720507":["hashtag1","hashtag2"]},{"1377720504":["hashtag1","hashtag2"]},{"1377720506":["hashtag1","hashtag2"]},{"1377720509":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377720511, 1377720498, 1377720507, 1377720504, 1377720506, 1377720509)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.114481210708618 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:06:47.189980
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/06/image_18082025_23_06_25_10648.jpg', 2), ('/home/nano/Desktop/images/18082025/23/06/image_18082025_23_06_14_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/23/05/image_18082025_23_06_05_10649.jpg', 2), ('/home/nano/Desktop/images/18082025/23/05/image_18082025_23_05_54_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/22/51/image_18082025_22_51_15_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/22/50/image_18082025_22_51_05_10652.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/06/image_18082025_23_06_25_10648.jpg', '/home/nano/Desktop/images/18082025/23/06/image_18082025_23_06_14_9664.jpg', '/home/nano/Desktop/images/18082025/23/05/image_18082025_23_06_05_10649.jpg', '/home/nano/Desktop/images/18082025/23/05/image_18082025_23_05_54_9625.jpg', '/home/nano/Desktop/images/18082025/22/51/image_18082025_22_51_15_9659.jpg', '/home/nano/Desktop/images/18082025/22/50/image_18082025_22_51_05_10652.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/06/image_18082025_23_06_25_10648.jpg
/home/nano/Desktop/images/18082025/23/06/image_18082025_23_06_14_9664.jpg
/home/nano/Desktop/images/18082025/23/05/image_18082025_23_06_05_10649.jpg
/home/nano/Desktop/images/18082025/23/05/image_18082025_23_05_54_9625.jpg
/home/nano/Desktop/images/18082025/22/51/image_18082025_22_51_15_9659.jpg
/home/nano/Desktop/images/18082025/22/50/image_18082025_22_51_05_10652.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377720520","1377720517","1377720519","1377720524","1377720518","1377720521"],"photo_ids_order":["1377720517","1377720518","1377720519","1377720520","1377720521","1377720524"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/649420514f55769a5a27bc6f87d6ff9a.jpg","text":"TemporaryFile(/tmp/multipartBody3450732240031242581asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551268571,"filename":"image_18082025_23_05_54_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/45f567fac613930efb32c581e0916bd3.jpg","text":"TemporaryFile(/tmp/multipartBody484747092239008107asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551268571,"filename":"image_18082025_23_06_25_10648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1159a9dccf8d490eba6f69c9fbdcbbbc.jpg","text":"TemporaryFile(/tmp/multipartBody1665608289781134227asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551268571,"filename":"image_18082025_23_06_05_10649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2a19d5e65237d8467a291d8a2ec43f96.jpg","text":"TemporaryFile(/tmp/multipartBody1550887874590988261asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551268571,"filename":"image_18082025_22_51_05_10652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fb83892ac705f965481cfe1b47be8425.jpg","text":"TemporaryFile(/tmp/multipartBody3528703770741448223asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551268571,"filename":"image_18082025_23_06_14_9664.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/42f17db93fa690ae93ed304dcdb7a6e7.jpg","text":"TemporaryFile(/tmp/multipartBody3692067301963286870asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551268571,"filename":"image_18082025_22_51_15_9659.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377720519","file1":"1377720518","file0":"1377720517","file4":"1377720521","file5":"1377720524","file3":"1377720520"},"map_files_photo_id_array":[{"photo_id":"1377720524","filename":"file5"},{"photo_id":"1377720519","filename":"file2"},{"photo_id":"1377720521","filename":"file4"},{"photo_id":"1377720518","filename":"file1"},{"photo_id":"1377720517","filename":"file0"},{"photo_id":"1377720520","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377720520":["hashtag1","hashtag2"]},{"1377720517":["hashtag1","hashtag2"]},{"1377720519":["hashtag1","hashtag2"]},{"1377720524":["hashtag1","hashtag2"]},{"1377720518":["hashtag1","hashtag2"]},{"1377720521":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377720520, 1377720517, 1377720519, 1377720524, 1377720518, 1377720521)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.791913986206055 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:07:32.332321
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/07/image_18082025_23_07_44_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/23/06/image_18082025_23_07_05_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/23/06/image_18082025_23_06_55_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/22/50/image_18082025_22_50_45_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/22/50/image_18082025_22_50_35_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/22/50/image_18082025_22_50_24_9627.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/07/image_18082025_23_07_44_9629.jpg', '/home/nano/Desktop/images/18082025/23/06/image_18082025_23_07_05_9642.jpg', '/home/nano/Desktop/images/18082025/23/06/image_18082025_23_06_55_10637.jpg', '/home/nano/Desktop/images/18082025/22/50/image_18082025_22_50_45_9631.jpg', '/home/nano/Desktop/images/18082025/22/50/image_18082025_22_50_35_10640.jpg', '/home/nano/Desktop/images/18082025/22/50/image_18082025_22_50_24_9627.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/07/image_18082025_23_07_44_9629.jpg
/home/nano/Desktop/images/18082025/23/06/image_18082025_23_07_05_9642.jpg
/home/nano/Desktop/images/18082025/23/06/image_18082025_23_06_55_10637.jpg
/home/nano/Desktop/images/18082025/22/50/image_18082025_22_50_45_9631.jpg
/home/nano/Desktop/images/18082025/22/50/image_18082025_22_50_35_10640.jpg
/home/nano/Desktop/images/18082025/22/50/image_18082025_22_50_24_9627.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377720544","1377720538","1377720546","1377720537","1377720542","1377720539"],"photo_ids_order":["1377720537","1377720538","1377720539","1377720542","1377720544","1377720546"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9691c92a819f977da423b47b380d3b2e.jpg","text":"TemporaryFile(/tmp/multipartBody456489391971924224asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551313983,"filename":"image_18082025_22_50_35_10640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4ac95bd5762839f4a3c090826248738a.jpg","text":"TemporaryFile(/tmp/multipartBody2270752741644222120asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551313983,"filename":"image_18082025_23_07_05_9642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cb7823089e41d1dafe7f9d8364a7d93d.jpg","text":"TemporaryFile(/tmp/multipartBody6256829545038961524asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551313983,"filename":"image_18082025_22_50_24_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ea9c4472fa1ad8751d33f0ccc4915645.jpg","text":"TemporaryFile(/tmp/multipartBody439608033957526732asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551313983,"filename":"image_18082025_23_07_44_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/71d0320f41345b6a671b0802dcfc7f44.jpg","text":"TemporaryFile(/tmp/multipartBody4291154210611808824asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551313983,"filename":"image_18082025_22_50_45_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7c0e1f368149867603eab6f7edd442c2.jpg","text":"TemporaryFile(/tmp/multipartBody7714539870560910422asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551313983,"filename":"image_18082025_23_06_55_10637.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377720539","file1":"1377720538","file0":"1377720537","file4":"1377720544","file5":"1377720546","file3":"1377720542"},"map_files_photo_id_array":[{"photo_id":"1377720546","filename":"file5"},{"photo_id":"1377720539","filename":"file2"},{"photo_id":"1377720544","filename":"file4"},{"photo_id":"1377720538","filename":"file1"},{"photo_id":"1377720537","filename":"file0"},{"photo_id":"1377720542","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377720544":["hashtag1","hashtag2"]},{"1377720538":["hashtag1","hashtag2"]},{"1377720546":["hashtag1","hashtag2"]},{"1377720537":["hashtag1","hashtag2"]},{"1377720542":["hashtag1","hashtag2"]},{"1377720539":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377720544, 1377720538, 1377720546, 1377720537, 1377720542, 1377720539)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.159982442855835 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:08:17.442012
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/08/image_18082025_23_08_34_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/23/08/image_18082025_23_08_25_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/23/08/image_18082025_23_08_14_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/23/07/image_18082025_23_08_04_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/23/07/image_18082025_23_07_55_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/22/50/image_18082025_22_50_15_10663.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/08/image_18082025_23_08_34_9629.jpg', '/home/nano/Desktop/images/18082025/23/08/image_18082025_23_08_25_10640.jpg', '/home/nano/Desktop/images/18082025/23/08/image_18082025_23_08_14_9654.jpg', '/home/nano/Desktop/images/18082025/23/07/image_18082025_23_08_04_9643.jpg', '/home/nano/Desktop/images/18082025/23/07/image_18082025_23_07_55_10645.jpg', '/home/nano/Desktop/images/18082025/22/50/image_18082025_22_50_15_10663.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/08/image_18082025_23_08_34_9629.jpg
/home/nano/Desktop/images/18082025/23/08/image_18082025_23_08_25_10640.jpg
/home/nano/Desktop/images/18082025/23/08/image_18082025_23_08_14_9654.jpg
/home/nano/Desktop/images/18082025/23/07/image_18082025_23_08_04_9643.jpg
/home/nano/Desktop/images/18082025/23/07/image_18082025_23_07_55_10645.jpg
/home/nano/Desktop/images/18082025/22/50/image_18082025_22_50_15_10663.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377720561","1377720564","1377720558","1377720567","1377720555","1377720554"],"photo_ids_order":["1377720554","1377720555","1377720558","1377720561","1377720564","1377720567"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/33ee53cd862c5dd2ad296afd4eb4f36e.jpg","text":"TemporaryFile(/tmp/multipartBody4655073310683557530asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551358998,"filename":"image_18082025_23_08_04_9643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e3d09dc59444b25721162635056cc3fa.jpg","text":"TemporaryFile(/tmp/multipartBody4348797380903050708asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551358998,"filename":"image_18082025_23_07_55_10645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/179831c832009d24e3fa88d64f4dcb45.jpg","text":"TemporaryFile(/tmp/multipartBody3733734104152171956asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551358998,"filename":"image_18082025_23_08_14_9654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ddc817f77c8fb5157266a85f040c4d0d.jpg","text":"TemporaryFile(/tmp/multipartBody7023773098673045584asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551358998,"filename":"image_18082025_22_50_15_10663.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/26c0ad51a14a22218d68972105e183df.jpg","text":"TemporaryFile(/tmp/multipartBody3419504293048346841asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551358998,"filename":"image_18082025_23_08_25_10640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/71ad6d087d19de50966e9eb995453d44.jpg","text":"TemporaryFile(/tmp/multipartBody7973517888557802386asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551358998,"filename":"image_18082025_23_08_34_9629.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377720558","file1":"1377720555","file0":"1377720554","file4":"1377720564","file5":"1377720567","file3":"1377720561"},"map_files_photo_id_array":[{"photo_id":"1377720567","filename":"file5"},{"photo_id":"1377720558","filename":"file2"},{"photo_id":"1377720564","filename":"file4"},{"photo_id":"1377720555","filename":"file1"},{"photo_id":"1377720554","filename":"file0"},{"photo_id":"1377720561","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377720561":["hashtag1","hashtag2"]},{"1377720564":["hashtag1","hashtag2"]},{"1377720558":["hashtag1","hashtag2"]},{"1377720567":["hashtag1","hashtag2"]},{"1377720555":["hashtag1","hashtag2"]},{"1377720554":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377720561, 1377720564, 1377720558, 1377720567, 1377720555, 1377720554)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.526780128479004 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:09:03.560723
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/22/49/image_18082025_22_50_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/22/49/image_18082025_22_49_54_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/22/49/image_18082025_22_49_45_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/22/49/image_18082025_22_49_15_10662.jpg', 2), ('/home/nano/Desktop/images/18082025/22/48/image_18082025_22_48_55_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/22/48/image_18082025_22_48_45_10659.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/22/49/image_18082025_22_50_04_9651.jpg', '/home/nano/Desktop/images/18082025/22/49/image_18082025_22_49_54_9629.jpg', '/home/nano/Desktop/images/18082025/22/49/image_18082025_22_49_45_10636.jpg', '/home/nano/Desktop/images/18082025/22/49/image_18082025_22_49_15_10662.jpg', '/home/nano/Desktop/images/18082025/22/48/image_18082025_22_48_55_9647.jpg', '/home/nano/Desktop/images/18082025/22/48/image_18082025_22_48_45_10659.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/22/49/image_18082025_22_50_04_9651.jpg
/home/nano/Desktop/images/18082025/22/49/image_18082025_22_49_54_9629.jpg
/home/nano/Desktop/images/18082025/22/49/image_18082025_22_49_45_10636.jpg
/home/nano/Desktop/images/18082025/22/49/image_18082025_22_49_15_10662.jpg
/home/nano/Desktop/images/18082025/22/48/image_18082025_22_48_55_9647.jpg
/home/nano/Desktop/images/18082025/22/48/image_18082025_22_48_45_10659.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377720585","1377720572","1377720583","1377720577","1377720580","1377720574"],"photo_ids_order":["1377720572","1377720574","1377720577","1377720580","1377720583","1377720585"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/961f95694a91e070dfec5c40d1f271f4.jpg","text":"TemporaryFile(/tmp/multipartBody1168273487981843829asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551405133,"filename":"image_18082025_22_48_45_10659.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9cf2eab4be09e722d6ab1cd9dc908002.jpg","text":"TemporaryFile(/tmp/multipartBody4628209424479792915asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551405133,"filename":"image_18082025_22_50_04_9651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/753e4c08803a3d0be91a294d44936e5a.jpg","text":"TemporaryFile(/tmp/multipartBody5902652447487803961asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551405133,"filename":"image_18082025_22_48_55_9647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bd9c0868105b9c42d8452be728132193.jpg","text":"TemporaryFile(/tmp/multipartBody7129961014889644245asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551405133,"filename":"image_18082025_22_49_45_10636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c419f0bcbd0db83d09f5ca4992c1e545.jpg","text":"TemporaryFile(/tmp/multipartBody9218141584336640940asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551405133,"filename":"image_18082025_22_49_15_10662.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/013eb3f43bccb6b9042660968a136c17.jpg","text":"TemporaryFile(/tmp/multipartBody4938744456196784705asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551405133,"filename":"image_18082025_22_49_54_9629.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377720577","file1":"1377720574","file0":"1377720572","file4":"1377720583","file5":"1377720585","file3":"1377720580"},"map_files_photo_id_array":[{"photo_id":"1377720585","filename":"file5"},{"photo_id":"1377720577","filename":"file2"},{"photo_id":"1377720583","filename":"file4"},{"photo_id":"1377720574","filename":"file1"},{"photo_id":"1377720572","filename":"file0"},{"photo_id":"1377720580","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377720585":["hashtag1","hashtag2"]},{"1377720572":["hashtag1","hashtag2"]},{"1377720583":["hashtag1","hashtag2"]},{"1377720577":["hashtag1","hashtag2"]},{"1377720580":["hashtag1","hashtag2"]},{"1377720574":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377720585, 1377720572, 1377720583, 1377720577, 1377720580, 1377720574)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.050013065338135 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:09:47.529284
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/09/image_18082025_23_09_45_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/23/09/image_18082025_23_09_25_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/23/09/image_18082025_23_09_15_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/23/08/image_18082025_23_09_04_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/23/08/image_18082025_23_08_45_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/22/48/image_18082025_22_48_34_9630.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/09/image_18082025_23_09_45_10637.jpg', '/home/nano/Desktop/images/18082025/23/09/image_18082025_23_09_25_9632.jpg', '/home/nano/Desktop/images/18082025/23/09/image_18082025_23_09_15_10663.jpg', '/home/nano/Desktop/images/18082025/23/08/image_18082025_23_09_04_9637.jpg', '/home/nano/Desktop/images/18082025/23/08/image_18082025_23_08_45_10642.jpg', '/home/nano/Desktop/images/18082025/22/48/image_18082025_22_48_34_9630.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/09/image_18082025_23_09_45_10637.jpg
/home/nano/Desktop/images/18082025/23/09/image_18082025_23_09_25_9632.jpg
/home/nano/Desktop/images/18082025/23/09/image_18082025_23_09_15_10663.jpg
/home/nano/Desktop/images/18082025/23/08/image_18082025_23_09_04_9637.jpg
/home/nano/Desktop/images/18082025/23/08/image_18082025_23_08_45_10642.jpg
/home/nano/Desktop/images/18082025/22/48/image_18082025_22_48_34_9630.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377720607","1377720606","1377720609","1377720611","1377720614","1377720602"],"photo_ids_order":["1377720602","1377720606","1377720607","1377720609","1377720611","1377720614"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ae116a96cf939ec04c24a1d94f9d4cef.jpg","text":"TemporaryFile(/tmp/multipartBody4896654077904307727asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551448881,"filename":"image_18082025_23_09_15_10663.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/14cff22c8fe4d8478a0217bf5c8d87f9.jpg","text":"TemporaryFile(/tmp/multipartBody2203642738924859667asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551448881,"filename":"image_18082025_23_09_25_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7db0c972169be941094be0dbc1225811.jpg","text":"TemporaryFile(/tmp/multipartBody5957341173471213529asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551448881,"filename":"image_18082025_23_09_04_9637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/92f517d4b8227dbadbe0136d46d2b6b5.jpg","text":"TemporaryFile(/tmp/multipartBody4501985668864501136asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551448881,"filename":"image_18082025_23_08_45_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0f99ffc6b345c74c1643abdecf87afa9.jpg","text":"TemporaryFile(/tmp/multipartBody7927671256410503127asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551448881,"filename":"image_18082025_22_48_34_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/50a3a4868ca45fdf74c0b70d4223acb3.jpg","text":"TemporaryFile(/tmp/multipartBody818877959140166938asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551448881,"filename":"image_18082025_23_09_45_10637.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377720607","file1":"1377720606","file0":"1377720602","file4":"1377720611","file5":"1377720614","file3":"1377720609"},"map_files_photo_id_array":[{"photo_id":"1377720614","filename":"file5"},{"photo_id":"1377720607","filename":"file2"},{"photo_id":"1377720611","filename":"file4"},{"photo_id":"1377720606","filename":"file1"},{"photo_id":"1377720602","filename":"file0"},{"photo_id":"1377720609","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377720607":["hashtag1","hashtag2"]},{"1377720606":["hashtag1","hashtag2"]},{"1377720609":["hashtag1","hashtag2"]},{"1377720611":["hashtag1","hashtag2"]},{"1377720614":["hashtag1","hashtag2"]},{"1377720602":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377720607, 1377720606, 1377720609, 1377720611, 1377720614, 1377720602)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 35.98887920379639 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:10:32.658490
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/10/image_18082025_23_10_15_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/23/09/image_18082025_23_10_04_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/23/09/image_18082025_23_09_55_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/22/48/image_18082025_22_48_25_10643.jpg', 2), ('/home/nano/Desktop/images/18082025/22/48/image_18082025_22_48_14_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/22/47/image_18082025_22_47_44_9627.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/10/image_18082025_23_10_15_10661.jpg', '/home/nano/Desktop/images/18082025/23/09/image_18082025_23_10_04_9648.jpg', '/home/nano/Desktop/images/18082025/23/09/image_18082025_23_09_55_9634.jpg', '/home/nano/Desktop/images/18082025/22/48/image_18082025_22_48_25_10643.jpg', '/home/nano/Desktop/images/18082025/22/48/image_18082025_22_48_14_9653.jpg', '/home/nano/Desktop/images/18082025/22/47/image_18082025_22_47_44_9627.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/10/image_18082025_23_10_15_10661.jpg
/home/nano/Desktop/images/18082025/23/09/image_18082025_23_10_04_9648.jpg
/home/nano/Desktop/images/18082025/23/09/image_18082025_23_09_55_9634.jpg
/home/nano/Desktop/images/18082025/22/48/image_18082025_22_48_25_10643.jpg
/home/nano/Desktop/images/18082025/22/48/image_18082025_22_48_14_9653.jpg
/home/nano/Desktop/images/18082025/22/47/image_18082025_22_47_44_9627.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377720640","1377720642","1377720633","1377720636","1377720641","1377720638"],"photo_ids_order":["1377720633","1377720636","1377720638","1377720640","1377720641","1377720642"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/94ea43bbeec165821e743a5ff48e000d.jpg","text":"TemporaryFile(/tmp/multipartBody3006817364265779113asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551494189,"filename":"image_18082025_22_48_25_10643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/64f77e97b215086330705a3ea9b2cc24.jpg","text":"TemporaryFile(/tmp/multipartBody3344060041353855707asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551494189,"filename":"image_18082025_22_47_44_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c639a80235232580eaad965a9e004d90.jpg","text":"TemporaryFile(/tmp/multipartBody4177292723532522425asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551494189,"filename":"image_18082025_23_10_15_10661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ac9eb4d773af3b14e963189c877509a5.jpg","text":"TemporaryFile(/tmp/multipartBody2765369109384014837asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551494189,"filename":"image_18082025_23_10_04_9648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cfb044993c8b9ea74abcc9d0a65320dc.jpg","text":"TemporaryFile(/tmp/multipartBody1851338242277045556asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551494189,"filename":"image_18082025_22_48_14_9653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/aeb21b5ef2f32f9dc63e28af88ce933f.jpg","text":"TemporaryFile(/tmp/multipartBody3041406666524658192asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551494189,"filename":"image_18082025_23_09_55_9634.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377720638","file1":"1377720636","file0":"1377720633","file4":"1377720641","file5":"1377720642","file3":"1377720640"},"map_files_photo_id_array":[{"photo_id":"1377720642","filename":"file5"},{"photo_id":"1377720638","filename":"file2"},{"photo_id":"1377720641","filename":"file4"},{"photo_id":"1377720636","filename":"file1"},{"photo_id":"1377720633","filename":"file0"},{"photo_id":"1377720640","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377720640":["hashtag1","hashtag2"]},{"1377720642":["hashtag1","hashtag2"]},{"1377720633":["hashtag1","hashtag2"]},{"1377720636":["hashtag1","hashtag2"]},{"1377720641":["hashtag1","hashtag2"]},{"1377720638":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377720640, 1377720642, 1377720633, 1377720636, 1377720641, 1377720638)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.664010047912598 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:11:17.726247
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/11/image_18082025_23_11_24_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/23/11/image_18082025_23_11_15_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/23/10/image_18082025_23_11_05_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/23/10/image_18082025_23_10_34_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/22/47/image_18082025_22_47_25_10643.jpg', 2), ('/home/nano/Desktop/images/18082025/22/47/image_18082025_22_47_14_9657.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/11/image_18082025_23_11_24_9649.jpg', '/home/nano/Desktop/images/18082025/23/11/image_18082025_23_11_15_9648.jpg', '/home/nano/Desktop/images/18082025/23/10/image_18082025_23_11_05_10640.jpg', '/home/nano/Desktop/images/18082025/23/10/image_18082025_23_10_34_9647.jpg', '/home/nano/Desktop/images/18082025/22/47/image_18082025_22_47_25_10643.jpg', '/home/nano/Desktop/images/18082025/22/47/image_18082025_22_47_14_9657.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/11/image_18082025_23_11_24_9649.jpg
/home/nano/Desktop/images/18082025/23/11/image_18082025_23_11_15_9648.jpg
/home/nano/Desktop/images/18082025/23/10/image_18082025_23_11_05_10640.jpg
/home/nano/Desktop/images/18082025/23/10/image_18082025_23_10_34_9647.jpg
/home/nano/Desktop/images/18082025/22/47/image_18082025_22_47_25_10643.jpg
/home/nano/Desktop/images/18082025/22/47/image_18082025_22_47_14_9657.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377720671","1377720653","1377720662","1377720670","1377720658","1377720667"],"photo_ids_order":["1377720653","1377720658","1377720662","1377720667","1377720670","1377720671"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1ce7a5431fcda44009f0a736162df2e0.jpg","text":"TemporaryFile(/tmp/multipartBody5935771095341168238asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551539139,"filename":"image_18082025_22_47_14_9657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b67764415962e710c35ea58579ed6d82.jpg","text":"TemporaryFile(/tmp/multipartBody6893568851510243009asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551539139,"filename":"image_18082025_23_11_24_9649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ae7d8e76c9f978a7c22131264e0f8c00.jpg","text":"TemporaryFile(/tmp/multipartBody6680027956347268478asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551539139,"filename":"image_18082025_23_11_05_10640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fd5bf8252fda61e7c42a5d7dffd0a5e5.jpg","text":"TemporaryFile(/tmp/multipartBody6674943553807529115asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551539139,"filename":"image_18082025_22_47_25_10643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a435516d94f15b517fb56a173676b92d.jpg","text":"TemporaryFile(/tmp/multipartBody760564100330324827asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551539139,"filename":"image_18082025_23_11_15_9648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f427a63a4b341b4db8e913b80b95e04f.jpg","text":"TemporaryFile(/tmp/multipartBody8588480559650123440asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551539139,"filename":"image_18082025_23_10_34_9647.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377720662","file1":"1377720658","file0":"1377720653","file4":"1377720670","file5":"1377720671","file3":"1377720667"},"map_files_photo_id_array":[{"photo_id":"1377720671","filename":"file5"},{"photo_id":"1377720662","filename":"file2"},{"photo_id":"1377720670","filename":"file4"},{"photo_id":"1377720658","filename":"file1"},{"photo_id":"1377720653","filename":"file0"},{"photo_id":"1377720667","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377720671":["hashtag1","hashtag2"]},{"1377720653":["hashtag1","hashtag2"]},{"1377720662":["hashtag1","hashtag2"]},{"1377720670":["hashtag1","hashtag2"]},{"1377720658":["hashtag1","hashtag2"]},{"1377720667":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377720671, 1377720653, 1377720662, 1377720670, 1377720658, 1377720667)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.357006788253784 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:12:02.479490
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/22/46/image_18082025_22_47_05_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/22/46/image_18082025_22_46_44_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/22/46/image_18082025_22_46_35_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/22/46/image_18082025_22_46_25_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/22/46/image_18082025_22_46_14_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/22/45/image_18082025_22_45_54_9631.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/22/46/image_18082025_22_47_05_9636.jpg', '/home/nano/Desktop/images/18082025/22/46/image_18082025_22_46_44_9629.jpg', '/home/nano/Desktop/images/18082025/22/46/image_18082025_22_46_35_9649.jpg', '/home/nano/Desktop/images/18082025/22/46/image_18082025_22_46_25_10640.jpg', '/home/nano/Desktop/images/18082025/22/46/image_18082025_22_46_14_9655.jpg', '/home/nano/Desktop/images/18082025/22/45/image_18082025_22_45_54_9631.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/22/46/image_18082025_22_47_05_9636.jpg
/home/nano/Desktop/images/18082025/22/46/image_18082025_22_46_44_9629.jpg
/home/nano/Desktop/images/18082025/22/46/image_18082025_22_46_35_9649.jpg
/home/nano/Desktop/images/18082025/22/46/image_18082025_22_46_25_10640.jpg
/home/nano/Desktop/images/18082025/22/46/image_18082025_22_46_14_9655.jpg
/home/nano/Desktop/images/18082025/22/45/image_18082025_22_45_54_9631.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377720687","1377720684","1377720686","1377720682","1377720679","1377720688"],"photo_ids_order":["1377720679","1377720682","1377720684","1377720686","1377720687","1377720688"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fa22ab4ff091aa18a02b6389da2f4fc1.jpg","text":"TemporaryFile(/tmp/multipartBody5965240824136976689asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551584438,"filename":"image_18082025_22_46_14_9655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/12100185189aeca09a50cdebb106b2be.jpg","text":"TemporaryFile(/tmp/multipartBody7510130248019324294asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551584438,"filename":"image_18082025_22_46_35_9649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a0e1e7902827204804ab04becc32f1ab.jpg","text":"TemporaryFile(/tmp/multipartBody1137878536327750900asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551584438,"filename":"image_18082025_22_46_25_10640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/080ca09e5565274992073de9f5f1c3b9.jpg","text":"TemporaryFile(/tmp/multipartBody1661575866706091327asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551584438,"filename":"image_18082025_22_46_44_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d1ab1af68fe051c33231a5dfc7f9de32.jpg","text":"TemporaryFile(/tmp/multipartBody8979432235068027211asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551584438,"filename":"image_18082025_22_47_05_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9d49846b2e91a2f672c55dcad01253da.jpg","text":"TemporaryFile(/tmp/multipartBody57779253620121487asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551584438,"filename":"image_18082025_22_45_54_9631.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377720684","file1":"1377720682","file0":"1377720679","file4":"1377720687","file5":"1377720688","file3":"1377720686"},"map_files_photo_id_array":[{"photo_id":"1377720688","filename":"file5"},{"photo_id":"1377720684","filename":"file2"},{"photo_id":"1377720687","filename":"file4"},{"photo_id":"1377720682","filename":"file1"},{"photo_id":"1377720679","filename":"file0"},{"photo_id":"1377720686","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377720687":["hashtag1","hashtag2"]},{"1377720684":["hashtag1","hashtag2"]},{"1377720686":["hashtag1","hashtag2"]},{"1377720682":["hashtag1","hashtag2"]},{"1377720679":["hashtag1","hashtag2"]},{"1377720688":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377720687, 1377720684, 1377720686, 1377720682, 1377720679, 1377720688)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.327836751937866 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:12:46.877703
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/12/image_18082025_23_12_44_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/23/12/image_18082025_23_12_35_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/23/12/image_18082025_23_12_24_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/23/11/image_18082025_23_11_35_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/22/45/image_18082025_22_45_44_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/22/45/image_18082025_22_45_35_10641.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/12/image_18082025_23_12_44_9628.jpg', '/home/nano/Desktop/images/18082025/23/12/image_18082025_23_12_35_10638.jpg', '/home/nano/Desktop/images/18082025/23/12/image_18082025_23_12_24_9631.jpg', '/home/nano/Desktop/images/18082025/23/11/image_18082025_23_11_35_10655.jpg', '/home/nano/Desktop/images/18082025/22/45/image_18082025_22_45_44_9628.jpg', '/home/nano/Desktop/images/18082025/22/45/image_18082025_22_45_35_10641.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/12/image_18082025_23_12_44_9628.jpg
/home/nano/Desktop/images/18082025/23/12/image_18082025_23_12_35_10638.jpg
/home/nano/Desktop/images/18082025/23/12/image_18082025_23_12_24_9631.jpg
/home/nano/Desktop/images/18082025/23/11/image_18082025_23_11_35_10655.jpg
/home/nano/Desktop/images/18082025/22/45/image_18082025_22_45_44_9628.jpg
/home/nano/Desktop/images/18082025/22/45/image_18082025_22_45_35_10641.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377720700","1377720696","1377720698","1377720702","1377720704","1377720707"],"photo_ids_order":["1377720696","1377720698","1377720700","1377720702","1377720704","1377720707"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/645c435e45fb0f7eaa8736a1c4f0caab.jpg","text":"TemporaryFile(/tmp/multipartBody8733690067325994370asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551628382,"filename":"image_18082025_23_12_24_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e7bbcbd3177f93d2dfdb9f9385be2355.jpg","text":"TemporaryFile(/tmp/multipartBody1619851932417716548asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551628382,"filename":"image_18082025_23_12_44_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/239ba48b31df09ae7f2fc74a948e5937.jpg","text":"TemporaryFile(/tmp/multipartBody1421039436488193374asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551628382,"filename":"image_18082025_23_12_35_10638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2fe438eca36172375215ba2c7e9f4031.jpg","text":"TemporaryFile(/tmp/multipartBody6508092071471501290asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551628382,"filename":"image_18082025_23_11_35_10655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6e0cc1939e485c379abcb8d075c1e015.jpg","text":"TemporaryFile(/tmp/multipartBody446698715720265127asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551628382,"filename":"image_18082025_22_45_44_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/27269535b0c1d39a1aca402c120dd616.jpg","text":"TemporaryFile(/tmp/multipartBody2008134395841156614asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551628382,"filename":"image_18082025_22_45_35_10641.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377720700","file1":"1377720698","file0":"1377720696","file4":"1377720704","file5":"1377720707","file3":"1377720702"},"map_files_photo_id_array":[{"photo_id":"1377720707","filename":"file5"},{"photo_id":"1377720700","filename":"file2"},{"photo_id":"1377720704","filename":"file4"},{"photo_id":"1377720698","filename":"file1"},{"photo_id":"1377720696","filename":"file0"},{"photo_id":"1377720702","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377720700":["hashtag1","hashtag2"]},{"1377720696":["hashtag1","hashtag2"]},{"1377720698":["hashtag1","hashtag2"]},{"1377720702":["hashtag1","hashtag2"]},{"1377720704":["hashtag1","hashtag2"]},{"1377720707":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377720700, 1377720696, 1377720698, 1377720702, 1377720704, 1377720707)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.025750398635864 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:13:31.992268
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/13/image_18082025_23_13_44_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/23/13/image_18082025_23_13_35_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/23/13/image_18082025_23_13_25_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/23/13/image_18082025_23_13_14_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/23/12/image_18082025_23_13_05_10643.jpg', 2), ('/home/nano/Desktop/images/18082025/23/12/image_18082025_23_12_54_9629.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/13/image_18082025_23_13_44_9627.jpg', '/home/nano/Desktop/images/18082025/23/13/image_18082025_23_13_35_9630.jpg', '/home/nano/Desktop/images/18082025/23/13/image_18082025_23_13_25_10641.jpg', '/home/nano/Desktop/images/18082025/23/13/image_18082025_23_13_14_9648.jpg', '/home/nano/Desktop/images/18082025/23/12/image_18082025_23_13_05_10643.jpg', '/home/nano/Desktop/images/18082025/23/12/image_18082025_23_12_54_9629.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/13/image_18082025_23_13_44_9627.jpg
/home/nano/Desktop/images/18082025/23/13/image_18082025_23_13_35_9630.jpg
/home/nano/Desktop/images/18082025/23/13/image_18082025_23_13_25_10641.jpg
/home/nano/Desktop/images/18082025/23/13/image_18082025_23_13_14_9648.jpg
/home/nano/Desktop/images/18082025/23/12/image_18082025_23_13_05_10643.jpg
/home/nano/Desktop/images/18082025/23/12/image_18082025_23_12_54_9629.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.3868091106414795 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:13:46.970135
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/13/image_18082025_23_13_44_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/23/13/image_18082025_23_13_35_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/23/13/image_18082025_23_13_25_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/23/13/image_18082025_23_13_14_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/23/12/image_18082025_23_13_05_10643.jpg', 2), ('/home/nano/Desktop/images/18082025/23/12/image_18082025_23_12_54_9629.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/13/image_18082025_23_13_44_9627.jpg', '/home/nano/Desktop/images/18082025/23/13/image_18082025_23_13_35_9630.jpg', '/home/nano/Desktop/images/18082025/23/13/image_18082025_23_13_25_10641.jpg', '/home/nano/Desktop/images/18082025/23/13/image_18082025_23_13_14_9648.jpg', '/home/nano/Desktop/images/18082025/23/12/image_18082025_23_13_05_10643.jpg', '/home/nano/Desktop/images/18082025/23/12/image_18082025_23_12_54_9629.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/13/image_18082025_23_13_44_9627.jpg
/home/nano/Desktop/images/18082025/23/13/image_18082025_23_13_35_9630.jpg
/home/nano/Desktop/images/18082025/23/13/image_18082025_23_13_25_10641.jpg
/home/nano/Desktop/images/18082025/23/13/image_18082025_23_13_14_9648.jpg
/home/nano/Desktop/images/18082025/23/12/image_18082025_23_13_05_10643.jpg
/home/nano/Desktop/images/18082025/23/12/image_18082025_23_12_54_9629.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377720727","1377720724","1377720732","1377720722","1377720725","1377720728"],"photo_ids_order":["1377720722","1377720724","1377720725","1377720727","1377720728","1377720732"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e83fa9271ed256a92ce822eded2b9050.jpg","text":"TemporaryFile(/tmp/multipartBody5714512724461809932asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551688076,"filename":"image_18082025_23_13_14_9648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e14dd50a0f8a183d5c799694d24a80a9.jpg","text":"TemporaryFile(/tmp/multipartBody8283326392112904921asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551688076,"filename":"image_18082025_23_13_35_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f3b8afe8f1f35026f1ab220e5d5b96a6.jpg","text":"TemporaryFile(/tmp/multipartBody5659330998052292859asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551688076,"filename":"image_18082025_23_12_54_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/befa9c5582715c53283cd8f7824802cb.jpg","text":"TemporaryFile(/tmp/multipartBody9096275228472856785asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551688076,"filename":"image_18082025_23_13_44_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a740d75126068850e61a1ed1086b447c.jpg","text":"TemporaryFile(/tmp/multipartBody5702132521061491969asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551688076,"filename":"image_18082025_23_13_25_10641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/82be002bd8006b29aa68ec727e39075f.jpg","text":"TemporaryFile(/tmp/multipartBody6404455124939415695asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551688076,"filename":"image_18082025_23_13_05_10643.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377720725","file1":"1377720724","file0":"1377720722","file4":"1377720728","file5":"1377720732","file3":"1377720727"},"map_files_photo_id_array":[{"photo_id":"1377720732","filename":"file5"},{"photo_id":"1377720725","filename":"file2"},{"photo_id":"1377720728","filename":"file4"},{"photo_id":"1377720724","filename":"file1"},{"photo_id":"1377720722","filename":"file0"},{"photo_id":"1377720727","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377720727":["hashtag1","hashtag2"]},{"1377720724":["hashtag1","hashtag2"]},{"1377720732":["hashtag1","hashtag2"]},{"1377720722":["hashtag1","hashtag2"]},{"1377720725":["hashtag1","hashtag2"]},{"1377720728":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377720727, 1377720724, 1377720732, 1377720722, 1377720725, 1377720728)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.399258136749268 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:14:32.076362
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/14/image_18082025_23_14_35_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/23/14/image_18082025_23_14_25_10678.jpg', 2), ('/home/nano/Desktop/images/18082025/23/14/image_18082025_23_14_14_9665.jpg', 2), ('/home/nano/Desktop/images/18082025/23/13/image_18082025_23_14_05_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/23/13/image_18082025_23_13_55_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/22/45/image_18082025_22_45_24_9630.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/14/image_18082025_23_14_35_9637.jpg', '/home/nano/Desktop/images/18082025/23/14/image_18082025_23_14_25_10678.jpg', '/home/nano/Desktop/images/18082025/23/14/image_18082025_23_14_14_9665.jpg', '/home/nano/Desktop/images/18082025/23/13/image_18082025_23_14_05_9639.jpg', '/home/nano/Desktop/images/18082025/23/13/image_18082025_23_13_55_10642.jpg', '/home/nano/Desktop/images/18082025/22/45/image_18082025_22_45_24_9630.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/14/image_18082025_23_14_35_9637.jpg
/home/nano/Desktop/images/18082025/23/14/image_18082025_23_14_25_10678.jpg
/home/nano/Desktop/images/18082025/23/14/image_18082025_23_14_14_9665.jpg
/home/nano/Desktop/images/18082025/23/13/image_18082025_23_14_05_9639.jpg
/home/nano/Desktop/images/18082025/23/13/image_18082025_23_13_55_10642.jpg
/home/nano/Desktop/images/18082025/22/45/image_18082025_22_45_24_9630.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377720759","1377720753","1377720752","1377720755","1377720749","1377720763"],"photo_ids_order":["1377720749","1377720752","1377720753","1377720755","1377720759","1377720763"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1b512126ebdce49e5755930d44481312.jpg","text":"TemporaryFile(/tmp/multipartBody1400290853441177589asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551734193,"filename":"image_18082025_23_13_55_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/52a6dbff140caac1419510f51ecb2f79.jpg","text":"TemporaryFile(/tmp/multipartBody7347279464225211276asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551734193,"filename":"image_18082025_23_14_14_9665.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5b93a2566c7fabd8a6fb337441c18dd7.jpg","text":"TemporaryFile(/tmp/multipartBody6983735513193804537asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551734193,"filename":"image_18082025_23_14_25_10678.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a1c24c2512fbf39fbfb05632013e9600.jpg","text":"TemporaryFile(/tmp/multipartBody6997732685421770567asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551734193,"filename":"image_18082025_23_14_05_9639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/15f8031522836d91981315ba018c0fc9.jpg","text":"TemporaryFile(/tmp/multipartBody6145721110049873201asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551734193,"filename":"image_18082025_23_14_35_9637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2183e14588e15c18bd8848da35e23c6d.jpg","text":"TemporaryFile(/tmp/multipartBody629689817640929496asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551734193,"filename":"image_18082025_22_45_24_9630.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377720753","file1":"1377720752","file0":"1377720749","file4":"1377720759","file5":"1377720763","file3":"1377720755"},"map_files_photo_id_array":[{"photo_id":"1377720763","filename":"file5"},{"photo_id":"1377720753","filename":"file2"},{"photo_id":"1377720759","filename":"file4"},{"photo_id":"1377720752","filename":"file1"},{"photo_id":"1377720749","filename":"file0"},{"photo_id":"1377720755","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377720759":["hashtag1","hashtag2"]},{"1377720753":["hashtag1","hashtag2"]},{"1377720752":["hashtag1","hashtag2"]},{"1377720755":["hashtag1","hashtag2"]},{"1377720749":["hashtag1","hashtag2"]},{"1377720763":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377720759, 1377720753, 1377720752, 1377720755, 1377720749, 1377720763)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.744118690490723 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:15:17.159109
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/15/image_18082025_23_15_25_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/23/15/image_18082025_23_15_14_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/23/14/image_18082025_23_15_04_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/23/14/image_18082025_23_14_44_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/22/45/image_18082025_22_45_15_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/22/44/image_18082025_22_45_05_10657.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/15/image_18082025_23_15_25_10640.jpg', '/home/nano/Desktop/images/18082025/23/15/image_18082025_23_15_14_9652.jpg', '/home/nano/Desktop/images/18082025/23/14/image_18082025_23_15_04_9632.jpg', '/home/nano/Desktop/images/18082025/23/14/image_18082025_23_14_44_9627.jpg', '/home/nano/Desktop/images/18082025/22/45/image_18082025_22_45_15_9643.jpg', '/home/nano/Desktop/images/18082025/22/44/image_18082025_22_45_05_10657.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/15/image_18082025_23_15_25_10640.jpg
/home/nano/Desktop/images/18082025/23/15/image_18082025_23_15_14_9652.jpg
/home/nano/Desktop/images/18082025/23/14/image_18082025_23_15_04_9632.jpg
/home/nano/Desktop/images/18082025/23/14/image_18082025_23_14_44_9627.jpg
/home/nano/Desktop/images/18082025/22/45/image_18082025_22_45_15_9643.jpg
/home/nano/Desktop/images/18082025/22/44/image_18082025_22_45_05_10657.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377720789","1377720791","1377720785","1377720782","1377720793","1377720790"],"photo_ids_order":["1377720782","1377720785","1377720789","1377720790","1377720791","1377720793"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a0f1fbcc0ac4d8abb21e740edefe7805.jpg","text":"TemporaryFile(/tmp/multipartBody4030305959903420046asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551778609,"filename":"image_18082025_23_15_04_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fd5fcf9694d903dc4e22954086a66e6a.jpg","text":"TemporaryFile(/tmp/multipartBody7605381469741296691asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551778609,"filename":"image_18082025_22_45_15_9643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4d33b0f81b9a9d6113c94458a2275349.jpg","text":"TemporaryFile(/tmp/multipartBody8767765390323386249asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551778609,"filename":"image_18082025_23_15_14_9652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1a210971a07eda53ae0d30273cf1a3bb.jpg","text":"TemporaryFile(/tmp/multipartBody3021546352737524407asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551778609,"filename":"image_18082025_23_15_25_10640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6eccda08a5afde29abbe11e773b1f000.jpg","text":"TemporaryFile(/tmp/multipartBody436978870400145193asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551778609,"filename":"image_18082025_22_45_05_10657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/24e7fca3ddf3afe68d0b868d6820cc70.jpg","text":"TemporaryFile(/tmp/multipartBody8270970355519585178asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551778609,"filename":"image_18082025_23_14_44_9627.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377720789","file1":"1377720785","file0":"1377720782","file4":"1377720791","file5":"1377720793","file3":"1377720790"},"map_files_photo_id_array":[{"photo_id":"1377720793","filename":"file5"},{"photo_id":"1377720789","filename":"file2"},{"photo_id":"1377720791","filename":"file4"},{"photo_id":"1377720785","filename":"file1"},{"photo_id":"1377720782","filename":"file0"},{"photo_id":"1377720790","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377720789":["hashtag1","hashtag2"]},{"1377720791":["hashtag1","hashtag2"]},{"1377720785":["hashtag1","hashtag2"]},{"1377720782":["hashtag1","hashtag2"]},{"1377720793":["hashtag1","hashtag2"]},{"1377720790":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377720789, 1377720791, 1377720785, 1377720782, 1377720793, 1377720790)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.963204860687256 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:16:02.825217
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/22/44/image_18082025_22_44_54_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/22/44/image_18082025_22_44_45_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/22/44/image_18082025_22_44_24_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/22/43/image_18082025_22_43_54_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/22/43/image_18082025_22_43_45_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/22/43/image_18082025_22_43_34_9627.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/22/44/image_18082025_22_44_54_9632.jpg', '/home/nano/Desktop/images/18082025/22/44/image_18082025_22_44_45_9630.jpg', '/home/nano/Desktop/images/18082025/22/44/image_18082025_22_44_24_9631.jpg', '/home/nano/Desktop/images/18082025/22/43/image_18082025_22_43_54_9633.jpg', '/home/nano/Desktop/images/18082025/22/43/image_18082025_22_43_45_10660.jpg', '/home/nano/Desktop/images/18082025/22/43/image_18082025_22_43_34_9627.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/22/44/image_18082025_22_44_54_9632.jpg
/home/nano/Desktop/images/18082025/22/44/image_18082025_22_44_45_9630.jpg
/home/nano/Desktop/images/18082025/22/44/image_18082025_22_44_24_9631.jpg
/home/nano/Desktop/images/18082025/22/43/image_18082025_22_43_54_9633.jpg
/home/nano/Desktop/images/18082025/22/43/image_18082025_22_43_45_10660.jpg
/home/nano/Desktop/images/18082025/22/43/image_18082025_22_43_34_9627.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.201711893081665 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:16:17.287849
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/16/image_18082025_23_16_45_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/23/16/image_18082025_23_16_34_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/23/16/image_18082025_23_16_25_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/23/16/image_18082025_23_16_15_10683.jpg', 2), ('/home/nano/Desktop/images/18082025/23/15/image_18082025_23_16_04_9654.jpg', 2), ('/home/nano/Desktop/images/18082025/23/15/image_18082025_23_15_34_9633.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/16/image_18082025_23_16_45_10638.jpg', '/home/nano/Desktop/images/18082025/23/16/image_18082025_23_16_34_9631.jpg', '/home/nano/Desktop/images/18082025/23/16/image_18082025_23_16_25_9630.jpg', '/home/nano/Desktop/images/18082025/23/16/image_18082025_23_16_15_10683.jpg', '/home/nano/Desktop/images/18082025/23/15/image_18082025_23_16_04_9654.jpg', '/home/nano/Desktop/images/18082025/23/15/image_18082025_23_15_34_9633.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/16/image_18082025_23_16_45_10638.jpg
/home/nano/Desktop/images/18082025/23/16/image_18082025_23_16_34_9631.jpg
/home/nano/Desktop/images/18082025/23/16/image_18082025_23_16_25_9630.jpg
/home/nano/Desktop/images/18082025/23/16/image_18082025_23_16_15_10683.jpg
/home/nano/Desktop/images/18082025/23/15/image_18082025_23_16_04_9654.jpg
/home/nano/Desktop/images/18082025/23/15/image_18082025_23_15_34_9633.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377720820","1377720814","1377720817","1377720822","1377720827","1377720824"],"photo_ids_order":["1377720814","1377720817","1377720820","1377720822","1377720824","1377720827"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a230b9ffa2f278abe13b45fff4644db1.jpg","text":"TemporaryFile(/tmp/multipartBody595281711702300370asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551838688,"filename":"image_18082025_23_16_25_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/27554518d8f953ffcafbf0cd58bdcff5.jpg","text":"TemporaryFile(/tmp/multipartBody8951206922860046101asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551838688,"filename":"image_18082025_23_16_45_10638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/da770dc1ae4c734ebfaee55920440893.jpg","text":"TemporaryFile(/tmp/multipartBody6764233342239248612asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551838688,"filename":"image_18082025_23_16_34_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3308ac3a9e7e82d0d97ba80cb6a12a41.jpg","text":"TemporaryFile(/tmp/multipartBody8094659190732519747asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551838688,"filename":"image_18082025_23_16_15_10683.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9a81f54e17b667e3bb479a2d51443af5.jpg","text":"TemporaryFile(/tmp/multipartBody1875356277394775512asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551838688,"filename":"image_18082025_23_15_34_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2b9903d28aaccd03c6a311458f29c650.jpg","text":"TemporaryFile(/tmp/multipartBody8607701393611824479asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551838688,"filename":"image_18082025_23_16_04_9654.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377720820","file1":"1377720817","file0":"1377720814","file4":"1377720824","file5":"1377720827","file3":"1377720822"},"map_files_photo_id_array":[{"photo_id":"1377720827","filename":"file5"},{"photo_id":"1377720820","filename":"file2"},{"photo_id":"1377720824","filename":"file4"},{"photo_id":"1377720817","filename":"file1"},{"photo_id":"1377720814","filename":"file0"},{"photo_id":"1377720822","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377720820":["hashtag1","hashtag2"]},{"1377720814":["hashtag1","hashtag2"]},{"1377720817":["hashtag1","hashtag2"]},{"1377720822":["hashtag1","hashtag2"]},{"1377720827":["hashtag1","hashtag2"]},{"1377720824":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377720820, 1377720814, 1377720817, 1377720822, 1377720827, 1377720824)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.983000993728638 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:17:03.017186
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/22/44/image_18082025_22_44_54_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/22/44/image_18082025_22_44_45_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/22/44/image_18082025_22_44_24_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/22/43/image_18082025_22_43_54_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/22/43/image_18082025_22_43_45_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/22/43/image_18082025_22_43_34_9627.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/22/44/image_18082025_22_44_54_9632.jpg', '/home/nano/Desktop/images/18082025/22/44/image_18082025_22_44_45_9630.jpg', '/home/nano/Desktop/images/18082025/22/44/image_18082025_22_44_24_9631.jpg', '/home/nano/Desktop/images/18082025/22/43/image_18082025_22_43_54_9633.jpg', '/home/nano/Desktop/images/18082025/22/43/image_18082025_22_43_45_10660.jpg', '/home/nano/Desktop/images/18082025/22/43/image_18082025_22_43_34_9627.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/22/44/image_18082025_22_44_54_9632.jpg
/home/nano/Desktop/images/18082025/22/44/image_18082025_22_44_45_9630.jpg
/home/nano/Desktop/images/18082025/22/44/image_18082025_22_44_24_9631.jpg
/home/nano/Desktop/images/18082025/22/43/image_18082025_22_43_54_9633.jpg
/home/nano/Desktop/images/18082025/22/43/image_18082025_22_43_45_10660.jpg
/home/nano/Desktop/images/18082025/22/43/image_18082025_22_43_34_9627.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.2867405414581299 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:17:17.368071
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/17/image_18082025_23_17_45_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/23/17/image_18082025_23_17_34_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/23/17/image_18082025_23_17_24_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/23/16/image_18082025_23_17_04_9660.jpg', 2), ('/home/nano/Desktop/images/18082025/23/16/image_18082025_23_16_55_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/22/44/image_18082025_22_44_54_9632.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/17/image_18082025_23_17_45_10637.jpg', '/home/nano/Desktop/images/18082025/23/17/image_18082025_23_17_34_9632.jpg', '/home/nano/Desktop/images/18082025/23/17/image_18082025_23_17_24_9646.jpg', '/home/nano/Desktop/images/18082025/23/16/image_18082025_23_17_04_9660.jpg', '/home/nano/Desktop/images/18082025/23/16/image_18082025_23_16_55_9628.jpg', '/home/nano/Desktop/images/18082025/22/44/image_18082025_22_44_54_9632.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/17/image_18082025_23_17_45_10637.jpg
/home/nano/Desktop/images/18082025/23/17/image_18082025_23_17_34_9632.jpg
/home/nano/Desktop/images/18082025/23/17/image_18082025_23_17_24_9646.jpg
/home/nano/Desktop/images/18082025/23/16/image_18082025_23_17_04_9660.jpg
/home/nano/Desktop/images/18082025/23/16/image_18082025_23_16_55_9628.jpg
/home/nano/Desktop/images/18082025/22/44/image_18082025_22_44_54_9632.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377720853","1377720849","1377720846","1377720860","1377720857","1377720862"],"photo_ids_order":["1377720846","1377720849","1377720853","1377720857","1377720860","1377720862"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9f8287d5240eae57dc323167b8e02ebc.jpg","text":"TemporaryFile(/tmp/multipartBody4613779627336312728asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551898379,"filename":"image_18082025_23_17_24_9646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fc3fc58515fa0953f0f3f5b7a35022ff.jpg","text":"TemporaryFile(/tmp/multipartBody4409185190278289501asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551898379,"filename":"image_18082025_23_17_34_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7f610af68cde6cfffc8c87c4d407c98a.jpg","text":"TemporaryFile(/tmp/multipartBody48334709645661443asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551898379,"filename":"image_18082025_23_17_45_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/61c9dc6dfcebe383bb50ff9350f4c77a.jpg","text":"TemporaryFile(/tmp/multipartBody2147529267865172561asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551898379,"filename":"image_18082025_23_16_55_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fdd91801098021a6ff9aabdf506f3b4d.jpg","text":"TemporaryFile(/tmp/multipartBody5343482459975172629asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551898379,"filename":"image_18082025_23_17_04_9660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c5f027fcbef84209c8703947e6b37aaf.jpg","text":"TemporaryFile(/tmp/multipartBody5593686893693036120asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551898379,"filename":"image_18082025_22_44_54_9632.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377720853","file1":"1377720849","file0":"1377720846","file4":"1377720860","file5":"1377720862","file3":"1377720857"},"map_files_photo_id_array":[{"photo_id":"1377720862","filename":"file5"},{"photo_id":"1377720853","filename":"file2"},{"photo_id":"1377720860","filename":"file4"},{"photo_id":"1377720849","filename":"file1"},{"photo_id":"1377720846","filename":"file0"},{"photo_id":"1377720857","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377720853":["hashtag1","hashtag2"]},{"1377720849":["hashtag1","hashtag2"]},{"1377720846":["hashtag1","hashtag2"]},{"1377720860":["hashtag1","hashtag2"]},{"1377720857":["hashtag1","hashtag2"]},{"1377720862":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377720853, 1377720849, 1377720846, 1377720860, 1377720857, 1377720862)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.45072841644287 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:18:02.967743
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/22/44/image_18082025_22_44_45_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/22/44/image_18082025_22_44_24_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/22/43/image_18082025_22_43_54_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/22/43/image_18082025_22_43_45_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/22/43/image_18082025_22_43_34_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/22/42/image_18082025_22_43_04_9638.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/22/44/image_18082025_22_44_45_9630.jpg', '/home/nano/Desktop/images/18082025/22/44/image_18082025_22_44_24_9631.jpg', '/home/nano/Desktop/images/18082025/22/43/image_18082025_22_43_54_9633.jpg', '/home/nano/Desktop/images/18082025/22/43/image_18082025_22_43_45_10660.jpg', '/home/nano/Desktop/images/18082025/22/43/image_18082025_22_43_34_9627.jpg', '/home/nano/Desktop/images/18082025/22/42/image_18082025_22_43_04_9638.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/22/44/image_18082025_22_44_45_9630.jpg
/home/nano/Desktop/images/18082025/22/44/image_18082025_22_44_24_9631.jpg
/home/nano/Desktop/images/18082025/22/43/image_18082025_22_43_54_9633.jpg
/home/nano/Desktop/images/18082025/22/43/image_18082025_22_43_45_10660.jpg
/home/nano/Desktop/images/18082025/22/43/image_18082025_22_43_34_9627.jpg
/home/nano/Desktop/images/18082025/22/42/image_18082025_22_43_04_9638.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377720885","1377720894","1377720879","1377720890","1377720887","1377720883"],"photo_ids_order":["1377720879","1377720883","1377720885","1377720887","1377720890","1377720894"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ffda17ac2af71e9fd147605e853caca6.jpg","text":"TemporaryFile(/tmp/multipartBody8373679049763134916asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551944117,"filename":"image_18082025_22_43_54_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d81625ba71bfa67f373a35c2b1352b9a.jpg","text":"TemporaryFile(/tmp/multipartBody967446128307648749asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551944117,"filename":"image_18082025_22_43_04_9638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/954088ac5387f2fe2d1ac9cd0080475c.jpg","text":"TemporaryFile(/tmp/multipartBody3892023103456245989asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551944117,"filename":"image_18082025_22_44_45_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/43cdf88ac40ca7b53a849632ec329cde.jpg","text":"TemporaryFile(/tmp/multipartBody4714555816039403985asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551944117,"filename":"image_18082025_22_43_34_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/790d06a2ba8ddd71f0bf14cf9cc257e5.jpg","text":"TemporaryFile(/tmp/multipartBody2629323026381653311asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551944117,"filename":"image_18082025_22_43_45_10660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b1dbd5dee510383272db2198beb3f338.jpg","text":"TemporaryFile(/tmp/multipartBody1502345975519731493asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551944117,"filename":"image_18082025_22_44_24_9631.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377720885","file1":"1377720883","file0":"1377720879","file4":"1377720890","file5":"1377720894","file3":"1377720887"},"map_files_photo_id_array":[{"photo_id":"1377720894","filename":"file5"},{"photo_id":"1377720885","filename":"file2"},{"photo_id":"1377720890","filename":"file4"},{"photo_id":"1377720883","filename":"file1"},{"photo_id":"1377720879","filename":"file0"},{"photo_id":"1377720887","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377720885":["hashtag1","hashtag2"]},{"1377720894":["hashtag1","hashtag2"]},{"1377720879":["hashtag1","hashtag2"]},{"1377720890":["hashtag1","hashtag2"]},{"1377720887":["hashtag1","hashtag2"]},{"1377720883":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377720885, 1377720894, 1377720879, 1377720890, 1377720887, 1377720883)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.504509210586548 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:18:47.468113
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/18/image_18082025_23_18_45_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/23/18/image_18082025_23_18_35_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/23/18/image_18082025_23_18_24_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/23/18/image_18082025_23_18_15_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/23/17/image_18082025_23_17_54_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/22/42/image_18082025_22_42_55_9634.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/18/image_18082025_23_18_45_9631.jpg', '/home/nano/Desktop/images/18082025/23/18/image_18082025_23_18_35_10642.jpg', '/home/nano/Desktop/images/18082025/23/18/image_18082025_23_18_24_9633.jpg', '/home/nano/Desktop/images/18082025/23/18/image_18082025_23_18_15_9664.jpg', '/home/nano/Desktop/images/18082025/23/17/image_18082025_23_17_54_9626.jpg', '/home/nano/Desktop/images/18082025/22/42/image_18082025_22_42_55_9634.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/18/image_18082025_23_18_45_9631.jpg
/home/nano/Desktop/images/18082025/23/18/image_18082025_23_18_35_10642.jpg
/home/nano/Desktop/images/18082025/23/18/image_18082025_23_18_24_9633.jpg
/home/nano/Desktop/images/18082025/23/18/image_18082025_23_18_15_9664.jpg
/home/nano/Desktop/images/18082025/23/17/image_18082025_23_17_54_9626.jpg
/home/nano/Desktop/images/18082025/22/42/image_18082025_22_42_55_9634.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377720919","1377720910","1377720907","1377720912","1377720914","1377720908"],"photo_ids_order":["1377720907","1377720908","1377720910","1377720912","1377720914","1377720919"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b931dfe843c434f4560fa800e7b776be.jpg","text":"TemporaryFile(/tmp/multipartBody1516030264377304876asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551988946,"filename":"image_18082025_22_42_55_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b9415c4bc5f6ad3f5a784991c1ec8043.jpg","text":"TemporaryFile(/tmp/multipartBody2543976584320151304asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551988946,"filename":"image_18082025_23_18_24_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bbcb801506a06d8c1398412e59b33968.jpg","text":"TemporaryFile(/tmp/multipartBody7780728418175396475asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551988946,"filename":"image_18082025_23_18_45_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b8aa1532da7b160316d0e41d3c5ce79e.jpg","text":"TemporaryFile(/tmp/multipartBody8059073764155370425asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551988946,"filename":"image_18082025_23_18_15_9664.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d97313e391d1b0db83ed4fb3dca9dc80.jpg","text":"TemporaryFile(/tmp/multipartBody8147556427162293054asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551988946,"filename":"image_18082025_23_17_54_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b8480fa6ae5b851bb85191de15d01f9d.jpg","text":"TemporaryFile(/tmp/multipartBody7477392675739813895asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755551988946,"filename":"image_18082025_23_18_35_10642.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377720910","file1":"1377720908","file0":"1377720907","file4":"1377720914","file5":"1377720919","file3":"1377720912"},"map_files_photo_id_array":[{"photo_id":"1377720919","filename":"file5"},{"photo_id":"1377720910","filename":"file2"},{"photo_id":"1377720914","filename":"file4"},{"photo_id":"1377720908","filename":"file1"},{"photo_id":"1377720907","filename":"file0"},{"photo_id":"1377720912","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377720919":["hashtag1","hashtag2"]},{"1377720910":["hashtag1","hashtag2"]},{"1377720907":["hashtag1","hashtag2"]},{"1377720912":["hashtag1","hashtag2"]},{"1377720914":["hashtag1","hashtag2"]},{"1377720908":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377720919, 1377720910, 1377720907, 1377720912, 1377720914, 1377720908)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.067506313323975 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:19:32.658600
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/19/image_18082025_23_19_35_10643.jpg', 2), ('/home/nano/Desktop/images/18082025/23/18/image_18082025_23_19_05_10657.jpg', 2), ('/home/nano/Desktop/images/18082025/23/18/image_18082025_23_18_54_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/22/42/image_18082025_22_42_45_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/22/42/image_18082025_22_42_34_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/22/42/image_18082025_22_42_25_9631.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/19/image_18082025_23_19_35_10643.jpg', '/home/nano/Desktop/images/18082025/23/18/image_18082025_23_19_05_10657.jpg', '/home/nano/Desktop/images/18082025/23/18/image_18082025_23_18_54_9627.jpg', '/home/nano/Desktop/images/18082025/22/42/image_18082025_22_42_45_10639.jpg', '/home/nano/Desktop/images/18082025/22/42/image_18082025_22_42_34_9627.jpg', '/home/nano/Desktop/images/18082025/22/42/image_18082025_22_42_25_9631.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/19/image_18082025_23_19_35_10643.jpg
/home/nano/Desktop/images/18082025/23/18/image_18082025_23_19_05_10657.jpg
/home/nano/Desktop/images/18082025/23/18/image_18082025_23_18_54_9627.jpg
/home/nano/Desktop/images/18082025/22/42/image_18082025_22_42_45_10639.jpg
/home/nano/Desktop/images/18082025/22/42/image_18082025_22_42_34_9627.jpg
/home/nano/Desktop/images/18082025/22/42/image_18082025_22_42_25_9631.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377720931","1377720928","1377720941","1377720935","1377720929","1377720938"],"photo_ids_order":["1377720928","1377720929","1377720931","1377720935","1377720938","1377720941"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/83a4d9e93c2ab17f7a2df785f25084fd.jpg","text":"TemporaryFile(/tmp/multipartBody405949726519785859asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552033970,"filename":"image_18082025_23_18_54_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cab91c47a1747ee6821b92d57972eb71.jpg","text":"TemporaryFile(/tmp/multipartBody5778666979862632099asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552033970,"filename":"image_18082025_23_19_35_10643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/43d19c009401a4493e738f18a09b460c.jpg","text":"TemporaryFile(/tmp/multipartBody7057352897364554511asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552033970,"filename":"image_18082025_22_42_25_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7fd5e7b065d32bcc43e379500e905e34.jpg","text":"TemporaryFile(/tmp/multipartBody2093668286234790458asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552033970,"filename":"image_18082025_22_42_45_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/100be51612577899c137991a1bd8e843.jpg","text":"TemporaryFile(/tmp/multipartBody1117284170288476970asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552033970,"filename":"image_18082025_23_19_05_10657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ea535c4ad9812eb2ebf8f481ca33f84c.jpg","text":"TemporaryFile(/tmp/multipartBody5920787396723840158asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552033970,"filename":"image_18082025_22_42_34_9627.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377720931","file1":"1377720929","file0":"1377720928","file4":"1377720938","file5":"1377720941","file3":"1377720935"},"map_files_photo_id_array":[{"photo_id":"1377720941","filename":"file5"},{"photo_id":"1377720931","filename":"file2"},{"photo_id":"1377720938","filename":"file4"},{"photo_id":"1377720929","filename":"file1"},{"photo_id":"1377720928","filename":"file0"},{"photo_id":"1377720935","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377720931":["hashtag1","hashtag2"]},{"1377720928":["hashtag1","hashtag2"]},{"1377720941":["hashtag1","hashtag2"]},{"1377720935":["hashtag1","hashtag2"]},{"1377720929":["hashtag1","hashtag2"]},{"1377720938":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377720931, 1377720928, 1377720941, 1377720935, 1377720929, 1377720938)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.76011347770691 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:20:17.679169
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/20/image_18082025_23_20_44_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/23/20/image_18082025_23_20_35_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/23/20/image_18082025_23_20_24_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/23/20/image_18082025_23_20_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/23/19/image_18082025_23_20_05_10683.jpg', 2), ('/home/nano/Desktop/images/18082025/23/19/image_18082025_23_19_54_9629.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/20/image_18082025_23_20_44_9631.jpg', '/home/nano/Desktop/images/18082025/23/20/image_18082025_23_20_35_10641.jpg', '/home/nano/Desktop/images/18082025/23/20/image_18082025_23_20_24_9661.jpg', '/home/nano/Desktop/images/18082025/23/20/image_18082025_23_20_14_9656.jpg', '/home/nano/Desktop/images/18082025/23/19/image_18082025_23_20_05_10683.jpg', '/home/nano/Desktop/images/18082025/23/19/image_18082025_23_19_54_9629.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/20/image_18082025_23_20_44_9631.jpg
/home/nano/Desktop/images/18082025/23/20/image_18082025_23_20_35_10641.jpg
/home/nano/Desktop/images/18082025/23/20/image_18082025_23_20_24_9661.jpg
/home/nano/Desktop/images/18082025/23/20/image_18082025_23_20_14_9656.jpg
/home/nano/Desktop/images/18082025/23/19/image_18082025_23_20_05_10683.jpg
/home/nano/Desktop/images/18082025/23/19/image_18082025_23_19_54_9629.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377720954","1377720957","1377720951","1377720959","1377720961","1377720955"],"photo_ids_order":["1377720951","1377720954","1377720955","1377720957","1377720959","1377720961"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ae6406c2364589bfa722201a014e807b.jpg","text":"TemporaryFile(/tmp/multipartBody8789465841174903703asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552079078,"filename":"image_18082025_23_20_35_10641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a61a5cb98f353851f5401c7ae9846c23.jpg","text":"TemporaryFile(/tmp/multipartBody6130868993120573081asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552079078,"filename":"image_18082025_23_20_14_9656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/15704787fdb0fb122d4e380fe4d7d85f.jpg","text":"TemporaryFile(/tmp/multipartBody5750172441317008459asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552079078,"filename":"image_18082025_23_20_44_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3a7ea743965381e604f97805515b9b65.jpg","text":"TemporaryFile(/tmp/multipartBody4662775923426339313asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552079078,"filename":"image_18082025_23_20_05_10683.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e4cc50685c02d5724d8ad0422aed2028.jpg","text":"TemporaryFile(/tmp/multipartBody2430943243145163338asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552079078,"filename":"image_18082025_23_19_54_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/09fa3fea92622a2b732b5c9d997a9b27.jpg","text":"TemporaryFile(/tmp/multipartBody1640007841485634538asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552079078,"filename":"image_18082025_23_20_24_9661.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377720955","file1":"1377720954","file0":"1377720951","file4":"1377720959","file5":"1377720961","file3":"1377720957"},"map_files_photo_id_array":[{"photo_id":"1377720961","filename":"file5"},{"photo_id":"1377720955","filename":"file2"},{"photo_id":"1377720959","filename":"file4"},{"photo_id":"1377720954","filename":"file1"},{"photo_id":"1377720951","filename":"file0"},{"photo_id":"1377720957","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377720954":["hashtag1","hashtag2"]},{"1377720957":["hashtag1","hashtag2"]},{"1377720951":["hashtag1","hashtag2"]},{"1377720959":["hashtag1","hashtag2"]},{"1377720961":["hashtag1","hashtag2"]},{"1377720955":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377720954, 1377720957, 1377720951, 1377720959, 1377720961, 1377720955)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.32156229019165 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:21:02.406128
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/22/42/image_18082025_22_42_15_10677.jpg', 2), ('/home/nano/Desktop/images/18082025/22/41/image_18082025_22_41_45_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/22/41/image_18082025_22_41_34_9625.jpg', 2), ('/home/nano/Desktop/images/18082025/22/41/image_18082025_22_41_14_9680.jpg', 2), ('/home/nano/Desktop/images/18082025/22/40/image_18082025_22_41_04_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/22/40/image_18082025_22_40_44_9635.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/22/42/image_18082025_22_42_15_10677.jpg', '/home/nano/Desktop/images/18082025/22/41/image_18082025_22_41_45_10639.jpg', '/home/nano/Desktop/images/18082025/22/41/image_18082025_22_41_34_9625.jpg', '/home/nano/Desktop/images/18082025/22/41/image_18082025_22_41_14_9680.jpg', '/home/nano/Desktop/images/18082025/22/40/image_18082025_22_41_04_9631.jpg', '/home/nano/Desktop/images/18082025/22/40/image_18082025_22_40_44_9635.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/22/42/image_18082025_22_42_15_10677.jpg
/home/nano/Desktop/images/18082025/22/41/image_18082025_22_41_45_10639.jpg
/home/nano/Desktop/images/18082025/22/41/image_18082025_22_41_34_9625.jpg
/home/nano/Desktop/images/18082025/22/41/image_18082025_22_41_14_9680.jpg
/home/nano/Desktop/images/18082025/22/40/image_18082025_22_41_04_9631.jpg
/home/nano/Desktop/images/18082025/22/40/image_18082025_22_40_44_9635.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377720984","1377720966","1377720975","1377720971","1377720982","1377720979"],"photo_ids_order":["1377720966","1377720971","1377720975","1377720979","1377720982","1377720984"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/10ad0f92b91f56ffb98e8ab408d94ad7.jpg","text":"TemporaryFile(/tmp/multipartBody554195726038348301asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552123685,"filename":"image_18082025_22_40_44_9635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e0a1d968b773ec8694106f3d2786779a.jpg","text":"TemporaryFile(/tmp/multipartBody4060752970001188679asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552123685,"filename":"image_18082025_22_42_15_10677.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/31f6295b2af52c93b0d209ec8cf4ab97.jpg","text":"TemporaryFile(/tmp/multipartBody1433483919964431246asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552123685,"filename":"image_18082025_22_41_34_9625.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b3289cd8545f138c0b63f6e437ee489b.jpg","text":"TemporaryFile(/tmp/multipartBody182347908471210078asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552123685,"filename":"image_18082025_22_41_45_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f157ba0d6aff9a0df5e163df1c319056.jpg","text":"TemporaryFile(/tmp/multipartBody946717751055922436asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552123685,"filename":"image_18082025_22_41_04_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/61ddef22a35cd7fbb66af37d2eef9d8a.jpg","text":"TemporaryFile(/tmp/multipartBody7370195745637945129asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552123685,"filename":"image_18082025_22_41_14_9680.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377720975","file1":"1377720971","file0":"1377720966","file4":"1377720982","file5":"1377720984","file3":"1377720979"},"map_files_photo_id_array":[{"photo_id":"1377720984","filename":"file5"},{"photo_id":"1377720975","filename":"file2"},{"photo_id":"1377720982","filename":"file4"},{"photo_id":"1377720971","filename":"file1"},{"photo_id":"1377720966","filename":"file0"},{"photo_id":"1377720979","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377720984":["hashtag1","hashtag2"]},{"1377720966":["hashtag1","hashtag2"]},{"1377720975":["hashtag1","hashtag2"]},{"1377720971":["hashtag1","hashtag2"]},{"1377720982":["hashtag1","hashtag2"]},{"1377720979":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377720984, 1377720966, 1377720975, 1377720971, 1377720982, 1377720979)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.65180802345276 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:21:46.785296
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/21/image_18082025_23_21_44_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/23/21/image_18082025_23_21_35_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/23/21/image_18082025_23_21_25_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/23/21/image_18082025_23_21_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/23/20/image_18082025_23_21_05_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/23/20/image_18082025_23_20_55_10642.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/21/image_18082025_23_21_44_9632.jpg', '/home/nano/Desktop/images/18082025/23/21/image_18082025_23_21_35_9629.jpg', '/home/nano/Desktop/images/18082025/23/21/image_18082025_23_21_25_10639.jpg', '/home/nano/Desktop/images/18082025/23/21/image_18082025_23_21_14_9656.jpg', '/home/nano/Desktop/images/18082025/23/20/image_18082025_23_21_05_9643.jpg', '/home/nano/Desktop/images/18082025/23/20/image_18082025_23_20_55_10642.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/21/image_18082025_23_21_44_9632.jpg
/home/nano/Desktop/images/18082025/23/21/image_18082025_23_21_35_9629.jpg
/home/nano/Desktop/images/18082025/23/21/image_18082025_23_21_25_10639.jpg
/home/nano/Desktop/images/18082025/23/21/image_18082025_23_21_14_9656.jpg
/home/nano/Desktop/images/18082025/23/20/image_18082025_23_21_05_9643.jpg
/home/nano/Desktop/images/18082025/23/20/image_18082025_23_20_55_10642.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377720999","1377720990","1377720993","1377720995","1377720991","1377720988"],"photo_ids_order":["1377720988","1377720990","1377720991","1377720993","1377720995","1377720999"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9a73f69289a567c38df00c83db094720.jpg","text":"TemporaryFile(/tmp/multipartBody7318961433376512169asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552168043,"filename":"image_18082025_23_20_55_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b1f3df8adb9a0c16acd0dd7dc9b52ba3.jpg","text":"TemporaryFile(/tmp/multipartBody3785082798579216749asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552168043,"filename":"image_18082025_23_21_35_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5d02f8b6b00c89d3d4d043479c97c7d6.jpg","text":"TemporaryFile(/tmp/multipartBody4028604671659661357asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552168043,"filename":"image_18082025_23_21_14_9656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ad8def0d4f7357f031f05b945366a769.jpg","text":"TemporaryFile(/tmp/multipartBody2626312035122211993asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552168043,"filename":"image_18082025_23_21_05_9643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/42126e843cf5d3f17fcb4ec93bcde7f1.jpg","text":"TemporaryFile(/tmp/multipartBody5093512715434499513asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552168043,"filename":"image_18082025_23_21_25_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6ed16eda1cab4678da53a56d14756eef.jpg","text":"TemporaryFile(/tmp/multipartBody8875068856188442995asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552168043,"filename":"image_18082025_23_21_44_9632.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377720991","file1":"1377720990","file0":"1377720988","file4":"1377720995","file5":"1377720999","file3":"1377720993"},"map_files_photo_id_array":[{"photo_id":"1377720999","filename":"file5"},{"photo_id":"1377720991","filename":"file2"},{"photo_id":"1377720995","filename":"file4"},{"photo_id":"1377720990","filename":"file1"},{"photo_id":"1377720988","filename":"file0"},{"photo_id":"1377720993","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377720999":["hashtag1","hashtag2"]},{"1377720990":["hashtag1","hashtag2"]},{"1377720993":["hashtag1","hashtag2"]},{"1377720995":["hashtag1","hashtag2"]},{"1377720991":["hashtag1","hashtag2"]},{"1377720988":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377720999, 1377720990, 1377720993, 1377720995, 1377720991, 1377720988)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.92371916770935 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:22:31.896103
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/22/image_18082025_23_22_34_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/23/22/image_18082025_23_22_25_10653.jpg', 2), ('/home/nano/Desktop/images/18082025/23/22/image_18082025_23_22_14_9666.jpg', 2), ('/home/nano/Desktop/images/18082025/23/21/image_18082025_23_22_04_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/23/21/image_18082025_23_21_55_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/22/40/image_18082025_22_40_25_10662.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/22/image_18082025_23_22_34_9627.jpg', '/home/nano/Desktop/images/18082025/23/22/image_18082025_23_22_25_10653.jpg', '/home/nano/Desktop/images/18082025/23/22/image_18082025_23_22_14_9666.jpg', '/home/nano/Desktop/images/18082025/23/21/image_18082025_23_22_04_9640.jpg', '/home/nano/Desktop/images/18082025/23/21/image_18082025_23_21_55_10638.jpg', '/home/nano/Desktop/images/18082025/22/40/image_18082025_22_40_25_10662.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/22/image_18082025_23_22_34_9627.jpg
/home/nano/Desktop/images/18082025/23/22/image_18082025_23_22_25_10653.jpg
/home/nano/Desktop/images/18082025/23/22/image_18082025_23_22_14_9666.jpg
/home/nano/Desktop/images/18082025/23/21/image_18082025_23_22_04_9640.jpg
/home/nano/Desktop/images/18082025/23/21/image_18082025_23_21_55_10638.jpg
/home/nano/Desktop/images/18082025/22/40/image_18082025_22_40_25_10662.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377721021","1377721023","1377721014","1377721025","1377721016","1377721018"],"photo_ids_order":["1377721014","1377721016","1377721018","1377721021","1377721023","1377721025"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/470ee9e5d3d4d89460d653374f10b518.jpg","text":"TemporaryFile(/tmp/multipartBody8622500234061526494asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552213394,"filename":"image_18082025_23_22_04_9640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/755b2d456ca541ff579f5f423b046dae.jpg","text":"TemporaryFile(/tmp/multipartBody7129078085115748685asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552213394,"filename":"image_18082025_23_21_55_10638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/06013bd6ca6a67ff64be04bf70fcde41.jpg","text":"TemporaryFile(/tmp/multipartBody8545672636011235315asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552213394,"filename":"image_18082025_23_22_34_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8ce564e8602c6d13232a5ee985637b79.jpg","text":"TemporaryFile(/tmp/multipartBody8703716772972852066asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552213394,"filename":"image_18082025_22_40_25_10662.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cdb7c19384c914eff13c8a6fc3efa2b7.jpg","text":"TemporaryFile(/tmp/multipartBody7532786185280615629asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552213394,"filename":"image_18082025_23_22_25_10653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/73bacab54db176e4639246bc7e4b30dd.jpg","text":"TemporaryFile(/tmp/multipartBody1701397500599547226asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552213394,"filename":"image_18082025_23_22_14_9666.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377721018","file1":"1377721016","file0":"1377721014","file4":"1377721023","file5":"1377721025","file3":"1377721021"},"map_files_photo_id_array":[{"photo_id":"1377721025","filename":"file5"},{"photo_id":"1377721018","filename":"file2"},{"photo_id":"1377721023","filename":"file4"},{"photo_id":"1377721016","filename":"file1"},{"photo_id":"1377721014","filename":"file0"},{"photo_id":"1377721021","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377721021":["hashtag1","hashtag2"]},{"1377721023":["hashtag1","hashtag2"]},{"1377721014":["hashtag1","hashtag2"]},{"1377721025":["hashtag1","hashtag2"]},{"1377721016":["hashtag1","hashtag2"]},{"1377721018":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377721021, 1377721023, 1377721014, 1377721025, 1377721016, 1377721018)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.33102321624756 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:23:17.047140
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/23/image_18082025_23_23_45_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/23/23/image_18082025_23_23_34_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/23/23/image_18082025_23_23_25_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/23/22/image_18082025_23_23_04_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/23/22/image_18082025_23_22_55_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/22/39/image_18082025_22_39_44_9632.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/23/image_18082025_23_23_45_10642.jpg', '/home/nano/Desktop/images/18082025/23/23/image_18082025_23_23_34_9631.jpg', '/home/nano/Desktop/images/18082025/23/23/image_18082025_23_23_25_9636.jpg', '/home/nano/Desktop/images/18082025/23/22/image_18082025_23_23_04_9627.jpg', '/home/nano/Desktop/images/18082025/23/22/image_18082025_23_22_55_10637.jpg', '/home/nano/Desktop/images/18082025/22/39/image_18082025_22_39_44_9632.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/23/image_18082025_23_23_45_10642.jpg
/home/nano/Desktop/images/18082025/23/23/image_18082025_23_23_34_9631.jpg
/home/nano/Desktop/images/18082025/23/23/image_18082025_23_23_25_9636.jpg
/home/nano/Desktop/images/18082025/23/22/image_18082025_23_23_04_9627.jpg
/home/nano/Desktop/images/18082025/23/22/image_18082025_23_22_55_10637.jpg
/home/nano/Desktop/images/18082025/22/39/image_18082025_22_39_44_9632.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377721044","1377721046","1377721037","1377721042","1377721039","1377721048"],"photo_ids_order":["1377721037","1377721039","1377721042","1377721044","1377721046","1377721048"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/78ab6827ece5d1650262de581d87f829.jpg","text":"TemporaryFile(/tmp/multipartBody1780024908206805880asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552258394,"filename":"image_18082025_23_23_04_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/49b91e5c7602012a8c6c03d580437d3c.jpg","text":"TemporaryFile(/tmp/multipartBody1938643562753791672asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552258394,"filename":"image_18082025_23_22_55_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5f69143ebf81a4dbab00f57b522f7796.jpg","text":"TemporaryFile(/tmp/multipartBody4079047942615357500asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552258394,"filename":"image_18082025_23_23_45_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3324890243eb0aba710dc3ca823a8811.jpg","text":"TemporaryFile(/tmp/multipartBody7948655972639123690asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552258394,"filename":"image_18082025_23_23_25_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fc6e7dfde1caef088345bb24f653e652.jpg","text":"TemporaryFile(/tmp/multipartBody2526703477939099790asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552258394,"filename":"image_18082025_23_23_34_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dd84fd9f8d22c6abe298c8c08f31441d.jpg","text":"TemporaryFile(/tmp/multipartBody9076111147649855538asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552258394,"filename":"image_18082025_22_39_44_9632.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377721042","file1":"1377721039","file0":"1377721037","file4":"1377721046","file5":"1377721048","file3":"1377721044"},"map_files_photo_id_array":[{"photo_id":"1377721048","filename":"file5"},{"photo_id":"1377721042","filename":"file2"},{"photo_id":"1377721046","filename":"file4"},{"photo_id":"1377721039","filename":"file1"},{"photo_id":"1377721037","filename":"file0"},{"photo_id":"1377721044","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377721044":["hashtag1","hashtag2"]},{"1377721046":["hashtag1","hashtag2"]},{"1377721037":["hashtag1","hashtag2"]},{"1377721042":["hashtag1","hashtag2"]},{"1377721039":["hashtag1","hashtag2"]},{"1377721048":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377721044, 1377721046, 1377721037, 1377721042, 1377721039, 1377721048)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.79681372642517 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:24:02.956739
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/22/39/image_18082025_22_39_35_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/22/39/image_18082025_22_39_25_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/22/38/image_18082025_22_38_54_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/22/38/image_18082025_22_38_44_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/22/38/image_18082025_22_38_35_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/22/38/image_18082025_22_38_24_9626.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/22/39/image_18082025_22_39_35_9629.jpg', '/home/nano/Desktop/images/18082025/22/39/image_18082025_22_39_25_10637.jpg', '/home/nano/Desktop/images/18082025/22/38/image_18082025_22_38_54_9628.jpg', '/home/nano/Desktop/images/18082025/22/38/image_18082025_22_38_44_9629.jpg', '/home/nano/Desktop/images/18082025/22/38/image_18082025_22_38_35_10640.jpg', '/home/nano/Desktop/images/18082025/22/38/image_18082025_22_38_24_9626.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/22/39/image_18082025_22_39_35_9629.jpg
/home/nano/Desktop/images/18082025/22/39/image_18082025_22_39_25_10637.jpg
/home/nano/Desktop/images/18082025/22/38/image_18082025_22_38_54_9628.jpg
/home/nano/Desktop/images/18082025/22/38/image_18082025_22_38_44_9629.jpg
/home/nano/Desktop/images/18082025/22/38/image_18082025_22_38_35_10640.jpg
/home/nano/Desktop/images/18082025/22/38/image_18082025_22_38_24_9626.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377721055","1377721069","1377721060","1377721063","1377721066","1377721051"],"photo_ids_order":["1377721051","1377721055","1377721060","1377721063","1377721066","1377721069"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bcca0e1c05fcf8ddf35d67f03e809a0f.jpg","text":"TemporaryFile(/tmp/multipartBody1680012898702412154asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552304258,"filename":"image_18082025_22_39_25_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/aa32e876b46d9a7977791afa2ab04490.jpg","text":"TemporaryFile(/tmp/multipartBody4356400292571651776asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552304258,"filename":"image_18082025_22_38_24_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/308b8ff3b2df87bbdce74aa666819c6b.jpg","text":"TemporaryFile(/tmp/multipartBody268158831472510644asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552304258,"filename":"image_18082025_22_38_54_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0e0e382fb1c64d8b26f1fbb21ba88027.jpg","text":"TemporaryFile(/tmp/multipartBody549467566410174358asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552304258,"filename":"image_18082025_22_38_44_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4961e7eacbcc33d656f695d5755847ca.jpg","text":"TemporaryFile(/tmp/multipartBody2774001554329931130asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552304258,"filename":"image_18082025_22_38_35_10640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4caa9f800b7a115ca0f0618dabc92454.jpg","text":"TemporaryFile(/tmp/multipartBody2431505620660172943asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552304258,"filename":"image_18082025_22_39_35_9629.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377721060","file1":"1377721055","file0":"1377721051","file4":"1377721066","file5":"1377721069","file3":"1377721063"},"map_files_photo_id_array":[{"photo_id":"1377721069","filename":"file5"},{"photo_id":"1377721060","filename":"file2"},{"photo_id":"1377721066","filename":"file4"},{"photo_id":"1377721055","filename":"file1"},{"photo_id":"1377721051","filename":"file0"},{"photo_id":"1377721063","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377721055":["hashtag1","hashtag2"]},{"1377721069":["hashtag1","hashtag2"]},{"1377721060":["hashtag1","hashtag2"]},{"1377721063":["hashtag1","hashtag2"]},{"1377721066":["hashtag1","hashtag2"]},{"1377721051":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377721055, 1377721069, 1377721060, 1377721063, 1377721066, 1377721051)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.915966510772705 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:24:47.160497
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/24/image_18082025_23_24_34_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/23/24/image_18082025_23_24_25_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/23/24/image_18082025_23_24_15_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/23/23/image_18082025_23_24_04_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/23/23/image_18082025_23_23_55_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/22/38/image_18082025_22_38_15_9642.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/24/image_18082025_23_24_34_9626.jpg', '/home/nano/Desktop/images/18082025/23/24/image_18082025_23_24_25_9631.jpg', '/home/nano/Desktop/images/18082025/23/24/image_18082025_23_24_15_10667.jpg', '/home/nano/Desktop/images/18082025/23/23/image_18082025_23_24_04_9641.jpg', '/home/nano/Desktop/images/18082025/23/23/image_18082025_23_23_55_9650.jpg', '/home/nano/Desktop/images/18082025/22/38/image_18082025_22_38_15_9642.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/24/image_18082025_23_24_34_9626.jpg
/home/nano/Desktop/images/18082025/23/24/image_18082025_23_24_25_9631.jpg
/home/nano/Desktop/images/18082025/23/24/image_18082025_23_24_15_10667.jpg
/home/nano/Desktop/images/18082025/23/23/image_18082025_23_24_04_9641.jpg
/home/nano/Desktop/images/18082025/23/23/image_18082025_23_23_55_9650.jpg
/home/nano/Desktop/images/18082025/22/38/image_18082025_22_38_15_9642.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.5459544658660889 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:25:03.104612
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/24/image_18082025_23_24_34_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/23/24/image_18082025_23_24_25_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/23/24/image_18082025_23_24_15_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/23/23/image_18082025_23_24_04_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/23/23/image_18082025_23_23_55_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/22/38/image_18082025_22_38_15_9642.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/24/image_18082025_23_24_34_9626.jpg', '/home/nano/Desktop/images/18082025/23/24/image_18082025_23_24_25_9631.jpg', '/home/nano/Desktop/images/18082025/23/24/image_18082025_23_24_15_10667.jpg', '/home/nano/Desktop/images/18082025/23/23/image_18082025_23_24_04_9641.jpg', '/home/nano/Desktop/images/18082025/23/23/image_18082025_23_23_55_9650.jpg', '/home/nano/Desktop/images/18082025/22/38/image_18082025_22_38_15_9642.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/24/image_18082025_23_24_34_9626.jpg
/home/nano/Desktop/images/18082025/23/24/image_18082025_23_24_25_9631.jpg
/home/nano/Desktop/images/18082025/23/24/image_18082025_23_24_15_10667.jpg
/home/nano/Desktop/images/18082025/23/23/image_18082025_23_24_04_9641.jpg
/home/nano/Desktop/images/18082025/23/23/image_18082025_23_23_55_9650.jpg
/home/nano/Desktop/images/18082025/22/38/image_18082025_22_38_15_9642.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377721097","1377721090","1377721093","1377721087","1377721081","1377721084"],"photo_ids_order":["1377721081","1377721084","1377721087","1377721090","1377721093","1377721097"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fb4dd36afa2e17cd832e2b4c1e98c72f.jpg","text":"TemporaryFile(/tmp/multipartBody292520444864775307asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552364437,"filename":"image_18082025_22_38_15_9642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7783aa0309c71d3b191e05090b9828e6.jpg","text":"TemporaryFile(/tmp/multipartBody1312304865761017545asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552364437,"filename":"image_18082025_23_24_04_9641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6540864a0bdcb20483497b4345aeff13.jpg","text":"TemporaryFile(/tmp/multipartBody8153437241849925311asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552364437,"filename":"image_18082025_23_23_55_9650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d25b415e226834c7c7044509b7669acf.jpg","text":"TemporaryFile(/tmp/multipartBody9185544440056754960asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552364437,"filename":"image_18082025_23_24_15_10667.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/83e865d8c855cae74f6c81bc0715a9fe.jpg","text":"TemporaryFile(/tmp/multipartBody3688721499325655358asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552364437,"filename":"image_18082025_23_24_34_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/277f3578dd2de15c435672c20df5dd91.jpg","text":"TemporaryFile(/tmp/multipartBody4988252520374073650asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552364437,"filename":"image_18082025_23_24_25_9631.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377721087","file1":"1377721084","file0":"1377721081","file4":"1377721093","file5":"1377721097","file3":"1377721090"},"map_files_photo_id_array":[{"photo_id":"1377721097","filename":"file5"},{"photo_id":"1377721087","filename":"file2"},{"photo_id":"1377721093","filename":"file4"},{"photo_id":"1377721084","filename":"file1"},{"photo_id":"1377721081","filename":"file0"},{"photo_id":"1377721090","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377721097":["hashtag1","hashtag2"]},{"1377721090":["hashtag1","hashtag2"]},{"1377721093":["hashtag1","hashtag2"]},{"1377721087":["hashtag1","hashtag2"]},{"1377721081":["hashtag1","hashtag2"]},{"1377721084":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377721097, 1377721090, 1377721093, 1377721087, 1377721081, 1377721084)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.932494401931763 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:25:47.234915
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/25/image_18082025_23_25_45_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/23/25/image_18082025_23_25_35_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/23/25/image_18082025_23_25_24_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/23/25/image_18082025_23_25_15_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/23/24/image_18082025_23_25_04_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/23/24/image_18082025_23_24_54_9631.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/25/image_18082025_23_25_45_9626.jpg', '/home/nano/Desktop/images/18082025/23/25/image_18082025_23_25_35_10637.jpg', '/home/nano/Desktop/images/18082025/23/25/image_18082025_23_25_24_9630.jpg', '/home/nano/Desktop/images/18082025/23/25/image_18082025_23_25_15_10663.jpg', '/home/nano/Desktop/images/18082025/23/24/image_18082025_23_25_04_9650.jpg', '/home/nano/Desktop/images/18082025/23/24/image_18082025_23_24_54_9631.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/25/image_18082025_23_25_45_9626.jpg
/home/nano/Desktop/images/18082025/23/25/image_18082025_23_25_35_10637.jpg
/home/nano/Desktop/images/18082025/23/25/image_18082025_23_25_24_9630.jpg
/home/nano/Desktop/images/18082025/23/25/image_18082025_23_25_15_10663.jpg
/home/nano/Desktop/images/18082025/23/24/image_18082025_23_25_04_9650.jpg
/home/nano/Desktop/images/18082025/23/24/image_18082025_23_24_54_9631.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377721108","1377721104","1377721107","1377721112","1377721106","1377721105"],"photo_ids_order":["1377721104","1377721105","1377721106","1377721107","1377721108","1377721112"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cd395738c6f55ab3d01385ffc944c5f0.jpg","text":"TemporaryFile(/tmp/multipartBody7514717937686728489asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552408736,"filename":"image_18082025_23_25_04_9650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8fb01a614ff95ea73cfc911a2a2c693c.jpg","text":"TemporaryFile(/tmp/multipartBody1960879199247099499asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552408736,"filename":"image_18082025_23_25_45_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4411fa226783d4c7a1e9e449a49bb874.jpg","text":"TemporaryFile(/tmp/multipartBody2056273719922150498asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552408736,"filename":"image_18082025_23_25_15_10663.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e5fb11169abf5afc3ce1d9978d6526e2.jpg","text":"TemporaryFile(/tmp/multipartBody6182761900193917439asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552408736,"filename":"image_18082025_23_24_54_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d9df676b959a4337bcc9e28073c69f17.jpg","text":"TemporaryFile(/tmp/multipartBody7417055961698246656asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552408736,"filename":"image_18082025_23_25_24_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/477a3a685f2a9cdc4040343e1f859e97.jpg","text":"TemporaryFile(/tmp/multipartBody7250038826936485445asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552408736,"filename":"image_18082025_23_25_35_10637.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377721106","file1":"1377721105","file0":"1377721104","file4":"1377721108","file5":"1377721112","file3":"1377721107"},"map_files_photo_id_array":[{"photo_id":"1377721112","filename":"file5"},{"photo_id":"1377721106","filename":"file2"},{"photo_id":"1377721108","filename":"file4"},{"photo_id":"1377721105","filename":"file1"},{"photo_id":"1377721104","filename":"file0"},{"photo_id":"1377721107","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377721108":["hashtag1","hashtag2"]},{"1377721104":["hashtag1","hashtag2"]},{"1377721107":["hashtag1","hashtag2"]},{"1377721112":["hashtag1","hashtag2"]},{"1377721106":["hashtag1","hashtag2"]},{"1377721105":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377721108, 1377721104, 1377721107, 1377721112, 1377721106, 1377721105)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.95552158355713 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:26:32.348878
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/26/image_18082025_23_26_44_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/23/26/image_18082025_23_26_35_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/23/26/image_18082025_23_26_24_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/23/26/image_18082025_23_26_15_9657.jpg', 2), ('/home/nano/Desktop/images/18082025/23/25/image_18082025_23_26_05_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/23/25/image_18082025_23_25_54_9630.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/26/image_18082025_23_26_44_9627.jpg', '/home/nano/Desktop/images/18082025/23/26/image_18082025_23_26_35_10638.jpg', '/home/nano/Desktop/images/18082025/23/26/image_18082025_23_26_24_9638.jpg', '/home/nano/Desktop/images/18082025/23/26/image_18082025_23_26_15_9657.jpg', '/home/nano/Desktop/images/18082025/23/25/image_18082025_23_26_05_10645.jpg', '/home/nano/Desktop/images/18082025/23/25/image_18082025_23_25_54_9630.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/26/image_18082025_23_26_44_9627.jpg
/home/nano/Desktop/images/18082025/23/26/image_18082025_23_26_35_10638.jpg
/home/nano/Desktop/images/18082025/23/26/image_18082025_23_26_24_9638.jpg
/home/nano/Desktop/images/18082025/23/26/image_18082025_23_26_15_9657.jpg
/home/nano/Desktop/images/18082025/23/25/image_18082025_23_26_05_10645.jpg
/home/nano/Desktop/images/18082025/23/25/image_18082025_23_25_54_9630.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377721129","1377721122","1377721125","1377721135","1377721123","1377721132"],"photo_ids_order":["1377721122","1377721123","1377721125","1377721129","1377721132","1377721135"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bb80cd54308d6d40c903d12d48aa190c.jpg","text":"TemporaryFile(/tmp/multipartBody3029423152879384177asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552453572,"filename":"image_18082025_23_26_15_9657.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d16f11caed00ab329b60a5f5c142cb2b.jpg","text":"TemporaryFile(/tmp/multipartBody8410136911025373251asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552453572,"filename":"image_18082025_23_26_44_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/326929659e4e471d6a459dd2197b1813.jpg","text":"TemporaryFile(/tmp/multipartBody5771474140713002541asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552453572,"filename":"image_18082025_23_26_24_9638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/43f08eca89b13f150dc9bfd607cc266d.jpg","text":"TemporaryFile(/tmp/multipartBody3054539308406056967asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552453572,"filename":"image_18082025_23_25_54_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3e523491ff51cea852ef1fd8f561e061.jpg","text":"TemporaryFile(/tmp/multipartBody6612969371945987571asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552453572,"filename":"image_18082025_23_26_35_10638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/80eb56116bc738a179b852857e5d6e75.jpg","text":"TemporaryFile(/tmp/multipartBody8998753729685519557asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552453572,"filename":"image_18082025_23_26_05_10645.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377721125","file1":"1377721123","file0":"1377721122","file4":"1377721132","file5":"1377721135","file3":"1377721129"},"map_files_photo_id_array":[{"photo_id":"1377721135","filename":"file5"},{"photo_id":"1377721125","filename":"file2"},{"photo_id":"1377721132","filename":"file4"},{"photo_id":"1377721123","filename":"file1"},{"photo_id":"1377721122","filename":"file0"},{"photo_id":"1377721129","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377721129":["hashtag1","hashtag2"]},{"1377721122":["hashtag1","hashtag2"]},{"1377721125":["hashtag1","hashtag2"]},{"1377721135":["hashtag1","hashtag2"]},{"1377721123":["hashtag1","hashtag2"]},{"1377721132":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377721129, 1377721122, 1377721125, 1377721135, 1377721123, 1377721132)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.741987228393555 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:27:17.452190
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/27/image_18082025_23_27_44_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/23/27/image_18082025_23_27_35_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/23/27/image_18082025_23_27_25_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/23/27/image_18082025_23_27_14_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/23/26/image_18082025_23_27_05_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/23/26/image_18082025_23_26_54_9650.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/27/image_18082025_23_27_44_9628.jpg', '/home/nano/Desktop/images/18082025/23/27/image_18082025_23_27_35_9630.jpg', '/home/nano/Desktop/images/18082025/23/27/image_18082025_23_27_25_10636.jpg', '/home/nano/Desktop/images/18082025/23/27/image_18082025_23_27_14_9652.jpg', '/home/nano/Desktop/images/18082025/23/26/image_18082025_23_27_05_10639.jpg', '/home/nano/Desktop/images/18082025/23/26/image_18082025_23_26_54_9650.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/27/image_18082025_23_27_44_9628.jpg
/home/nano/Desktop/images/18082025/23/27/image_18082025_23_27_35_9630.jpg
/home/nano/Desktop/images/18082025/23/27/image_18082025_23_27_25_10636.jpg
/home/nano/Desktop/images/18082025/23/27/image_18082025_23_27_14_9652.jpg
/home/nano/Desktop/images/18082025/23/26/image_18082025_23_27_05_10639.jpg
/home/nano/Desktop/images/18082025/23/26/image_18082025_23_26_54_9650.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377721167","1377721161","1377721157","1377721151","1377721153","1377721165"],"photo_ids_order":["1377721151","1377721153","1377721157","1377721161","1377721165","1377721167"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0400e169854e1c2d3a3ffacc40cebb27.jpg","text":"TemporaryFile(/tmp/multipartBody6972461554983371751asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552498741,"filename":"image_18082025_23_26_54_9650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0d17ebcdec7e28a73199af22c7729667.jpg","text":"TemporaryFile(/tmp/multipartBody4522498059469895684asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552498741,"filename":"image_18082025_23_27_14_9652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c6fa279adbd268705238a6014a85a989.jpg","text":"TemporaryFile(/tmp/multipartBody2776788692770197422asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552498741,"filename":"image_18082025_23_27_25_10636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4b14f78094bdb3a3fa5587d3dc43b11e.jpg","text":"TemporaryFile(/tmp/multipartBody8956888358979728994asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552498741,"filename":"image_18082025_23_27_44_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bd59d08b509fe2467956042f0b62a0d1.jpg","text":"TemporaryFile(/tmp/multipartBody217473417561807658asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552498741,"filename":"image_18082025_23_27_35_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/814898feb03ffd5146ab6e564406bd23.jpg","text":"TemporaryFile(/tmp/multipartBody1050286859067054992asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552498741,"filename":"image_18082025_23_27_05_10639.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377721157","file1":"1377721153","file0":"1377721151","file4":"1377721165","file5":"1377721167","file3":"1377721161"},"map_files_photo_id_array":[{"photo_id":"1377721167","filename":"file5"},{"photo_id":"1377721157","filename":"file2"},{"photo_id":"1377721165","filename":"file4"},{"photo_id":"1377721153","filename":"file1"},{"photo_id":"1377721151","filename":"file0"},{"photo_id":"1377721161","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377721167":["hashtag1","hashtag2"]},{"1377721161":["hashtag1","hashtag2"]},{"1377721157":["hashtag1","hashtag2"]},{"1377721151":["hashtag1","hashtag2"]},{"1377721153":["hashtag1","hashtag2"]},{"1377721165":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377721167, 1377721161, 1377721157, 1377721151, 1377721153, 1377721165)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.982404470443726 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:28:03.067134
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/22/36/image_18082025_22_37_04_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/22/36/image_18082025_22_36_54_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/22/36/image_18082025_22_36_45_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/22/36/image_18082025_22_36_25_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/22/36/image_18082025_22_36_15_10666.jpg', 2), ('/home/nano/Desktop/images/18082025/22/35/image_18082025_22_36_04_9631.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/22/36/image_18082025_22_37_04_9633.jpg', '/home/nano/Desktop/images/18082025/22/36/image_18082025_22_36_54_9630.jpg', '/home/nano/Desktop/images/18082025/22/36/image_18082025_22_36_45_10647.jpg', '/home/nano/Desktop/images/18082025/22/36/image_18082025_22_36_25_9647.jpg', '/home/nano/Desktop/images/18082025/22/36/image_18082025_22_36_15_10666.jpg', '/home/nano/Desktop/images/18082025/22/35/image_18082025_22_36_04_9631.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/22/36/image_18082025_22_37_04_9633.jpg
/home/nano/Desktop/images/18082025/22/36/image_18082025_22_36_54_9630.jpg
/home/nano/Desktop/images/18082025/22/36/image_18082025_22_36_45_10647.jpg
/home/nano/Desktop/images/18082025/22/36/image_18082025_22_36_25_9647.jpg
/home/nano/Desktop/images/18082025/22/36/image_18082025_22_36_15_10666.jpg
/home/nano/Desktop/images/18082025/22/35/image_18082025_22_36_04_9631.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377721185","1377721187","1377721181","1377721184","1377721174","1377721177"],"photo_ids_order":["1377721174","1377721177","1377721181","1377721184","1377721185","1377721187"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f91dc583ee2eaf2e7c63a1148f0e72da.jpg","text":"TemporaryFile(/tmp/multipartBody5018068261807218473asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552544580,"filename":"image_18082025_22_36_15_10666.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/82e020de1ec8d39415d3a3b96ada6385.jpg","text":"TemporaryFile(/tmp/multipartBody9207413762488841374asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552544580,"filename":"image_18082025_22_36_04_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fb5df9bf2566640741a2252329a7130c.jpg","text":"TemporaryFile(/tmp/multipartBody483818071028134929asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552544580,"filename":"image_18082025_22_36_45_10647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/20a12d94d713c8a0d50b6873ae1aff31.jpg","text":"TemporaryFile(/tmp/multipartBody6332124415061586471asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552544580,"filename":"image_18082025_22_36_25_9647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fa5c89c7898bdb0a64d5d5b5a3a06338.jpg","text":"TemporaryFile(/tmp/multipartBody3791476173396779351asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552544580,"filename":"image_18082025_22_37_04_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6c55b58780887cb6a567ae50c6bc0df9.jpg","text":"TemporaryFile(/tmp/multipartBody7722131480487082902asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552544580,"filename":"image_18082025_22_36_54_9630.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377721181","file1":"1377721177","file0":"1377721174","file4":"1377721185","file5":"1377721187","file3":"1377721184"},"map_files_photo_id_array":[{"photo_id":"1377721187","filename":"file5"},{"photo_id":"1377721181","filename":"file2"},{"photo_id":"1377721185","filename":"file4"},{"photo_id":"1377721177","filename":"file1"},{"photo_id":"1377721174","filename":"file0"},{"photo_id":"1377721184","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377721185":["hashtag1","hashtag2"]},{"1377721187":["hashtag1","hashtag2"]},{"1377721181":["hashtag1","hashtag2"]},{"1377721184":["hashtag1","hashtag2"]},{"1377721174":["hashtag1","hashtag2"]},{"1377721177":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377721185, 1377721187, 1377721181, 1377721184, 1377721174, 1377721177)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.48910403251648 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:28:47.545278
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/28/image_18082025_23_28_44_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/23/28/image_18082025_23_28_35_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/23/28/image_18082025_23_28_25_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/23/28/image_18082025_23_28_14_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/23/27/image_18082025_23_27_55_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/22/35/image_18082025_22_35_55_9630.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/28/image_18082025_23_28_44_9632.jpg', '/home/nano/Desktop/images/18082025/23/28/image_18082025_23_28_35_9628.jpg', '/home/nano/Desktop/images/18082025/23/28/image_18082025_23_28_25_10660.jpg', '/home/nano/Desktop/images/18082025/23/28/image_18082025_23_28_14_9651.jpg', '/home/nano/Desktop/images/18082025/23/27/image_18082025_23_27_55_10641.jpg', '/home/nano/Desktop/images/18082025/22/35/image_18082025_22_35_55_9630.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/28/image_18082025_23_28_44_9632.jpg
/home/nano/Desktop/images/18082025/23/28/image_18082025_23_28_35_9628.jpg
/home/nano/Desktop/images/18082025/23/28/image_18082025_23_28_25_10660.jpg
/home/nano/Desktop/images/18082025/23/28/image_18082025_23_28_14_9651.jpg
/home/nano/Desktop/images/18082025/23/27/image_18082025_23_27_55_10641.jpg
/home/nano/Desktop/images/18082025/22/35/image_18082025_22_35_55_9630.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377721197","1377721199","1377721202","1377721192","1377721195","1377721194"],"photo_ids_order":["1377721192","1377721194","1377721195","1377721197","1377721199","1377721202"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4f798faf78229bd464f35d445a45143a.jpg","text":"TemporaryFile(/tmp/multipartBody7686743831459949966asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552589047,"filename":"image_18082025_23_28_14_9651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a253bbed9903f6418ec390a863131bba.jpg","text":"TemporaryFile(/tmp/multipartBody4984813998352174483asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552589047,"filename":"image_18082025_23_27_55_10641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f5b5419199c679fc849e106974dd851e.jpg","text":"TemporaryFile(/tmp/multipartBody7988332187569906681asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552589047,"filename":"image_18082025_22_35_55_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e4132a4f97073b89c3f97439cda26bd1.jpg","text":"TemporaryFile(/tmp/multipartBody5366055559248067729asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552589047,"filename":"image_18082025_23_28_44_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/74f175035f356076bc9725ab6a0f8aa5.jpg","text":"TemporaryFile(/tmp/multipartBody5392143004800413257asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552589047,"filename":"image_18082025_23_28_25_10660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b8a72958c51e858aa5c71cb3dfd61999.jpg","text":"TemporaryFile(/tmp/multipartBody6100206159260787341asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552589047,"filename":"image_18082025_23_28_35_9628.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377721195","file1":"1377721194","file0":"1377721192","file4":"1377721199","file5":"1377721202","file3":"1377721197"},"map_files_photo_id_array":[{"photo_id":"1377721202","filename":"file5"},{"photo_id":"1377721195","filename":"file2"},{"photo_id":"1377721199","filename":"file4"},{"photo_id":"1377721194","filename":"file1"},{"photo_id":"1377721192","filename":"file0"},{"photo_id":"1377721197","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377721197":["hashtag1","hashtag2"]},{"1377721199":["hashtag1","hashtag2"]},{"1377721202":["hashtag1","hashtag2"]},{"1377721192":["hashtag1","hashtag2"]},{"1377721195":["hashtag1","hashtag2"]},{"1377721194":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377721197, 1377721199, 1377721202, 1377721192, 1377721195, 1377721194)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.474138021469116 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:29:32.640905
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/29/image_18082025_23_29_45_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/23/29/image_18082025_23_29_34_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/23/29/image_18082025_23_29_14_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/23/28/image_18082025_23_29_04_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/23/28/image_18082025_23_28_55_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/22/35/image_18082025_22_35_45_10636.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/29/image_18082025_23_29_45_10638.jpg', '/home/nano/Desktop/images/18082025/23/29/image_18082025_23_29_34_9634.jpg', '/home/nano/Desktop/images/18082025/23/29/image_18082025_23_29_14_9656.jpg', '/home/nano/Desktop/images/18082025/23/28/image_18082025_23_29_04_9649.jpg', '/home/nano/Desktop/images/18082025/23/28/image_18082025_23_28_55_10641.jpg', '/home/nano/Desktop/images/18082025/22/35/image_18082025_22_35_45_10636.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/29/image_18082025_23_29_45_10638.jpg
/home/nano/Desktop/images/18082025/23/29/image_18082025_23_29_34_9634.jpg
/home/nano/Desktop/images/18082025/23/29/image_18082025_23_29_14_9656.jpg
/home/nano/Desktop/images/18082025/23/28/image_18082025_23_29_04_9649.jpg
/home/nano/Desktop/images/18082025/23/28/image_18082025_23_28_55_10641.jpg
/home/nano/Desktop/images/18082025/22/35/image_18082025_22_35_45_10636.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377721224","1377721220","1377721214","1377721217","1377721222","1377721225"],"photo_ids_order":["1377721214","1377721217","1377721220","1377721222","1377721224","1377721225"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e9fb6fd5afb01c72593cc334c3107681.jpg","text":"TemporaryFile(/tmp/multipartBody2046437516302793004asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552633905,"filename":"image_18082025_23_28_55_10641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/59909e72fc15e60fbc1539ff638a35d0.jpg","text":"TemporaryFile(/tmp/multipartBody171915866537522563asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552633905,"filename":"image_18082025_23_29_14_9656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f8dd9be8afdd4f04083234a0e86cde94.jpg","text":"TemporaryFile(/tmp/multipartBody5890553180152199743asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552633905,"filename":"image_18082025_23_29_45_10638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3d55b716c563152c510ece2b6913f7c2.jpg","text":"TemporaryFile(/tmp/multipartBody2224491649187734543asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552633905,"filename":"image_18082025_23_29_34_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/54a24d8cb772143c5cb5694414d20523.jpg","text":"TemporaryFile(/tmp/multipartBody3552476044666311148asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552633905,"filename":"image_18082025_23_29_04_9649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1b12f9bccd58a0ca1068e044c226681d.jpg","text":"TemporaryFile(/tmp/multipartBody1081460026147019763asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552633905,"filename":"image_18082025_22_35_45_10636.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377721220","file1":"1377721217","file0":"1377721214","file4":"1377721224","file5":"1377721225","file3":"1377721222"},"map_files_photo_id_array":[{"photo_id":"1377721225","filename":"file5"},{"photo_id":"1377721220","filename":"file2"},{"photo_id":"1377721224","filename":"file4"},{"photo_id":"1377721217","filename":"file1"},{"photo_id":"1377721214","filename":"file0"},{"photo_id":"1377721222","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377721224":["hashtag1","hashtag2"]},{"1377721220":["hashtag1","hashtag2"]},{"1377721214":["hashtag1","hashtag2"]},{"1377721217":["hashtag1","hashtag2"]},{"1377721222":["hashtag1","hashtag2"]},{"1377721225":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377721224, 1377721220, 1377721214, 1377721217, 1377721222, 1377721225)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.89926028251648 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:30:17.738790
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/30/image_18082025_23_30_45_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/23/30/image_18082025_23_30_25_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/23/30/image_18082025_23_30_15_10662.jpg', 2), ('/home/nano/Desktop/images/18082025/23/29/image_18082025_23_30_04_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/23/29/image_18082025_23_29_55_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/22/35/image_18082025_22_35_25_9631.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/30/image_18082025_23_30_45_10644.jpg', '/home/nano/Desktop/images/18082025/23/30/image_18082025_23_30_25_9628.jpg', '/home/nano/Desktop/images/18082025/23/30/image_18082025_23_30_15_10662.jpg', '/home/nano/Desktop/images/18082025/23/29/image_18082025_23_30_04_9661.jpg', '/home/nano/Desktop/images/18082025/23/29/image_18082025_23_29_55_9631.jpg', '/home/nano/Desktop/images/18082025/22/35/image_18082025_22_35_25_9631.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/30/image_18082025_23_30_45_10644.jpg
/home/nano/Desktop/images/18082025/23/30/image_18082025_23_30_25_9628.jpg
/home/nano/Desktop/images/18082025/23/30/image_18082025_23_30_15_10662.jpg
/home/nano/Desktop/images/18082025/23/29/image_18082025_23_30_04_9661.jpg
/home/nano/Desktop/images/18082025/23/29/image_18082025_23_29_55_9631.jpg
/home/nano/Desktop/images/18082025/22/35/image_18082025_22_35_25_9631.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377721239","1377721248","1377721241","1377721244","1377721237","1377721246"],"photo_ids_order":["1377721237","1377721239","1377721241","1377721244","1377721246","1377721248"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0008548b8c8f8ee8f3e59b6fe19086cc.jpg","text":"TemporaryFile(/tmp/multipartBody1784814102204919669asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552679246,"filename":"image_18082025_23_30_25_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e74c3edc388ed6601ebea5e321310e11.jpg","text":"TemporaryFile(/tmp/multipartBody2722809244586662783asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552679246,"filename":"image_18082025_22_35_25_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a9ad75c7a63b78b0f2150f7c2b187f26.jpg","text":"TemporaryFile(/tmp/multipartBody5466707890247565196asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552679246,"filename":"image_18082025_23_30_15_10662.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a220549d36b9823b843cb6c3aacebc80.jpg","text":"TemporaryFile(/tmp/multipartBody5880400122531463065asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552679246,"filename":"image_18082025_23_30_04_9661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/59e4faad3e3075ae2b5c1e5bf9c1578d.jpg","text":"TemporaryFile(/tmp/multipartBody6261296941662426070asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552679246,"filename":"image_18082025_23_30_45_10644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1a3c8fc8482eb0b1a917fc49b13e7ebf.jpg","text":"TemporaryFile(/tmp/multipartBody7393043510109461167asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552679246,"filename":"image_18082025_23_29_55_9631.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377721241","file1":"1377721239","file0":"1377721237","file4":"1377721246","file5":"1377721248","file3":"1377721244"},"map_files_photo_id_array":[{"photo_id":"1377721248","filename":"file5"},{"photo_id":"1377721241","filename":"file2"},{"photo_id":"1377721246","filename":"file4"},{"photo_id":"1377721239","filename":"file1"},{"photo_id":"1377721237","filename":"file0"},{"photo_id":"1377721244","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377721239":["hashtag1","hashtag2"]},{"1377721248":["hashtag1","hashtag2"]},{"1377721241":["hashtag1","hashtag2"]},{"1377721244":["hashtag1","hashtag2"]},{"1377721237":["hashtag1","hashtag2"]},{"1377721246":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377721239, 1377721248, 1377721241, 1377721244, 1377721237, 1377721246)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.875058889389038 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:31:02.724646
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/22/35/image_18082025_22_35_15_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/22/34/image_18082025_22_34_55_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/22/34/image_18082025_22_34_44_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/22/34/image_18082025_22_34_34_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/22/34/image_18082025_22_34_25_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/22/34/image_18082025_22_34_14_9649.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/22/35/image_18082025_22_35_15_10654.jpg', '/home/nano/Desktop/images/18082025/22/34/image_18082025_22_34_55_10642.jpg', '/home/nano/Desktop/images/18082025/22/34/image_18082025_22_34_44_9628.jpg', '/home/nano/Desktop/images/18082025/22/34/image_18082025_22_34_34_9630.jpg', '/home/nano/Desktop/images/18082025/22/34/image_18082025_22_34_25_10642.jpg', '/home/nano/Desktop/images/18082025/22/34/image_18082025_22_34_14_9649.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/22/35/image_18082025_22_35_15_10654.jpg
/home/nano/Desktop/images/18082025/22/34/image_18082025_22_34_55_10642.jpg
/home/nano/Desktop/images/18082025/22/34/image_18082025_22_34_44_9628.jpg
/home/nano/Desktop/images/18082025/22/34/image_18082025_22_34_34_9630.jpg
/home/nano/Desktop/images/18082025/22/34/image_18082025_22_34_25_10642.jpg
/home/nano/Desktop/images/18082025/22/34/image_18082025_22_34_14_9649.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377721254","1377721268","1377721262","1377721271","1377721265","1377721259"],"photo_ids_order":["1377721254","1377721259","1377721262","1377721265","1377721268","1377721271"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/332761a5633e9e9aac3259042eb50e6d.jpg","text":"TemporaryFile(/tmp/multipartBody5791547282278081084asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552723987,"filename":"image_18082025_22_35_15_10654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b4c38d4980eff87c85b4f13602aa3e5d.jpg","text":"TemporaryFile(/tmp/multipartBody3108538682355528139asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552723987,"filename":"image_18082025_22_34_25_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/90da49edb89d1fae8930854ed5257764.jpg","text":"TemporaryFile(/tmp/multipartBody4038208244818849859asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552723987,"filename":"image_18082025_22_34_44_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fb4ec3e266de3c3e5632bb4c21ab5a9d.jpg","text":"TemporaryFile(/tmp/multipartBody6968122846495892116asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552723987,"filename":"image_18082025_22_34_14_9649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7d67e9290c632870e739d8601ff3bda4.jpg","text":"TemporaryFile(/tmp/multipartBody5181952420039343122asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552723987,"filename":"image_18082025_22_34_34_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/faa456c96d0da67dbcc54f4ed605d1d0.jpg","text":"TemporaryFile(/tmp/multipartBody4004605512911966161asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552723987,"filename":"image_18082025_22_34_55_10642.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377721262","file1":"1377721259","file0":"1377721254","file4":"1377721268","file5":"1377721271","file3":"1377721265"},"map_files_photo_id_array":[{"photo_id":"1377721271","filename":"file5"},{"photo_id":"1377721262","filename":"file2"},{"photo_id":"1377721268","filename":"file4"},{"photo_id":"1377721259","filename":"file1"},{"photo_id":"1377721254","filename":"file0"},{"photo_id":"1377721265","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377721254":["hashtag1","hashtag2"]},{"1377721268":["hashtag1","hashtag2"]},{"1377721262":["hashtag1","hashtag2"]},{"1377721271":["hashtag1","hashtag2"]},{"1377721265":["hashtag1","hashtag2"]},{"1377721259":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377721254, 1377721268, 1377721262, 1377721271, 1377721265, 1377721259)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.6435866355896 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:31:46.851318
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/31/image_18082025_23_31_34_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/23/31/image_18082025_23_31_24_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/23/31/image_18082025_23_31_15_10675.jpg', 2), ('/home/nano/Desktop/images/18082025/23/30/image_18082025_23_30_55_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/22/33/image_18082025_22_34_05_9685.jpg', 2), ('/home/nano/Desktop/images/18082025/22/33/image_18082025_22_33_55_10643.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/31/image_18082025_23_31_34_9632.jpg', '/home/nano/Desktop/images/18082025/23/31/image_18082025_23_31_24_9629.jpg', '/home/nano/Desktop/images/18082025/23/31/image_18082025_23_31_15_10675.jpg', '/home/nano/Desktop/images/18082025/23/30/image_18082025_23_30_55_9627.jpg', '/home/nano/Desktop/images/18082025/22/33/image_18082025_22_34_05_9685.jpg', '/home/nano/Desktop/images/18082025/22/33/image_18082025_22_33_55_10643.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/31/image_18082025_23_31_34_9632.jpg
/home/nano/Desktop/images/18082025/23/31/image_18082025_23_31_24_9629.jpg
/home/nano/Desktop/images/18082025/23/31/image_18082025_23_31_15_10675.jpg
/home/nano/Desktop/images/18082025/23/30/image_18082025_23_30_55_9627.jpg
/home/nano/Desktop/images/18082025/22/33/image_18082025_22_34_05_9685.jpg
/home/nano/Desktop/images/18082025/22/33/image_18082025_22_33_55_10643.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377721281","1377721284","1377721278","1377721280","1377721279","1377721288"],"photo_ids_order":["1377721278","1377721279","1377721280","1377721281","1377721284","1377721288"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f5f1448f100c858d52fa63f98273d583.jpg","text":"TemporaryFile(/tmp/multipartBody2184859776335006744asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552768438,"filename":"image_18082025_23_30_55_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/eb9604cd106e72cf8737406beb4869ea.jpg","text":"TemporaryFile(/tmp/multipartBody1849191489087429137asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552768438,"filename":"image_18082025_22_34_05_9685.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ff1946ac2d1e9def0c01892ef5035105.jpg","text":"TemporaryFile(/tmp/multipartBody3956684953382497634asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552768438,"filename":"image_18082025_23_31_34_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b78c8982c862c72fca522b540aab9883.jpg","text":"TemporaryFile(/tmp/multipartBody3913082392478088416asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552768438,"filename":"image_18082025_23_31_15_10675.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ebdd95ab37ab37594362bfde231bf868.jpg","text":"TemporaryFile(/tmp/multipartBody9069475450871339768asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552768438,"filename":"image_18082025_23_31_24_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/29647b9306b05551d99caa7db29de03b.jpg","text":"TemporaryFile(/tmp/multipartBody8217540097547841934asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552768438,"filename":"image_18082025_22_33_55_10643.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377721280","file1":"1377721279","file0":"1377721278","file4":"1377721284","file5":"1377721288","file3":"1377721281"},"map_files_photo_id_array":[{"photo_id":"1377721288","filename":"file5"},{"photo_id":"1377721280","filename":"file2"},{"photo_id":"1377721284","filename":"file4"},{"photo_id":"1377721279","filename":"file1"},{"photo_id":"1377721278","filename":"file0"},{"photo_id":"1377721281","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377721281":["hashtag1","hashtag2"]},{"1377721284":["hashtag1","hashtag2"]},{"1377721278":["hashtag1","hashtag2"]},{"1377721280":["hashtag1","hashtag2"]},{"1377721279":["hashtag1","hashtag2"]},{"1377721288":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377721281, 1377721284, 1377721278, 1377721280, 1377721279, 1377721288)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.31200671195984 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:32:31.946929
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/32/image_18082025_23_32_45_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/23/32/image_18082025_23_32_35_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/23/32/image_18082025_23_32_24_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/23/32/image_18082025_23_32_15_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/23/31/image_18082025_23_32_05_10689.jpg', 2), ('/home/nano/Desktop/images/18082025/23/31/image_18082025_23_31_45_10637.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/32/image_18082025_23_32_45_9636.jpg', '/home/nano/Desktop/images/18082025/23/32/image_18082025_23_32_35_10645.jpg', '/home/nano/Desktop/images/18082025/23/32/image_18082025_23_32_24_9631.jpg', '/home/nano/Desktop/images/18082025/23/32/image_18082025_23_32_15_9645.jpg', '/home/nano/Desktop/images/18082025/23/31/image_18082025_23_32_05_10689.jpg', '/home/nano/Desktop/images/18082025/23/31/image_18082025_23_31_45_10637.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/32/image_18082025_23_32_45_9636.jpg
/home/nano/Desktop/images/18082025/23/32/image_18082025_23_32_35_10645.jpg
/home/nano/Desktop/images/18082025/23/32/image_18082025_23_32_24_9631.jpg
/home/nano/Desktop/images/18082025/23/32/image_18082025_23_32_15_9645.jpg
/home/nano/Desktop/images/18082025/23/31/image_18082025_23_32_05_10689.jpg
/home/nano/Desktop/images/18082025/23/31/image_18082025_23_31_45_10637.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377721312","1377721305","1377721304","1377721307","1377721309","1377721303"],"photo_ids_order":["1377721303","1377721304","1377721305","1377721307","1377721309","1377721312"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e6cc1e10eb3be740c93a2d0ef11551d0.jpg","text":"TemporaryFile(/tmp/multipartBody7026158221268858142asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552813397,"filename":"image_18082025_23_31_45_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7cde33ddc30f4693ed1829412c7c84fa.jpg","text":"TemporaryFile(/tmp/multipartBody101833556338211151asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552813397,"filename":"image_18082025_23_32_24_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1f353c1fb608fde06958ae5c50339936.jpg","text":"TemporaryFile(/tmp/multipartBody6808551511853913280asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552813397,"filename":"image_18082025_23_32_35_10645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/064ec8bbfbd024e0f4a953dba1ee3ae8.jpg","text":"TemporaryFile(/tmp/multipartBody1454115747379664132asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552813397,"filename":"image_18082025_23_32_15_9645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/77248e5d005d1a5f67d99dadd65c7c52.jpg","text":"TemporaryFile(/tmp/multipartBody3443586023762376422asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552813397,"filename":"image_18082025_23_32_05_10689.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f0b96fae34cf15d7ba5611275851bef9.jpg","text":"TemporaryFile(/tmp/multipartBody19806631211009852asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552813397,"filename":"image_18082025_23_32_45_9636.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377721305","file1":"1377721304","file0":"1377721303","file4":"1377721309","file5":"1377721312","file3":"1377721307"},"map_files_photo_id_array":[{"photo_id":"1377721312","filename":"file5"},{"photo_id":"1377721305","filename":"file2"},{"photo_id":"1377721309","filename":"file4"},{"photo_id":"1377721304","filename":"file1"},{"photo_id":"1377721303","filename":"file0"},{"photo_id":"1377721307","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377721312":["hashtag1","hashtag2"]},{"1377721305":["hashtag1","hashtag2"]},{"1377721304":["hashtag1","hashtag2"]},{"1377721307":["hashtag1","hashtag2"]},{"1377721309":["hashtag1","hashtag2"]},{"1377721303":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377721312, 1377721305, 1377721304, 1377721307, 1377721309, 1377721303)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.347289562225342 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:33:17.079036
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/33/image_18082025_23_33_44_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/23/33/image_18082025_23_33_35_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/23/33/image_18082025_23_33_24_9649.jpg', 2), ('/home/nano/Desktop/images/18082025/23/33/image_18082025_23_33_15_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/23/32/image_18082025_23_33_05_10667.jpg', 2), ('/home/nano/Desktop/images/18082025/23/32/image_18082025_23_32_54_9632.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/33/image_18082025_23_33_44_9632.jpg', '/home/nano/Desktop/images/18082025/23/33/image_18082025_23_33_35_10659.jpg', '/home/nano/Desktop/images/18082025/23/33/image_18082025_23_33_24_9649.jpg', '/home/nano/Desktop/images/18082025/23/33/image_18082025_23_33_15_9640.jpg', '/home/nano/Desktop/images/18082025/23/32/image_18082025_23_33_05_10667.jpg', '/home/nano/Desktop/images/18082025/23/32/image_18082025_23_32_54_9632.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/33/image_18082025_23_33_44_9632.jpg
/home/nano/Desktop/images/18082025/23/33/image_18082025_23_33_35_10659.jpg
/home/nano/Desktop/images/18082025/23/33/image_18082025_23_33_24_9649.jpg
/home/nano/Desktop/images/18082025/23/33/image_18082025_23_33_15_9640.jpg
/home/nano/Desktop/images/18082025/23/32/image_18082025_23_33_05_10667.jpg
/home/nano/Desktop/images/18082025/23/32/image_18082025_23_32_54_9632.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377721338","1377721335","1377721340","1377721331","1377721328","1377721342"],"photo_ids_order":["1377721328","1377721331","1377721335","1377721338","1377721340","1377721342"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e71d8df4fb4ffde12b7e83a114f6aa68.jpg","text":"TemporaryFile(/tmp/multipartBody2483005450728959076asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552858594,"filename":"image_18082025_23_33_15_9640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/977384a60ff1a4aeb8f10d589ddff3bf.jpg","text":"TemporaryFile(/tmp/multipartBody1484031025086648733asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552858594,"filename":"image_18082025_23_33_24_9649.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1653bdf0ce11d9476fa85c99e1b7a268.jpg","text":"TemporaryFile(/tmp/multipartBody7434700643655591045asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552858594,"filename":"image_18082025_23_33_05_10667.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3c5f93c5985fd43123de31d5f4dfa143.jpg","text":"TemporaryFile(/tmp/multipartBody1363379289770491555asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552858594,"filename":"image_18082025_23_33_35_10659.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/aa9948e874928a54d6f70e63f4448913.jpg","text":"TemporaryFile(/tmp/multipartBody2019504249431740578asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552858594,"filename":"image_18082025_23_33_44_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/597472427d4ded0622b70c421cd7f7f9.jpg","text":"TemporaryFile(/tmp/multipartBody9121148542809754394asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552858594,"filename":"image_18082025_23_32_54_9632.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377721335","file1":"1377721331","file0":"1377721328","file4":"1377721340","file5":"1377721342","file3":"1377721338"},"map_files_photo_id_array":[{"photo_id":"1377721342","filename":"file5"},{"photo_id":"1377721335","filename":"file2"},{"photo_id":"1377721340","filename":"file4"},{"photo_id":"1377721331","filename":"file1"},{"photo_id":"1377721328","filename":"file0"},{"photo_id":"1377721338","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377721338":["hashtag1","hashtag2"]},{"1377721335":["hashtag1","hashtag2"]},{"1377721340":["hashtag1","hashtag2"]},{"1377721331":["hashtag1","hashtag2"]},{"1377721328":["hashtag1","hashtag2"]},{"1377721342":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377721338, 1377721335, 1377721340, 1377721331, 1377721328, 1377721342)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.680686473846436 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:34:03.074512
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/22/33/image_18082025_22_33_44_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/22/33/image_18082025_22_33_35_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/22/33/image_18082025_22_33_25_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/22/33/image_18082025_22_33_14_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/22/32/image_18082025_22_32_44_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/22/32/image_18082025_22_32_35_10634.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/22/33/image_18082025_22_33_44_9628.jpg', '/home/nano/Desktop/images/18082025/22/33/image_18082025_22_33_35_9630.jpg', '/home/nano/Desktop/images/18082025/22/33/image_18082025_22_33_25_10639.jpg', '/home/nano/Desktop/images/18082025/22/33/image_18082025_22_33_14_9652.jpg', '/home/nano/Desktop/images/18082025/22/32/image_18082025_22_32_44_9630.jpg', '/home/nano/Desktop/images/18082025/22/32/image_18082025_22_32_35_10634.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/22/33/image_18082025_22_33_44_9628.jpg
/home/nano/Desktop/images/18082025/22/33/image_18082025_22_33_35_9630.jpg
/home/nano/Desktop/images/18082025/22/33/image_18082025_22_33_25_10639.jpg
/home/nano/Desktop/images/18082025/22/33/image_18082025_22_33_14_9652.jpg
/home/nano/Desktop/images/18082025/22/32/image_18082025_22_32_44_9630.jpg
/home/nano/Desktop/images/18082025/22/32/image_18082025_22_32_35_10634.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377721350","1377721367","1377721355","1377721358","1377721352","1377721363"],"photo_ids_order":["1377721350","1377721352","1377721355","1377721358","1377721363","1377721367"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/65d033961b2ce4d7e4023a6f9a0e933c.jpg","text":"TemporaryFile(/tmp/multipartBody8637883762096054306asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552904548,"filename":"image_18082025_22_33_44_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b51c60f774c786e1b64def0edb081297.jpg","text":"TemporaryFile(/tmp/multipartBody3475046371695332886asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552904548,"filename":"image_18082025_22_32_35_10634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1cde0fe94cd4e24dc7e5de0bcf79d531.jpg","text":"TemporaryFile(/tmp/multipartBody7510269743970524160asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552904548,"filename":"image_18082025_22_33_25_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8fd3ba88e3ee6a09302e17de8bfee584.jpg","text":"TemporaryFile(/tmp/multipartBody3942228532821070342asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552904548,"filename":"image_18082025_22_33_14_9652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/32b323dfaa790685cc28856dcd80c26a.jpg","text":"TemporaryFile(/tmp/multipartBody6975741389448089140asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552904548,"filename":"image_18082025_22_33_35_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6077f326c08bb7630935c2069d53ed3a.jpg","text":"TemporaryFile(/tmp/multipartBody912873491977452583asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552904548,"filename":"image_18082025_22_32_44_9630.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377721355","file1":"1377721352","file0":"1377721350","file4":"1377721363","file5":"1377721367","file3":"1377721358"},"map_files_photo_id_array":[{"photo_id":"1377721367","filename":"file5"},{"photo_id":"1377721355","filename":"file2"},{"photo_id":"1377721363","filename":"file4"},{"photo_id":"1377721352","filename":"file1"},{"photo_id":"1377721350","filename":"file0"},{"photo_id":"1377721358","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377721350":["hashtag1","hashtag2"]},{"1377721367":["hashtag1","hashtag2"]},{"1377721355":["hashtag1","hashtag2"]},{"1377721358":["hashtag1","hashtag2"]},{"1377721352":["hashtag1","hashtag2"]},{"1377721363":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377721350, 1377721367, 1377721355, 1377721358, 1377721352, 1377721363)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.0576274394989 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:34:47.185112
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/34/image_18082025_23_34_14_9685.jpg', 2), ('/home/nano/Desktop/images/18082025/23/33/image_18082025_23_34_05_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/23/33/image_18082025_23_33_54_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/22/32/image_18082025_22_32_14_9665.jpg', 2), ('/home/nano/Desktop/images/18082025/22/31/image_18082025_22_32_05_10655.jpg', 2), ('/home/nano/Desktop/images/18082025/22/31/image_18082025_22_31_54_9650.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/34/image_18082025_23_34_14_9685.jpg', '/home/nano/Desktop/images/18082025/23/33/image_18082025_23_34_05_10658.jpg', '/home/nano/Desktop/images/18082025/23/33/image_18082025_23_33_54_9627.jpg', '/home/nano/Desktop/images/18082025/22/32/image_18082025_22_32_14_9665.jpg', '/home/nano/Desktop/images/18082025/22/31/image_18082025_22_32_05_10655.jpg', '/home/nano/Desktop/images/18082025/22/31/image_18082025_22_31_54_9650.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/34/image_18082025_23_34_14_9685.jpg
/home/nano/Desktop/images/18082025/23/33/image_18082025_23_34_05_10658.jpg
/home/nano/Desktop/images/18082025/23/33/image_18082025_23_33_54_9627.jpg
/home/nano/Desktop/images/18082025/22/32/image_18082025_22_32_14_9665.jpg
/home/nano/Desktop/images/18082025/22/31/image_18082025_22_32_05_10655.jpg
/home/nano/Desktop/images/18082025/22/31/image_18082025_22_31_54_9650.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377721380","1377721383","1377721385","1377721388","1377721378","1377721392"],"photo_ids_order":["1377721378","1377721380","1377721383","1377721385","1377721388","1377721392"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f10737d016909ce4e0f05fb9e241079b.jpg","text":"TemporaryFile(/tmp/multipartBody6872340679467111646asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552948553,"filename":"image_18082025_23_34_05_10658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1cc29636e12351cae5c185c706b0cb57.jpg","text":"TemporaryFile(/tmp/multipartBody8486142462236695806asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552948553,"filename":"image_18082025_23_33_54_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6f6e7ef25d52ea6d3ce5beebd4c9042a.jpg","text":"TemporaryFile(/tmp/multipartBody8468313958443297297asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552948553,"filename":"image_18082025_22_32_14_9665.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ffab63fe55cdf24176b473f8be22d068.jpg","text":"TemporaryFile(/tmp/multipartBody1871119831744589873asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552948553,"filename":"image_18082025_22_32_05_10655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c50a9ede10b454d6e2c3a839b1b29a43.jpg","text":"TemporaryFile(/tmp/multipartBody3477071665006614738asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552948553,"filename":"image_18082025_23_34_14_9685.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0770ad0d09dea03dc8e8d85f2ca177f4.jpg","text":"TemporaryFile(/tmp/multipartBody3758952536523095099asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552948553,"filename":"image_18082025_22_31_54_9650.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377721383","file1":"1377721380","file0":"1377721378","file4":"1377721388","file5":"1377721392","file3":"1377721385"},"map_files_photo_id_array":[{"photo_id":"1377721392","filename":"file5"},{"photo_id":"1377721383","filename":"file2"},{"photo_id":"1377721388","filename":"file4"},{"photo_id":"1377721380","filename":"file1"},{"photo_id":"1377721378","filename":"file0"},{"photo_id":"1377721385","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377721380":["hashtag1","hashtag2"]},{"1377721383":["hashtag1","hashtag2"]},{"1377721385":["hashtag1","hashtag2"]},{"1377721388":["hashtag1","hashtag2"]},{"1377721378":["hashtag1","hashtag2"]},{"1377721392":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377721380, 1377721383, 1377721385, 1377721388, 1377721378, 1377721392)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.708295345306396 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:35:32.304202
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/35/image_18082025_23_35_44_9638.jpg', 2), ('/home/nano/Desktop/images/18082025/23/35/image_18082025_23_35_25_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/23/34/image_18082025_23_35_05_9650.jpg', 2), ('/home/nano/Desktop/images/18082025/23/34/image_18082025_23_34_55_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/22/31/image_18082025_22_31_35_10636.jpg', 2), ('/home/nano/Desktop/images/18082025/22/31/image_18082025_22_31_15_9637.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/35/image_18082025_23_35_44_9638.jpg', '/home/nano/Desktop/images/18082025/23/35/image_18082025_23_35_25_10660.jpg', '/home/nano/Desktop/images/18082025/23/34/image_18082025_23_35_05_9650.jpg', '/home/nano/Desktop/images/18082025/23/34/image_18082025_23_34_55_10642.jpg', '/home/nano/Desktop/images/18082025/22/31/image_18082025_22_31_35_10636.jpg', '/home/nano/Desktop/images/18082025/22/31/image_18082025_22_31_15_9637.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/35/image_18082025_23_35_44_9638.jpg
/home/nano/Desktop/images/18082025/23/35/image_18082025_23_35_25_10660.jpg
/home/nano/Desktop/images/18082025/23/34/image_18082025_23_35_05_9650.jpg
/home/nano/Desktop/images/18082025/23/34/image_18082025_23_34_55_10642.jpg
/home/nano/Desktop/images/18082025/22/31/image_18082025_22_31_35_10636.jpg
/home/nano/Desktop/images/18082025/22/31/image_18082025_22_31_15_9637.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377721405","1377721410","1377721407","1377721401","1377721403","1377721412"],"photo_ids_order":["1377721401","1377721403","1377721405","1377721407","1377721410","1377721412"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/db9ceea481dcd29b1fc40f800516ccc0.jpg","text":"TemporaryFile(/tmp/multipartBody3794154756568983078asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552993811,"filename":"image_18082025_23_35_05_9650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c0e38b7c0f5709435be657ffe4f78745.jpg","text":"TemporaryFile(/tmp/multipartBody1759503340729622710asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552993811,"filename":"image_18082025_22_31_35_10636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/105cf7dce1403708d888184257fb765f.jpg","text":"TemporaryFile(/tmp/multipartBody8540588599297060180asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552993811,"filename":"image_18082025_23_34_55_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7f2d8c480d0a0e137b66bd03391b2718.jpg","text":"TemporaryFile(/tmp/multipartBody7581975055026193413asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552993811,"filename":"image_18082025_23_35_44_9638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/97fa3f9b1f2c663a212453c3a2f4ee5e.jpg","text":"TemporaryFile(/tmp/multipartBody2264938119983903590asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552993811,"filename":"image_18082025_23_35_25_10660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1f83392195c6a10fe6d6291264b1e57e.jpg","text":"TemporaryFile(/tmp/multipartBody5693134962244292048asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755552993811,"filename":"image_18082025_22_31_15_9637.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377721405","file1":"1377721403","file0":"1377721401","file4":"1377721410","file5":"1377721412","file3":"1377721407"},"map_files_photo_id_array":[{"photo_id":"1377721412","filename":"file5"},{"photo_id":"1377721405","filename":"file2"},{"photo_id":"1377721410","filename":"file4"},{"photo_id":"1377721403","filename":"file1"},{"photo_id":"1377721401","filename":"file0"},{"photo_id":"1377721407","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377721405":["hashtag1","hashtag2"]},{"1377721410":["hashtag1","hashtag2"]},{"1377721407":["hashtag1","hashtag2"]},{"1377721401":["hashtag1","hashtag2"]},{"1377721403":["hashtag1","hashtag2"]},{"1377721412":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377721405, 1377721410, 1377721407, 1377721401, 1377721403, 1377721412)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.408536911010742 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:36:17.443284
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/36/image_18082025_23_36_44_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/23/36/image_18082025_23_36_34_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/23/36/image_18082025_23_36_25_10645.jpg', 2), ('/home/nano/Desktop/images/18082025/23/35/image_18082025_23_36_05_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/23/35/image_18082025_23_35_55_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/22/30/image_18082025_22_30_54_9650.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/36/image_18082025_23_36_44_9632.jpg', '/home/nano/Desktop/images/18082025/23/36/image_18082025_23_36_34_9627.jpg', '/home/nano/Desktop/images/18082025/23/36/image_18082025_23_36_25_10645.jpg', '/home/nano/Desktop/images/18082025/23/35/image_18082025_23_36_05_9632.jpg', '/home/nano/Desktop/images/18082025/23/35/image_18082025_23_35_55_10642.jpg', '/home/nano/Desktop/images/18082025/22/30/image_18082025_22_30_54_9650.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/36/image_18082025_23_36_44_9632.jpg
/home/nano/Desktop/images/18082025/23/36/image_18082025_23_36_34_9627.jpg
/home/nano/Desktop/images/18082025/23/36/image_18082025_23_36_25_10645.jpg
/home/nano/Desktop/images/18082025/23/35/image_18082025_23_36_05_9632.jpg
/home/nano/Desktop/images/18082025/23/35/image_18082025_23_35_55_10642.jpg
/home/nano/Desktop/images/18082025/22/30/image_18082025_22_30_54_9650.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377721431","1377721425","1377721434","1377721428","1377721433","1377721432"],"photo_ids_order":["1377721425","1377721428","1377721431","1377721432","1377721433","1377721434"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/488ea69403391b8f531a18962b347d52.jpg","text":"TemporaryFile(/tmp/multipartBody5252722365289882495asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553039646,"filename":"image_18082025_23_36_25_10645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e0bbc3bdd2fa14aa113cd67a2ecca5ed.jpg","text":"TemporaryFile(/tmp/multipartBody2057494697063102943asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553039646,"filename":"image_18082025_23_36_44_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/50826f0caeae390cadfadc442c108ce7.jpg","text":"TemporaryFile(/tmp/multipartBody4231684156434204781asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553039646,"filename":"image_18082025_22_30_54_9650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8438d8e182bfb885aa4f74a82ea3ae70.jpg","text":"TemporaryFile(/tmp/multipartBody2033216966405967120asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553039646,"filename":"image_18082025_23_36_34_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ff3610c12999e66365057e16255404a1.jpg","text":"TemporaryFile(/tmp/multipartBody8895606070904569289asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553039646,"filename":"image_18082025_23_35_55_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f501e4dac2adb71f8e327be1c821a73c.jpg","text":"TemporaryFile(/tmp/multipartBody2009486862788101340asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553039646,"filename":"image_18082025_23_36_05_9632.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377721431","file1":"1377721428","file0":"1377721425","file4":"1377721433","file5":"1377721434","file3":"1377721432"},"map_files_photo_id_array":[{"photo_id":"1377721434","filename":"file5"},{"photo_id":"1377721431","filename":"file2"},{"photo_id":"1377721433","filename":"file4"},{"photo_id":"1377721428","filename":"file1"},{"photo_id":"1377721425","filename":"file0"},{"photo_id":"1377721432","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377721431":["hashtag1","hashtag2"]},{"1377721425":["hashtag1","hashtag2"]},{"1377721434":["hashtag1","hashtag2"]},{"1377721428":["hashtag1","hashtag2"]},{"1377721433":["hashtag1","hashtag2"]},{"1377721432":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377721431, 1377721425, 1377721434, 1377721428, 1377721433, 1377721432)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.488586902618408 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:37:03.284455
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/22/30/image_18082025_22_30_45_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/22/30/image_18082025_22_30_35_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/22/30/image_18082025_22_30_24_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/22/29/image_18082025_22_30_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/22/29/image_18082025_22_29_54_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/22/29/image_18082025_22_29_45_10641.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/22/30/image_18082025_22_30_45_9632.jpg', '/home/nano/Desktop/images/18082025/22/30/image_18082025_22_30_35_10639.jpg', '/home/nano/Desktop/images/18082025/22/30/image_18082025_22_30_24_9631.jpg', '/home/nano/Desktop/images/18082025/22/29/image_18082025_22_30_04_9651.jpg', '/home/nano/Desktop/images/18082025/22/29/image_18082025_22_29_54_9634.jpg', '/home/nano/Desktop/images/18082025/22/29/image_18082025_22_29_45_10641.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/22/30/image_18082025_22_30_45_9632.jpg
/home/nano/Desktop/images/18082025/22/30/image_18082025_22_30_35_10639.jpg
/home/nano/Desktop/images/18082025/22/30/image_18082025_22_30_24_9631.jpg
/home/nano/Desktop/images/18082025/22/29/image_18082025_22_30_04_9651.jpg
/home/nano/Desktop/images/18082025/22/29/image_18082025_22_29_54_9634.jpg
/home/nano/Desktop/images/18082025/22/29/image_18082025_22_29_45_10641.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377721442","1377721450","1377721444","1377721453","1377721447","1377721441"],"photo_ids_order":["1377721441","1377721442","1377721444","1377721447","1377721450","1377721453"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/18e1ec05e7f4917f90a2e7edc7f46194.jpg","text":"TemporaryFile(/tmp/multipartBody5250870852692945000asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553085142,"filename":"image_18082025_22_30_35_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/da9556d59e2faf6d1dde47bca60368c0.jpg","text":"TemporaryFile(/tmp/multipartBody4096149474944653914asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553085142,"filename":"image_18082025_22_29_54_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/df7d9ef61aa09593105e3ba9c5c912a8.jpg","text":"TemporaryFile(/tmp/multipartBody4106104808630770677asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553085142,"filename":"image_18082025_22_30_24_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9616b218d62f7ac8219f2340fbfa17ce.jpg","text":"TemporaryFile(/tmp/multipartBody1679681911912999371asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553085142,"filename":"image_18082025_22_29_45_10641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/25fa5cce1c4c15b3af308b8ab3b2a92b.jpg","text":"TemporaryFile(/tmp/multipartBody6411672026773661178asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553085142,"filename":"image_18082025_22_30_04_9651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4b4fa4d142b08a8cbbaadd84ec668138.jpg","text":"TemporaryFile(/tmp/multipartBody5302246828294140310asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553085142,"filename":"image_18082025_22_30_45_9632.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377721444","file1":"1377721442","file0":"1377721441","file4":"1377721450","file5":"1377721453","file3":"1377721447"},"map_files_photo_id_array":[{"photo_id":"1377721453","filename":"file5"},{"photo_id":"1377721444","filename":"file2"},{"photo_id":"1377721450","filename":"file4"},{"photo_id":"1377721442","filename":"file1"},{"photo_id":"1377721441","filename":"file0"},{"photo_id":"1377721447","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377721442":["hashtag1","hashtag2"]},{"1377721450":["hashtag1","hashtag2"]},{"1377721444":["hashtag1","hashtag2"]},{"1377721453":["hashtag1","hashtag2"]},{"1377721447":["hashtag1","hashtag2"]},{"1377721441":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377721442, 1377721450, 1377721444, 1377721453, 1377721447, 1377721441)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.587769985198975 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:37:47.507731
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/37/image_18082025_23_37_34_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/23/37/image_18082025_23_37_14_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/23/36/image_18082025_23_37_04_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/23/36/image_18082025_23_36_55_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/22/29/image_18082025_22_29_34_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/22/29/image_18082025_22_29_25_9632.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/37/image_18082025_23_37_34_9628.jpg', '/home/nano/Desktop/images/18082025/23/37/image_18082025_23_37_14_9655.jpg', '/home/nano/Desktop/images/18082025/23/36/image_18082025_23_37_04_9661.jpg', '/home/nano/Desktop/images/18082025/23/36/image_18082025_23_36_55_10638.jpg', '/home/nano/Desktop/images/18082025/22/29/image_18082025_22_29_34_9627.jpg', '/home/nano/Desktop/images/18082025/22/29/image_18082025_22_29_25_9632.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/37/image_18082025_23_37_34_9628.jpg
/home/nano/Desktop/images/18082025/23/37/image_18082025_23_37_14_9655.jpg
/home/nano/Desktop/images/18082025/23/36/image_18082025_23_37_04_9661.jpg
/home/nano/Desktop/images/18082025/23/36/image_18082025_23_36_55_10638.jpg
/home/nano/Desktop/images/18082025/22/29/image_18082025_22_29_34_9627.jpg
/home/nano/Desktop/images/18082025/22/29/image_18082025_22_29_25_9632.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.5252430438995361 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:38:03.120307
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/37/image_18082025_23_37_34_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/23/37/image_18082025_23_37_14_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/23/36/image_18082025_23_37_04_9661.jpg', 2), ('/home/nano/Desktop/images/18082025/23/36/image_18082025_23_36_55_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/22/29/image_18082025_22_29_34_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/22/29/image_18082025_22_29_25_9632.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/37/image_18082025_23_37_34_9628.jpg', '/home/nano/Desktop/images/18082025/23/37/image_18082025_23_37_14_9655.jpg', '/home/nano/Desktop/images/18082025/23/36/image_18082025_23_37_04_9661.jpg', '/home/nano/Desktop/images/18082025/23/36/image_18082025_23_36_55_10638.jpg', '/home/nano/Desktop/images/18082025/22/29/image_18082025_22_29_34_9627.jpg', '/home/nano/Desktop/images/18082025/22/29/image_18082025_22_29_25_9632.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/37/image_18082025_23_37_34_9628.jpg
/home/nano/Desktop/images/18082025/23/37/image_18082025_23_37_14_9655.jpg
/home/nano/Desktop/images/18082025/23/36/image_18082025_23_37_04_9661.jpg
/home/nano/Desktop/images/18082025/23/36/image_18082025_23_36_55_10638.jpg
/home/nano/Desktop/images/18082025/22/29/image_18082025_22_29_34_9627.jpg
/home/nano/Desktop/images/18082025/22/29/image_18082025_22_29_25_9632.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377721490","1377721484","1377721478","1377721487","1377721480","1377721474"],"photo_ids_order":["1377721474","1377721478","1377721480","1377721484","1377721487","1377721490"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4ac0129bea5fe0b39b1479857e0d530d.jpg","text":"TemporaryFile(/tmp/multipartBody363500345800824019asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553144483,"filename":"image_18082025_22_29_25_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/aa44c1f0ce31f68acda9bd5a2dd01306.jpg","text":"TemporaryFile(/tmp/multipartBody4988377301092043982asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553144483,"filename":"image_18082025_23_36_55_10638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/cad8ad074682617d4c4efe7913015c95.jpg","text":"TemporaryFile(/tmp/multipartBody6249293485456182159asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553144483,"filename":"image_18082025_23_37_14_9655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7f8b9348a0e9f55b61b2afb4dbeabffc.jpg","text":"TemporaryFile(/tmp/multipartBody6005524209174119016asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553144483,"filename":"image_18082025_22_29_34_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/668416798504adab968077106384c00c.jpg","text":"TemporaryFile(/tmp/multipartBody3379629963006700509asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553144483,"filename":"image_18082025_23_37_04_9661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/08e0381c92d9d16716c35df0415d0cb0.jpg","text":"TemporaryFile(/tmp/multipartBody408200134757199941asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553144483,"filename":"image_18082025_23_37_34_9628.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377721480","file1":"1377721478","file0":"1377721474","file4":"1377721487","file5":"1377721490","file3":"1377721484"},"map_files_photo_id_array":[{"photo_id":"1377721490","filename":"file5"},{"photo_id":"1377721480","filename":"file2"},{"photo_id":"1377721487","filename":"file4"},{"photo_id":"1377721478","filename":"file1"},{"photo_id":"1377721474","filename":"file0"},{"photo_id":"1377721484","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377721490":["hashtag1","hashtag2"]},{"1377721484":["hashtag1","hashtag2"]},{"1377721478":["hashtag1","hashtag2"]},{"1377721487":["hashtag1","hashtag2"]},{"1377721480":["hashtag1","hashtag2"]},{"1377721474":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377721490, 1377721484, 1377721478, 1377721487, 1377721480, 1377721474)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.22965049743652 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:38:47.629858
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/38/image_18082025_23_38_45_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/23/38/image_18082025_23_38_34_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/23/38/image_18082025_23_38_25_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/23/38/image_18082025_23_38_15_10662.jpg', 2), ('/home/nano/Desktop/images/18082025/23/37/image_18082025_23_38_04_9637.jpg', 2), ('/home/nano/Desktop/images/18082025/23/37/image_18082025_23_37_45_10642.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/38/image_18082025_23_38_45_10642.jpg', '/home/nano/Desktop/images/18082025/23/38/image_18082025_23_38_34_9629.jpg', '/home/nano/Desktop/images/18082025/23/38/image_18082025_23_38_25_9631.jpg', '/home/nano/Desktop/images/18082025/23/38/image_18082025_23_38_15_10662.jpg', '/home/nano/Desktop/images/18082025/23/37/image_18082025_23_38_04_9637.jpg', '/home/nano/Desktop/images/18082025/23/37/image_18082025_23_37_45_10642.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/38/image_18082025_23_38_45_10642.jpg
/home/nano/Desktop/images/18082025/23/38/image_18082025_23_38_34_9629.jpg
/home/nano/Desktop/images/18082025/23/38/image_18082025_23_38_25_9631.jpg
/home/nano/Desktop/images/18082025/23/38/image_18082025_23_38_15_10662.jpg
/home/nano/Desktop/images/18082025/23/37/image_18082025_23_38_04_9637.jpg
/home/nano/Desktop/images/18082025/23/37/image_18082025_23_37_45_10642.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377721504","1377721497","1377721499","1377721503","1377721507","1377721501"],"photo_ids_order":["1377721497","1377721499","1377721501","1377721503","1377721504","1377721507"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d5e2872e86ec34f5065bb9849051c6d2.jpg","text":"TemporaryFile(/tmp/multipartBody197403448249006523asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553188962,"filename":"image_18082025_23_38_04_9637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e5a298e71e3d92ebde48a2e81dd66316.jpg","text":"TemporaryFile(/tmp/multipartBody9128127730955897565asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553188962,"filename":"image_18082025_23_38_45_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4b5c808dd22a972daf1877b986e22ec0.jpg","text":"TemporaryFile(/tmp/multipartBody347496342293338172asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553188962,"filename":"image_18082025_23_38_34_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9dd6e3dd6c5afe6b0ec557e110d4f844.jpg","text":"TemporaryFile(/tmp/multipartBody2560714102975945769asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553188962,"filename":"image_18082025_23_38_15_10662.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e4737d46940189e9139dfefc58404835.jpg","text":"TemporaryFile(/tmp/multipartBody3229186853298503219asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553188962,"filename":"image_18082025_23_37_45_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c8358545136a90ed13b2708b3047f270.jpg","text":"TemporaryFile(/tmp/multipartBody1472350791345508793asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553188962,"filename":"image_18082025_23_38_25_9631.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377721501","file1":"1377721499","file0":"1377721497","file4":"1377721504","file5":"1377721507","file3":"1377721503"},"map_files_photo_id_array":[{"photo_id":"1377721507","filename":"file5"},{"photo_id":"1377721501","filename":"file2"},{"photo_id":"1377721504","filename":"file4"},{"photo_id":"1377721499","filename":"file1"},{"photo_id":"1377721497","filename":"file0"},{"photo_id":"1377721503","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377721504":["hashtag1","hashtag2"]},{"1377721497":["hashtag1","hashtag2"]},{"1377721499":["hashtag1","hashtag2"]},{"1377721503":["hashtag1","hashtag2"]},{"1377721507":["hashtag1","hashtag2"]},{"1377721501":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377721504, 1377721497, 1377721499, 1377721503, 1377721507, 1377721501)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.766762495040894 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:39:32.726012
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/39/image_18082025_23_39_45_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/23/39/image_18082025_23_39_35_10638.jpg', 2), ('/home/nano/Desktop/images/18082025/23/39/image_18082025_23_39_15_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/23/38/image_18082025_23_39_04_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/23/38/image_18082025_23_38_54_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/22/29/image_18082025_22_29_15_10682.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/39/image_18082025_23_39_45_9629.jpg', '/home/nano/Desktop/images/18082025/23/39/image_18082025_23_39_35_10638.jpg', '/home/nano/Desktop/images/18082025/23/39/image_18082025_23_39_15_10660.jpg', '/home/nano/Desktop/images/18082025/23/38/image_18082025_23_39_04_9627.jpg', '/home/nano/Desktop/images/18082025/23/38/image_18082025_23_38_54_9632.jpg', '/home/nano/Desktop/images/18082025/22/29/image_18082025_22_29_15_10682.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/39/image_18082025_23_39_45_9629.jpg
/home/nano/Desktop/images/18082025/23/39/image_18082025_23_39_35_10638.jpg
/home/nano/Desktop/images/18082025/23/39/image_18082025_23_39_15_10660.jpg
/home/nano/Desktop/images/18082025/23/38/image_18082025_23_39_04_9627.jpg
/home/nano/Desktop/images/18082025/23/38/image_18082025_23_38_54_9632.jpg
/home/nano/Desktop/images/18082025/22/29/image_18082025_22_29_15_10682.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377721530","1377721524","1377721526","1377721531","1377721528","1377721522"],"photo_ids_order":["1377721522","1377721524","1377721526","1377721528","1377721530","1377721531"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d27e0d8b4eed5089439b3bebe315e373.jpg","text":"TemporaryFile(/tmp/multipartBody5484033783183242258asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553234228,"filename":"image_18082025_23_38_54_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/246f0b0ab896ca9b1c459a466e4d12ae.jpg","text":"TemporaryFile(/tmp/multipartBody6029877152781792307asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553234228,"filename":"image_18082025_23_39_35_10638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ca3b3309b45d06f0b6ee46f495f69e41.jpg","text":"TemporaryFile(/tmp/multipartBody3812438716352442992asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553234228,"filename":"image_18082025_23_39_15_10660.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a8952d27a16f830118cecd01fc903217.jpg","text":"TemporaryFile(/tmp/multipartBody6436259201758405292asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553234228,"filename":"image_18082025_22_29_15_10682.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c6de546c14dcaae0e414328ce2ed42fe.jpg","text":"TemporaryFile(/tmp/multipartBody7839238433836500244asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553234228,"filename":"image_18082025_23_39_04_9627.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4d2d4122e6b3d6918502220da1a40fe9.jpg","text":"TemporaryFile(/tmp/multipartBody5398957378493161756asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553234228,"filename":"image_18082025_23_39_45_9629.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377721526","file1":"1377721524","file0":"1377721522","file4":"1377721530","file5":"1377721531","file3":"1377721528"},"map_files_photo_id_array":[{"photo_id":"1377721531","filename":"file5"},{"photo_id":"1377721526","filename":"file2"},{"photo_id":"1377721530","filename":"file4"},{"photo_id":"1377721524","filename":"file1"},{"photo_id":"1377721522","filename":"file0"},{"photo_id":"1377721528","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377721530":["hashtag1","hashtag2"]},{"1377721524":["hashtag1","hashtag2"]},{"1377721526":["hashtag1","hashtag2"]},{"1377721531":["hashtag1","hashtag2"]},{"1377721528":["hashtag1","hashtag2"]},{"1377721522":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377721530, 1377721524, 1377721526, 1377721531, 1377721528, 1377721522)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.734729528427124 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:40:16.816081
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/40/image_18082025_23_40_44_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/23/40/image_18082025_23_40_24_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/23/40/image_18082025_23_40_15_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/23/39/image_18082025_23_40_05_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/23/39/image_18082025_23_39_54_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/22/28/image_18082025_22_28_55_9632.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/40/image_18082025_23_40_44_9629.jpg', '/home/nano/Desktop/images/18082025/23/40/image_18082025_23_40_24_9633.jpg', '/home/nano/Desktop/images/18082025/23/40/image_18082025_23_40_15_9645.jpg', '/home/nano/Desktop/images/18082025/23/39/image_18082025_23_40_05_10650.jpg', '/home/nano/Desktop/images/18082025/23/39/image_18082025_23_39_54_9634.jpg', '/home/nano/Desktop/images/18082025/22/28/image_18082025_22_28_55_9632.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/40/image_18082025_23_40_44_9629.jpg
/home/nano/Desktop/images/18082025/23/40/image_18082025_23_40_24_9633.jpg
/home/nano/Desktop/images/18082025/23/40/image_18082025_23_40_15_9645.jpg
/home/nano/Desktop/images/18082025/23/39/image_18082025_23_40_05_10650.jpg
/home/nano/Desktop/images/18082025/23/39/image_18082025_23_39_54_9634.jpg
/home/nano/Desktop/images/18082025/22/28/image_18082025_22_28_55_9632.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377721542","1377721545","1377721539","1377721543","1377721540","1377721537"],"photo_ids_order":["1377721537","1377721539","1377721540","1377721542","1377721543","1377721545"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/59ca4fa0ef954abad014403d06a8c934.jpg","text":"TemporaryFile(/tmp/multipartBody2423841141306272261asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553278293,"filename":"image_18082025_23_40_05_10650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0bd71da10a1937ef2e8d7884ca399445.jpg","text":"TemporaryFile(/tmp/multipartBody6080660966447687139asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553278293,"filename":"image_18082025_22_28_55_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d092c21545a10ae6901135b4f494afe2.jpg","text":"TemporaryFile(/tmp/multipartBody7896527571770514943asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553278293,"filename":"image_18082025_23_40_24_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dd4a389333735fa94e0cdfbce34bd125.jpg","text":"TemporaryFile(/tmp/multipartBody2413545832502750101asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553278293,"filename":"image_18082025_23_39_54_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1ac9f0ee52528979087113a87b617531.jpg","text":"TemporaryFile(/tmp/multipartBody366665210406333322asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553278293,"filename":"image_18082025_23_40_15_9645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/038c00bea20cd1f6c6b3068518d5d952.jpg","text":"TemporaryFile(/tmp/multipartBody3177815855508841251asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553278293,"filename":"image_18082025_23_40_44_9629.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377721540","file1":"1377721539","file0":"1377721537","file4":"1377721543","file5":"1377721545","file3":"1377721542"},"map_files_photo_id_array":[{"photo_id":"1377721545","filename":"file5"},{"photo_id":"1377721540","filename":"file2"},{"photo_id":"1377721543","filename":"file4"},{"photo_id":"1377721539","filename":"file1"},{"photo_id":"1377721537","filename":"file0"},{"photo_id":"1377721542","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377721542":["hashtag1","hashtag2"]},{"1377721545":["hashtag1","hashtag2"]},{"1377721539":["hashtag1","hashtag2"]},{"1377721543":["hashtag1","hashtag2"]},{"1377721540":["hashtag1","hashtag2"]},{"1377721537":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377721542, 1377721545, 1377721539, 1377721543, 1377721540, 1377721537)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.82113528251648 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:41:02.544176
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/22/28/image_18082025_22_28_45_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/22/28/image_18082025_22_28_34_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/22/28/image_18082025_22_28_25_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/22/28/image_18082025_22_28_14_9655.jpg', 2), ('/home/nano/Desktop/images/18082025/22/27/image_18082025_22_27_55_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/22/27/image_18082025_22_27_44_9633.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/22/28/image_18082025_22_28_45_10642.jpg', '/home/nano/Desktop/images/18082025/22/28/image_18082025_22_28_34_9629.jpg', '/home/nano/Desktop/images/18082025/22/28/image_18082025_22_28_25_10637.jpg', '/home/nano/Desktop/images/18082025/22/28/image_18082025_22_28_14_9655.jpg', '/home/nano/Desktop/images/18082025/22/27/image_18082025_22_27_55_10641.jpg', '/home/nano/Desktop/images/18082025/22/27/image_18082025_22_27_44_9633.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/22/28/image_18082025_22_28_45_10642.jpg
/home/nano/Desktop/images/18082025/22/28/image_18082025_22_28_34_9629.jpg
/home/nano/Desktop/images/18082025/22/28/image_18082025_22_28_25_10637.jpg
/home/nano/Desktop/images/18082025/22/28/image_18082025_22_28_14_9655.jpg
/home/nano/Desktop/images/18082025/22/27/image_18082025_22_27_55_10641.jpg
/home/nano/Desktop/images/18082025/22/27/image_18082025_22_27_44_9633.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377721560","1377721563","1377721557","1377721565","1377721564","1377721567"],"photo_ids_order":["1377721557","1377721560","1377721563","1377721564","1377721565","1377721567"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4b9467be2bc625a8f71bfa257f34ee92.jpg","text":"TemporaryFile(/tmp/multipartBody7185273178700350308asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553323952,"filename":"image_18082025_22_28_34_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c39009afdac49a0c0eebd627401661c4.jpg","text":"TemporaryFile(/tmp/multipartBody8976782299584713065asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553323952,"filename":"image_18082025_22_28_25_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/65ac57ae082e98f4eb2312c3c6f99227.jpg","text":"TemporaryFile(/tmp/multipartBody8057944909746804140asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553323952,"filename":"image_18082025_22_28_45_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a5f2232a3bb1e5d5435cb20645b789d2.jpg","text":"TemporaryFile(/tmp/multipartBody6158730291267651600asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553323952,"filename":"image_18082025_22_27_55_10641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/40f8a134bbd69d1a5f81e46308ef679d.jpg","text":"TemporaryFile(/tmp/multipartBody6544391851262091378asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553323952,"filename":"image_18082025_22_28_14_9655.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/65c5b6578de78853e45e81e7a187cadd.jpg","text":"TemporaryFile(/tmp/multipartBody5430733332875261848asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553323952,"filename":"image_18082025_22_27_44_9633.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377721563","file1":"1377721560","file0":"1377721557","file4":"1377721565","file5":"1377721567","file3":"1377721564"},"map_files_photo_id_array":[{"photo_id":"1377721567","filename":"file5"},{"photo_id":"1377721563","filename":"file2"},{"photo_id":"1377721565","filename":"file4"},{"photo_id":"1377721560","filename":"file1"},{"photo_id":"1377721557","filename":"file0"},{"photo_id":"1377721564","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377721560":["hashtag1","hashtag2"]},{"1377721563":["hashtag1","hashtag2"]},{"1377721557":["hashtag1","hashtag2"]},{"1377721565":["hashtag1","hashtag2"]},{"1377721564":["hashtag1","hashtag2"]},{"1377721567":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377721560, 1377721563, 1377721557, 1377721565, 1377721564, 1377721567)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.12541937828064 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:41:46.920935
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/41/image_18082025_23_41_44_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/23/41/image_18082025_23_41_35_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/23/41/image_18082025_23_41_25_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/23/41/image_18082025_23_41_14_9636.jpg', 2), ('/home/nano/Desktop/images/18082025/23/40/image_18082025_23_41_05_10650.jpg', 2), ('/home/nano/Desktop/images/18082025/23/40/image_18082025_23_40_54_9650.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/41/image_18082025_23_41_44_9636.jpg', '/home/nano/Desktop/images/18082025/23/41/image_18082025_23_41_35_9631.jpg', '/home/nano/Desktop/images/18082025/23/41/image_18082025_23_41_25_10642.jpg', '/home/nano/Desktop/images/18082025/23/41/image_18082025_23_41_14_9636.jpg', '/home/nano/Desktop/images/18082025/23/40/image_18082025_23_41_05_10650.jpg', '/home/nano/Desktop/images/18082025/23/40/image_18082025_23_40_54_9650.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/41/image_18082025_23_41_44_9636.jpg
/home/nano/Desktop/images/18082025/23/41/image_18082025_23_41_35_9631.jpg
/home/nano/Desktop/images/18082025/23/41/image_18082025_23_41_25_10642.jpg
/home/nano/Desktop/images/18082025/23/41/image_18082025_23_41_14_9636.jpg
/home/nano/Desktop/images/18082025/23/40/image_18082025_23_41_05_10650.jpg
/home/nano/Desktop/images/18082025/23/40/image_18082025_23_40_54_9650.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377721575","1377721577","1377721580","1377721574","1377721576","1377721573"],"photo_ids_order":["1377721573","1377721574","1377721575","1377721576","1377721577","1377721580"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e9fd40324849c5dfff627747a135c503.jpg","text":"TemporaryFile(/tmp/multipartBody6328652986037034230asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553368476,"filename":"image_18082025_23_41_25_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ce5c4162c5304dfbaa09c5adf28cf476.jpg","text":"TemporaryFile(/tmp/multipartBody2273046502233611893asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553368476,"filename":"image_18082025_23_41_05_10650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0c3c03e8f52fd7d4697d9cae53c2d3b2.jpg","text":"TemporaryFile(/tmp/multipartBody8196168936782905763asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553368476,"filename":"image_18082025_23_40_54_9650.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5bac37f376668040e26502bdc42496f1.jpg","text":"TemporaryFile(/tmp/multipartBody4636042251722537358asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553368476,"filename":"image_18082025_23_41_35_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/62d90ee0b24956e7dcf2ce550a235107.jpg","text":"TemporaryFile(/tmp/multipartBody6798521945505079860asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553368476,"filename":"image_18082025_23_41_14_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d77b9a5ed43835ce7272f56210d66cd5.jpg","text":"TemporaryFile(/tmp/multipartBody2133890521686908552asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553368476,"filename":"image_18082025_23_41_44_9636.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377721575","file1":"1377721574","file0":"1377721573","file4":"1377721577","file5":"1377721580","file3":"1377721576"},"map_files_photo_id_array":[{"photo_id":"1377721580","filename":"file5"},{"photo_id":"1377721575","filename":"file2"},{"photo_id":"1377721577","filename":"file4"},{"photo_id":"1377721574","filename":"file1"},{"photo_id":"1377721573","filename":"file0"},{"photo_id":"1377721576","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377721575":["hashtag1","hashtag2"]},{"1377721577":["hashtag1","hashtag2"]},{"1377721580":["hashtag1","hashtag2"]},{"1377721574":["hashtag1","hashtag2"]},{"1377721576":["hashtag1","hashtag2"]},{"1377721573":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377721575, 1377721577, 1377721580, 1377721574, 1377721576, 1377721573)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.537678956985474 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:42:32.027029
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/42/image_18082025_23_42_35_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/23/42/image_18082025_23_42_14_9653.jpg', 2), ('/home/nano/Desktop/images/18082025/23/41/image_18082025_23_42_05_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/23/41/image_18082025_23_41_55_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/22/27/image_18082025_22_27_35_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/22/27/image_18082025_22_27_25_10639.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/42/image_18082025_23_42_35_9631.jpg', '/home/nano/Desktop/images/18082025/23/42/image_18082025_23_42_14_9653.jpg', '/home/nano/Desktop/images/18082025/23/41/image_18082025_23_42_05_9634.jpg', '/home/nano/Desktop/images/18082025/23/41/image_18082025_23_41_55_10639.jpg', '/home/nano/Desktop/images/18082025/22/27/image_18082025_22_27_35_9630.jpg', '/home/nano/Desktop/images/18082025/22/27/image_18082025_22_27_25_10639.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/42/image_18082025_23_42_35_9631.jpg
/home/nano/Desktop/images/18082025/23/42/image_18082025_23_42_14_9653.jpg
/home/nano/Desktop/images/18082025/23/41/image_18082025_23_42_05_9634.jpg
/home/nano/Desktop/images/18082025/23/41/image_18082025_23_41_55_10639.jpg
/home/nano/Desktop/images/18082025/22/27/image_18082025_22_27_35_9630.jpg
/home/nano/Desktop/images/18082025/22/27/image_18082025_22_27_25_10639.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377721593","1377721595","1377721601","1377721594","1377721597","1377721599"],"photo_ids_order":["1377721593","1377721594","1377721595","1377721597","1377721599","1377721601"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/edd4ec6c7336ef0680c3a41ab78821ac.jpg","text":"TemporaryFile(/tmp/multipartBody1628242660725995621asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553413443,"filename":"image_18082025_23_42_35_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/af3831dd3a1f40d3fcd9448844b81842.jpg","text":"TemporaryFile(/tmp/multipartBody7141780652212922120asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553413443,"filename":"image_18082025_23_42_05_9634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dd7355f4b11c61ab95bff9a085da441d.jpg","text":"TemporaryFile(/tmp/multipartBody8775726942924776493asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553413443,"filename":"image_18082025_22_27_25_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3d356cd65de35cd2c3019f54de3d237e.jpg","text":"TemporaryFile(/tmp/multipartBody6206469524096221309asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553413443,"filename":"image_18082025_23_42_14_9653.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0ce63d779fdbd4477ca2d71696e68df7.jpg","text":"TemporaryFile(/tmp/multipartBody8239276206567744734asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553413443,"filename":"image_18082025_23_41_55_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f03d8a64e74cc8fd4d294679f093a5c4.jpg","text":"TemporaryFile(/tmp/multipartBody3485091727493374749asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553413443,"filename":"image_18082025_22_27_35_9630.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377721595","file1":"1377721594","file0":"1377721593","file4":"1377721599","file5":"1377721601","file3":"1377721597"},"map_files_photo_id_array":[{"photo_id":"1377721601","filename":"file5"},{"photo_id":"1377721595","filename":"file2"},{"photo_id":"1377721599","filename":"file4"},{"photo_id":"1377721594","filename":"file1"},{"photo_id":"1377721593","filename":"file0"},{"photo_id":"1377721597","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377721593":["hashtag1","hashtag2"]},{"1377721595":["hashtag1","hashtag2"]},{"1377721601":["hashtag1","hashtag2"]},{"1377721594":["hashtag1","hashtag2"]},{"1377721597":["hashtag1","hashtag2"]},{"1377721599":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377721593, 1377721595, 1377721601, 1377721594, 1377721597, 1377721599)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.675267219543457 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:43:17.168803
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/43/image_18082025_23_43_45_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/23/43/image_18082025_23_43_34_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/23/43/image_18082025_23_43_25_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/23/43/image_18082025_23_43_14_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/23/42/image_18082025_23_43_04_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/23/42/image_18082025_23_42_55_10644.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/43/image_18082025_23_43_45_10656.jpg', '/home/nano/Desktop/images/18082025/23/43/image_18082025_23_43_34_9633.jpg', '/home/nano/Desktop/images/18082025/23/43/image_18082025_23_43_25_10644.jpg', '/home/nano/Desktop/images/18082025/23/43/image_18082025_23_43_14_9652.jpg', '/home/nano/Desktop/images/18082025/23/42/image_18082025_23_43_04_9640.jpg', '/home/nano/Desktop/images/18082025/23/42/image_18082025_23_42_55_10644.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/43/image_18082025_23_43_45_10656.jpg
/home/nano/Desktop/images/18082025/23/43/image_18082025_23_43_34_9633.jpg
/home/nano/Desktop/images/18082025/23/43/image_18082025_23_43_25_10644.jpg
/home/nano/Desktop/images/18082025/23/43/image_18082025_23_43_14_9652.jpg
/home/nano/Desktop/images/18082025/23/42/image_18082025_23_43_04_9640.jpg
/home/nano/Desktop/images/18082025/23/42/image_18082025_23_42_55_10644.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377721623","1377721611","1377721613","1377721616","1377721619","1377721621"],"photo_ids_order":["1377721611","1377721613","1377721616","1377721619","1377721621","1377721623"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/676759f7263fc3f5a3711c840091e889.jpg","text":"TemporaryFile(/tmp/multipartBody6560175627410552759asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553458722,"filename":"image_18082025_23_42_55_10644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c342ad2211e60482fe2c514b498aabab.jpg","text":"TemporaryFile(/tmp/multipartBody4947554895984449271asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553458722,"filename":"image_18082025_23_43_45_10656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c54d1cd94bda7e1753010770f48008f4.jpg","text":"TemporaryFile(/tmp/multipartBody1194126962163288839asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553458722,"filename":"image_18082025_23_43_34_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/186df054e9521e1f7ccd7f1ae9a6e8f5.jpg","text":"TemporaryFile(/tmp/multipartBody999451152898475940asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553458722,"filename":"image_18082025_23_43_25_10644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3d45e10a54f8c06df9b0844ac6cce9bb.jpg","text":"TemporaryFile(/tmp/multipartBody8723116553029405179asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553458722,"filename":"image_18082025_23_43_14_9652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/13e0512a11b742de026598e13d8747f4.jpg","text":"TemporaryFile(/tmp/multipartBody3911600182867455900asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553458722,"filename":"image_18082025_23_43_04_9640.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377721616","file1":"1377721613","file0":"1377721611","file4":"1377721621","file5":"1377721623","file3":"1377721619"},"map_files_photo_id_array":[{"photo_id":"1377721623","filename":"file5"},{"photo_id":"1377721616","filename":"file2"},{"photo_id":"1377721621","filename":"file4"},{"photo_id":"1377721613","filename":"file1"},{"photo_id":"1377721611","filename":"file0"},{"photo_id":"1377721619","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377721623":["hashtag1","hashtag2"]},{"1377721611":["hashtag1","hashtag2"]},{"1377721613":["hashtag1","hashtag2"]},{"1377721616":["hashtag1","hashtag2"]},{"1377721619":["hashtag1","hashtag2"]},{"1377721621":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377721623, 1377721611, 1377721613, 1377721616, 1377721619, 1377721621)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.5771906375885 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:44:02.714095
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/22/26/image_18082025_22_27_05_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/22/26/image_18082025_22_26_55_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/22/26/image_18082025_22_26_44_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/22/26/image_18082025_22_26_35_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/22/26/image_18082025_22_26_25_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/22/26/image_18082025_22_26_14_9676.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/22/26/image_18082025_22_27_05_9641.jpg', '/home/nano/Desktop/images/18082025/22/26/image_18082025_22_26_55_10642.jpg', '/home/nano/Desktop/images/18082025/22/26/image_18082025_22_26_44_9632.jpg', '/home/nano/Desktop/images/18082025/22/26/image_18082025_22_26_35_9630.jpg', '/home/nano/Desktop/images/18082025/22/26/image_18082025_22_26_25_10656.jpg', '/home/nano/Desktop/images/18082025/22/26/image_18082025_22_26_14_9676.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/22/26/image_18082025_22_27_05_9641.jpg
/home/nano/Desktop/images/18082025/22/26/image_18082025_22_26_55_10642.jpg
/home/nano/Desktop/images/18082025/22/26/image_18082025_22_26_44_9632.jpg
/home/nano/Desktop/images/18082025/22/26/image_18082025_22_26_35_9630.jpg
/home/nano/Desktop/images/18082025/22/26/image_18082025_22_26_25_10656.jpg
/home/nano/Desktop/images/18082025/22/26/image_18082025_22_26_14_9676.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377721641","1377721629","1377721625","1377721639","1377721633","1377721636"],"photo_ids_order":["1377721625","1377721629","1377721633","1377721636","1377721639","1377721641"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/310c7794a53317cbb854f10d7ffb5bb0.jpg","text":"TemporaryFile(/tmp/multipartBody1903571925458753001asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553504253,"filename":"image_18082025_22_26_14_9676.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b7404afbb396e96f0325c80af874afad.jpg","text":"TemporaryFile(/tmp/multipartBody3383920458747284550asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553504253,"filename":"image_18082025_22_26_55_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a8ce3a6e8370515ff8c53080c0001164.jpg","text":"TemporaryFile(/tmp/multipartBody4531256048264275896asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553504253,"filename":"image_18082025_22_27_05_9641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a2f39affc44ae4f540e97e5c5272a6b9.jpg","text":"TemporaryFile(/tmp/multipartBody6599717464364564179asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553504253,"filename":"image_18082025_22_26_25_10656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5b427cb3438628b1cbb81cccc651ef0d.jpg","text":"TemporaryFile(/tmp/multipartBody3391137922103816131asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553504253,"filename":"image_18082025_22_26_44_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/280a2f4d1c9414089822f290737a0805.jpg","text":"TemporaryFile(/tmp/multipartBody1477112970193747785asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553504253,"filename":"image_18082025_22_26_35_9630.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377721633","file1":"1377721629","file0":"1377721625","file4":"1377721639","file5":"1377721641","file3":"1377721636"},"map_files_photo_id_array":[{"photo_id":"1377721641","filename":"file5"},{"photo_id":"1377721633","filename":"file2"},{"photo_id":"1377721639","filename":"file4"},{"photo_id":"1377721629","filename":"file1"},{"photo_id":"1377721625","filename":"file0"},{"photo_id":"1377721636","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377721641":["hashtag1","hashtag2"]},{"1377721629":["hashtag1","hashtag2"]},{"1377721625":["hashtag1","hashtag2"]},{"1377721639":["hashtag1","hashtag2"]},{"1377721633":["hashtag1","hashtag2"]},{"1377721636":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377721641, 1377721629, 1377721625, 1377721639, 1377721633, 1377721636)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.185174465179443 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:44:47.240316
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/44/image_18082025_23_44_45_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/23/44/image_18082025_23_44_34_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/23/44/image_18082025_23_44_25_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/23/44/image_18082025_23_44_15_10659.jpg', 2), ('/home/nano/Desktop/images/18082025/23/43/image_18082025_23_44_04_9652.jpg', 2), ('/home/nano/Desktop/images/18082025/23/43/image_18082025_23_43_55_9646.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/44/image_18082025_23_44_45_10637.jpg', '/home/nano/Desktop/images/18082025/23/44/image_18082025_23_44_34_9631.jpg', '/home/nano/Desktop/images/18082025/23/44/image_18082025_23_44_25_9633.jpg', '/home/nano/Desktop/images/18082025/23/44/image_18082025_23_44_15_10659.jpg', '/home/nano/Desktop/images/18082025/23/43/image_18082025_23_44_04_9652.jpg', '/home/nano/Desktop/images/18082025/23/43/image_18082025_23_43_55_9646.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/44/image_18082025_23_44_45_10637.jpg
/home/nano/Desktop/images/18082025/23/44/image_18082025_23_44_34_9631.jpg
/home/nano/Desktop/images/18082025/23/44/image_18082025_23_44_25_9633.jpg
/home/nano/Desktop/images/18082025/23/44/image_18082025_23_44_15_10659.jpg
/home/nano/Desktop/images/18082025/23/43/image_18082025_23_44_04_9652.jpg
/home/nano/Desktop/images/18082025/23/43/image_18082025_23_43_55_9646.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377721664","1377721658","1377721652","1377721661","1377721655","1377721657"],"photo_ids_order":["1377721652","1377721655","1377721657","1377721658","1377721661","1377721664"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d83c1bf0b52b77b09949f78b94ac9d4f.jpg","text":"TemporaryFile(/tmp/multipartBody8529053446160374548asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553548693,"filename":"image_18082025_23_43_55_9646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8dff546ae34add1e2c3a4b27a78d91f0.jpg","text":"TemporaryFile(/tmp/multipartBody4036835311337832089asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553548693,"filename":"image_18082025_23_44_15_10659.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/34c544d1fc26226069e5e40bae65e0e8.jpg","text":"TemporaryFile(/tmp/multipartBody5243106360016290446asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553548693,"filename":"image_18082025_23_44_45_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/07942abecbee9013f9782abaa2839457.jpg","text":"TemporaryFile(/tmp/multipartBody6500629522060528697asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553548693,"filename":"image_18082025_23_44_04_9652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4b621fc066a9bf6f293560f523e457d5.jpg","text":"TemporaryFile(/tmp/multipartBody6754966580228630741asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553548693,"filename":"image_18082025_23_44_34_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9affea61be409c0f04f9901af74ddbbe.jpg","text":"TemporaryFile(/tmp/multipartBody5320015819819190114asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553548693,"filename":"image_18082025_23_44_25_9633.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377721657","file1":"1377721655","file0":"1377721652","file4":"1377721661","file5":"1377721664","file3":"1377721658"},"map_files_photo_id_array":[{"photo_id":"1377721664","filename":"file5"},{"photo_id":"1377721657","filename":"file2"},{"photo_id":"1377721661","filename":"file4"},{"photo_id":"1377721655","filename":"file1"},{"photo_id":"1377721652","filename":"file0"},{"photo_id":"1377721658","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377721664":["hashtag1","hashtag2"]},{"1377721658":["hashtag1","hashtag2"]},{"1377721652":["hashtag1","hashtag2"]},{"1377721661":["hashtag1","hashtag2"]},{"1377721655":["hashtag1","hashtag2"]},{"1377721657":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377721664, 1377721658, 1377721652, 1377721661, 1377721655, 1377721657)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.208890199661255 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:45:32.372621
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/45/image_18082025_23_45_45_10658.jpg', 2), ('/home/nano/Desktop/images/18082025/23/45/image_18082025_23_45_34_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/23/45/image_18082025_23_45_24_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/23/45/image_18082025_23_45_15_10654.jpg', 2), ('/home/nano/Desktop/images/18082025/23/44/image_18082025_23_45_04_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/23/44/image_18082025_23_44_55_9647.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/45/image_18082025_23_45_45_10658.jpg', '/home/nano/Desktop/images/18082025/23/45/image_18082025_23_45_34_9635.jpg', '/home/nano/Desktop/images/18082025/23/45/image_18082025_23_45_24_9629.jpg', '/home/nano/Desktop/images/18082025/23/45/image_18082025_23_45_15_10654.jpg', '/home/nano/Desktop/images/18082025/23/44/image_18082025_23_45_04_9658.jpg', '/home/nano/Desktop/images/18082025/23/44/image_18082025_23_44_55_9647.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/45/image_18082025_23_45_45_10658.jpg
/home/nano/Desktop/images/18082025/23/45/image_18082025_23_45_34_9635.jpg
/home/nano/Desktop/images/18082025/23/45/image_18082025_23_45_24_9629.jpg
/home/nano/Desktop/images/18082025/23/45/image_18082025_23_45_15_10654.jpg
/home/nano/Desktop/images/18082025/23/44/image_18082025_23_45_04_9658.jpg
/home/nano/Desktop/images/18082025/23/44/image_18082025_23_44_55_9647.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377721680","1377721677","1377721685","1377721679","1377721681","1377721683"],"photo_ids_order":["1377721677","1377721679","1377721680","1377721681","1377721683","1377721685"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7ec7c08c0368039ad70f480c3699282a.jpg","text":"TemporaryFile(/tmp/multipartBody457281085903008194asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553593884,"filename":"image_18082025_23_45_24_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c89cff6bdbc829500cf92f679be631d1.jpg","text":"TemporaryFile(/tmp/multipartBody248848796387986134asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553593884,"filename":"image_18082025_23_45_45_10658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6167c8adeb969159be6ed90c9f9fa9f8.jpg","text":"TemporaryFile(/tmp/multipartBody1283511641470949513asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553593884,"filename":"image_18082025_23_44_55_9647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/caf39bd7bed8bb8d1661d508ec040fc7.jpg","text":"TemporaryFile(/tmp/multipartBody7200114053149101480asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553593884,"filename":"image_18082025_23_45_34_9635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f750dd8172030dc841b5e879fc18d7e4.jpg","text":"TemporaryFile(/tmp/multipartBody989689462637642180asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553593884,"filename":"image_18082025_23_45_15_10654.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1d6b2d6671e1a6fa9e899b2c6f09fad1.jpg","text":"TemporaryFile(/tmp/multipartBody6307362132969889643asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553593884,"filename":"image_18082025_23_45_04_9658.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377721680","file1":"1377721679","file0":"1377721677","file4":"1377721683","file5":"1377721685","file3":"1377721681"},"map_files_photo_id_array":[{"photo_id":"1377721685","filename":"file5"},{"photo_id":"1377721680","filename":"file2"},{"photo_id":"1377721683","filename":"file4"},{"photo_id":"1377721679","filename":"file1"},{"photo_id":"1377721677","filename":"file0"},{"photo_id":"1377721681","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377721680":["hashtag1","hashtag2"]},{"1377721677":["hashtag1","hashtag2"]},{"1377721685":["hashtag1","hashtag2"]},{"1377721679":["hashtag1","hashtag2"]},{"1377721681":["hashtag1","hashtag2"]},{"1377721683":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377721680, 1377721677, 1377721685, 1377721679, 1377721681, 1377721683)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.23929023742676 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:46:17.550436
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/46/image_18082025_23_46_45_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/23/46/image_18082025_23_46_35_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/23/46/image_18082025_23_46_24_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/23/45/image_18082025_23_46_04_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/23/45/image_18082025_23_45_54_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/22/25/image_18082025_22_25_44_9631.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/46/image_18082025_23_46_45_9632.jpg', '/home/nano/Desktop/images/18082025/23/46/image_18082025_23_46_35_10639.jpg', '/home/nano/Desktop/images/18082025/23/46/image_18082025_23_46_24_9629.jpg', '/home/nano/Desktop/images/18082025/23/45/image_18082025_23_46_04_9631.jpg', '/home/nano/Desktop/images/18082025/23/45/image_18082025_23_45_54_9647.jpg', '/home/nano/Desktop/images/18082025/22/25/image_18082025_22_25_44_9631.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/46/image_18082025_23_46_45_9632.jpg
/home/nano/Desktop/images/18082025/23/46/image_18082025_23_46_35_10639.jpg
/home/nano/Desktop/images/18082025/23/46/image_18082025_23_46_24_9629.jpg
/home/nano/Desktop/images/18082025/23/45/image_18082025_23_46_04_9631.jpg
/home/nano/Desktop/images/18082025/23/45/image_18082025_23_45_54_9647.jpg
/home/nano/Desktop/images/18082025/22/25/image_18082025_22_25_44_9631.jpg
after data_to_send, before sending request
after request
uploaded 0 photos
time to upload: 1.4786124229431152 secondes ---
<Response [400]>
b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>400 Bad Request</title>\n</head><body>\n<h1>Bad Request</h1>\n<p>Your browser sent a request that this server could not understand.<br />\n</p>\n<hr>\n<address>Apache/2.4.41 (Ubuntu) Server at marlene.fotonower.com Port 443</address>\n</body></html>\n'
400
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:46:32.556024
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/46/image_18082025_23_46_45_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/23/46/image_18082025_23_46_35_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/23/46/image_18082025_23_46_24_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/23/45/image_18082025_23_46_04_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/23/45/image_18082025_23_45_54_9647.jpg', 2), ('/home/nano/Desktop/images/18082025/22/25/image_18082025_22_25_44_9631.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/46/image_18082025_23_46_45_9632.jpg', '/home/nano/Desktop/images/18082025/23/46/image_18082025_23_46_35_10639.jpg', '/home/nano/Desktop/images/18082025/23/46/image_18082025_23_46_24_9629.jpg', '/home/nano/Desktop/images/18082025/23/45/image_18082025_23_46_04_9631.jpg', '/home/nano/Desktop/images/18082025/23/45/image_18082025_23_45_54_9647.jpg', '/home/nano/Desktop/images/18082025/22/25/image_18082025_22_25_44_9631.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/46/image_18082025_23_46_45_9632.jpg
/home/nano/Desktop/images/18082025/23/46/image_18082025_23_46_35_10639.jpg
/home/nano/Desktop/images/18082025/23/46/image_18082025_23_46_24_9629.jpg
/home/nano/Desktop/images/18082025/23/45/image_18082025_23_46_04_9631.jpg
/home/nano/Desktop/images/18082025/23/45/image_18082025_23_45_54_9647.jpg
/home/nano/Desktop/images/18082025/22/25/image_18082025_22_25_44_9631.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377721717","1377721716","1377721719","1377721712","1377721709","1377721714"],"photo_ids_order":["1377721709","1377721712","1377721714","1377721716","1377721717","1377721719"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5f2b52810c720acb61d7a70804378c2e.jpg","text":"TemporaryFile(/tmp/multipartBody9070693749739488274asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553653991,"filename":"image_18082025_23_45_54_9647.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ffeb38837173aad05c8d0ba7a8a1b439.jpg","text":"TemporaryFile(/tmp/multipartBody295563402732390011asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553653991,"filename":"image_18082025_23_46_04_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/095119917cc59b15264a963f611423d0.jpg","text":"TemporaryFile(/tmp/multipartBody2297220435486010814asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553653991,"filename":"image_18082025_22_25_44_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/13b1fe69fdf4db2234ed9a579fb24473.jpg","text":"TemporaryFile(/tmp/multipartBody7919189396894181939asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553653991,"filename":"image_18082025_23_46_35_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/21decb88394d8ea7a2461d5b5b1e2413.jpg","text":"TemporaryFile(/tmp/multipartBody4476209910712074693asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553653991,"filename":"image_18082025_23_46_45_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d36a3c273ea4fdf8474879ea92ca3938.jpg","text":"TemporaryFile(/tmp/multipartBody1792397144763731957asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553653991,"filename":"image_18082025_23_46_24_9629.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377721714","file1":"1377721712","file0":"1377721709","file4":"1377721717","file5":"1377721719","file3":"1377721716"},"map_files_photo_id_array":[{"photo_id":"1377721719","filename":"file5"},{"photo_id":"1377721714","filename":"file2"},{"photo_id":"1377721717","filename":"file4"},{"photo_id":"1377721712","filename":"file1"},{"photo_id":"1377721709","filename":"file0"},{"photo_id":"1377721716","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377721717":["hashtag1","hashtag2"]},{"1377721716":["hashtag1","hashtag2"]},{"1377721719":["hashtag1","hashtag2"]},{"1377721712":["hashtag1","hashtag2"]},{"1377721709":["hashtag1","hashtag2"]},{"1377721714":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377721717, 1377721716, 1377721719, 1377721712, 1377721709, 1377721714)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.54586172103882 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:47:17.734612
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/47/image_18082025_23_47_44_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/23/47/image_18082025_23_47_35_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/23/47/image_18082025_23_47_24_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/23/46/image_18082025_23_47_05_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/23/46/image_18082025_23_46_54_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/22/25/image_18082025_22_25_35_10642.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/47/image_18082025_23_47_44_9630.jpg', '/home/nano/Desktop/images/18082025/23/47/image_18082025_23_47_35_10642.jpg', '/home/nano/Desktop/images/18082025/23/47/image_18082025_23_47_24_9644.jpg', '/home/nano/Desktop/images/18082025/23/46/image_18082025_23_47_05_10642.jpg', '/home/nano/Desktop/images/18082025/23/46/image_18082025_23_46_54_9628.jpg', '/home/nano/Desktop/images/18082025/22/25/image_18082025_22_25_35_10642.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/47/image_18082025_23_47_44_9630.jpg
/home/nano/Desktop/images/18082025/23/47/image_18082025_23_47_35_10642.jpg
/home/nano/Desktop/images/18082025/23/47/image_18082025_23_47_24_9644.jpg
/home/nano/Desktop/images/18082025/23/46/image_18082025_23_47_05_10642.jpg
/home/nano/Desktop/images/18082025/23/46/image_18082025_23_46_54_9628.jpg
/home/nano/Desktop/images/18082025/22/25/image_18082025_22_25_35_10642.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377721737","1377721745","1377721748","1377721733","1377721741","1377721729"],"photo_ids_order":["1377721729","1377721733","1377721737","1377721741","1377721745","1377721748"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5ff1427dab6b7480ce84b011006a9e0c.jpg","text":"TemporaryFile(/tmp/multipartBody8358289723212888260asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553699051,"filename":"image_18082025_23_47_24_9644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/412c488d0a928b5fd37c0a4c733aa411.jpg","text":"TemporaryFile(/tmp/multipartBody4620094081063272095asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553699051,"filename":"image_18082025_23_46_54_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/bb6a535386ae6b4d68e814c41614ff07.jpg","text":"TemporaryFile(/tmp/multipartBody7694875386988834707asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553699051,"filename":"image_18082025_22_25_35_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b92d40d7b8cec7782573b5336f12a51d.jpg","text":"TemporaryFile(/tmp/multipartBody9204396208309356235asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553699051,"filename":"image_18082025_23_47_35_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2a742f6eb46d9bc062047f57d782dd8b.jpg","text":"TemporaryFile(/tmp/multipartBody6316840193324646268asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553699051,"filename":"image_18082025_23_47_05_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/97b73ab57309af020c415d2d27f3e365.jpg","text":"TemporaryFile(/tmp/multipartBody2753196255153832864asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553699051,"filename":"image_18082025_23_47_44_9630.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377721737","file1":"1377721733","file0":"1377721729","file4":"1377721745","file5":"1377721748","file3":"1377721741"},"map_files_photo_id_array":[{"photo_id":"1377721748","filename":"file5"},{"photo_id":"1377721737","filename":"file2"},{"photo_id":"1377721745","filename":"file4"},{"photo_id":"1377721733","filename":"file1"},{"photo_id":"1377721729","filename":"file0"},{"photo_id":"1377721741","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377721737":["hashtag1","hashtag2"]},{"1377721745":["hashtag1","hashtag2"]},{"1377721748":["hashtag1","hashtag2"]},{"1377721733":["hashtag1","hashtag2"]},{"1377721741":["hashtag1","hashtag2"]},{"1377721729":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377721737, 1377721745, 1377721748, 1377721733, 1377721741, 1377721729)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.958962440490723 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:48:02.202398
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/22/25/image_18082025_22_25_24_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/22/25/image_18082025_22_25_15_9659.jpg', 2), ('/home/nano/Desktop/images/18082025/22/24/image_18082025_22_25_05_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/22/24/image_18082025_22_24_54_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/08/18/image_18082025_08_18_45_10652.jpg', 2), ('/home/nano/Desktop/images/18082025/08/18/image_18082025_08_18_34_9667.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/22/25/image_18082025_22_25_24_9629.jpg', '/home/nano/Desktop/images/18082025/22/25/image_18082025_22_25_15_9659.jpg', '/home/nano/Desktop/images/18082025/22/24/image_18082025_22_25_05_10661.jpg', '/home/nano/Desktop/images/18082025/22/24/image_18082025_22_24_54_9630.jpg', '/home/nano/Desktop/images/18082025/08/18/image_18082025_08_18_45_10652.jpg', '/home/nano/Desktop/images/18082025/08/18/image_18082025_08_18_34_9667.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/22/25/image_18082025_22_25_24_9629.jpg
/home/nano/Desktop/images/18082025/22/25/image_18082025_22_25_15_9659.jpg
/home/nano/Desktop/images/18082025/22/24/image_18082025_22_25_05_10661.jpg
/home/nano/Desktop/images/18082025/22/24/image_18082025_22_24_54_9630.jpg
/home/nano/Desktop/images/18082025/08/18/image_18082025_08_18_45_10652.jpg
/home/nano/Desktop/images/18082025/08/18/image_18082025_08_18_34_9667.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377721761","1377721763","1377721756","1377721765","1377721759","1377721753"],"photo_ids_order":["1377721753","1377721756","1377721759","1377721761","1377721763","1377721765"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fd8dfbb43e6cfa3d8f27e4ba9191da27.jpg","text":"TemporaryFile(/tmp/multipartBody843256274676150606asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553743717,"filename":"image_18082025_22_24_54_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/92729b8a5e06f29e4252e534ebae1950.jpg","text":"TemporaryFile(/tmp/multipartBody3047718483667476357asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553743717,"filename":"image_18082025_08_18_45_10652.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1981500f8aa4d205f9b3ef87033905d1.jpg","text":"TemporaryFile(/tmp/multipartBody808181976070481644asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553743717,"filename":"image_18082025_22_25_15_9659.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/eff113acb48ba6b6671a7df0aab6d17b.jpg","text":"TemporaryFile(/tmp/multipartBody7852835443464408264asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553743717,"filename":"image_18082025_08_18_34_9667.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/25ee75129c5cba07b58fd2695ee96fe2.jpg","text":"TemporaryFile(/tmp/multipartBody1385903533405440484asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553743717,"filename":"image_18082025_22_25_05_10661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/478cb9b6e2a03e3a79395e8876c2acbd.jpg","text":"TemporaryFile(/tmp/multipartBody4917497997987861932asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553743717,"filename":"image_18082025_22_25_24_9629.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377721759","file1":"1377721756","file0":"1377721753","file4":"1377721763","file5":"1377721765","file3":"1377721761"},"map_files_photo_id_array":[{"photo_id":"1377721765","filename":"file5"},{"photo_id":"1377721759","filename":"file2"},{"photo_id":"1377721763","filename":"file4"},{"photo_id":"1377721756","filename":"file1"},{"photo_id":"1377721753","filename":"file0"},{"photo_id":"1377721761","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377721761":["hashtag1","hashtag2"]},{"1377721763":["hashtag1","hashtag2"]},{"1377721756":["hashtag1","hashtag2"]},{"1377721765":["hashtag1","hashtag2"]},{"1377721759":["hashtag1","hashtag2"]},{"1377721753":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377721761, 1377721763, 1377721756, 1377721765, 1377721759, 1377721753)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.67584490776062 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:48:46.823820
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/48/image_18082025_23_48_44_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/23/48/image_18082025_23_48_35_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/23/48/image_18082025_23_48_24_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/23/47/image_18082025_23_47_54_9627.jpg', 2), ('/home/nano/Desktop/images/18082025/08/18/image_18082025_08_18_24_9617.jpg', 2), ('/home/nano/Desktop/images/18082025/08/18/image_18082025_08_18_15_10661.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/48/image_18082025_23_48_44_9630.jpg', '/home/nano/Desktop/images/18082025/23/48/image_18082025_23_48_35_10640.jpg', '/home/nano/Desktop/images/18082025/23/48/image_18082025_23_48_24_9630.jpg', '/home/nano/Desktop/images/18082025/23/47/image_18082025_23_47_54_9627.jpg', '/home/nano/Desktop/images/18082025/08/18/image_18082025_08_18_24_9617.jpg', '/home/nano/Desktop/images/18082025/08/18/image_18082025_08_18_15_10661.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/48/image_18082025_23_48_44_9630.jpg
/home/nano/Desktop/images/18082025/23/48/image_18082025_23_48_35_10640.jpg
/home/nano/Desktop/images/18082025/23/48/image_18082025_23_48_24_9630.jpg
/home/nano/Desktop/images/18082025/23/47/image_18082025_23_47_54_9627.jpg
/home/nano/Desktop/images/18082025/08/18/image_18082025_08_18_24_9617.jpg
/home/nano/Desktop/images/18082025/08/18/image_18082025_08_18_15_10661.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377721770","1377721773","1377721776","1377721781","1377721786","1377721777"],"photo_ids_order":["1377721770","1377721773","1377721776","1377721777","1377721781","1377721786"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5649dd27fcd29a4336d6a35e311ffdf4.jpg","text":"TemporaryFile(/tmp/multipartBody6297118690883123557asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553788340,"filename":"image_18082025_23_48_44_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/12951cf1d5eaa73728c717c101ab6a1a.jpg","text":"TemporaryFile(/tmp/multipartBody7662282847562350828asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553788340,"filename":"image_18082025_23_48_35_10640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8715799da6a5aca8cc160cda6a7808df.jpg","text":"TemporaryFile(/tmp/multipartBody4803156357563260428asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553788340,"filename":"image_18082025_23_48_24_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e444f9df176bfb7e00681e356e4a738e.jpg","text":"TemporaryFile(/tmp/multipartBody9142818758331552518asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553788340,"filename":"image_18082025_08_18_24_9617.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/98bcf01185092ad31c89e97683428cd4.jpg","text":"TemporaryFile(/tmp/multipartBody6744318646949319408asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553788340,"filename":"image_18082025_08_18_15_10661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5e5f96e47adef89d4c59d46a41fe7eaa.jpg","text":"TemporaryFile(/tmp/multipartBody382219223554786521asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553788340,"filename":"image_18082025_23_47_54_9627.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377721776","file1":"1377721773","file0":"1377721770","file4":"1377721781","file5":"1377721786","file3":"1377721777"},"map_files_photo_id_array":[{"photo_id":"1377721786","filename":"file5"},{"photo_id":"1377721776","filename":"file2"},{"photo_id":"1377721781","filename":"file4"},{"photo_id":"1377721773","filename":"file1"},{"photo_id":"1377721770","filename":"file0"},{"photo_id":"1377721777","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377721770":["hashtag1","hashtag2"]},{"1377721773":["hashtag1","hashtag2"]},{"1377721776":["hashtag1","hashtag2"]},{"1377721781":["hashtag1","hashtag2"]},{"1377721786":["hashtag1","hashtag2"]},{"1377721777":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377721770, 1377721773, 1377721776, 1377721781, 1377721786, 1377721777)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.46385335922241 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:49:31.971374
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/49/image_18082025_23_49_44_9633.jpg', 2), ('/home/nano/Desktop/images/18082025/23/49/image_18082025_23_49_35_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/23/49/image_18082025_23_49_25_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/23/49/image_18082025_23_49_14_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/23/48/image_18082025_23_49_05_9641.jpg', 2), ('/home/nano/Desktop/images/18082025/23/48/image_18082025_23_48_55_10638.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/49/image_18082025_23_49_44_9633.jpg', '/home/nano/Desktop/images/18082025/23/49/image_18082025_23_49_35_9629.jpg', '/home/nano/Desktop/images/18082025/23/49/image_18082025_23_49_25_10637.jpg', '/home/nano/Desktop/images/18082025/23/49/image_18082025_23_49_14_9651.jpg', '/home/nano/Desktop/images/18082025/23/48/image_18082025_23_49_05_9641.jpg', '/home/nano/Desktop/images/18082025/23/48/image_18082025_23_48_55_10638.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/49/image_18082025_23_49_44_9633.jpg
/home/nano/Desktop/images/18082025/23/49/image_18082025_23_49_35_9629.jpg
/home/nano/Desktop/images/18082025/23/49/image_18082025_23_49_25_10637.jpg
/home/nano/Desktop/images/18082025/23/49/image_18082025_23_49_14_9651.jpg
/home/nano/Desktop/images/18082025/23/48/image_18082025_23_49_05_9641.jpg
/home/nano/Desktop/images/18082025/23/48/image_18082025_23_48_55_10638.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377721794","1377721803","1377721793","1377721800","1377721795","1377721797"],"photo_ids_order":["1377721793","1377721794","1377721795","1377721797","1377721800","1377721803"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/44b3597f20539479e95fc1e171eb6c2c.jpg","text":"TemporaryFile(/tmp/multipartBody3729555863191004665asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553833402,"filename":"image_18082025_23_49_35_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/e4c610ef38c61dac7c142e2ec3d8eb4c.jpg","text":"TemporaryFile(/tmp/multipartBody268129806089419982asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553833402,"filename":"image_18082025_23_48_55_10638.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/51b91df19840d849f3c5b7cb96d5cddf.jpg","text":"TemporaryFile(/tmp/multipartBody1963458844040357046asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553833402,"filename":"image_18082025_23_49_44_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6b02b445fd44086b8d520f4c3aedad7c.jpg","text":"TemporaryFile(/tmp/multipartBody1972174318991643580asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553833402,"filename":"image_18082025_23_49_05_9641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a053348e59357b24e53b85c004ec6b0d.jpg","text":"TemporaryFile(/tmp/multipartBody3498313175530097660asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553833402,"filename":"image_18082025_23_49_25_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/081af93b36fe98012dcfea17cd8af1ac.jpg","text":"TemporaryFile(/tmp/multipartBody8313780524375759808asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553833402,"filename":"image_18082025_23_49_14_9651.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377721795","file1":"1377721794","file0":"1377721793","file4":"1377721800","file5":"1377721803","file3":"1377721797"},"map_files_photo_id_array":[{"photo_id":"1377721803","filename":"file5"},{"photo_id":"1377721795","filename":"file2"},{"photo_id":"1377721800","filename":"file4"},{"photo_id":"1377721794","filename":"file1"},{"photo_id":"1377721793","filename":"file0"},{"photo_id":"1377721797","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377721794":["hashtag1","hashtag2"]},{"1377721803":["hashtag1","hashtag2"]},{"1377721793":["hashtag1","hashtag2"]},{"1377721800":["hashtag1","hashtag2"]},{"1377721795":["hashtag1","hashtag2"]},{"1377721797":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377721794, 1377721803, 1377721793, 1377721800, 1377721795, 1377721797)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.78826880455017 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:50:17.025335
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/50/image_18082025_23_50_25_10646.jpg', 2), ('/home/nano/Desktop/images/18082025/23/50/image_18082025_23_50_14_9681.jpg', 2), ('/home/nano/Desktop/images/18082025/23/49/image_18082025_23_50_04_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/23/49/image_18082025_23_49_55_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/08/17/image_18082025_08_18_04_9643.jpg', 2), ('/home/nano/Desktop/images/18082025/08/17/image_18082025_08_17_54_9633.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/50/image_18082025_23_50_25_10646.jpg', '/home/nano/Desktop/images/18082025/23/50/image_18082025_23_50_14_9681.jpg', '/home/nano/Desktop/images/18082025/23/49/image_18082025_23_50_04_9669.jpg', '/home/nano/Desktop/images/18082025/23/49/image_18082025_23_49_55_10640.jpg', '/home/nano/Desktop/images/18082025/08/17/image_18082025_08_18_04_9643.jpg', '/home/nano/Desktop/images/18082025/08/17/image_18082025_08_17_54_9633.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/50/image_18082025_23_50_25_10646.jpg
/home/nano/Desktop/images/18082025/23/50/image_18082025_23_50_14_9681.jpg
/home/nano/Desktop/images/18082025/23/49/image_18082025_23_50_04_9669.jpg
/home/nano/Desktop/images/18082025/23/49/image_18082025_23_49_55_10640.jpg
/home/nano/Desktop/images/18082025/08/17/image_18082025_08_18_04_9643.jpg
/home/nano/Desktop/images/18082025/08/17/image_18082025_08_17_54_9633.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377721816","1377721821","1377721824","1377721818","1377721814","1377721813"],"photo_ids_order":["1377721813","1377721814","1377721816","1377721818","1377721821","1377721824"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f7a8929d7b5845729410148478933157.jpg","text":"TemporaryFile(/tmp/multipartBody259889197697340923asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553878491,"filename":"image_18082025_23_50_04_9669.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/442037f3d3da8227b9fa6083b329c55f.jpg","text":"TemporaryFile(/tmp/multipartBody5912724463297295774asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553878491,"filename":"image_18082025_08_18_04_9643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4494d1354f289ba62b8b0a922f326879.jpg","text":"TemporaryFile(/tmp/multipartBody8081698867072850267asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553878491,"filename":"image_18082025_08_17_54_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/053fb7766bf1869c99255d41e8b27ad2.jpg","text":"TemporaryFile(/tmp/multipartBody2649468362284516150asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553878491,"filename":"image_18082025_23_49_55_10640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/627e90a596b351b16cda0476f56f20da.jpg","text":"TemporaryFile(/tmp/multipartBody4131891657861642431asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553878491,"filename":"image_18082025_23_50_14_9681.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fc873164945d79d9fc656be236418d10.jpg","text":"TemporaryFile(/tmp/multipartBody338816766841152986asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553878491,"filename":"image_18082025_23_50_25_10646.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377721816","file1":"1377721814","file0":"1377721813","file4":"1377721821","file5":"1377721824","file3":"1377721818"},"map_files_photo_id_array":[{"photo_id":"1377721824","filename":"file5"},{"photo_id":"1377721816","filename":"file2"},{"photo_id":"1377721821","filename":"file4"},{"photo_id":"1377721814","filename":"file1"},{"photo_id":"1377721813","filename":"file0"},{"photo_id":"1377721818","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377721816":["hashtag1","hashtag2"]},{"1377721821":["hashtag1","hashtag2"]},{"1377721824":["hashtag1","hashtag2"]},{"1377721818":["hashtag1","hashtag2"]},{"1377721814":["hashtag1","hashtag2"]},{"1377721813":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377721816, 1377721821, 1377721824, 1377721818, 1377721814, 1377721813)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.571707248687744 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:51:02.902234
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/17/image_18082025_08_17_45_10644.jpg', 2), ('/home/nano/Desktop/images/18082025/08/17/image_18082025_08_17_34_9623.jpg', 2), ('/home/nano/Desktop/images/18082025/08/17/image_18082025_08_17_25_9620.jpg', 2), ('/home/nano/Desktop/images/18082025/08/17/image_18082025_08_17_15_10656.jpg', 2), ('/home/nano/Desktop/images/18082025/08/16/image_18082025_08_17_04_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/08/16/image_18082025_08_16_55_9631.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/08/17/image_18082025_08_17_45_10644.jpg', '/home/nano/Desktop/images/18082025/08/17/image_18082025_08_17_34_9623.jpg', '/home/nano/Desktop/images/18082025/08/17/image_18082025_08_17_25_9620.jpg', '/home/nano/Desktop/images/18082025/08/17/image_18082025_08_17_15_10656.jpg', '/home/nano/Desktop/images/18082025/08/16/image_18082025_08_17_04_9639.jpg', '/home/nano/Desktop/images/18082025/08/16/image_18082025_08_16_55_9631.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/08/17/image_18082025_08_17_45_10644.jpg
/home/nano/Desktop/images/18082025/08/17/image_18082025_08_17_34_9623.jpg
/home/nano/Desktop/images/18082025/08/17/image_18082025_08_17_25_9620.jpg
/home/nano/Desktop/images/18082025/08/17/image_18082025_08_17_15_10656.jpg
/home/nano/Desktop/images/18082025/08/16/image_18082025_08_17_04_9639.jpg
/home/nano/Desktop/images/18082025/08/16/image_18082025_08_16_55_9631.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377721833","1377721842","1377721836","1377721844","1377721838","1377721840"],"photo_ids_order":["1377721833","1377721836","1377721838","1377721840","1377721842","1377721844"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/64e49d360c2e4fcb380fb786c11a3c6c.jpg","text":"TemporaryFile(/tmp/multipartBody2920225878078892862asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553924135,"filename":"image_18082025_08_17_45_10644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/535d080a92c226c79201eb324ed51ef6.jpg","text":"TemporaryFile(/tmp/multipartBody5372104602986951501asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553924135,"filename":"image_18082025_08_17_04_9639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/91be6943ebdaabfaf58ff5162567758b.jpg","text":"TemporaryFile(/tmp/multipartBody1861768019775609245asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553924135,"filename":"image_18082025_08_17_34_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/eba5f85d10ec3d5dcb69e581af9bc73a.jpg","text":"TemporaryFile(/tmp/multipartBody3391143505313774776asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553924135,"filename":"image_18082025_08_16_55_9631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5af5c77a44150f70f3c886cecfa8380d.jpg","text":"TemporaryFile(/tmp/multipartBody1325562423757322412asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553924135,"filename":"image_18082025_08_17_25_9620.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f0be83c80dd26980e16d31921fa0c04a.jpg","text":"TemporaryFile(/tmp/multipartBody985490273129981312asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553924135,"filename":"image_18082025_08_17_15_10656.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377721838","file1":"1377721836","file0":"1377721833","file4":"1377721842","file5":"1377721844","file3":"1377721840"},"map_files_photo_id_array":[{"photo_id":"1377721844","filename":"file5"},{"photo_id":"1377721838","filename":"file2"},{"photo_id":"1377721842","filename":"file4"},{"photo_id":"1377721836","filename":"file1"},{"photo_id":"1377721833","filename":"file0"},{"photo_id":"1377721840","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377721833":["hashtag1","hashtag2"]},{"1377721842":["hashtag1","hashtag2"]},{"1377721836":["hashtag1","hashtag2"]},{"1377721844":["hashtag1","hashtag2"]},{"1377721838":["hashtag1","hashtag2"]},{"1377721840":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377721833, 1377721842, 1377721836, 1377721844, 1377721838, 1377721840)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.734304428100586 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:51:47.159905
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/51/image_18082025_23_51_34_9648.jpg', 2), ('/home/nano/Desktop/images/18082025/23/51/image_18082025_23_51_25_9640.jpg', 2), ('/home/nano/Desktop/images/18082025/23/51/image_18082025_23_51_15_10676.jpg', 2), ('/home/nano/Desktop/images/18082025/23/50/image_18082025_23_50_55_10637.jpg', 2), ('/home/nano/Desktop/images/18082025/08/16/image_18082025_08_16_45_10619.jpg', 2), ('/home/nano/Desktop/images/18082025/08/16/image_18082025_08_16_34_9623.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/51/image_18082025_23_51_34_9648.jpg', '/home/nano/Desktop/images/18082025/23/51/image_18082025_23_51_25_9640.jpg', '/home/nano/Desktop/images/18082025/23/51/image_18082025_23_51_15_10676.jpg', '/home/nano/Desktop/images/18082025/23/50/image_18082025_23_50_55_10637.jpg', '/home/nano/Desktop/images/18082025/08/16/image_18082025_08_16_45_10619.jpg', '/home/nano/Desktop/images/18082025/08/16/image_18082025_08_16_34_9623.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/51/image_18082025_23_51_34_9648.jpg
/home/nano/Desktop/images/18082025/23/51/image_18082025_23_51_25_9640.jpg
/home/nano/Desktop/images/18082025/23/51/image_18082025_23_51_15_10676.jpg
/home/nano/Desktop/images/18082025/23/50/image_18082025_23_50_55_10637.jpg
/home/nano/Desktop/images/18082025/08/16/image_18082025_08_16_45_10619.jpg
/home/nano/Desktop/images/18082025/08/16/image_18082025_08_16_34_9623.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377721848","1377721859","1377721850","1377721853","1377721855","1377721852"],"photo_ids_order":["1377721848","1377721850","1377721852","1377721853","1377721855","1377721859"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/da84b44b567b7c0d9db9ecf44fba8221.jpg","text":"TemporaryFile(/tmp/multipartBody8970644346918828768asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553968728,"filename":"image_18082025_23_51_34_9648.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0b4132098133b8a6571020e9d50a322c.jpg","text":"TemporaryFile(/tmp/multipartBody615622703020218045asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553968728,"filename":"image_18082025_08_16_34_9623.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/6804d3bda61c10a8c095b8b94a9cdd4a.jpg","text":"TemporaryFile(/tmp/multipartBody7324898377642965922asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553968728,"filename":"image_18082025_23_51_25_9640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/8ab1826fc4ac70e548e5a35d498af607.jpg","text":"TemporaryFile(/tmp/multipartBody4158073039877991332asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553968728,"filename":"image_18082025_23_50_55_10637.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/728d8bb8e9400a36c89024589379d337.jpg","text":"TemporaryFile(/tmp/multipartBody3655894541972039518asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553968728,"filename":"image_18082025_08_16_45_10619.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7bd5fb0a8c0bb3da0873f7cd9d64413c.jpg","text":"TemporaryFile(/tmp/multipartBody9087196913298354122asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755553968728,"filename":"image_18082025_23_51_15_10676.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377721852","file1":"1377721850","file0":"1377721848","file4":"1377721855","file5":"1377721859","file3":"1377721853"},"map_files_photo_id_array":[{"photo_id":"1377721859","filename":"file5"},{"photo_id":"1377721852","filename":"file2"},{"photo_id":"1377721855","filename":"file4"},{"photo_id":"1377721850","filename":"file1"},{"photo_id":"1377721848","filename":"file0"},{"photo_id":"1377721853","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377721848":["hashtag1","hashtag2"]},{"1377721859":["hashtag1","hashtag2"]},{"1377721850":["hashtag1","hashtag2"]},{"1377721853":["hashtag1","hashtag2"]},{"1377721855":["hashtag1","hashtag2"]},{"1377721852":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377721848, 1377721859, 1377721850, 1377721853, 1377721855, 1377721852)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 33.28025984764099 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:52:32.282163
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/52/image_18082025_23_52_45_10641.jpg', 2), ('/home/nano/Desktop/images/18082025/23/52/image_18082025_23_52_34_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/23/52/image_18082025_23_52_15_10664.jpg', 2), ('/home/nano/Desktop/images/18082025/23/51/image_18082025_23_52_04_9651.jpg', 2), ('/home/nano/Desktop/images/18082025/23/51/image_18082025_23_51_55_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/08/16/image_18082025_08_16_25_10631.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/52/image_18082025_23_52_45_10641.jpg', '/home/nano/Desktop/images/18082025/23/52/image_18082025_23_52_34_9628.jpg', '/home/nano/Desktop/images/18082025/23/52/image_18082025_23_52_15_10664.jpg', '/home/nano/Desktop/images/18082025/23/51/image_18082025_23_52_04_9651.jpg', '/home/nano/Desktop/images/18082025/23/51/image_18082025_23_51_55_9632.jpg', '/home/nano/Desktop/images/18082025/08/16/image_18082025_08_16_25_10631.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/52/image_18082025_23_52_45_10641.jpg
/home/nano/Desktop/images/18082025/23/52/image_18082025_23_52_34_9628.jpg
/home/nano/Desktop/images/18082025/23/52/image_18082025_23_52_15_10664.jpg
/home/nano/Desktop/images/18082025/23/51/image_18082025_23_52_04_9651.jpg
/home/nano/Desktop/images/18082025/23/51/image_18082025_23_51_55_9632.jpg
/home/nano/Desktop/images/18082025/08/16/image_18082025_08_16_25_10631.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377721878","1377721872","1377721880","1377721874","1377721879","1377721876"],"photo_ids_order":["1377721872","1377721874","1377721876","1377721878","1377721879","1377721880"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5bca1e1c1227fd49bacfe4e62a2d6c3f.jpg","text":"TemporaryFile(/tmp/multipartBody4788647057580865135asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755554013567,"filename":"image_18082025_23_52_04_9651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b125e14194e235e9febbb9bee37d7a04.jpg","text":"TemporaryFile(/tmp/multipartBody1621273021091341660asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755554013567,"filename":"image_18082025_23_52_45_10641.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/70e922f9c0d80bfe930a4f4ebffbabb1.jpg","text":"TemporaryFile(/tmp/multipartBody6667521821309120039asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755554013567,"filename":"image_18082025_08_16_25_10631.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/7d56cea3d31653858b32ba4161f0ad81.jpg","text":"TemporaryFile(/tmp/multipartBody879442458825667255asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755554013567,"filename":"image_18082025_23_52_34_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/516a12549091f1216ebd2db4cba74fe2.jpg","text":"TemporaryFile(/tmp/multipartBody5981285109107457777asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755554013567,"filename":"image_18082025_23_51_55_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/82d45174e68707d7e1afe95873898d02.jpg","text":"TemporaryFile(/tmp/multipartBody7186912997398139107asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755554013567,"filename":"image_18082025_23_52_15_10664.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377721876","file1":"1377721874","file0":"1377721872","file4":"1377721879","file5":"1377721880","file3":"1377721878"},"map_files_photo_id_array":[{"photo_id":"1377721880","filename":"file5"},{"photo_id":"1377721876","filename":"file2"},{"photo_id":"1377721879","filename":"file4"},{"photo_id":"1377721874","filename":"file1"},{"photo_id":"1377721872","filename":"file0"},{"photo_id":"1377721878","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377721878":["hashtag1","hashtag2"]},{"1377721872":["hashtag1","hashtag2"]},{"1377721880":["hashtag1","hashtag2"]},{"1377721874":["hashtag1","hashtag2"]},{"1377721879":["hashtag1","hashtag2"]},{"1377721876":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377721878, 1377721872, 1377721880, 1377721874, 1377721879, 1377721876)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.78559446334839 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:53:17.367052
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/53/image_18082025_23_53_45_9628.jpg', 2), ('/home/nano/Desktop/images/18082025/23/53/image_18082025_23_53_35_10635.jpg', 2), ('/home/nano/Desktop/images/18082025/23/53/image_18082025_23_53_24_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/23/53/image_18082025_23_53_15_10661.jpg', 2), ('/home/nano/Desktop/images/18082025/23/52/image_18082025_23_53_04_9635.jpg', 2), ('/home/nano/Desktop/images/18082025/23/52/image_18082025_23_52_54_9636.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/53/image_18082025_23_53_45_9628.jpg', '/home/nano/Desktop/images/18082025/23/53/image_18082025_23_53_35_10635.jpg', '/home/nano/Desktop/images/18082025/23/53/image_18082025_23_53_24_9629.jpg', '/home/nano/Desktop/images/18082025/23/53/image_18082025_23_53_15_10661.jpg', '/home/nano/Desktop/images/18082025/23/52/image_18082025_23_53_04_9635.jpg', '/home/nano/Desktop/images/18082025/23/52/image_18082025_23_52_54_9636.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/53/image_18082025_23_53_45_9628.jpg
/home/nano/Desktop/images/18082025/23/53/image_18082025_23_53_35_10635.jpg
/home/nano/Desktop/images/18082025/23/53/image_18082025_23_53_24_9629.jpg
/home/nano/Desktop/images/18082025/23/53/image_18082025_23_53_15_10661.jpg
/home/nano/Desktop/images/18082025/23/52/image_18082025_23_53_04_9635.jpg
/home/nano/Desktop/images/18082025/23/52/image_18082025_23_52_54_9636.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377721905","1377721898","1377721907","1377721901","1377721904","1377721906"],"photo_ids_order":["1377721898","1377721901","1377721904","1377721905","1377721906","1377721907"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a7fb280fdd51e22f38445fd8e98d6cdc.jpg","text":"TemporaryFile(/tmp/multipartBody4204471274684049940asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755554058687,"filename":"image_18082025_23_53_15_10661.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f0190e92a59c5da30e1b05ab20f38b8c.jpg","text":"TemporaryFile(/tmp/multipartBody2309987023683790758asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755554058687,"filename":"image_18082025_23_53_45_9628.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/1b1c8b8ff8fc0ae08fc3c4de760de910.jpg","text":"TemporaryFile(/tmp/multipartBody4124360444465571591asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755554058687,"filename":"image_18082025_23_52_54_9636.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ca9f25e7219c46f04adb43f6845fdb88.jpg","text":"TemporaryFile(/tmp/multipartBody488097348026117621asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755554058687,"filename":"image_18082025_23_53_35_10635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/514b9c333abff5f170f99f145218dc06.jpg","text":"TemporaryFile(/tmp/multipartBody722342852434996282asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755554058687,"filename":"image_18082025_23_53_24_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/48432de57a6c25bdfe6cb36d26bedba0.jpg","text":"TemporaryFile(/tmp/multipartBody8696716739235068855asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755554058687,"filename":"image_18082025_23_53_04_9635.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377721904","file1":"1377721901","file0":"1377721898","file4":"1377721906","file5":"1377721907","file3":"1377721905"},"map_files_photo_id_array":[{"photo_id":"1377721907","filename":"file5"},{"photo_id":"1377721904","filename":"file2"},{"photo_id":"1377721906","filename":"file4"},{"photo_id":"1377721901","filename":"file1"},{"photo_id":"1377721898","filename":"file0"},{"photo_id":"1377721905","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377721905":["hashtag1","hashtag2"]},{"1377721898":["hashtag1","hashtag2"]},{"1377721907":["hashtag1","hashtag2"]},{"1377721901":["hashtag1","hashtag2"]},{"1377721904":["hashtag1","hashtag2"]},{"1377721906":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377721905, 1377721898, 1377721907, 1377721901, 1377721904, 1377721906)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.689507961273193 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:54:03.489417
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/16/image_18082025_08_16_14_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/08/15/image_18082025_08_16_04_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/08/15/image_18082025_08_15_55_10642.jpg', 2), ('/home/nano/Desktop/images/18082025/08/15/image_18082025_08_15_44_9609.jpg', 2), ('/home/nano/Desktop/images/18082025/08/15/image_18082025_08_15_35_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/15/image_18082025_08_15_25_10640.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/08/16/image_18082025_08_16_14_9664.jpg', '/home/nano/Desktop/images/18082025/08/15/image_18082025_08_16_04_9629.jpg', '/home/nano/Desktop/images/18082025/08/15/image_18082025_08_15_55_10642.jpg', '/home/nano/Desktop/images/18082025/08/15/image_18082025_08_15_44_9609.jpg', '/home/nano/Desktop/images/18082025/08/15/image_18082025_08_15_35_9626.jpg', '/home/nano/Desktop/images/18082025/08/15/image_18082025_08_15_25_10640.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/08/16/image_18082025_08_16_14_9664.jpg
/home/nano/Desktop/images/18082025/08/15/image_18082025_08_16_04_9629.jpg
/home/nano/Desktop/images/18082025/08/15/image_18082025_08_15_55_10642.jpg
/home/nano/Desktop/images/18082025/08/15/image_18082025_08_15_44_9609.jpg
/home/nano/Desktop/images/18082025/08/15/image_18082025_08_15_35_9626.jpg
/home/nano/Desktop/images/18082025/08/15/image_18082025_08_15_25_10640.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377721920","1377721914","1377721922","1377721924","1377721918","1377721927"],"photo_ids_order":["1377721914","1377721918","1377721920","1377721922","1377721924","1377721927"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/270b29dc9064d8e7bae34e9bf0abaca5.jpg","text":"TemporaryFile(/tmp/multipartBody6340031441794001843asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755554104759,"filename":"image_18082025_08_15_55_10642.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3f1ad542e571662527f6080732fe231b.jpg","text":"TemporaryFile(/tmp/multipartBody4769218398847654546asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755554104759,"filename":"image_18082025_08_16_14_9664.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/2afc5192ce5cbef24cc18151b765a781.jpg","text":"TemporaryFile(/tmp/multipartBody4313418123936902806asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755554104759,"filename":"image_18082025_08_15_44_9609.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/dd1ea5fbfd3bbb0e309c6291b12327f5.jpg","text":"TemporaryFile(/tmp/multipartBody5993535166200238820asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755554104759,"filename":"image_18082025_08_15_35_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/a863c01d7cc3971307cf75379e3598d0.jpg","text":"TemporaryFile(/tmp/multipartBody217955776236994755asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755554104759,"filename":"image_18082025_08_16_04_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/c2bf325a4367943938235be7ee73abbd.jpg","text":"TemporaryFile(/tmp/multipartBody8397786600733963037asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755554104759,"filename":"image_18082025_08_15_25_10640.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377721920","file1":"1377721918","file0":"1377721914","file4":"1377721924","file5":"1377721927","file3":"1377721922"},"map_files_photo_id_array":[{"photo_id":"1377721927","filename":"file5"},{"photo_id":"1377721920","filename":"file2"},{"photo_id":"1377721924","filename":"file4"},{"photo_id":"1377721918","filename":"file1"},{"photo_id":"1377721914","filename":"file0"},{"photo_id":"1377721922","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377721920":["hashtag1","hashtag2"]},{"1377721914":["hashtag1","hashtag2"]},{"1377721922":["hashtag1","hashtag2"]},{"1377721924":["hashtag1","hashtag2"]},{"1377721918":["hashtag1","hashtag2"]},{"1377721927":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377721920, 1377721914, 1377721922, 1377721924, 1377721918, 1377721927)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.935882806777954 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:54:47.481774
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/54/image_18082025_23_54_45_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/23/54/image_18082025_23_54_35_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/23/54/image_18082025_23_54_15_9664.jpg', 2), ('/home/nano/Desktop/images/18082025/23/53/image_18082025_23_53_54_9634.jpg', 2), ('/home/nano/Desktop/images/18082025/08/15/image_18082025_08_15_14_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/08/14/image_18082025_08_15_05_9633.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/54/image_18082025_23_54_45_9629.jpg', '/home/nano/Desktop/images/18082025/23/54/image_18082025_23_54_35_10640.jpg', '/home/nano/Desktop/images/18082025/23/54/image_18082025_23_54_15_9664.jpg', '/home/nano/Desktop/images/18082025/23/53/image_18082025_23_53_54_9634.jpg', '/home/nano/Desktop/images/18082025/08/15/image_18082025_08_15_14_9644.jpg', '/home/nano/Desktop/images/18082025/08/14/image_18082025_08_15_05_9633.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/54/image_18082025_23_54_45_9629.jpg
/home/nano/Desktop/images/18082025/23/54/image_18082025_23_54_35_10640.jpg
/home/nano/Desktop/images/18082025/23/54/image_18082025_23_54_15_9664.jpg
/home/nano/Desktop/images/18082025/23/53/image_18082025_23_53_54_9634.jpg
/home/nano/Desktop/images/18082025/08/15/image_18082025_08_15_14_9644.jpg
/home/nano/Desktop/images/18082025/08/14/image_18082025_08_15_05_9633.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377721944","1377721935","1377721937","1377721940","1377721933","1377721939"],"photo_ids_order":["1377721933","1377721935","1377721937","1377721939","1377721940","1377721944"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/068ab7c139bd39f2d949b9320eb7e927.jpg","text":"TemporaryFile(/tmp/multipartBody5019954231370175568asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755554148848,"filename":"image_18082025_08_15_05_9633.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fa4bc1262e25c06c4bb8cec8f517826c.jpg","text":"TemporaryFile(/tmp/multipartBody7946791624418168117asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755554148848,"filename":"image_18082025_23_54_35_10640.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f869da7410e38af51128d6f398f4c731.jpg","text":"TemporaryFile(/tmp/multipartBody4549369402358644513asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755554148848,"filename":"image_18082025_23_54_15_9664.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d4d78a1651b32f12d89c138e0ca9e263.jpg","text":"TemporaryFile(/tmp/multipartBody3508139316033469356asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755554148848,"filename":"image_18082025_08_15_14_9644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ad36af9940e3639121b6f03255709ad3.jpg","text":"TemporaryFile(/tmp/multipartBody4701351863168061605asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755554148848,"filename":"image_18082025_23_54_45_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/0423ae2af678655ee966b7aa17d25f25.jpg","text":"TemporaryFile(/tmp/multipartBody4292375598175834586asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755554148848,"filename":"image_18082025_23_53_54_9634.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377721937","file1":"1377721935","file0":"1377721933","file4":"1377721940","file5":"1377721944","file3":"1377721939"},"map_files_photo_id_array":[{"photo_id":"1377721944","filename":"file5"},{"photo_id":"1377721937","filename":"file2"},{"photo_id":"1377721940","filename":"file4"},{"photo_id":"1377721935","filename":"file1"},{"photo_id":"1377721933","filename":"file0"},{"photo_id":"1377721939","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377721944":["hashtag1","hashtag2"]},{"1377721935":["hashtag1","hashtag2"]},{"1377721937":["hashtag1","hashtag2"]},{"1377721940":["hashtag1","hashtag2"]},{"1377721933":["hashtag1","hashtag2"]},{"1377721939":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377721944, 1377721935, 1377721937, 1377721940, 1377721933, 1377721939)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 31.94948935508728 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:55:32.569153
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/55/image_18082025_23_55_44_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/23/55/image_18082025_23_55_24_9632.jpg', 2), ('/home/nano/Desktop/images/18082025/23/55/image_18082025_23_55_14_9658.jpg', 2), ('/home/nano/Desktop/images/18082025/23/54/image_18082025_23_55_05_10663.jpg', 2), ('/home/nano/Desktop/images/18082025/23/54/image_18082025_23_54_54_9629.jpg', 2), ('/home/nano/Desktop/images/18082025/08/14/image_18082025_08_14_55_10634.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/55/image_18082025_23_55_44_9632.jpg', '/home/nano/Desktop/images/18082025/23/55/image_18082025_23_55_24_9632.jpg', '/home/nano/Desktop/images/18082025/23/55/image_18082025_23_55_14_9658.jpg', '/home/nano/Desktop/images/18082025/23/54/image_18082025_23_55_05_10663.jpg', '/home/nano/Desktop/images/18082025/23/54/image_18082025_23_54_54_9629.jpg', '/home/nano/Desktop/images/18082025/08/14/image_18082025_08_14_55_10634.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/55/image_18082025_23_55_44_9632.jpg
/home/nano/Desktop/images/18082025/23/55/image_18082025_23_55_24_9632.jpg
/home/nano/Desktop/images/18082025/23/55/image_18082025_23_55_14_9658.jpg
/home/nano/Desktop/images/18082025/23/54/image_18082025_23_55_05_10663.jpg
/home/nano/Desktop/images/18082025/23/54/image_18082025_23_54_54_9629.jpg
/home/nano/Desktop/images/18082025/08/14/image_18082025_08_14_55_10634.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377721962","1377721959","1377721950","1377721953","1377721956","1377721951"],"photo_ids_order":["1377721950","1377721951","1377721953","1377721956","1377721959","1377721962"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/9bcb42f4a26f185495fd5bd063bba757.jpg","text":"TemporaryFile(/tmp/multipartBody3709445878121199289asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755554194183,"filename":"image_18082025_08_14_55_10634.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/597fd451942c8b42d24b5fc86954db91.jpg","text":"TemporaryFile(/tmp/multipartBody6206525651504327492asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755554194183,"filename":"image_18082025_23_54_54_9629.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/12a9fe21a24502f5bccb920ce03323db.jpg","text":"TemporaryFile(/tmp/multipartBody6498379624493886664asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755554194183,"filename":"image_18082025_23_55_44_9632.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f847d0e74364c91df253ce5d82a0c46e.jpg","text":"TemporaryFile(/tmp/multipartBody3905093538609983156asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755554194183,"filename":"image_18082025_23_55_14_9658.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/056463c9320a7aa69da1c2d43a645024.jpg","text":"TemporaryFile(/tmp/multipartBody8709194366879720282asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755554194183,"filename":"image_18082025_23_55_05_10663.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d430f29244bd1d340d07969597cbb9c6.jpg","text":"TemporaryFile(/tmp/multipartBody8690725301027761315asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755554194183,"filename":"image_18082025_23_55_24_9632.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377721953","file1":"1377721951","file0":"1377721950","file4":"1377721959","file5":"1377721962","file3":"1377721956"},"map_files_photo_id_array":[{"photo_id":"1377721962","filename":"file5"},{"photo_id":"1377721953","filename":"file2"},{"photo_id":"1377721959","filename":"file4"},{"photo_id":"1377721951","filename":"file1"},{"photo_id":"1377721950","filename":"file0"},{"photo_id":"1377721956","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377721962":["hashtag1","hashtag2"]},{"1377721959":["hashtag1","hashtag2"]},{"1377721950":["hashtag1","hashtag2"]},{"1377721953":["hashtag1","hashtag2"]},{"1377721956":["hashtag1","hashtag2"]},{"1377721951":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377721962, 1377721959, 1377721950, 1377721953, 1377721956, 1377721951)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.957961082458496 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:56:17.712541
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/56/image_18082025_23_56_25_10643.jpg', 2), ('/home/nano/Desktop/images/18082025/23/56/image_18082025_23_56_14_9675.jpg', 2), ('/home/nano/Desktop/images/18082025/23/55/image_18082025_23_56_05_9639.jpg', 2), ('/home/nano/Desktop/images/18082025/23/55/image_18082025_23_55_55_10639.jpg', 2), ('/home/nano/Desktop/images/18082025/08/14/image_18082025_08_14_44_9645.jpg', 2), ('/home/nano/Desktop/images/18082025/08/14/image_18082025_08_14_35_10690.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/56/image_18082025_23_56_25_10643.jpg', '/home/nano/Desktop/images/18082025/23/56/image_18082025_23_56_14_9675.jpg', '/home/nano/Desktop/images/18082025/23/55/image_18082025_23_56_05_9639.jpg', '/home/nano/Desktop/images/18082025/23/55/image_18082025_23_55_55_10639.jpg', '/home/nano/Desktop/images/18082025/08/14/image_18082025_08_14_44_9645.jpg', '/home/nano/Desktop/images/18082025/08/14/image_18082025_08_14_35_10690.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/56/image_18082025_23_56_25_10643.jpg
/home/nano/Desktop/images/18082025/23/56/image_18082025_23_56_14_9675.jpg
/home/nano/Desktop/images/18082025/23/55/image_18082025_23_56_05_9639.jpg
/home/nano/Desktop/images/18082025/23/55/image_18082025_23_55_55_10639.jpg
/home/nano/Desktop/images/18082025/08/14/image_18082025_08_14_44_9645.jpg
/home/nano/Desktop/images/18082025/08/14/image_18082025_08_14_35_10690.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377721977","1377721971","1377721974","1377721972","1377721969","1377721980"],"photo_ids_order":["1377721969","1377721971","1377721972","1377721974","1377721977","1377721980"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/eb9e4255872e2799da6145439e9a89d7.jpg","text":"TemporaryFile(/tmp/multipartBody2689079220156319061asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755554239188,"filename":"image_18082025_08_14_44_9645.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/3b6803a892e63e874cc5fb0615550739.jpg","text":"TemporaryFile(/tmp/multipartBody6233242148305883668asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755554239188,"filename":"image_18082025_23_56_14_9675.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/f8d6ea23e759fba5c8133cb32f9713fa.jpg","text":"TemporaryFile(/tmp/multipartBody7844287157842036310asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755554239188,"filename":"image_18082025_23_55_55_10639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/152b603c621b010cfcb72184f39afc50.jpg","text":"TemporaryFile(/tmp/multipartBody5259724526546193131asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755554239188,"filename":"image_18082025_23_56_05_9639.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ef9871e09f26ca556c037977278cabd5.jpg","text":"TemporaryFile(/tmp/multipartBody5437459813255080382asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755554239188,"filename":"image_18082025_23_56_25_10643.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/79f42715c8205883f1e07559a218670c.jpg","text":"TemporaryFile(/tmp/multipartBody5870592406013284538asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755554239188,"filename":"image_18082025_08_14_35_10690.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377721972","file1":"1377721971","file0":"1377721969","file4":"1377721977","file5":"1377721980","file3":"1377721974"},"map_files_photo_id_array":[{"photo_id":"1377721980","filename":"file5"},{"photo_id":"1377721972","filename":"file2"},{"photo_id":"1377721977","filename":"file4"},{"photo_id":"1377721971","filename":"file1"},{"photo_id":"1377721969","filename":"file0"},{"photo_id":"1377721974","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377721977":["hashtag1","hashtag2"]},{"1377721971":["hashtag1","hashtag2"]},{"1377721974":["hashtag1","hashtag2"]},{"1377721972":["hashtag1","hashtag2"]},{"1377721969":["hashtag1","hashtag2"]},{"1377721980":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377721977, 1377721971, 1377721974, 1377721972, 1377721969, 1377721980)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.229265451431274 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:57:02.481055
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/08/14/image_18082025_08_14_24_9621.jpg', 2), ('/home/nano/Desktop/images/18082025/08/14/image_18082025_08_14_14_9626.jpg', 2), ('/home/nano/Desktop/images/18082025/08/13/image_18082025_08_14_05_10651.jpg', 2), ('/home/nano/Desktop/images/18082025/08/13/image_18082025_08_13_54_9618.jpg', 2), ('/home/nano/Desktop/images/18082025/08/13/image_18082025_08_13_45_9630.jpg', 2), ('/home/nano/Desktop/images/18082025/08/13/image_18082025_08_13_35_10635.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/08/14/image_18082025_08_14_24_9621.jpg', '/home/nano/Desktop/images/18082025/08/14/image_18082025_08_14_14_9626.jpg', '/home/nano/Desktop/images/18082025/08/13/image_18082025_08_14_05_10651.jpg', '/home/nano/Desktop/images/18082025/08/13/image_18082025_08_13_54_9618.jpg', '/home/nano/Desktop/images/18082025/08/13/image_18082025_08_13_45_9630.jpg', '/home/nano/Desktop/images/18082025/08/13/image_18082025_08_13_35_10635.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/08/14/image_18082025_08_14_24_9621.jpg
/home/nano/Desktop/images/18082025/08/14/image_18082025_08_14_14_9626.jpg
/home/nano/Desktop/images/18082025/08/13/image_18082025_08_14_05_10651.jpg
/home/nano/Desktop/images/18082025/08/13/image_18082025_08_13_54_9618.jpg
/home/nano/Desktop/images/18082025/08/13/image_18082025_08_13_45_9630.jpg
/home/nano/Desktop/images/18082025/08/13/image_18082025_08_13_35_10635.jpg
 val : 1 : upload photos already in processing! 
 val : 1 : upload photos already in processing! 
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377721998","1377722001","1377722003","1377721996","1377721993","1377721989"],"photo_ids_order":["1377721989","1377721993","1377721996","1377721998","1377722001","1377722003"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/fbaafaef7cdfd4d6fa949378240781c8.jpg","text":"TemporaryFile(/tmp/multipartBody8212032096657973247asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755554283826,"filename":"image_18082025_08_13_54_9618.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/de8961be1b0d1e93674754cf160770c0.jpg","text":"TemporaryFile(/tmp/multipartBody8452508456631950828asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755554283826,"filename":"image_18082025_08_13_45_9630.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b8ba2b9e8906445e03849b161b912fc8.jpg","text":"TemporaryFile(/tmp/multipartBody6515854147184882399asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755554283826,"filename":"image_18082025_08_13_35_10635.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/11a284886743219b8c33b96b48dd5b38.jpg","text":"TemporaryFile(/tmp/multipartBody2864818394311967709asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755554283826,"filename":"image_18082025_08_14_05_10651.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/ce2f4cc3ab009c5e5ec2a724466f9fdc.jpg","text":"TemporaryFile(/tmp/multipartBody3349667102761356491asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755554283826,"filename":"image_18082025_08_14_14_9626.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/984ae9bb64d6c3647c1e7fed3984c8fe.jpg","text":"TemporaryFile(/tmp/multipartBody7719676881025614587asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755554283826,"filename":"image_18082025_08_14_24_9621.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377721996","file1":"1377721993","file0":"1377721989","file4":"1377722001","file5":"1377722003","file3":"1377721998"},"map_files_photo_id_array":[{"photo_id":"1377722003","filename":"file5"},{"photo_id":"1377721996","filename":"file2"},{"photo_id":"1377722001","filename":"file4"},{"photo_id":"1377721993","filename":"file1"},{"photo_id":"1377721989","filename":"file0"},{"photo_id":"1377721998","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377721998":["hashtag1","hashtag2"]},{"1377722001":["hashtag1","hashtag2"]},{"1377722003":["hashtag1","hashtag2"]},{"1377721996":["hashtag1","hashtag2"]},{"1377721993":["hashtag1","hashtag2"]},{"1377721989":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377721998, 1377722001, 1377722003, 1377721996, 1377721993, 1377721989)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 30.41030979156494 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:57:46.807316
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/57/image_18082025_23_57_44_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/23/57/image_18082025_23_57_25_10662.jpg', 2), ('/home/nano/Desktop/images/18082025/23/57/image_18082025_23_57_14_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/23/56/image_18082025_23_57_05_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/23/56/image_18082025_23_56_55_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/08/13/image_18082025_08_13_24_9621.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/57/image_18082025_23_57_44_9644.jpg', '/home/nano/Desktop/images/18082025/23/57/image_18082025_23_57_25_10662.jpg', '/home/nano/Desktop/images/18082025/23/57/image_18082025_23_57_14_9646.jpg', '/home/nano/Desktop/images/18082025/23/56/image_18082025_23_57_05_9656.jpg', '/home/nano/Desktop/images/18082025/23/56/image_18082025_23_56_55_10660.jpg', '/home/nano/Desktop/images/18082025/08/13/image_18082025_08_13_24_9621.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/57/image_18082025_23_57_44_9644.jpg
/home/nano/Desktop/images/18082025/23/57/image_18082025_23_57_25_10662.jpg
/home/nano/Desktop/images/18082025/23/57/image_18082025_23_57_14_9646.jpg
/home/nano/Desktop/images/18082025/23/56/image_18082025_23_57_05_9656.jpg
/home/nano/Desktop/images/18082025/23/56/image_18082025_23_56_55_10660.jpg
/home/nano/Desktop/images/18082025/08/13/image_18082025_08_13_24_9621.jpg
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --interval 10 --last_days 30 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:58:02.374981
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/57/image_18082025_23_57_44_9644.jpg', 2), ('/home/nano/Desktop/images/18082025/23/57/image_18082025_23_57_25_10662.jpg', 2), ('/home/nano/Desktop/images/18082025/23/57/image_18082025_23_57_14_9646.jpg', 2), ('/home/nano/Desktop/images/18082025/23/56/image_18082025_23_57_05_9656.jpg', 2), ('/home/nano/Desktop/images/18082025/23/56/image_18082025_23_56_55_10660.jpg', 2), ('/home/nano/Desktop/images/18082025/08/13/image_18082025_08_13_24_9621.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/57/image_18082025_23_57_44_9644.jpg', '/home/nano/Desktop/images/18082025/23/57/image_18082025_23_57_25_10662.jpg', '/home/nano/Desktop/images/18082025/23/57/image_18082025_23_57_14_9646.jpg', '/home/nano/Desktop/images/18082025/23/56/image_18082025_23_57_05_9656.jpg', '/home/nano/Desktop/images/18082025/23/56/image_18082025_23_56_55_10660.jpg', '/home/nano/Desktop/images/18082025/08/13/image_18082025_08_13_24_9621.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/57/image_18082025_23_57_44_9644.jpg
/home/nano/Desktop/images/18082025/23/57/image_18082025_23_57_25_10662.jpg
/home/nano/Desktop/images/18082025/23/57/image_18082025_23_57_14_9646.jpg
/home/nano/Desktop/images/18082025/23/56/image_18082025_23_57_05_9656.jpg
/home/nano/Desktop/images/18082025/23/56/image_18082025_23_56_55_10660.jpg
/home/nano/Desktop/images/18082025/08/13/image_18082025_08_13_24_9621.jpg
after data_to_send, before sending request
after request
<Response [200]>
b'{"photo_ids":["1377722025","1377722016","1377722019","1377722021","1377722015","1377722023"],"photo_ids_order":["1377722015","1377722016","1377722019","1377722021","1377722023","1377722025"],"photo_detail":[{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/5e080777f15331b85847d8c4349bf5e6.jpg","text":"TemporaryFile(/tmp/multipartBody8985497061477199803asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755554343678,"filename":"image_18082025_08_13_24_9621.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/561273bffae59f612e3a7938f00a12bc.jpg","text":"TemporaryFile(/tmp/multipartBody3203536930627998298asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755554343678,"filename":"image_18082025_23_57_25_10662.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/d516ee27b1ad4c852e9436c2ff3b1cc6.jpg","text":"TemporaryFile(/tmp/multipartBody2815639445158170834asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755554343678,"filename":"image_18082025_23_57_14_9646.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/4c51e192a1be752b9db155ba7345ae4b.jpg","text":"TemporaryFile(/tmp/multipartBody6860762349228004987asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755554343678,"filename":"image_18082025_23_57_05_9656.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/b8127db751d3c6ce308d7a60ddb1b1db.jpg","text":"TemporaryFile(/tmp/multipartBody451116378329582870asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755554343678,"filename":"image_18082025_23_57_44_9644.jpg","height":0,"width":0},{"mtr_user_id":1042,"url":"https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/18/653828dc416bd347ab2c902dd0fa55dc.jpg","text":"TemporaryFile(/tmp/multipartBody3768448608441099207asTemporaryFile)","latitude":0.0,"longitude":0.0,"uploaded_at":1755554343678,"filename":"image_18082025_23_56_55_10660.jpg","height":0,"width":0}],"map_files_photo_id":{"file2":"1377722019","file1":"1377722016","file0":"1377722015","file4":"1377722023","file5":"1377722025","file3":"1377722021"},"map_files_photo_id_array":[{"photo_id":"1377722025","filename":"file5"},{"photo_id":"1377722019","filename":"file2"},{"photo_id":"1377722023","filename":"file4"},{"photo_id":"1377722016","filename":"file1"},{"photo_id":"1377722015","filename":"file0"},{"photo_id":"1377722021","filename":"file3"}],"portfolio_id":26046296,"hashtag_by_photo_ids":[{"1377722025":["hashtag1","hashtag2"]},{"1377722016":["hashtag1","hashtag2"]},{"1377722019":["hashtag1","hashtag2"]},{"1377722021":["hashtag1","hashtag2"]},{"1377722015":["hashtag1","hashtag2"]},{"1377722023":["hashtag1","hashtag2"]}],"comms":"Portfolio 26046296 used, photo_id : ArrayBuffer(1377722025, 1377722016, 1377722019, 1377722021, 1377722015, 1377722023)","result":[],"list_datou_current":[]}'
Result OK !
uploaded 6 photos
time to upload: 32.142653942108154 secondes ---
Start to upload photos with parameters : -o DESC -n Sevran_3025 -u marlene.fotonower.com -P https -f /home/nano/Desktop/images -t e243aac39fb012c084cfefeb2a6a3641 --datou_id=4892 --threshold=89 -j upload_by_sql_test -v --last_days 30 --interval 10 --status_upload 2 --file_local_db /home/nano/.fotonower_config/sqlite.db
2025-08-18 23:58:46.927393
  port_id : 26046296
  datou_current_id : 3551393
in upload_from_sqlite, uploading in 26046296
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 = 20250818 ORDER BY id_local DESC LIMIT 6;
error upload
[('/home/nano/Desktop/images/18082025/23/58/image_18082025_23_58_34_9631.jpg', 2), ('/home/nano/Desktop/images/18082025/23/58/image_18082025_23_58_25_10640.jpg', 2), ('/home/nano/Desktop/images/18082025/23/58/image_18082025_23_58_14_9669.jpg', 2), ('/home/nano/Desktop/images/18082025/23/57/image_18082025_23_58_04_9642.jpg', 2), ('/home/nano/Desktop/images/18082025/23/57/image_18082025_23_57_55_10647.jpg', 2), ('/home/nano/Desktop/images/18082025/08/13/image_18082025_08_13_15_9625.jpg', 2)]
in upload media
 Upload medias :  ['/home/nano/Desktop/images/18082025/23/58/image_18082025_23_58_34_9631.jpg', '/home/nano/Desktop/images/18082025/23/58/image_18082025_23_58_25_10640.jpg', '/home/nano/Desktop/images/18082025/23/58/image_18082025_23_58_14_9669.jpg', '/home/nano/Desktop/images/18082025/23/57/image_18082025_23_58_04_9642.jpg', '/home/nano/Desktop/images/18082025/23/57/image_18082025_23_57_55_10647.jpg', '/home/nano/Desktop/images/18082025/08/13/image_18082025_08_13_15_9625.jpg'] : url : https://marlene.fotonower.com/api/v1/secured/photo/upload?token=e243aac39fb012c084cfefeb2a6a3641&datou_current_id=3551393&datou=0
/home/nano/Desktop/images/18082025/23/58/image_18082025_23_58_34_9631.jpg
/home/nano/Desktop/images/18082025/23/58/image_18082025_23_58_25_10640.jpg
/home/nano/Desktop/images/18082025/23/58/image_18082025_23_58_14_9669.jpg
/home/nano/Desktop/images/18082025/23/57/image_18082025_23_58_04_9642.jpg
/home/nano/Desktop/images/18082025/23/57/image_18082025_23_57_55_10647.jpg
/home/nano/Desktop/images/18082025/08/13/image_18082025_08_13_15_9625.jpg
